/* libvirt-machine.c generated by valac 0.26.0.50-d9a75, the Vala compiler
 * generated from libvirt-machine.vala, do not modify */

/* This file is part of GNOME Boxes. License: LGPLv2+*/

#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libcommon.h>
#include <float.h>
#include <math.h>
#include <libvirt-gobject/libvirt-gobject.h>
#include <libvirt-gconfig/libvirt-gconfig.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <libgd/gd.h>


#define BOXES_TYPE_UI (boxes_ui_get_type ())
#define BOXES_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UI, BoxesUI))
#define BOXES_IS_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UI))
#define BOXES_UI_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_UI, BoxesUIIface))

typedef struct _BoxesUI BoxesUI;
typedef struct _BoxesUIIface BoxesUIIface;

#define BOXES_TYPE_UI_STATE (boxes_ui_state_get_type ())

#define BOXES_TYPE_COLLECTION_ITEM (boxes_collection_item_get_type ())
#define BOXES_COLLECTION_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItem))
#define BOXES_COLLECTION_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItemClass))
#define BOXES_IS_COLLECTION_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_ITEM))
#define BOXES_IS_COLLECTION_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_ITEM))
#define BOXES_COLLECTION_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItemClass))

typedef struct _BoxesCollectionItem BoxesCollectionItem;
typedef struct _BoxesCollectionItemClass BoxesCollectionItemClass;
typedef struct _BoxesCollectionItemPrivate BoxesCollectionItemPrivate;

#define BOXES_TYPE_IPROPERTIES_PROVIDER (boxes_iproperties_provider_get_type ())
#define BOXES_IPROPERTIES_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER, BoxesIPropertiesProvider))
#define BOXES_IS_IPROPERTIES_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER))
#define BOXES_IPROPERTIES_PROVIDER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER, BoxesIPropertiesProviderIface))

typedef struct _BoxesIPropertiesProvider BoxesIPropertiesProvider;
typedef struct _BoxesIPropertiesProviderIface BoxesIPropertiesProviderIface;

#define BOXES_TYPE_PROPERTIES_PAGE (boxes_properties_page_get_type ())

#define TYPE_PROPERTY_CREATION_FLAG (property_creation_flag_get_type ())

#define BOXES_TYPE_PROPERTY (boxes_property_get_type ())
#define BOXES_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTY, BoxesProperty))
#define BOXES_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTY, BoxesPropertyClass))
#define BOXES_IS_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTY))
#define BOXES_IS_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTY))
#define BOXES_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTY, BoxesPropertyClass))

typedef struct _BoxesProperty BoxesProperty;
typedef struct _BoxesPropertyClass BoxesPropertyClass;

#define BOXES_TYPE_MACHINE (boxes_machine_get_type ())
#define BOXES_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MACHINE, BoxesMachine))
#define BOXES_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MACHINE, BoxesMachineClass))
#define BOXES_IS_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MACHINE))
#define BOXES_IS_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MACHINE))
#define BOXES_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MACHINE, BoxesMachineClass))

typedef struct _BoxesMachine BoxesMachine;
typedef struct _BoxesMachineClass BoxesMachineClass;
typedef struct _BoxesMachinePrivate BoxesMachinePrivate;

#define BOXES_MACHINE_TYPE_CONNECT_FLAGS (boxes_machine_connect_flags_get_type ())

#define BOXES_TYPE_LIBVIRT_MACHINE (boxes_libvirt_machine_get_type ())
#define BOXES_LIBVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine))
#define BOXES_LIBVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachineClass))
#define BOXES_IS_LIBVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIBVIRT_MACHINE))
#define BOXES_IS_LIBVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIBVIRT_MACHINE))
#define BOXES_LIBVIRT_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachineClass))

typedef struct _BoxesLibvirtMachine BoxesLibvirtMachine;
typedef struct _BoxesLibvirtMachineClass BoxesLibvirtMachineClass;
typedef struct _BoxesLibvirtMachinePrivate BoxesLibvirtMachinePrivate;

#define BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES (boxes_libvirt_machine_properties_get_type ())
#define BOXES_LIBVIRT_MACHINE_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES, BoxesLibvirtMachineProperties))
#define BOXES_LIBVIRT_MACHINE_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES, BoxesLibvirtMachinePropertiesClass))
#define BOXES_IS_LIBVIRT_MACHINE_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES))
#define BOXES_IS_LIBVIRT_MACHINE_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES))
#define BOXES_LIBVIRT_MACHINE_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIBVIRT_MACHINE_PROPERTIES, BoxesLibvirtMachinePropertiesClass))

typedef struct _BoxesLibvirtMachineProperties BoxesLibvirtMachineProperties;
typedef struct _BoxesLibvirtMachinePropertiesClass BoxesLibvirtMachinePropertiesClass;

#define BOXES_TYPE_VM_CREATOR (boxes_vm_creator_get_type ())
#define BOXES_VM_CREATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_VM_CREATOR, BoxesVMCreator))
#define BOXES_VM_CREATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_VM_CREATOR, BoxesVMCreatorClass))
#define BOXES_IS_VM_CREATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_VM_CREATOR))
#define BOXES_IS_VM_CREATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_VM_CREATOR))
#define BOXES_VM_CREATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_VM_CREATOR, BoxesVMCreatorClass))

typedef struct _BoxesVMCreator BoxesVMCreator;
typedef struct _BoxesVMCreatorClass BoxesVMCreatorClass;

#define BOXES_LIBVIRT_MACHINE_TYPE_MACHINE_STAT (boxes_libvirt_machine_machine_stat_get_type ())
typedef struct _BoxesLibvirtMachineMachineStat BoxesLibvirtMachineMachineStat;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _boxes_vm_creator_unref0(var) ((var == NULL) ? NULL : (var = (boxes_vm_creator_unref (var), NULL)))

#define BOXES_TYPE_DISPLAY (boxes_display_get_type ())
#define BOXES_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY, BoxesDisplay))
#define BOXES_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY, BoxesDisplayClass))
#define BOXES_IS_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY))
#define BOXES_IS_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY))
#define BOXES_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY, BoxesDisplayClass))

typedef struct _BoxesDisplay BoxesDisplay;
typedef struct _BoxesDisplayClass BoxesDisplayClass;
typedef struct _BoxesLibvirtMachineConnectDisplayData BoxesLibvirtMachineConnectDisplayData;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define BOXES_TYPE_APP_WINDOW (boxes_app_window_get_type ())
#define BOXES_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_APP_WINDOW, BoxesAppWindow))
#define BOXES_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_APP_WINDOW, BoxesAppWindowClass))
#define BOXES_IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_APP_WINDOW))
#define BOXES_IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_APP_WINDOW))
#define BOXES_APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_APP_WINDOW, BoxesAppWindowClass))

typedef struct _BoxesAppWindow BoxesAppWindow;
typedef struct _BoxesAppWindowClass BoxesAppWindowClass;
#define _g_free0(var) (var = (g_free (var), NULL))
#define __vala_GVirDomainInfo_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirDomainInfo_free (var), NULL)))

#define BOXES_MACHINE_TYPE_MACHINE_STATE (boxes_machine_machine_state_get_type ())
typedef struct _Block30Data Block30Data;
typedef struct _Block31Data Block31Data;
#define __vala_GVirDomainDiskStats_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirDomainDiskStats_free (var), NULL)))
typedef struct _BoxesLibvirtMachineUpdateIoStatData BoxesLibvirtMachineUpdateIoStatData;
typedef struct _Block32Data Block32Data;
typedef struct _Block33Data Block33Data;
#define __vala_GVirDomainInterfaceStats_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirDomainInterfaceStats_free (var), NULL)))
typedef struct _BoxesLibvirtMachineUpdateNetStatData BoxesLibvirtMachineUpdateNetStatData;
typedef struct _BoxesLibvirtMachineUpdateStatsData BoxesLibvirtMachineUpdateStatsData;
typedef struct _Block34Data Block34Data;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

#define BOXES_TYPE_SPICE_DISPLAY (boxes_spice_display_get_type ())
#define BOXES_SPICE_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplay))
#define BOXES_SPICE_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplayClass))
#define BOXES_IS_SPICE_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SPICE_DISPLAY))
#define BOXES_IS_SPICE_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SPICE_DISPLAY))
#define BOXES_SPICE_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplayClass))

typedef struct _BoxesSpiceDisplay BoxesSpiceDisplay;
typedef struct _BoxesSpiceDisplayClass BoxesSpiceDisplayClass;

#define BOXES_TYPE_VNC_DISPLAY (boxes_vnc_display_get_type ())
#define BOXES_VNC_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplay))
#define BOXES_VNC_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplayClass))
#define BOXES_IS_VNC_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_VNC_DISPLAY))
#define BOXES_IS_VNC_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_VNC_DISPLAY))
#define BOXES_VNC_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplayClass))

typedef struct _BoxesVncDisplay BoxesVncDisplay;
typedef struct _BoxesVncDisplayClass BoxesVncDisplayClass;
typedef struct _Block35Data Block35Data;
typedef struct _BoxesLibvirtMachineTakeScreenshotData BoxesLibvirtMachineTakeScreenshotData;
typedef struct _Block36Data Block36Data;
typedef struct _BoxesLibvirtMachineSaveRealData BoxesLibvirtMachineSaveRealData;
typedef struct _BoxesLibvirtMachineSuspendData BoxesLibvirtMachineSuspendData;
typedef struct _BoxesLibvirtMachineStartData BoxesLibvirtMachineStartData;
typedef struct _Block37Data Block37Data;
typedef struct _BoxesAppWindowPrivate BoxesAppWindowPrivate;

#define BOXES_TYPE_WIZARD_WINDOW (boxes_wizard_window_get_type ())
#define BOXES_WIZARD_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindow))
#define BOXES_WIZARD_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindowClass))
#define BOXES_IS_WIZARD_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD_WINDOW))
#define BOXES_IS_WIZARD_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD_WINDOW))
#define BOXES_WIZARD_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD_WINDOW, BoxesWizardWindowClass))

typedef struct _BoxesWizardWindow BoxesWizardWindow;
typedef struct _BoxesWizardWindowClass BoxesWizardWindowClass;

#define BOXES_TYPE_PROPERTIES_WINDOW (boxes_properties_window_get_type ())
#define BOXES_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindow))
#define BOXES_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindowClass))
#define BOXES_IS_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTIES_WINDOW))
#define BOXES_IS_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTIES_WINDOW))
#define BOXES_PROPERTIES_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTIES_WINDOW, BoxesPropertiesWindowClass))

typedef struct _BoxesPropertiesWindow BoxesPropertiesWindow;
typedef struct _BoxesPropertiesWindowClass BoxesPropertiesWindowClass;

#define BOXES_TYPE_SEARCHBAR (boxes_searchbar_get_type ())
#define BOXES_SEARCHBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SEARCHBAR, BoxesSearchbar))
#define BOXES_SEARCHBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SEARCHBAR, BoxesSearchbarClass))
#define BOXES_IS_SEARCHBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SEARCHBAR))
#define BOXES_IS_SEARCHBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SEARCHBAR))
#define BOXES_SEARCHBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SEARCHBAR, BoxesSearchbarClass))

typedef struct _BoxesSearchbar BoxesSearchbar;
typedef struct _BoxesSearchbarClass BoxesSearchbarClass;

#define BOXES_TYPE_TOPBAR (boxes_topbar_get_type ())
#define BOXES_TOPBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_TOPBAR, BoxesTopbar))
#define BOXES_TOPBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_TOPBAR, BoxesTopbarClass))
#define BOXES_IS_TOPBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_TOPBAR))
#define BOXES_IS_TOPBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_TOPBAR))
#define BOXES_TOPBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_TOPBAR, BoxesTopbarClass))

typedef struct _BoxesTopbar BoxesTopbar;
typedef struct _BoxesTopbarClass BoxesTopbarClass;

#define BOXES_TYPE_NOTIFICATIONBAR (boxes_notificationbar_get_type ())
#define BOXES_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbar))
#define BOXES_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))
#define BOXES_IS_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_IS_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_NOTIFICATIONBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))

typedef struct _BoxesNotificationbar BoxesNotificationbar;
typedef struct _BoxesNotificationbarClass BoxesNotificationbarClass;

#define BOXES_TYPE_SELECTIONBAR (boxes_selectionbar_get_type ())
#define BOXES_SELECTIONBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbar))
#define BOXES_SELECTIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbarClass))
#define BOXES_IS_SELECTIONBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SELECTIONBAR))
#define BOXES_IS_SELECTIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SELECTIONBAR))
#define BOXES_SELECTIONBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SELECTIONBAR, BoxesSelectionbarClass))

typedef struct _BoxesSelectionbar BoxesSelectionbar;
typedef struct _BoxesSelectionbarClass BoxesSelectionbarClass;

#define BOXES_TYPE_DISPLAY_PAGE (boxes_display_page_get_type ())
#define BOXES_DISPLAY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY_PAGE, BoxesDisplayPage))
#define BOXES_DISPLAY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY_PAGE, BoxesDisplayPageClass))
#define BOXES_IS_DISPLAY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY_PAGE))
#define BOXES_IS_DISPLAY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY_PAGE))
#define BOXES_DISPLAY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY_PAGE, BoxesDisplayPageClass))

typedef struct _BoxesDisplayPage BoxesDisplayPage;
typedef struct _BoxesDisplayPageClass BoxesDisplayPageClass;

#define BOXES_TYPE_EMPTY_BOXES (boxes_empty_boxes_get_type ())
#define BOXES_EMPTY_BOXES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_EMPTY_BOXES, BoxesEmptyBoxes))
#define BOXES_EMPTY_BOXES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_EMPTY_BOXES, BoxesEmptyBoxesClass))
#define BOXES_IS_EMPTY_BOXES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_EMPTY_BOXES))
#define BOXES_IS_EMPTY_BOXES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_EMPTY_BOXES))
#define BOXES_EMPTY_BOXES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_EMPTY_BOXES, BoxesEmptyBoxesClass))

typedef struct _BoxesEmptyBoxes BoxesEmptyBoxes;
typedef struct _BoxesEmptyBoxesClass BoxesEmptyBoxesClass;

#define BOXES_TYPE_COLLECTION_VIEW (boxes_collection_view_get_type ())
#define BOXES_COLLECTION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_VIEW, BoxesCollectionView))
#define BOXES_COLLECTION_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_VIEW, BoxesCollectionViewClass))
#define BOXES_IS_COLLECTION_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_VIEW))
#define BOXES_IS_COLLECTION_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_VIEW))
#define BOXES_COLLECTION_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_VIEW, BoxesCollectionViewClass))

typedef struct _BoxesCollectionView BoxesCollectionView;
typedef struct _BoxesCollectionViewClass BoxesCollectionViewClass;
typedef struct _Block38Data Block38Data;
typedef struct _BoxesLibvirtMachineWaitForSaveData BoxesLibvirtMachineWaitForSaveData;

#define BOXES_TYPE_VM_IMPORTER (boxes_vm_importer_get_type ())
#define BOXES_VM_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_VM_IMPORTER, BoxesVMImporter))
#define BOXES_VM_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_VM_IMPORTER, BoxesVMImporterClass))
#define BOXES_IS_VM_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_VM_IMPORTER))
#define BOXES_IS_VM_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_VM_IMPORTER))
#define BOXES_VM_IMPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_VM_IMPORTER, BoxesVMImporterClass))

typedef struct _BoxesVMImporter BoxesVMImporter;
typedef struct _BoxesVMImporterClass BoxesVMImporterClass;

typedef enum  {
	BOXES_UI_STATE_NONE,
	BOXES_UI_STATE_COLLECTION,
	BOXES_UI_STATE_CREDS,
	BOXES_UI_STATE_DISPLAY,
	BOXES_UI_STATE_WIZARD,
	BOXES_UI_STATE_PROPERTIES
} BoxesUIState;

struct _BoxesUIIface {
	GTypeInterface parent_iface;
	BoxesUIState (*get_previous_ui_state) (BoxesUI* self);
	void (*set_previous_ui_state) (BoxesUI* self, BoxesUIState value);
	BoxesUIState (*get_ui_state) (BoxesUI* self);
	void (*set_ui_state) (BoxesUI* self, BoxesUIState value);
};

struct _BoxesCollectionItem {
	GObject parent_instance;
	BoxesCollectionItemPrivate * priv;
};

struct _BoxesCollectionItemClass {
	GObjectClass parent_class;
	gint (*compare) (BoxesCollectionItem* self, BoxesCollectionItem* other);
};

typedef enum  {
	BOXES_PROPERTIES_PAGE_GENERAL,
	BOXES_PROPERTIES_PAGE_SYSTEM,
	BOXES_PROPERTIES_PAGE_DEVICES,
	BOXES_PROPERTIES_PAGE_SNAPSHOTS,
	BOXES_PROPERTIES_PAGE_LAST
} BoxesPropertiesPage;

typedef enum  {
	PROPERTY_CREATION_FLAG_NONE = 1 << 0,
	PROPERTY_CREATION_FLAG_NO_USB = 1 << 1
} PropertyCreationFlag;

struct _BoxesIPropertiesProviderIface {
	GTypeInterface parent_iface;
	GList* (*get_properties) (BoxesIPropertiesProvider* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
};

typedef enum  {
	BOXES_MACHINE_CONNECT_FLAGS_NONE = 0,
	BOXES_MACHINE_CONNECT_FLAGS_IGNORE_SAVED_STATE = 1 << 0
} BoxesMachineConnectFlags;

struct _BoxesMachine {
	BoxesCollectionItem parent_instance;
	BoxesMachinePrivate * priv;
	BoxesCollectionSource* source;
	BoxesBoxConfig* config;
	gboolean stay_on_display;
	gboolean suspend_at_exit;
};

struct _BoxesMachineClass {
	BoxesCollectionItemClass parent_class;
	void (*save_real) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*save_real_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*take_screenshot) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GdkPixbuf* (*take_screenshot_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	GList* (*get_properties) (BoxesMachine* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
	void (*connect_display) (BoxesMachine* self, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*connect_display_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*restart) (BoxesMachine* self);
	void (*disconnect_display) (BoxesMachine* self);
	void (*delete) (BoxesMachine* self, gboolean by_user);
	gboolean (*get_can_save) (BoxesMachine* self);
	gboolean (*get_should_autosave) (BoxesMachine* self);
};

struct _BoxesLibvirtMachine {
	BoxesMachine parent_instance;
	BoxesLibvirtMachinePrivate * priv;
	BoxesLibvirtMachineProperties* properties;
	gdouble* cpu_stats;
	gint cpu_stats_length1;
	gint _cpu_stats_size_;
	gdouble* io_stats;
	gint io_stats_length1;
	gint _io_stats_size_;
	gdouble* net_stats;
	gint net_stats_length1;
	gint _net_stats_size_;
};

struct _BoxesLibvirtMachineClass {
	BoxesMachineClass parent_class;
};

struct _BoxesLibvirtMachineMachineStat {
	gint64 timestamp;
	gdouble cpu_time;
	gdouble cpu_time_abs;
	gdouble cpu_guest_percent;
	gdouble memory_percent;
	GVirDomainDiskStats* disk;
	gdouble disk_read;
	gdouble disk_write;
	GVirDomainInterfaceStats* net;
	gdouble net_read;
	gdouble net_write;
};

struct _BoxesLibvirtMachinePrivate {
	GVirDomain* _domain;
	GVirConfigDomain* _domain_config;
	GVirConnection* _connection;
	GVirStorageVol* _storage_volume;
	BoxesVMCreator* _vm_creator;
	guint shutdown_timeout;
	guint stats_update_timeout;
	GCancellable* stats_cancellable;
	BoxesLibvirtMachineMachineStat* stats;
	gint stats_length1;
	gint _stats_size_;
	gboolean force_stopped;
	gboolean saving;
};

struct _BoxesLibvirtMachineConnectDisplayData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	BoxesMachineConnectFlags flags;
	GCancellable* _tmp0_;
	GCancellable* _tmp1_;
	GCancellable* _tmp2_;
	GCancellable* _tmp3_;
	gboolean _tmp4_;
	GCancellable* _tmp5_;
	GCancellable* _tmp6_;
	BoxesMachineConnectFlags _tmp7_;
	GCancellable* _tmp8_;
	GCancellable* _tmp9_;
	GCancellable* _tmp10_;
	GCancellable* _tmp11_;
	gboolean _tmp12_;
	GCancellable* _tmp13_;
	GCancellable* _tmp14_;
	gboolean _tmp15_;
	gboolean _tmp16_;
	BoxesDisplay* _tmp17_;
	BoxesDisplay* _tmp18_;
	BoxesDisplay* _tmp19_;
	BoxesDisplay* _tmp20_;
	GError * _inner_error_;
};

typedef enum  {
	BOXES_MACHINE_MACHINE_STATE_UNKNOWN,
	BOXES_MACHINE_MACHINE_STATE_STOPPED,
	BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED,
	BOXES_MACHINE_MACHINE_STATE_RUNNING,
	BOXES_MACHINE_MACHINE_STATE_PAUSED,
	BOXES_MACHINE_MACHINE_STATE_SAVED,
	BOXES_MACHINE_MACHINE_STATE_SLEEPING
} BoxesMachineMachineState;

struct _Block30Data {
	int _ref_count_;
	BoxesLibvirtMachine* self;
	BoxesLibvirtMachineMachineStat* stat;
	gpointer _async_data_;
};

struct _Block31Data {
	int _ref_count_;
	Block30Data * _data30_;
	GVirDomainDisk* disk;
};

struct _BoxesLibvirtMachineUpdateIoStatData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	GVirDomainInfo* info;
	BoxesLibvirtMachineMachineStat* stat;
	Block30Data* _data30_;
	BoxesLibvirtMachineMachineStat* _tmp0_;
	GVirDomainInfo* _tmp1_;
	GVirDomainState _tmp2_;
	Block31Data* _data31_;
	GVirDomainDisk* _tmp3_;
	GVirDomainDisk* _tmp4_;
	BoxesLibvirtMachineMachineStat prev;
	BoxesLibvirtMachineMachineStat* _tmp5_;
	gint _tmp5__length1;
	BoxesLibvirtMachineMachineStat _tmp6_;
	BoxesLibvirtMachineMachineStat _tmp7_;
	BoxesLibvirtMachineMachineStat _tmp8_;
	GVirDomainDiskStats* _tmp9_;
	BoxesLibvirtMachineMachineStat* _tmp10_;
	GVirDomainDiskStats* _tmp11_;
	gint64 _tmp12_;
	BoxesLibvirtMachineMachineStat _tmp13_;
	GVirDomainDiskStats* _tmp14_;
	gint64 _tmp15_;
	BoxesLibvirtMachineMachineStat* _tmp16_;
	GVirDomainDiskStats* _tmp17_;
	gint64 _tmp18_;
	BoxesLibvirtMachineMachineStat _tmp19_;
	GVirDomainDiskStats* _tmp20_;
	gint64 _tmp21_;
	GError* err;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	GError* _tmp24_;
	const gchar* _tmp25_;
	GError * _inner_error_;
};

struct _Block32Data {
	int _ref_count_;
	BoxesLibvirtMachine* self;
	BoxesLibvirtMachineMachineStat* stat;
	gpointer _async_data_;
};

struct _Block33Data {
	int _ref_count_;
	Block32Data * _data32_;
	GVirDomainInterface* net;
};

struct _BoxesLibvirtMachineUpdateNetStatData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	GVirDomainInfo* info;
	BoxesLibvirtMachineMachineStat* stat;
	Block32Data* _data32_;
	BoxesLibvirtMachineMachineStat* _tmp0_;
	GVirDomainInfo* _tmp1_;
	GVirDomainState _tmp2_;
	Block33Data* _data33_;
	GVirDomainInterface* _tmp3_;
	GVirDomainInterface* _tmp4_;
	BoxesLibvirtMachineMachineStat prev;
	BoxesLibvirtMachineMachineStat* _tmp5_;
	gint _tmp5__length1;
	BoxesLibvirtMachineMachineStat _tmp6_;
	BoxesLibvirtMachineMachineStat _tmp7_;
	BoxesLibvirtMachineMachineStat _tmp8_;
	GVirDomainInterfaceStats* _tmp9_;
	BoxesLibvirtMachineMachineStat* _tmp10_;
	GVirDomainInterfaceStats* _tmp11_;
	gint64 _tmp12_;
	BoxesLibvirtMachineMachineStat _tmp13_;
	GVirDomainInterfaceStats* _tmp14_;
	gint64 _tmp15_;
	BoxesLibvirtMachineMachineStat* _tmp16_;
	GVirDomainInterfaceStats* _tmp17_;
	gint64 _tmp18_;
	BoxesLibvirtMachineMachineStat _tmp19_;
	GVirDomainInterfaceStats* _tmp20_;
	gint64 _tmp21_;
	GError* err;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	GError* _tmp24_;
	const gchar* _tmp25_;
	GError * _inner_error_;
};

struct _BoxesLibvirtMachineUpdateStatsData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	gint64 now;
	gint64 _tmp0_;
	BoxesLibvirtMachineMachineStat stat;
	gint64 _tmp1_;
	BoxesLibvirtMachineMachineStat _tmp2_;
	GVirDomainInfo* info;
	GVirDomain* _tmp3_;
	GCancellable* _tmp4_;
	GVirDomainInfo* _tmp5_;
	GVirDomainInfo* _tmp6_;
	GVirDomainInfo* _tmp7_;
	GVirDomainInfo* _tmp8_;
	GVirDomainInfo* _tmp9_;
	BoxesLibvirtMachineMachineStat* _tmp10_;
	gint _tmp10__length1;
	BoxesLibvirtMachineMachineStat* _tmp11_;
	gint _tmp11__length1;
	BoxesLibvirtMachineMachineStat* _tmp12_;
	gint _tmp12__length1;
	BoxesLibvirtMachineMachineStat _tmp13_;
	BoxesLibvirtMachineMachineStat _tmp14_;
	GError* err;
	GError* _vala1_err;
	GError* _tmp15_;
	const gchar* _tmp16_;
	gdouble* _tmp17_;
	gdouble* _tmp18_;
	gdouble* _tmp19_;
	BoxesLibvirtMachineMachineStat* _tmp20_;
	gint _tmp20__length1;
	BoxesLibvirtMachineMachineStat* stat_collection;
	gint stat_collection_length1;
	gint _stat_collection_size_;
	gint stat_it;
	BoxesLibvirtMachineMachineStat _tmp21_;
	BoxesLibvirtMachineMachineStat _vala1_stat;
	gdouble* _tmp22_;
	gint _tmp22__length1;
	BoxesLibvirtMachineMachineStat _tmp23_;
	gdouble _tmp24_;
	gdouble* _tmp25_;
	gint _tmp25__length1;
	BoxesLibvirtMachineMachineStat _tmp26_;
	gdouble _tmp27_;
	BoxesLibvirtMachineMachineStat _tmp28_;
	gdouble _tmp29_;
	gdouble* _tmp30_;
	gint _tmp30__length1;
	BoxesLibvirtMachineMachineStat _tmp31_;
	gdouble _tmp32_;
	BoxesLibvirtMachineMachineStat _tmp33_;
	gdouble _tmp34_;
	GError * _inner_error_;
};

struct _Block34Data {
	int _ref_count_;
	BoxesLibvirtMachine* self;
	gboolean stats_updating;
};

struct _Block35Data {
	int _ref_count_;
	BoxesLibvirtMachine* self;
	GVirStream* stream;
	gpointer _async_data_;
};

struct _BoxesLibvirtMachineTakeScreenshotData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	GdkPixbuf* result;
	Block35Data* _data35_;
	GVirDomainState state;
	GVirDomainInfo* _tmp0_;
	GVirDomain* _tmp1_;
	GVirDomainInfo* _tmp2_;
	GVirDomainInfo* _tmp3_;
	GVirDomainInfo* _tmp4_;
	GVirDomainState _tmp5_;
	GError* _error_;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	gboolean _tmp8_;
	gboolean _tmp9_;
	GVirDomainState _tmp10_;
	GVirDomainState _tmp11_;
	GVirDomainState _tmp12_;
	GVirConnection* _tmp13_;
	GVirStream* _tmp14_;
	GdkPixbufLoader* loader;
	GdkPixbufLoader* _tmp15_;
	GInputStream* input_stream;
	GVirStream* _tmp16_;
	GInputStream* _tmp17_;
	GInputStream* _tmp18_;
	guint8* buffer;
	guint8* _tmp19_;
	gint buffer_length1;
	gint _buffer_size_;
	gssize length;
	gboolean _tmp20_;
	gssize _tmp21_;
	gssize _tmp22_;
	GInputStream* _tmp23_;
	guint8* _tmp24_;
	gint _tmp24__length1;
	gssize _tmp25_;
	GdkPixbufLoader* _tmp26_;
	guint8* _tmp27_;
	gint _tmp27__length1;
	gssize _tmp28_;
	GdkPixbufLoader* _tmp29_;
	GdkPixbufLoader* _tmp30_;
	GdkPixbuf* _tmp31_;
	GdkPixbuf* _tmp32_;
	GError * _inner_error_;
};

struct _Block36Data {
	int _ref_count_;
	BoxesLibvirtMachine* self;
	GVirDomain* domain;
};

struct _BoxesLibvirtMachineSaveRealData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	GVirDomain* _tmp0_;
	GError * _inner_error_;
};

struct _BoxesLibvirtMachineSuspendData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	gboolean _tmp0_;
	gboolean _tmp1_;
	GVirDomain* _tmp2_;
	GError * _inner_error_;
};

struct _BoxesLibvirtMachineStartData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	BoxesMachineConnectFlags flags;
	GCancellable* cancellable;
	BoxesMachineMachineState _tmp0_;
	BoxesMachineMachineState _tmp1_;
	BoxesMachineMachineState _tmp2_;
	BoxesMachineMachineState _tmp3_;
	GVirDomain* _tmp4_;
	GCancellable* _tmp5_;
	BoxesMachineMachineState _tmp6_;
	BoxesMachineMachineState _tmp7_;
	GVirDomain* _tmp8_;
	GCancellable* _tmp9_;
	gboolean _tmp10_;
	GVirDomain* _tmp11_;
	gboolean _tmp12_;
	BoxesMachineConnectFlags _tmp13_;
	gboolean restore;
	gboolean _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	const gchar* _tmp20_;
	const gchar* _tmp21_;
	const gchar* _tmp22_;
	gchar* _tmp23_;
	gchar* _tmp24_;
	GVirDomain* _tmp25_;
	BoxesMachineConnectFlags _tmp26_;
	GVirDomainStartFlags _tmp27_;
	GCancellable* _tmp28_;
	GError* _error_;
	const gchar* _tmp29_;
	const gchar* _tmp30_;
	GError* _vala1__error_;
	gboolean _tmp31_;
	GError* _tmp32_;
	const gchar* _tmp33_;
	GError* _tmp34_;
	GError* _tmp35_;
	const gchar* _tmp36_;
	GError* _tmp37_;
	GError * _inner_error_;
};

struct _Block37Data {
	int _ref_count_;
	BoxesLibvirtMachine* self;
	gulong state_id;
	GdNotification* notification;
};

typedef void (*BoxesNotificationOKFunc) (void* user_data);
struct _BoxesAppWindow {
	GtkApplicationWindow parent_instance;
	BoxesAppWindowPrivate * priv;
	BoxesWizardWindow* wizard_window;
	BoxesPropertiesWindow* props_window;
	BoxesSearchbar* searchbar;
	BoxesTopbar* topbar;
	BoxesNotificationbar* notificationbar;
	BoxesSelectionbar* selectionbar;
	BoxesDisplayPage* display_page;
	BoxesEmptyBoxes* empty_boxes;
	GtkStack* below_bin;
	BoxesCollectionView* view;
	GSettings* settings;
};

struct _BoxesAppWindowClass {
	GtkApplicationWindowClass parent_class;
};

typedef void (*BoxesNotificationCancelFunc) (void* user_data);
struct _Block38Data {
	int _ref_count_;
	BoxesLibvirtMachine* self;
	gpointer _async_data_;
};

struct _BoxesLibvirtMachineWaitForSaveData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	Block38Data* _data38_;
	gboolean _tmp0_;
	gulong state_notify_id;
	gulong _tmp1_;
	gulong cancelled_id;
	GCancellable* _tmp2_;
	GCancellable* _tmp3_;
	gulong _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	gulong _tmp7_;
	GCancellable* _tmp8_;
	GCancellable* _tmp9_;
	gulong _tmp10_;
};


static gpointer boxes_libvirt_machine_parent_class = NULL;

GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
GType boxes_properties_page_get_type (void) G_GNUC_CONST;
GType property_creation_flag_get_type (void) G_GNUC_CONST;
GType boxes_property_get_type (void) G_GNUC_CONST;
GType boxes_iproperties_provider_get_type (void) G_GNUC_CONST;
GType boxes_machine_get_type (void) G_GNUC_CONST;
GType boxes_machine_connect_flags_get_type (void) G_GNUC_CONST;
GType boxes_libvirt_machine_get_type (void) G_GNUC_CONST;
GType boxes_libvirt_machine_properties_get_type (void) G_GNUC_CONST;
gpointer boxes_vm_creator_ref (gpointer instance);
void boxes_vm_creator_unref (gpointer instance);
GParamSpec* boxes_param_spec_vm_creator (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void boxes_value_set_vm_creator (GValue* value, gpointer v_object);
void boxes_value_take_vm_creator (GValue* value, gpointer v_object);
gpointer boxes_value_get_vm_creator (const GValue* value);
GType boxes_vm_creator_get_type (void) G_GNUC_CONST;
static GType boxes_libvirt_machine_machine_stat_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static BoxesLibvirtMachineMachineStat* boxes_libvirt_machine_machine_stat_dup (const BoxesLibvirtMachineMachineStat* self);
static void boxes_libvirt_machine_machine_stat_free (BoxesLibvirtMachineMachineStat* self);
static void boxes_libvirt_machine_machine_stat_copy (const BoxesLibvirtMachineMachineStat* self, BoxesLibvirtMachineMachineStat* dest);
static void boxes_libvirt_machine_machine_stat_destroy (BoxesLibvirtMachineMachineStat* self);
#define BOXES_LIBVIRT_MACHINE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachinePrivate))
enum  {
	BOXES_LIBVIRT_MACHINE_DUMMY_PROPERTY,
	BOXES_LIBVIRT_MACHINE_DOMAIN,
	BOXES_LIBVIRT_MACHINE_DOMAIN_CONFIG,
	BOXES_LIBVIRT_MACHINE_CONNECTION,
	BOXES_LIBVIRT_MACHINE_STORAGE_VOLUME,
	BOXES_LIBVIRT_MACHINE_VM_CREATOR,
	BOXES_LIBVIRT_MACHINE_IMPORTING,
	BOXES_LIBVIRT_MACHINE_SAVE_ON_QUIT,
	BOXES_LIBVIRT_MACHINE_CAN_SAVE,
	BOXES_LIBVIRT_MACHINE_SHOULD_AUTOSAVE
};
static void _vala_BoxesLibvirtMachineMachineStat_array_free (BoxesLibvirtMachineMachineStat* array, gint array_length);
#define BOXES_LIBVIRT_MACHINE_STATS_SIZE 20
static void boxes_libvirt_machine_real_disconnect_display (BoxesMachine* base);
void boxes_machine_disconnect_display (BoxesMachine* self);
static void boxes_libvirt_machine_real_connect_display_data_free (gpointer _data);
static void boxes_libvirt_machine_real_connect_display (BoxesMachine* base, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_libvirt_machine_real_connect_display_co (BoxesLibvirtMachineConnectDisplayData* _data_);
GCancellable* boxes_machine_get_connecting_cancellable (BoxesMachine* self);
static void boxes_libvirt_machine_wait_for_save (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_libvirt_machine_wait_for_save_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_);
static void boxes_libvirt_machine_connect_display_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void boxes_libvirt_machine_start (BoxesLibvirtMachine* self, BoxesMachineConnectFlags flags, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_libvirt_machine_start_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_, GError** error);
gboolean boxes_libvirt_machine_update_display (BoxesLibvirtMachine* self, GError** error);
GType boxes_display_get_type (void) G_GNUC_CONST;
BoxesDisplay* boxes_machine_get_display (BoxesMachine* self);
void boxes_display_connect_it (BoxesDisplay* self, GError** error);
void boxes_machine_show_display (BoxesMachine* self);
void boxes_display_set_enable_audio (BoxesDisplay* self, gboolean enable);
void boxes_libvirt_machine_update_domain_config (BoxesLibvirtMachine* self);
GVirDomain* boxes_libvirt_machine_get_domain (BoxesLibvirtMachine* self);
void boxes_libvirt_machine_set_domain_config (BoxesLibvirtMachine* self, GVirConfigDomain* value);
GVirStorageVol* boxes_get_storage_volume (GVirConnection* connection, GVirDomain* domain);
GVirConnection* boxes_libvirt_machine_get_connection (BoxesLibvirtMachine* self);
void boxes_libvirt_machine_set_storage_volume (BoxesLibvirtMachine* self, GVirStorageVol* value);
static void boxes_libvirt_machine_reconnect_display (BoxesLibvirtMachine* self);
GType boxes_app_window_get_type (void) G_GNUC_CONST;
BoxesAppWindow* boxes_machine_get_window (BoxesMachine* self);
void boxes_machine_set_window (BoxesMachine* self, BoxesAppWindow* value);
void boxes_machine_connect_display (BoxesMachine* self, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_machine_connect_display_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error);
BoxesLibvirtMachine* boxes_libvirt_machine_new (BoxesCollectionSource* source, GVirConnection* connection, GVirDomain* domain, GError** error);
BoxesLibvirtMachine* boxes_libvirt_machine_construct (GType object_type, BoxesCollectionSource* source, GVirConnection* connection, GVirDomain* domain, GError** error);
BoxesMachine* boxes_machine_construct (GType object_type, BoxesCollectionSource* source, const gchar* name);
void boxes_machine_create_display_config (BoxesMachine* self, const gchar* uuid);
void boxes_libvirt_machine_set_connection (BoxesLibvirtMachine* self, GVirConnection* value);
void boxes_libvirt_machine_set_domain (BoxesLibvirtMachine* self, GVirDomain* value);
BoxesLibvirtMachineProperties* boxes_libvirt_machine_properties_new (BoxesLibvirtMachine* machine);
BoxesLibvirtMachineProperties* boxes_libvirt_machine_properties_construct (GType object_type, BoxesLibvirtMachine* machine);
static void _vala_GVirDomainInfo_free (GVirDomainInfo* self);
GType boxes_machine_machine_state_get_type (void) G_GNUC_CONST;
void boxes_machine_set_state (BoxesMachine* self, BoxesMachineMachineState value);
static void boxes_libvirt_machine_set_stats_enable (BoxesLibvirtMachine* self, gboolean enable);
static void __lambda157_ (BoxesLibvirtMachine* self);
static void ___lambda157__gvir_domain_started (GVirDomain* _sender, gpointer self);
static void __lambda158_ (BoxesLibvirtMachine* self);
static void ___lambda158__gvir_domain_suspended (GVirDomain* _sender, gpointer self);
static void __lambda159_ (BoxesLibvirtMachine* self);
static void ___lambda159__gvir_domain_resumed (GVirDomain* _sender, gpointer self);
static void __lambda160_ (BoxesLibvirtMachine* self);
static void ___lambda160__gvir_domain_stopped (GVirDomain* _sender, gpointer self);
static void __lambda161_ (BoxesLibvirtMachine* self);
static void ___lambda161__gvir_domain_pmsuspended (GVirDomain* _sender, gpointer self);
static void __lambda162_ (BoxesLibvirtMachine* self);
BoxesMachineMachineState boxes_machine_get_state (BoxesMachine* self);
static void ___lambda162__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _boxes_libvirt_machine_update_domain_config_gvir_domain_updated (GVirDomain* _sender, gpointer self);
void boxes_machine_load_screenshot (BoxesMachine* self);
void boxes_machine_set_screenshot_enable (BoxesMachine* self, gboolean enable);
static void boxes_libvirt_machine_update_cpu_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat);
static void boxes_libvirt_machine_update_mem_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat);
static void boxes_libvirt_machine_update_io_stat_data_free (gpointer _data);
static GVirDomainInfo* _vala_GVirDomainInfo_copy (GVirDomainInfo* self);
static void boxes_libvirt_machine_update_io_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_libvirt_machine_update_io_stat_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_);
static gboolean boxes_libvirt_machine_update_io_stat_co (BoxesLibvirtMachineUpdateIoStatData* _data_);
static Block30Data* block30_data_ref (Block30Data* _data30_);
static void block30_data_unref (void * _userdata_);
static Block31Data* block31_data_ref (Block31Data* _data31_);
static void block31_data_unref (void * _userdata_);
GVirDomainDisk* boxes_libvirt_machine_get_domain_disk (BoxesLibvirtMachine* self, GError** error);
static void ___lambda77_ (Block31Data* _data31_, GError** error);
static void _vala_GVirDomainDiskStats_free (GVirDomainDiskStats* self);
static void ____lambda77__boxes_run_in_thread_func (gpointer self, GError** error);
static void boxes_libvirt_machine_update_io_stat_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
const gchar* boxes_collection_item_get_name (BoxesCollectionItem* self);
static void boxes_libvirt_machine_update_net_stat_data_free (gpointer _data);
static void boxes_libvirt_machine_update_net_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_libvirt_machine_update_net_stat_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_);
static gboolean boxes_libvirt_machine_update_net_stat_co (BoxesLibvirtMachineUpdateNetStatData* _data_);
static Block32Data* block32_data_ref (Block32Data* _data32_);
static void block32_data_unref (void * _userdata_);
static Block33Data* block33_data_ref (Block33Data* _data33_);
static void block33_data_unref (void * _userdata_);
static GVirDomainInterface* boxes_libvirt_machine_get_domain_network_interface (BoxesLibvirtMachine* self, GError** error);
static void ___lambda78_ (Block33Data* _data33_, GError** error);
static void _vala_GVirDomainInterfaceStats_free (GVirDomainInterfaceStats* self);
static void ____lambda78__boxes_run_in_thread_func (gpointer self, GError** error);
static void boxes_libvirt_machine_update_net_stat_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void boxes_libvirt_machine_update_stats_data_free (gpointer _data);
static void boxes_libvirt_machine_update_stats (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_libvirt_machine_update_stats_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_);
static gboolean boxes_libvirt_machine_update_stats_co (BoxesLibvirtMachineUpdateStatsData* _data_);
static void boxes_libvirt_machine_update_stats_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static BoxesLibvirtMachineMachineStat* _vala_array_dup1 (BoxesLibvirtMachineMachineStat* self, int length);
static void _vala_array_add4 (BoxesLibvirtMachineMachineStat** array, int* length, int* size, const BoxesLibvirtMachineMachineStat* value);
static void _vala_array_add5 (gdouble** array, int* length, int* size, gdouble value);
static void _vala_array_add6 (gdouble** array, int* length, int* size, gdouble value);
static void _vala_array_add7 (gdouble** array, int* length, int* size, gdouble value);
static Block34Data* block34_data_ref (Block34Data* _data34_);
static void block34_data_unref (void * _userdata_);
static gboolean ___lambda76_ (Block34Data* _data34_);
static void __lambda79_ (Block34Data* _data34_);
static void ___lambda79__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static gboolean ____lambda76__gsource_func (gpointer self);
static GList* boxes_libvirt_machine_real_get_properties (BoxesMachine* base, BoxesPropertiesPage page, PropertyCreationFlag* flags);
GList* boxes_iproperties_provider_get_properties (BoxesIPropertiesProvider* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
GList* boxes_display_get_properties (BoxesDisplay* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
static BoxesDisplay* boxes_libvirt_machine_create_display (BoxesLibvirtMachine* self, GError** error);
void boxes_machine_set_display (BoxesMachine* self, BoxesDisplay* value);
GVirConfigDomain* boxes_libvirt_machine_get_domain_config (BoxesLibvirtMachine* self);
gchar* boxes_extract_xpath (const gchar* xmldoc, const gchar* xpath, gboolean required, GError** error);
BoxesSpiceDisplay* boxes_spice_display_new (BoxesMachine* machine, BoxesBoxConfig* config, const gchar* host, gint port, gint tls_port, const gchar* host_subject);
BoxesSpiceDisplay* boxes_spice_display_construct (GType object_type, BoxesMachine* machine, BoxesBoxConfig* config, const gchar* host, gint port, gint tls_port, const gchar* host_subject);
GType boxes_spice_display_get_type (void) G_GNUC_CONST;
BoxesVncDisplay* boxes_vnc_display_new (BoxesBoxConfig* config, const gchar* host, gint port);
BoxesVncDisplay* boxes_vnc_display_construct (GType object_type, BoxesBoxConfig* config, const gchar* host, gint port);
GType boxes_vnc_display_get_type (void) G_GNUC_CONST;
static void boxes_libvirt_machine_real_take_screenshot_data_free (gpointer _data);
static void boxes_libvirt_machine_real_take_screenshot (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_libvirt_machine_real_take_screenshot_co (BoxesLibvirtMachineTakeScreenshotData* _data_);
static Block35Data* block35_data_ref (Block35Data* _data35_);
static void block35_data_unref (void * _userdata_);
static void boxes_libvirt_machine_take_screenshot_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void __lambda163_ (Block35Data* _data35_, GError** error);
static void ___lambda163__boxes_run_in_thread_func (gpointer self, GError** error);
static void boxes_libvirt_machine_real_delete (BoxesMachine* base, gboolean by_user);
void boxes_machine_delete (BoxesMachine* self, gboolean by_user);
static Block36Data* block36_data_ref (Block36Data* _data36_);
static void block36_data_unref (void * _userdata_);
static void ___lambda80_ (Block36Data* _data36_, GError** error);
GVirStorageVol* boxes_libvirt_machine_get_storage_volume (BoxesLibvirtMachine* self);
static void ____lambda80__boxes_run_in_thread_func (gpointer self, GError** error);
static void boxes_libvirt_machine_real_save_real_data_free (gpointer _data);
static void boxes_libvirt_machine_real_save_real (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_libvirt_machine_real_save_real_co (BoxesLibvirtMachineSaveRealData* _data_);
static void boxes_libvirt_machine_save_real_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void boxes_libvirt_machine_suspend_data_free (gpointer _data);
void boxes_libvirt_machine_suspend (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_libvirt_machine_suspend_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_, GError** error);
static gboolean boxes_libvirt_machine_suspend_co (BoxesLibvirtMachineSuspendData* _data_);
gboolean boxes_libvirt_machine_get_save_on_quit (BoxesLibvirtMachine* self);
void boxes_machine_save (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_machine_save_finish (BoxesMachine* self, GAsyncResult* _res_, GError** error);
static void boxes_libvirt_machine_suspend_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void boxes_libvirt_machine_force_shutdown (BoxesLibvirtMachine* self, gboolean confirm);
void boxes_libvirt_machine_try_shutdown (BoxesLibvirtMachine* self);
static GVirDomainStartFlags boxes_libvirt_machine_connect_flags_to_gvir (BoxesLibvirtMachine* self, BoxesMachineConnectFlags flags);
static void boxes_libvirt_machine_start_data_free (gpointer _data);
static gboolean boxes_libvirt_machine_start_co (BoxesLibvirtMachineStartData* _data_);
static void boxes_libvirt_machine_start_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void boxes_machine_set_status (BoxesMachine* self, const gchar* value);
static void boxes_libvirt_machine_real_restart (BoxesMachine* base);
static Block37Data* block37_data_ref (Block37Data* _data37_);
static void block37_data_unref (void * _userdata_);
static void ___lambda164_ (BoxesLibvirtMachine* self, GObject* obj, GAsyncResult* res);
void boxes_machine_restart (BoxesMachine* self);
static void ____lambda164__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda165_ (Block37Data* _data37_);
static void ___lambda166_ (BoxesLibvirtMachine* self, GObject* obj, GAsyncResult* res);
static void ____lambda166__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void ___lambda165__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static gboolean __lambda167_ (Block37Data* _data37_);
static void __lambda168_ (Block37Data* _data37_);
static void ___lambda168__boxes_notification_ok_func (gpointer self);
GType boxes_wizard_window_get_type (void) G_GNUC_CONST;
GType boxes_properties_window_get_type (void) G_GNUC_CONST;
GType boxes_searchbar_get_type (void) G_GNUC_CONST;
GType boxes_topbar_get_type (void) G_GNUC_CONST;
GType boxes_notificationbar_get_type (void) G_GNUC_CONST;
GType boxes_selectionbar_get_type (void) G_GNUC_CONST;
GType boxes_display_page_get_type (void) G_GNUC_CONST;
GType boxes_empty_boxes_get_type (void) G_GNUC_CONST;
GType boxes_collection_view_get_type (void) G_GNUC_CONST;
GdNotification* boxes_notificationbar_display_for_action (BoxesNotificationbar* self, const gchar* message, const gchar* action_label, BoxesNotificationOKFunc action_func, void* action_func_target, GDestroyNotify action_func_target_destroy_notify, BoxesNotificationCancelFunc ignore_func, void* ignore_func_target, GDestroyNotify ignore_func_target_destroy_notify, gint timeout);
static gboolean ___lambda167__gsource_func (gpointer self);
static void boxes_libvirt_machine_wait_for_save_data_free (gpointer _data);
static gboolean boxes_libvirt_machine_wait_for_save_co (BoxesLibvirtMachineWaitForSaveData* _data_);
static Block38Data* block38_data_ref (Block38Data* _data38_);
static void block38_data_unref (void * _userdata_);
static void __lambda154_ (Block38Data* _data38_);
static void ___lambda154__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void __lambda155_ (Block38Data* _data38_);
static gboolean __lambda156_ (Block38Data* _data38_);
static gboolean ___lambda156__gsource_func (gpointer self);
static void ___lambda155__g_cancellable_cancelled (GCancellable* _sender, gpointer self);
BoxesVMCreator* boxes_libvirt_machine_get_vm_creator (BoxesLibvirtMachine* self);
void boxes_libvirt_machine_set_vm_creator (BoxesLibvirtMachine* self, BoxesVMCreator* value);
gboolean boxes_libvirt_machine_get_importing (BoxesLibvirtMachine* self);
void boxes_machine_set_can_delete (BoxesMachine* self, gboolean value);
gboolean boxes_vm_configurator_is_live_config (GVirConfigDomain* domain);
void boxes_machine_set_under_construction (BoxesMachine* self, gboolean value);
GType boxes_vm_importer_get_type (void) G_GNUC_CONST;
void boxes_libvirt_machine_set_save_on_quit (BoxesLibvirtMachine* self, gboolean value);
gboolean boxes_machine_get_should_autosave (BoxesMachine* self);
gboolean boxes_vm_creator_get_express_install (BoxesVMCreator* self);
static GObject * boxes_libvirt_machine_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static GVirDomainDiskStats* _vala_GVirDomainDiskStats_copy (GVirDomainDiskStats* self);
static GVirDomainInterfaceStats* _vala_GVirDomainInterfaceStats_copy (GVirDomainInterfaceStats* self);
static void boxes_libvirt_machine_finalize (GObject* obj);
gboolean boxes_machine_get_can_save (BoxesMachine* self);
static void _vala_boxes_libvirt_machine_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_boxes_libvirt_machine_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static void _vala_BoxesLibvirtMachineMachineStat_array_free (BoxesLibvirtMachineMachineStat* array, gint array_length) {
#line 91 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (array != NULL) {
#line 1071 "libvirt-machine.c"
		int i;
#line 91 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 91 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_machine_stat_destroy (&array[i]);
#line 1077 "libvirt-machine.c"
		}
	}
#line 91 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_free (array);
#line 1082 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_disconnect_display (BoxesMachine* base) {
	BoxesLibvirtMachine * self;
#line 39 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachine*) self)->stay_on_display = FALSE;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (boxes_libvirt_machine_parent_class)->disconnect_display (G_TYPE_CHECK_INSTANCE_CAST (self, BOXES_TYPE_MACHINE, BoxesMachine));
#line 1094 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_connect_display_data_free (gpointer _data) {
	BoxesLibvirtMachineConnectDisplayData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineConnectDisplayData, _data_);
#line 1105 "libvirt-machine.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self ? g_object_ref (self) : NULL;
#line 1112 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_connect_display (BoxesMachine* base, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineConnectDisplayData* _data_;
	BoxesLibvirtMachine* _tmp0_ = NULL;
	BoxesMachineConnectFlags _tmp1_ = 0;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineConnectDisplayData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_real_connect_display);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_real_connect_display_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = flags;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->flags = _tmp1_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_connect_display_co (_data_);
#line 1139 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_connect_display_finish (BoxesMachine* base, GAsyncResult* _res_, GError** error) {
	BoxesLibvirtMachineConnectDisplayData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1149 "libvirt-machine.c"
	}
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1153 "libvirt-machine.c"
}


static void boxes_libvirt_machine_connect_display_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineConnectDisplayData* _data_;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_connect_display_co (_data_);
#line 1167 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_real_connect_display_co (BoxesLibvirtMachineConnectDisplayData* _data_) {
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 1176 "libvirt-machine.c"
		goto _state_0;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 1180 "libvirt-machine.c"
		goto _state_1;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 2:
#line 1184 "libvirt-machine.c"
		goto _state_2;
		default:
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 1189 "libvirt-machine.c"
	}
	_state_0:
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = NULL;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = NULL;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_cancellable_reset (_data_->_tmp1_);
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_state_ = 1;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_wait_for_save (_data_->self, boxes_libvirt_machine_connect_display_ready, _data_);
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 1208 "libvirt-machine.c"
	_state_1:
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_wait_for_save_finish (_data_->self, _data_->_res_);
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = NULL;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp3_ = NULL;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp4_ = FALSE;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp4_ = g_cancellable_is_cancelled (_data_->_tmp3_);
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp4_) {
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = NULL;
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = NULL;
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_;
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_cancellable_reset (_data_->_tmp6_);
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1240 "libvirt-machine.c"
		} else {
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1244 "libvirt-machine.c"
		}
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 1250 "libvirt-machine.c"
	}
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp7_ = 0;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp7_ = _data_->flags;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp8_ = NULL;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp8_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp9_ = NULL;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp9_ = _data_->_tmp8_;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_state_ = 2;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_start (_data_->self, _data_->_tmp7_, _data_->_tmp9_, boxes_libvirt_machine_connect_display_ready, _data_);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 1270 "libvirt-machine.c"
	_state_2:
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_start_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1284 "libvirt-machine.c"
		} else {
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1288 "libvirt-machine.c"
		}
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 1294 "libvirt-machine.c"
	}
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp10_ = NULL;
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp10_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp11_ = NULL;
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp11_ = _data_->_tmp10_;
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp12_ = FALSE;
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp12_ = g_cancellable_is_cancelled (_data_->_tmp11_);
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp12_) {
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp13_ = NULL;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp13_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp14_ = NULL;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp14_ = _data_->_tmp13_;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_cancellable_reset (_data_->_tmp14_);
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1324 "libvirt-machine.c"
		} else {
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1328 "libvirt-machine.c"
		}
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 1334 "libvirt-machine.c"
	}
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp16_ = FALSE;
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp16_ = boxes_libvirt_machine_update_display (_data_->self, &_data_->_inner_error_);
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp15_ = _data_->_tmp16_;
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1352 "libvirt-machine.c"
		} else {
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1356 "libvirt-machine.c"
		}
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 1362 "libvirt-machine.c"
	}
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp15_) {
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp17_ = NULL;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp17_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp18_ = NULL;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp18_ = _data_->_tmp17_;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_display_connect_it (_data_->_tmp18_, &_data_->_inner_error_);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1386 "libvirt-machine.c"
			} else {
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1390 "libvirt-machine.c"
			}
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 1396 "libvirt-machine.c"
		}
	} else {
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_show_display ((BoxesMachine*) _data_->self);
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp19_ = NULL;
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp19_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp20_ = NULL;
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp20_ = _data_->_tmp19_;
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_display_set_enable_audio (_data_->_tmp20_, TRUE);
#line 1411 "libvirt-machine.c"
	}
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1417 "libvirt-machine.c"
	} else {
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1421 "libvirt-machine.c"
	}
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 1427 "libvirt-machine.c"
}


void boxes_libvirt_machine_update_domain_config (BoxesLibvirtMachine* self) {
	GError * _inner_error_ = NULL;
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 1435 "libvirt-machine.c"
	{
		GVirConfigDomain* _tmp0_ = NULL;
		GVirDomain* _tmp1_ = NULL;
		GVirConfigDomain* _tmp2_ = NULL;
		GVirConnection* _tmp3_ = NULL;
		GVirDomain* _tmp4_ = NULL;
		GVirStorageVol* _tmp5_ = NULL;
		GVirStorageVol* _tmp6_ = NULL;
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = self->priv->_domain;
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = gvir_domain_get_config (_tmp1_, (guint) GVIR_DOMAIN_XML_NONE, &_inner_error_);
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = _tmp2_;
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1452 "libvirt-machine.c"
			goto __catch15_g_error;
		}
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_domain_config (self, _tmp0_);
#line 104 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = self->priv->_connection;
#line 104 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->priv->_domain;
#line 104 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = boxes_get_storage_volume (_tmp3_, _tmp4_);
#line 104 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _tmp5_;
#line 104 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_storage_volume (self, _tmp6_);
#line 104 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_tmp6_);
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_tmp0_);
#line 1471 "libvirt-machine.c"
	}
	goto __finally15;
	__catch15_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		GError* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = self->priv->_domain;
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = gvir_domain_get_name (_tmp7_);
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _error_;
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = _tmp9_->message;
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("libvirt-machine.vala:106: Failed to fetch configuration for domain '%s" \
"': %s", _tmp8_, _tmp10_);
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 1497 "libvirt-machine.c"
	}
	__finally15:
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1508 "libvirt-machine.c"
	}
}


static void boxes_libvirt_machine_reconnect_display (BoxesLibvirtMachine* self) {
	BoxesDisplay* _tmp0_ = NULL;
	BoxesDisplay* _tmp1_ = NULL;
	BoxesAppWindow* current_window = NULL;
	BoxesAppWindow* _tmp2_ = NULL;
	BoxesAppWindow* _tmp3_ = NULL;
	BoxesAppWindow* _tmp4_ = NULL;
	BoxesAppWindow* _tmp5_ = NULL;
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 112 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 112 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 112 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == NULL) {
#line 113 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1531 "libvirt-machine.c"
	}
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = boxes_machine_get_window ((BoxesMachine*) self);
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	current_window = _tmp4_;
#line 116 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_disconnect_display ((BoxesMachine*) self);
#line 117 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = current_window;
#line 117 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_window ((BoxesMachine*) self, _tmp5_);
#line 118 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_connect_display ((BoxesMachine*) self, BOXES_MACHINE_CONNECT_FLAGS_NONE, NULL, NULL);
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (current_window);
#line 1551 "libvirt-machine.c"
}


static void _vala_GVirDomainInfo_free (GVirDomainInfo* self) {
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_domain_info_get_type (), self);
#line 1558 "libvirt-machine.c"
}


static void __lambda157_ (BoxesLibvirtMachine* self) {
#line 167 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 1565 "libvirt-machine.c"
}


static void ___lambda157__gvir_domain_started (GVirDomain* _sender, gpointer self) {
#line 167 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda157_ ((BoxesLibvirtMachine*) self);
#line 1572 "libvirt-machine.c"
}


static void __lambda158_ (BoxesLibvirtMachine* self) {
#line 168 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_PAUSED);
#line 1579 "libvirt-machine.c"
}


static void ___lambda158__gvir_domain_suspended (GVirDomain* _sender, gpointer self) {
#line 168 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda158_ ((BoxesLibvirtMachine*) self);
#line 1586 "libvirt-machine.c"
}


static void __lambda159_ (BoxesLibvirtMachine* self) {
#line 169 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 1593 "libvirt-machine.c"
}


static void ___lambda159__gvir_domain_resumed (GVirDomain* _sender, gpointer self) {
#line 169 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda159_ ((BoxesLibvirtMachine*) self);
#line 1600 "libvirt-machine.c"
}


static void __lambda160_ (BoxesLibvirtMachine* self) {
	GVirDomain* _tmp0_ = NULL;
	GSignalInvocationHint* _tmp1_ = NULL;
	GQuark _tmp2_ = 0U;
	GQuark _tmp3_ = 0U;
#line 171 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->_domain;
#line 171 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = g_signal_get_invocation_hint (_tmp0_);
#line 171 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = (*_tmp1_).detail;
#line 171 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = g_quark_from_string ("saved");
#line 171 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp2_ == _tmp3_) {
#line 172 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_SAVED);
#line 1621 "libvirt-machine.c"
	} else {
		gboolean _tmp4_ = FALSE;
#line 173 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->priv->force_stopped;
#line 173 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp4_) {
#line 174 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			self->priv->force_stopped = FALSE;
#line 175 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED);
#line 1632 "libvirt-machine.c"
		} else {
#line 177 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 1636 "libvirt-machine.c"
		}
	}
}


static void ___lambda160__gvir_domain_stopped (GVirDomain* _sender, gpointer self) {
#line 170 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda160_ ((BoxesLibvirtMachine*) self);
#line 1645 "libvirt-machine.c"
}


static void __lambda161_ (BoxesLibvirtMachine* self) {
#line 180 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_SLEEPING);
#line 1652 "libvirt-machine.c"
}


static void ___lambda161__gvir_domain_pmsuspended (GVirDomain* _sender, gpointer self) {
#line 179 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda161_ ((BoxesLibvirtMachine*) self);
#line 1659 "libvirt-machine.c"
}


static void __lambda162_ (BoxesLibvirtMachine* self) {
	BoxesMachineMachineState _tmp0_ = 0;
	BoxesMachineMachineState _tmp1_ = 0;
#line 183 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 183 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 183 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == BOXES_MACHINE_MACHINE_STATE_RUNNING) {
#line 184 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_reconnect_display (self);
#line 185 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_stats_enable (self, TRUE);
#line 1676 "libvirt-machine.c"
	} else {
#line 187 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_stats_enable (self, FALSE);
#line 1680 "libvirt-machine.c"
	}
}


static void ___lambda162__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 182 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda162_ ((BoxesLibvirtMachine*) self);
#line 1688 "libvirt-machine.c"
}


static void _boxes_libvirt_machine_update_domain_config_gvir_domain_updated (GVirDomain* _sender, gpointer self) {
#line 191 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_domain_config ((BoxesLibvirtMachine*) self);
#line 1695 "libvirt-machine.c"
}


BoxesLibvirtMachine* boxes_libvirt_machine_construct (GType object_type, BoxesCollectionSource* source, GVirConnection* connection, GVirDomain* domain, GError** error) {
	BoxesLibvirtMachine * self = NULL;
	GVirConfigDomain* config = NULL;
	GVirDomain* _tmp0_ = NULL;
	GVirConfigDomain* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	GVirConfigDomain* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* item_name = NULL;
	gchar* _tmp7_ = NULL;
	BoxesCollectionSource* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	GVirDomain* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	GVirDomain* _tmp14_ = NULL;
	const gchar* _tmp15_ = NULL;
	GVirConnection* _tmp16_ = NULL;
	GVirDomain* _tmp17_ = NULL;
	BoxesLibvirtMachineProperties* _tmp18_ = NULL;
	GVirDomain* _tmp29_ = NULL;
	GVirDomain* _tmp30_ = NULL;
	GVirDomain* _tmp31_ = NULL;
	GVirDomain* _tmp32_ = NULL;
	GVirDomain* _tmp33_ = NULL;
	GVirDomain* _tmp34_ = NULL;
	BoxesMachineMachineState _tmp35_ = 0;
	BoxesMachineMachineState _tmp36_ = 0;
	GError * _inner_error_ = NULL;
#line 121 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (source != NULL, NULL);
#line 121 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (connection != NULL, NULL);
#line 121 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (domain != NULL, NULL);
#line 124 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = domain;
#line 124 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 124 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	config = _tmp1_;
#line 124 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 124 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 124 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 124 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 1749 "libvirt-machine.c"
	}
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = config;
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = gvir_config_domain_get_title (_tmp3_);
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp4_;
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp2_ == NULL) {
#line 1759 "libvirt-machine.c"
		GVirDomain* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = domain;
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = gvir_domain_get_name (_tmp5_);
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp6_;
#line 1768 "libvirt-machine.c"
	}
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = g_strdup (_tmp2_);
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	item_name = _tmp7_;
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = source;
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = item_name;
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) boxes_machine_construct (object_type, _tmp8_, _tmp9_);
#line 128 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = domain;
#line 128 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = gvir_domain_get_name (_tmp10_);
#line 128 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = g_strconcat ("new libvirt machine: ", _tmp11_, NULL);
#line 128 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp13_ = _tmp12_;
#line 128 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:128: %s", _tmp13_);
#line 128 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp13_);
#line 129 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp14_ = domain;
#line 129 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = gvir_domain_get_uuid (_tmp14_);
#line 129 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_create_display_config ((BoxesMachine*) self, _tmp15_);
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp16_ = connection;
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_set_connection (self, _tmp16_);
#line 131 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp17_ = domain;
#line 131 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_set_domain (self, _tmp17_);
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = boxes_libvirt_machine_properties_new (self);
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->properties);
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->properties = _tmp18_;
#line 1812 "libvirt-machine.c"
	{
		GVirDomainInfo* _tmp19_ = NULL;
		GVirDomain* _tmp20_ = NULL;
		GVirDomainInfo* _tmp21_ = NULL;
		GVirDomainState s = 0;
		GVirDomainInfo* _tmp22_ = NULL;
		GVirDomainInfo* _tmp23_ = NULL;
		GVirDomainState _tmp24_ = 0;
		GVirDomainState _tmp25_ = 0;
		GVirDomainState _tmp26_ = 0;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp20_ = domain;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp21_ = gvir_domain_get_info (_tmp20_, &_inner_error_);
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp19_ = _tmp21_;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1831 "libvirt-machine.c"
			goto __catch16_g_error;
		}
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp22_ = _tmp19_;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp19_ = NULL;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp23_ = _tmp22_;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp24_ = _tmp23_->state;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp25_ = _tmp24_;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_tmp23_);
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		s = _tmp25_;
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp26_ = s;
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (_tmp26_) {
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_RUNNING:
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_BLOCKED:
#line 1856 "libvirt-machine.c"
			{
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 140 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_libvirt_machine_set_stats_enable (self, TRUE);
#line 141 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1864 "libvirt-machine.c"
			}
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_PAUSED:
#line 1868 "libvirt-machine.c"
			{
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_PAUSED);
#line 144 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1874 "libvirt-machine.c"
			}
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_SHUTDOWN:
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_SHUTOFF:
#line 1880 "libvirt-machine.c"
			{
				GVirDomain* _tmp27_ = NULL;
				gboolean _tmp28_ = FALSE;
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp27_ = domain;
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp28_ = gvir_domain_get_saved (_tmp27_);
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_tmp28_) {
#line 148 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_SAVED);
#line 1892 "libvirt-machine.c"
				} else {
#line 150 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 1896 "libvirt-machine.c"
				}
#line 151 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1900 "libvirt-machine.c"
			}
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_CRASHED:
#line 1904 "libvirt-machine.c"
			{
#line 153 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 154 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1910 "libvirt-machine.c"
			}
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_PMSUSPENDED:
#line 1914 "libvirt-machine.c"
			{
#line 156 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_SLEEPING);
#line 157 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1920 "libvirt-machine.c"
			}
			default:
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_NONE:
#line 1925 "libvirt-machine.c"
			{
#line 160 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_UNKNOWN);
#line 161 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1931 "libvirt-machine.c"
			}
		}
#line 134 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_tmp19_);
#line 1936 "libvirt-machine.c"
	}
	goto __finally16;
	__catch16_g_error:
	{
		GError* _error_ = NULL;
#line 134 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 134 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 164 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_UNKNOWN);
#line 134 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 1950 "libvirt-machine.c"
	}
	__finally16:
#line 134 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 134 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 134 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (item_name);
#line 134 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 134 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 134 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 1965 "libvirt-machine.c"
	}
#line 167 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp29_ = domain;
#line 167 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp29_, "started", (GCallback) ___lambda157__gvir_domain_started, self, 0);
#line 168 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp30_ = domain;
#line 168 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp30_, "suspended", (GCallback) ___lambda158__gvir_domain_suspended, self, 0);
#line 169 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp31_ = domain;
#line 169 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp31_, "resumed", (GCallback) ___lambda159__gvir_domain_resumed, self, 0);
#line 170 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp32_ = domain;
#line 170 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp32_, "stopped", (GCallback) ___lambda160__gvir_domain_stopped, self, 0);
#line 179 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp33_ = domain;
#line 179 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp33_, "pmsuspended", (GCallback) ___lambda161__gvir_domain_pmsuspended, self, 0);
#line 182 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object ((GObject*) self, "notify::state", (GCallback) ___lambda162__g_object_notify, self, 0);
#line 190 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_domain_config (self);
#line 191 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp34_ = domain;
#line 191 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp34_, "updated", (GCallback) _boxes_libvirt_machine_update_domain_config_gvir_domain_updated, self, 0);
#line 193 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp35_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 193 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp36_ = _tmp35_;
#line 193 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp36_ != BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 194 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_load_screenshot ((BoxesMachine*) self);
#line 2003 "libvirt-machine.c"
	}
#line 195 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_screenshot_enable ((BoxesMachine*) self, TRUE);
#line 121 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (item_name);
#line 121 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (config);
#line 121 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self;
#line 2013 "libvirt-machine.c"
}


BoxesLibvirtMachine* boxes_libvirt_machine_new (BoxesCollectionSource* source, GVirConnection* connection, GVirDomain* domain, GError** error) {
#line 121 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return boxes_libvirt_machine_construct (BOXES_TYPE_LIBVIRT_MACHINE, source, connection, domain, error);
#line 2020 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_cpu_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat) {
	BoxesLibvirtMachineMachineStat prev = {0};
	BoxesLibvirtMachineMachineStat* _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	BoxesLibvirtMachineMachineStat _tmp1_ = {0};
	BoxesLibvirtMachineMachineStat _tmp2_ = {0};
	gboolean _tmp3_ = FALSE;
	GVirDomainInfo* _tmp4_ = NULL;
	GVirDomainState _tmp5_ = 0;
	GVirDomainInfo* _tmp8_ = NULL;
	guint64 _tmp9_ = 0ULL;
	BoxesLibvirtMachineMachineStat _tmp10_ = {0};
	gdouble _tmp11_ = 0.0;
	GVirDomainInfo* _tmp12_ = NULL;
	guint64 _tmp13_ = 0ULL;
	gint64 dt = 0LL;
	BoxesLibvirtMachineMachineStat _tmp14_ = {0};
	gint64 _tmp15_ = 0LL;
	BoxesLibvirtMachineMachineStat _tmp16_ = {0};
	gint64 _tmp17_ = 0LL;
	gdouble percent = 0.0;
	BoxesLibvirtMachineMachineStat _tmp18_ = {0};
	gdouble _tmp19_ = 0.0;
	gint64 _tmp20_ = 0LL;
	gdouble _tmp21_ = 0.0;
	GVirDomainInfo* _tmp22_ = NULL;
	guint16 _tmp23_ = 0U;
	gdouble _tmp24_ = 0.0;
	gdouble _tmp25_ = 0.0;
#line 198 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 198 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (info != NULL);
#line 198 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (stat != NULL);
#line 199 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->stats;
#line 199 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0__length1 = self->priv->stats_length1;
#line 199 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_[BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1];
#line 199 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_copy (&_tmp1_, &_tmp2_);
#line 199 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	prev = _tmp2_;
#line 201 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = info;
#line 201 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->state;
#line 201 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp5_ == GVIR_DOMAIN_STATE_CRASHED) {
#line 201 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = TRUE;
#line 2077 "libvirt-machine.c"
	} else {
		GVirDomainInfo* _tmp6_ = NULL;
		GVirDomainState _tmp7_ = 0;
#line 202 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = info;
#line 202 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _tmp6_->state;
#line 202 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _tmp7_ == GVIR_DOMAIN_STATE_SHUTOFF;
#line 2087 "libvirt-machine.c"
	}
#line 201 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp3_) {
#line 203 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&prev);
#line 203 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 2095 "libvirt-machine.c"
	}
#line 205 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = info;
#line 205 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = _tmp8_->cpuTime;
#line 205 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = prev;
#line 205 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = _tmp10_.cpu_time_abs;
#line 205 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).cpu_time = _tmp9_ - _tmp11_;
#line 206 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = info;
#line 206 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp13_ = _tmp12_->cpuTime;
#line 206 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).cpu_time_abs = (gdouble) _tmp13_;
#line 208 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp14_ = *stat;
#line 208 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = _tmp14_.timestamp;
#line 208 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp16_ = prev;
#line 208 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp17_ = _tmp16_.timestamp;
#line 208 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	dt = (_tmp15_ - _tmp17_) * 10;
#line 209 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = *stat;
#line 209 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp19_ = _tmp18_.cpu_time;
#line 209 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp20_ = dt;
#line 209 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	percent = _tmp19_ / _tmp20_;
#line 210 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp21_ = percent;
#line 210 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp22_ = info;
#line 210 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp23_ = _tmp22_->nrVirtCpu;
#line 210 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	percent = _tmp21_ / _tmp23_;
#line 211 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp24_ = percent;
#line 211 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp25_ = CLAMP (_tmp24_, (gdouble) 0, (gdouble) 100);
#line 211 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).cpu_guest_percent = _tmp25_;
#line 198 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_destroy (&prev);
#line 2147 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_mem_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat) {
	GVirDomainInfo* _tmp0_ = NULL;
	GVirDomainState _tmp1_ = 0;
	GVirDomainInfo* _tmp2_ = NULL;
	guint64 _tmp3_ = 0ULL;
	GVirDomainInfo* _tmp4_ = NULL;
	guint64 _tmp5_ = 0ULL;
#line 214 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 214 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (info != NULL);
#line 214 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (stat != NULL);
#line 215 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = info;
#line 215 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_->state;
#line 215 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 216 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 2172 "libvirt-machine.c"
	}
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = info;
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_->memory;
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = info;
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->maxMem;
#line 218 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).memory_percent = (_tmp3_ * 100.0) / _tmp5_;
#line 2184 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_io_stat_data_free (gpointer _data) {
	BoxesLibvirtMachineUpdateIoStatData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInfo_free0 (_data_->info);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineUpdateIoStatData, _data_);
#line 2197 "libvirt-machine.c"
}


static GVirDomainInfo* _vala_GVirDomainInfo_copy (GVirDomainInfo* self) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return g_boxed_copy (gvir_domain_info_get_type (), self);
#line 2204 "libvirt-machine.c"
}


static gpointer __vala_GVirDomainInfo_copy0 (gpointer self) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self ? _vala_GVirDomainInfo_copy (self) : NULL;
#line 2211 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_io_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateIoStatData* _data_;
	BoxesLibvirtMachine* _tmp0_ = NULL;
	GVirDomainInfo* _tmp1_ = NULL;
	GVirDomainInfo* _tmp2_ = NULL;
	BoxesLibvirtMachineMachineStat* _tmp3_ = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineUpdateIoStatData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_update_io_stat);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_update_io_stat_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = info;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = __vala_GVirDomainInfo_copy0 (_tmp1_);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInfo_free0 (_data_->info);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->info = _tmp2_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = stat;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->stat = _tmp3_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_io_stat_co (_data_);
#line 2245 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_io_stat_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_) {
	BoxesLibvirtMachineUpdateIoStatData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 2253 "libvirt-machine.c"
}


static Block30Data* block30_data_ref (Block30Data* _data30_) {
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data30_->_ref_count_);
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data30_;
#line 2262 "libvirt-machine.c"
}


static void block30_data_unref (void * _userdata_) {
	Block30Data* _data30_;
	_data30_ = (Block30Data*) _userdata_;
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data30_->_ref_count_)) {
#line 2271 "libvirt-machine.c"
		BoxesLibvirtMachine* self;
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data30_->self;
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block30Data, _data30_);
#line 2279 "libvirt-machine.c"
	}
}


static Block31Data* block31_data_ref (Block31Data* _data31_) {
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data31_->_ref_count_);
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data31_;
#line 2289 "libvirt-machine.c"
}


static void block31_data_unref (void * _userdata_) {
	Block31Data* _data31_;
	_data31_ = (Block31Data*) _userdata_;
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data31_->_ref_count_)) {
#line 2298 "libvirt-machine.c"
		BoxesLibvirtMachine* self;
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data31_->_data30_->self;
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data31_->disk);
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block30_data_unref (_data31_->_data30_);
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data31_->_data30_ = NULL;
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block31Data, _data31_);
#line 2310 "libvirt-machine.c"
	}
}


static void _vala_GVirDomainDiskStats_free (GVirDomainDiskStats* self) {
#line 231 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_domain_disk_stats_get_type (), self);
#line 2318 "libvirt-machine.c"
}


static void ___lambda77_ (Block31Data* _data31_, GError** error) {
	Block30Data* _data30_;
	BoxesLibvirtMachine* self;
	GVirDomainDiskStats* _tmp0_ = NULL;
	GVirDomainDisk* _tmp1_ = NULL;
	GVirDomainDiskStats* _tmp2_ = NULL;
	GVirDomainDiskStats* _tmp3_ = NULL;
	GError * _inner_error_ = NULL;
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data30_ = _data31_->_data30_;
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data30_->self;
#line 231 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _data31_->disk;
#line 231 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = gvir_domain_disk_get_stats (_tmp1_, &_inner_error_);
#line 231 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _tmp2_;
#line 231 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 231 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 231 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 2346 "libvirt-machine.c"
	}
#line 231 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp0_;
#line 231 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = NULL;
#line 231 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainDiskStats_free0 ((*_data30_->stat).disk);
#line 231 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*_data30_->stat).disk = _tmp3_;
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainDiskStats_free0 (_tmp0_);
#line 2358 "libvirt-machine.c"
}


static void ____lambda77__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda77_ (self, error);
#line 2365 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_io_stat_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateIoStatData* _data_;
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_io_stat_co (_data_);
#line 2379 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_update_io_stat_co (BoxesLibvirtMachineUpdateIoStatData* _data_) {
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 2388 "libvirt-machine.c"
		goto _state_0;
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 2392 "libvirt-machine.c"
		goto _state_1;
		default:
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 2397 "libvirt-machine.c"
	}
	_state_0:
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data30_ = g_slice_new0 (Block30Data);
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data30_->_ref_count_ = 1;
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data30_->self = g_object_ref (_data_->self);
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = NULL;
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = _data_->stat;
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data30_->stat = _data_->_tmp0_;
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data30_->_async_data_ = _data_;
#line 222 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = NULL;
#line 222 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->info;
#line 222 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = 0;
#line 222 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = _data_->_tmp1_->state;
#line 222 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp2_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 223 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block30_data_unref (_data_->_data30_);
#line 223 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data30_ = NULL;
#line 223 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 223 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2432 "libvirt-machine.c"
		} else {
#line 223 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2436 "libvirt-machine.c"
		}
#line 223 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 223 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2442 "libvirt-machine.c"
	}
	{
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data31_ = g_slice_new0 (Block31Data);
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data31_->_ref_count_ = 1;
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data31_->_data30_ = block30_data_ref (_data_->_data30_);
#line 226 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = NULL;
#line 226 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = boxes_libvirt_machine_get_domain_disk (_data_->self, &_data_->_inner_error_);
#line 226 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data31_->disk = _data_->_tmp3_;
#line 226 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 226 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block31_data_unref (_data_->_data31_);
#line 226 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data31_ = NULL;
#line 2463 "libvirt-machine.c"
			goto __catch17_g_error;
		}
#line 227 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = NULL;
#line 227 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->_data31_->disk;
#line 227 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp4_ == NULL) {
#line 228 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block31_data_unref (_data_->_data31_);
#line 228 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data31_ = NULL;
#line 228 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block30_data_unref (_data_->_data30_);
#line 228 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data30_ = NULL;
#line 228 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 228 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2484 "libvirt-machine.c"
			} else {
#line 228 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 2488 "libvirt-machine.c"
			}
#line 228 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 228 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 2494 "libvirt-machine.c"
		}
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread (____lambda77__boxes_run_in_thread_func, block31_data_ref (_data_->_data31_), block31_data_unref, boxes_libvirt_machine_update_io_stat_ready, _data_);
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2502 "libvirt-machine.c"
		_state_1:
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block31_data_unref (_data_->_data31_);
#line 230 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data31_ = NULL;
#line 2512 "libvirt-machine.c"
			goto __catch17_g_error;
		}
#line 233 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = NULL;
#line 233 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5__length1 = 0;
#line 233 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->self->priv->stats;
#line 233 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5__length1 = _data_->self->priv->stats_length1;
#line 233 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp6_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 233 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_[BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1];
#line 233 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp7_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 233 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&_data_->_tmp6_, &_data_->_tmp7_);
#line 233 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->prev = _data_->_tmp7_;
#line 234 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp8_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 234 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->prev;
#line 234 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = NULL;
#line 234 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->_tmp8_.disk;
#line 234 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp9_ != NULL) {
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp10_ = NULL;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp10_ = _data_->_data30_->stat;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp11_ = NULL;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp11_ = (*_data_->_tmp10_).disk;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp12_ = 0LL;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp12_ = _data_->_tmp11_->rd_bytes;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			memset (&_data_->_tmp13_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp13_ = _data_->prev;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp14_ = NULL;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp14_ = _data_->_tmp13_.disk;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp15_ = 0LL;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp15_ = _data_->_tmp14_->rd_bytes;
#line 235 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_data30_->stat).disk_read = (gdouble) (_data_->_tmp12_ - _data_->_tmp15_);
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp16_ = NULL;
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp16_ = _data_->_data30_->stat;
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp17_ = NULL;
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp17_ = (*_data_->_tmp16_).disk;
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp18_ = 0LL;
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp18_ = _data_->_tmp17_->wr_bytes;
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			memset (&_data_->_tmp19_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp19_ = _data_->prev;
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = NULL;
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = _data_->_tmp19_.disk;
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = 0LL;
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = _data_->_tmp20_->wr_bytes;
#line 236 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_data30_->stat).disk_write = (gdouble) (_data_->_tmp18_ - _data_->_tmp21_);
#line 2595 "libvirt-machine.c"
		}
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&_data_->prev);
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block31_data_unref (_data_->_data31_);
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data31_ = NULL;
#line 2603 "libvirt-machine.c"
	}
	goto __finally17;
	__catch17_g_error:
	{
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->err = _data_->_inner_error_;
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 239 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp22_ = NULL;
#line 239 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp22_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 239 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp23_ = NULL;
#line 239 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp23_ = _data_->_tmp22_;
#line 239 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp24_ = NULL;
#line 239 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp24_ = _data_->err;
#line 239 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp25_ = NULL;
#line 239 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp25_ = _data_->_tmp24_->message;
#line 239 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:239: Failed to fetch I/O statistics for %s: %s", _data_->_tmp23_, _data_->_tmp25_);
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->err);
#line 2632 "libvirt-machine.c"
	}
	__finally17:
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block30_data_unref (_data_->_data30_);
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data30_ = NULL;
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 225 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2647 "libvirt-machine.c"
	}
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block30_data_unref (_data_->_data30_);
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data30_ = NULL;
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2657 "libvirt-machine.c"
	} else {
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2661 "libvirt-machine.c"
	}
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 221 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 2667 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_net_stat_data_free (gpointer _data) {
	BoxesLibvirtMachineUpdateNetStatData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInfo_free0 (_data_->info);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineUpdateNetStatData, _data_);
#line 2680 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_net_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateNetStatData* _data_;
	BoxesLibvirtMachine* _tmp0_ = NULL;
	GVirDomainInfo* _tmp1_ = NULL;
	GVirDomainInfo* _tmp2_ = NULL;
	BoxesLibvirtMachineMachineStat* _tmp3_ = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineUpdateNetStatData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_update_net_stat);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_update_net_stat_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = info;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = __vala_GVirDomainInfo_copy0 (_tmp1_);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInfo_free0 (_data_->info);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->info = _tmp2_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = stat;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->stat = _tmp3_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_net_stat_co (_data_);
#line 2714 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_net_stat_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_) {
	BoxesLibvirtMachineUpdateNetStatData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 2722 "libvirt-machine.c"
}


static Block32Data* block32_data_ref (Block32Data* _data32_) {
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data32_->_ref_count_);
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data32_;
#line 2731 "libvirt-machine.c"
}


static void block32_data_unref (void * _userdata_) {
	Block32Data* _data32_;
	_data32_ = (Block32Data*) _userdata_;
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data32_->_ref_count_)) {
#line 2740 "libvirt-machine.c"
		BoxesLibvirtMachine* self;
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data32_->self;
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block32Data, _data32_);
#line 2748 "libvirt-machine.c"
	}
}


static Block33Data* block33_data_ref (Block33Data* _data33_) {
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data33_->_ref_count_);
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data33_;
#line 2758 "libvirt-machine.c"
}


static void block33_data_unref (void * _userdata_) {
	Block33Data* _data33_;
	_data33_ = (Block33Data*) _userdata_;
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data33_->_ref_count_)) {
#line 2767 "libvirt-machine.c"
		BoxesLibvirtMachine* self;
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data33_->_data32_->self;
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data33_->net);
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block32_data_unref (_data33_->_data32_);
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data33_->_data32_ = NULL;
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block33Data, _data33_);
#line 2779 "libvirt-machine.c"
	}
}


static void _vala_GVirDomainInterfaceStats_free (GVirDomainInterfaceStats* self) {
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_domain_interface_stats_get_type (), self);
#line 2787 "libvirt-machine.c"
}


static void ___lambda78_ (Block33Data* _data33_, GError** error) {
	Block32Data* _data32_;
	BoxesLibvirtMachine* self;
	GVirDomainInterfaceStats* _tmp0_ = NULL;
	GVirDomainInterface* _tmp1_ = NULL;
	GVirDomainInterfaceStats* _tmp2_ = NULL;
	GVirDomainInterfaceStats* _tmp3_ = NULL;
	GError * _inner_error_ = NULL;
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data32_ = _data33_->_data32_;
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data32_->self;
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _data33_->net;
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = gvir_domain_interface_get_stats (_tmp1_, &_inner_error_);
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _tmp2_;
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 2815 "libvirt-machine.c"
	}
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp0_;
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = NULL;
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInterfaceStats_free0 ((*_data32_->stat).net);
#line 253 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*_data32_->stat).net = _tmp3_;
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInterfaceStats_free0 (_tmp0_);
#line 2827 "libvirt-machine.c"
}


static void ____lambda78__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda78_ (self, error);
#line 2834 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_net_stat_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateNetStatData* _data_;
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_net_stat_co (_data_);
#line 2848 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_update_net_stat_co (BoxesLibvirtMachineUpdateNetStatData* _data_) {
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 2857 "libvirt-machine.c"
		goto _state_0;
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 2861 "libvirt-machine.c"
		goto _state_1;
		default:
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 2866 "libvirt-machine.c"
	}
	_state_0:
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data32_ = g_slice_new0 (Block32Data);
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data32_->_ref_count_ = 1;
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data32_->self = g_object_ref (_data_->self);
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = NULL;
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = _data_->stat;
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data32_->stat = _data_->_tmp0_;
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data32_->_async_data_ = _data_;
#line 244 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = NULL;
#line 244 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->info;
#line 244 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = 0;
#line 244 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = _data_->_tmp1_->state;
#line 244 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp2_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 245 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block32_data_unref (_data_->_data32_);
#line 245 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data32_ = NULL;
#line 245 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 245 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2901 "libvirt-machine.c"
		} else {
#line 245 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2905 "libvirt-machine.c"
		}
#line 245 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 245 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2911 "libvirt-machine.c"
	}
	{
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data33_ = g_slice_new0 (Block33Data);
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data33_->_ref_count_ = 1;
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data33_->_data32_ = block32_data_ref (_data_->_data32_);
#line 248 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = NULL;
#line 248 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = boxes_libvirt_machine_get_domain_network_interface (_data_->self, &_data_->_inner_error_);
#line 248 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data33_->net = _data_->_tmp3_;
#line 248 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 248 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block33_data_unref (_data_->_data33_);
#line 248 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data33_ = NULL;
#line 2932 "libvirt-machine.c"
			goto __catch18_g_error;
		}
#line 249 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = NULL;
#line 249 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->_data33_->net;
#line 249 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp4_ == NULL) {
#line 250 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block33_data_unref (_data_->_data33_);
#line 250 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data33_ = NULL;
#line 250 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block32_data_unref (_data_->_data32_);
#line 250 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data32_ = NULL;
#line 250 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 250 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2953 "libvirt-machine.c"
			} else {
#line 250 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 2957 "libvirt-machine.c"
			}
#line 250 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 250 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 2963 "libvirt-machine.c"
		}
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread (____lambda78__boxes_run_in_thread_func, block33_data_ref (_data_->_data33_), block33_data_unref, boxes_libvirt_machine_update_net_stat_ready, _data_);
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2971 "libvirt-machine.c"
		_state_1:
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block33_data_unref (_data_->_data33_);
#line 252 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data33_ = NULL;
#line 2981 "libvirt-machine.c"
			goto __catch18_g_error;
		}
#line 255 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = NULL;
#line 255 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5__length1 = 0;
#line 255 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->self->priv->stats;
#line 255 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5__length1 = _data_->self->priv->stats_length1;
#line 255 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp6_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 255 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_[BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1];
#line 255 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp7_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 255 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&_data_->_tmp6_, &_data_->_tmp7_);
#line 255 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->prev = _data_->_tmp7_;
#line 256 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp8_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 256 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->prev;
#line 256 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = NULL;
#line 256 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->_tmp8_.net;
#line 256 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp9_ != NULL) {
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp10_ = NULL;
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp10_ = _data_->_data32_->stat;
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp11_ = NULL;
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp11_ = (*_data_->_tmp10_).net;
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp12_ = 0LL;
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp12_ = _data_->_tmp11_->rx_bytes;
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			memset (&_data_->_tmp13_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp13_ = _data_->prev;
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp14_ = NULL;
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp14_ = _data_->_tmp13_.net;
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp15_ = 0LL;
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp15_ = _data_->_tmp14_->rx_bytes;
#line 257 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_data32_->stat).net_read = (gdouble) (_data_->_tmp12_ - _data_->_tmp15_);
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp16_ = NULL;
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp16_ = _data_->_data32_->stat;
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp17_ = NULL;
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp17_ = (*_data_->_tmp16_).net;
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp18_ = 0LL;
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp18_ = _data_->_tmp17_->tx_bytes;
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			memset (&_data_->_tmp19_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp19_ = _data_->prev;
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = NULL;
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = _data_->_tmp19_.net;
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = 0LL;
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = _data_->_tmp20_->tx_bytes;
#line 258 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_data32_->stat).net_write = (gdouble) (_data_->_tmp18_ - _data_->_tmp21_);
#line 3064 "libvirt-machine.c"
		}
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&_data_->prev);
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block33_data_unref (_data_->_data33_);
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data33_ = NULL;
#line 3072 "libvirt-machine.c"
	}
	goto __finally18;
	__catch18_g_error:
	{
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->err = _data_->_inner_error_;
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 261 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp22_ = NULL;
#line 261 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp22_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 261 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp23_ = NULL;
#line 261 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp23_ = _data_->_tmp22_;
#line 261 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp24_ = NULL;
#line 261 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp24_ = _data_->err;
#line 261 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp25_ = NULL;
#line 261 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp25_ = _data_->_tmp24_->message;
#line 261 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:261: Failed to fetch network statistics for %s: %" \
"s", _data_->_tmp23_, _data_->_tmp25_);
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->err);
#line 3101 "libvirt-machine.c"
	}
	__finally18:
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block32_data_unref (_data_->_data32_);
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data32_ = NULL;
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 247 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3116 "libvirt-machine.c"
	}
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block32_data_unref (_data_->_data32_);
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data32_ = NULL;
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3126 "libvirt-machine.c"
	} else {
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3130 "libvirt-machine.c"
	}
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 243 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 3136 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_stats_data_free (gpointer _data) {
	BoxesLibvirtMachineUpdateStatsData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineUpdateStatsData, _data_);
#line 3147 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_stats (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateStatsData* _data_;
	BoxesLibvirtMachine* _tmp0_ = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineUpdateStatsData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_update_stats);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_update_stats_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_stats_co (_data_);
#line 3166 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_stats_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_) {
	BoxesLibvirtMachineUpdateStatsData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 3174 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_stats_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateStatsData* _data_;
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_stats_co (_data_);
#line 3188 "libvirt-machine.c"
}


static BoxesLibvirtMachineMachineStat* _vala_array_dup1 (BoxesLibvirtMachineMachineStat* self, int length) {
	BoxesLibvirtMachineMachineStat* result;
	int i;
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = g_new0 (BoxesLibvirtMachineMachineStat, length);
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	for (i = 0; i < length; i++) {
#line 3199 "libvirt-machine.c"
		BoxesLibvirtMachineMachineStat _tmp0_ = {0};
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&self[i], &_tmp0_);
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		result[i] = _tmp0_;
#line 3205 "libvirt-machine.c"
	}
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3209 "libvirt-machine.c"
}


static void _vala_array_add4 (BoxesLibvirtMachineMachineStat** array, int* length, int* size, const BoxesLibvirtMachineMachineStat* value) {
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((*length) == (*size)) {
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*array = g_renew (BoxesLibvirtMachineMachineStat, *array, *size);
#line 3220 "libvirt-machine.c"
	}
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*array)[(*length)++] = *value;
#line 3224 "libvirt-machine.c"
}


static void _vala_array_add5 (gdouble** array, int* length, int* size, gdouble value) {
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((*length) == (*size)) {
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*array = g_renew (gdouble, *array, *size);
#line 3235 "libvirt-machine.c"
	}
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*array)[(*length)++] = value;
#line 3239 "libvirt-machine.c"
}


static void _vala_array_add6 (gdouble** array, int* length, int* size, gdouble value) {
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((*length) == (*size)) {
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*array = g_renew (gdouble, *array, *size);
#line 3250 "libvirt-machine.c"
	}
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*array)[(*length)++] = value;
#line 3254 "libvirt-machine.c"
}


static void _vala_array_add7 (gdouble** array, int* length, int* size, gdouble value) {
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((*length) == (*size)) {
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*array = g_renew (gdouble, *array, *size);
#line 3265 "libvirt-machine.c"
	}
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*array)[(*length)++] = value;
#line 3269 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_update_stats_co (BoxesLibvirtMachineUpdateStatsData* _data_) {
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 3278 "libvirt-machine.c"
		goto _state_0;
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 3282 "libvirt-machine.c"
		goto _state_1;
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 2:
#line 3286 "libvirt-machine.c"
		goto _state_2;
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 3:
#line 3290 "libvirt-machine.c"
		goto _state_3;
		default:
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 3295 "libvirt-machine.c"
	}
	_state_0:
	{
#line 272 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = 0LL;
#line 272 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = g_get_monotonic_time ();
#line 272 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->now = _data_->_tmp0_;
#line 273 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp1_ = 0LL;
#line 273 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp1_ = _data_->now;
#line 273 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp2_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 273 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp2_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 273 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_.timestamp = _data_->_tmp1_;
#line 273 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat = _data_->_tmp2_;
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = NULL;
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = _data_->self->priv->_domain;
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = NULL;
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->self->priv->stats_cancellable;
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_get_info_async (_data_->_tmp3_, _data_->_tmp4_, boxes_libvirt_machine_update_stats_ready, _data_);
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3331 "libvirt-machine.c"
		_state_1:
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = NULL;
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = gvir_domain_get_info_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->info = _data_->_tmp5_;
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_machine_stat_destroy (&_data_->stat);
#line 274 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 3345 "libvirt-machine.c"
				goto __catch19_g_io_error_cancelled;
			}
			goto __catch19_g_error;
		}
#line 276 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = NULL;
#line 276 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->info;
#line 276 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_cpu_stat (_data_->self, _data_->_tmp6_, &_data_->stat);
#line 277 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = NULL;
#line 277 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = _data_->info;
#line 277 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_mem_stat (_data_->self, _data_->_tmp7_, &_data_->stat);
#line 278 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = NULL;
#line 278 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->info;
#line 278 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 2;
#line 278 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_io_stat (_data_->self, _data_->_tmp8_, &_data_->stat, boxes_libvirt_machine_update_stats_ready, _data_);
#line 278 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3372 "libvirt-machine.c"
		_state_2:
#line 278 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_io_stat_finish (_data_->self, _data_->_res_);
#line 279 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = NULL;
#line 279 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->info;
#line 279 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 3;
#line 279 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_net_stat (_data_->self, _data_->_tmp9_, &_data_->stat, boxes_libvirt_machine_update_stats_ready, _data_);
#line 279 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3386 "libvirt-machine.c"
		_state_3:
#line 279 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_net_stat_finish (_data_->self, _data_->_res_);
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp10_ = NULL;
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp10__length1 = 0;
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp10_ = _data_->self->priv->stats;
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp10__length1 = _data_->self->priv->stats_length1;
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp11_ = NULL;
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp11__length1 = 0;
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp11_ = ((_data_->_tmp10_ + 1) != NULL) ? _vala_array_dup1 (_data_->_tmp10_ + 1, BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1) : ((gpointer) (_data_->_tmp10_ + 1));
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp11__length1 = BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1;
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->stats = (_vala_BoxesLibvirtMachineMachineStat_array_free (_data_->self->priv->stats, _data_->self->priv->stats_length1), NULL);
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->stats = _data_->_tmp11_;
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->stats_length1 = _data_->_tmp11__length1;
#line 281 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->_stats_size_ = _data_->self->priv->stats_length1;
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12_ = NULL;
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12__length1 = 0;
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12_ = _data_->self->priv->stats;
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12__length1 = _data_->self->priv->stats_length1;
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp13_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp13_ = _data_->stat;
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp14_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&_data_->_tmp13_, &_data_->_tmp14_);
#line 282 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_vala_array_add4 (&_data_->self->priv->stats, &_data_->self->priv->stats_length1, &_data_->self->priv->_stats_size_, &_data_->_tmp14_);
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_data_->info);
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&_data_->stat);
#line 3436 "libvirt-machine.c"
	}
	goto __finally19;
	__catch19_g_io_error_cancelled:
	{
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->err = _data_->_inner_error_;
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 285 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->err);
#line 285 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 285 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3451 "libvirt-machine.c"
		} else {
#line 285 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 3455 "libvirt-machine.c"
		}
#line 285 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 285 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3461 "libvirt-machine.c"
	}
	goto __finally19;
	__catch19_g_error:
	{
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_vala1_err = _data_->_inner_error_;
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 287 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp15_ = NULL;
#line 287 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp15_ = _data_->_vala1_err;
#line 287 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp16_ = NULL;
#line 287 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp16_ = _data_->_tmp15_->message;
#line 287 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:287: %s", _data_->_tmp16_);
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->_vala1_err);
#line 3482 "libvirt-machine.c"
	}
	__finally19:
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 271 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3493 "libvirt-machine.c"
	}
#line 290 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = NULL;
#line 290 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = g_new0 (gdouble, 0);
#line 290 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->cpu_stats = (g_free (_data_->self->cpu_stats), NULL);
#line 290 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->cpu_stats = _data_->_tmp17_;
#line 290 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->cpu_stats_length1 = 0;
#line 290 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->_cpu_stats_size_ = _data_->self->cpu_stats_length1;
#line 291 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = NULL;
#line 291 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = g_new0 (gdouble, 0);
#line 291 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->io_stats = (g_free (_data_->self->io_stats), NULL);
#line 291 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->io_stats = _data_->_tmp18_;
#line 291 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->io_stats_length1 = 0;
#line 291 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->_io_stats_size_ = _data_->self->io_stats_length1;
#line 292 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp19_ = NULL;
#line 292 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp19_ = g_new0 (gdouble, 0);
#line 292 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->net_stats = (g_free (_data_->self->net_stats), NULL);
#line 292 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->net_stats = _data_->_tmp19_;
#line 292 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->net_stats_length1 = 0;
#line 292 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->_net_stats_size_ = _data_->self->net_stats_length1;
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20_ = NULL;
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20__length1 = 0;
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20_ = _data_->self->priv->stats;
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20__length1 = _data_->self->priv->stats_length1;
#line 3539 "libvirt-machine.c"
	{
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat_collection_length1 = 0;
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_stat_collection_size_ = 0;
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat_collection = _data_->_tmp20_;
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat_collection_length1 = _data_->_tmp20__length1;
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		for (_data_->stat_it = 0; _data_->stat_it < _data_->_tmp20__length1; _data_->stat_it = _data_->stat_it + 1) {
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			memset (&_data_->_tmp21_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_machine_stat_copy (&_data_->stat_collection[_data_->stat_it], &_data_->_tmp21_);
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_vala1_stat = _data_->_tmp21_;
#line 3557 "libvirt-machine.c"
			{
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp22_ = NULL;
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp22__length1 = 0;
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp22_ = _data_->self->cpu_stats;
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp22__length1 = _data_->self->cpu_stats_length1;
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				memset (&_data_->_tmp23_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp23_ = _data_->_vala1_stat;
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp24_ = 0.0;
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp24_ = _data_->_tmp23_.cpu_guest_percent;
#line 295 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_vala_array_add5 (&_data_->self->cpu_stats, &_data_->self->cpu_stats_length1, &_data_->self->_cpu_stats_size_, _data_->_tmp24_);
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp25_ = NULL;
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp25__length1 = 0;
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp25_ = _data_->self->net_stats;
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp25__length1 = _data_->self->net_stats_length1;
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				memset (&_data_->_tmp26_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp26_ = _data_->_vala1_stat;
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp27_ = 0.0;
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp27_ = _data_->_tmp26_.net_read;
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				memset (&_data_->_tmp28_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp28_ = _data_->_vala1_stat;
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp29_ = 0.0;
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp29_ = _data_->_tmp28_.net_write;
#line 296 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_vala_array_add6 (&_data_->self->net_stats, &_data_->self->net_stats_length1, &_data_->self->_net_stats_size_, _data_->_tmp27_ + _data_->_tmp29_);
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp30_ = NULL;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp30__length1 = 0;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp30_ = _data_->self->io_stats;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp30__length1 = _data_->self->io_stats_length1;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				memset (&_data_->_tmp31_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp31_ = _data_->_vala1_stat;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp32_ = 0.0;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp32_ = _data_->_tmp31_.disk_read;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				memset (&_data_->_tmp33_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp33_ = _data_->_vala1_stat;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp34_ = 0.0;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp34_ = _data_->_tmp33_.disk_write;
#line 297 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_vala_array_add7 (&_data_->self->io_stats, &_data_->self->io_stats_length1, &_data_->self->_io_stats_size_, _data_->_tmp32_ + _data_->_tmp34_);
#line 294 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_libvirt_machine_machine_stat_destroy (&_data_->_vala1_stat);
#line 3631 "libvirt-machine.c"
			}
		}
	}
#line 300 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_emit_by_name (_data_->self, "stats-updated");
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3641 "libvirt-machine.c"
	} else {
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3645 "libvirt-machine.c"
	}
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 270 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 3651 "libvirt-machine.c"
}


static Block34Data* block34_data_ref (Block34Data* _data34_) {
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data34_->_ref_count_);
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data34_;
#line 3660 "libvirt-machine.c"
}


static void block34_data_unref (void * _userdata_) {
	Block34Data* _data34_;
	_data34_ = (Block34Data*) _userdata_;
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data34_->_ref_count_)) {
#line 3669 "libvirt-machine.c"
		BoxesLibvirtMachine* self;
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data34_->self;
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block34Data, _data34_);
#line 3677 "libvirt-machine.c"
	}
}


static void __lambda79_ (Block34Data* _data34_) {
	BoxesLibvirtMachine* self;
#line 319 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data34_->self;
#line 319 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data34_->stats_updating = FALSE;
#line 3688 "libvirt-machine.c"
}


static void ___lambda79__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 319 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda79_ (self);
#line 319 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block34_data_unref (self);
#line 3697 "libvirt-machine.c"
}


static gboolean ___lambda76_ (Block34Data* _data34_) {
	BoxesLibvirtMachine* self;
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
#line 311 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data34_->self;
#line 312 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _data34_->stats_updating;
#line 312 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 3711 "libvirt-machine.c"
		const gchar* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
#line 313 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 313 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 313 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:313: Fetching of stats for '%s' is taking too lon" \
"g. Probably a libvirt bug.", _tmp2_);
#line 315 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		result = TRUE;
#line 315 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return result;
#line 3724 "libvirt-machine.c"
	}
#line 318 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data34_->stats_updating = TRUE;
#line 319 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_stats (self, ___lambda79__gasync_ready_callback, block34_data_ref (_data34_));
#line 321 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = TRUE;
#line 321 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3734 "libvirt-machine.c"
}


static gboolean ____lambda76__gsource_func (gpointer self) {
	gboolean result;
	result = ___lambda76_ (self);
#line 311 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3743 "libvirt-machine.c"
}


static void boxes_libvirt_machine_set_stats_enable (BoxesLibvirtMachine* self, gboolean enable) {
	gboolean _tmp0_ = FALSE;
#line 303 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = enable;
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 3755 "libvirt-machine.c"
		Block34Data* _data34_;
		const gchar* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		gchar* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
		guint _tmp5_ = 0U;
		GCancellable* _tmp6_ = NULL;
		guint _tmp7_ = 0U;
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data34_ = g_slice_new0 (Block34Data);
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data34_->_ref_count_ = 1;
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data34_->self = g_object_ref (self);
#line 305 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 305 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 305 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = g_strconcat ("enable statistics for ", _tmp2_, NULL);
#line 305 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 305 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:305: %s", _tmp4_);
#line 305 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp4_);
#line 306 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = self->priv->stats_update_timeout;
#line 306 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp5_ != ((guint) 0)) {
#line 307 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block34_data_unref (_data34_);
#line 307 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data34_ = NULL;
#line 307 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3792 "libvirt-machine.c"
		}
#line 309 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = self->priv->stats_cancellable;
#line 309 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_cancellable_reset (_tmp6_);
#line 310 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data34_->stats_updating = FALSE;
#line 311 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 1, ____lambda76__gsource_func, block34_data_ref (_data34_), block34_data_unref);
#line 311 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->stats_update_timeout = _tmp7_;
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block34_data_unref (_data34_);
#line 304 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data34_ = NULL;
#line 3808 "libvirt-machine.c"
	} else {
		const gchar* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		guint _tmp12_ = 0U;
#line 324 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 324 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _tmp8_;
#line 324 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = g_strconcat ("disable statistics for ", _tmp9_, NULL);
#line 324 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _tmp10_;
#line 324 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:324: %s", _tmp11_);
#line 324 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp11_);
#line 325 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = self->priv->stats_update_timeout;
#line 325 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp12_ != ((guint) 0)) {
#line 3831 "libvirt-machine.c"
			GCancellable* _tmp13_ = NULL;
			guint _tmp14_ = 0U;
#line 326 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp13_ = self->priv->stats_cancellable;
#line 326 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_cancellable_cancel (_tmp13_);
#line 327 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp14_ = self->priv->stats_update_timeout;
#line 327 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_source_remove (_tmp14_);
#line 3842 "libvirt-machine.c"
		}
#line 329 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->stats_update_timeout = (guint) 0;
#line 3846 "libvirt-machine.c"
	}
}


static void _g_object_unref0_ (gpointer var) {
#line 333 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 3854 "libvirt-machine.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 333 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 333 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_list_free (self);
#line 3863 "libvirt-machine.c"
}


static GList* boxes_libvirt_machine_real_get_properties (BoxesMachine* base, BoxesPropertiesPage page, PropertyCreationFlag* flags) {
	BoxesLibvirtMachine * self;
	GList* result = NULL;
	GList* list = NULL;
	BoxesLibvirtMachineProperties* _tmp0_ = NULL;
	BoxesPropertiesPage _tmp1_ = 0;
	GList* _tmp2_ = NULL;
	BoxesDisplay* _tmp3_ = NULL;
	BoxesDisplay* _tmp4_ = NULL;
#line 333 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 334 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->properties;
#line 334 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = page;
#line 334 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = boxes_iproperties_provider_get_properties ((BoxesIPropertiesProvider*) _tmp0_, _tmp1_, flags);
#line 334 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	list = _tmp2_;
#line 336 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 336 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = _tmp3_;
#line 336 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp4_ != NULL) {
#line 3892 "libvirt-machine.c"
		BoxesDisplay* _tmp5_ = NULL;
		BoxesDisplay* _tmp6_ = NULL;
		BoxesPropertiesPage _tmp7_ = 0;
		GList* _tmp8_ = NULL;
#line 337 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 337 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _tmp5_;
#line 337 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = page;
#line 337 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = boxes_display_get_properties (_tmp6_, _tmp7_, flags);
#line 337 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		list = g_list_concat (list, _tmp8_);
#line 3907 "libvirt-machine.c"
	}
#line 340 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = list;
#line 340 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3913 "libvirt-machine.c"
}


gboolean boxes_libvirt_machine_update_display (BoxesLibvirtMachine* self, GError** error) {
	gboolean result = FALSE;
	gboolean created_display = FALSE;
	BoxesDisplay* _tmp0_ = NULL;
	BoxesDisplay* _tmp1_ = NULL;
	BoxesDisplay* _tmp2_ = NULL;
	BoxesDisplay* _tmp3_ = NULL;
	GError * _inner_error_ = NULL;
#line 343 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 344 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_domain_config (self);
#line 346 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 346 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 346 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	created_display = _tmp1_ == NULL;
#line 347 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 347 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 347 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp3_ == NULL) {
#line 3941 "libvirt-machine.c"
		BoxesDisplay* _tmp4_ = NULL;
		BoxesDisplay* _tmp5_ = NULL;
#line 348 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = boxes_libvirt_machine_create_display (self, &_inner_error_);
#line 348 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp5_;
#line 348 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 348 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 348 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 3954 "libvirt-machine.c"
		}
#line 348 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_set_display ((BoxesMachine*) self, _tmp4_);
#line 347 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_tmp4_);
#line 3960 "libvirt-machine.c"
	}
#line 349 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = created_display;
#line 349 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3966 "libvirt-machine.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1314 "/home/zeenix/jhbuild/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1315 "/home/zeenix/jhbuild/share/vala-0.28/vapi/glib-2.0.vapi"
	result = self;
#line 1315 "/home/zeenix/jhbuild/share/vala-0.28/vapi/glib-2.0.vapi"
	return result;
#line 3978 "libvirt-machine.c"
}


static BoxesDisplay* boxes_libvirt_machine_create_display (BoxesLibvirtMachine* self, GError** error) {
	BoxesDisplay* result = NULL;
	gchar* type = NULL;
	gchar* port = NULL;
	gchar* socket = NULL;
	gchar* host = NULL;
	gchar* xmldoc = NULL;
	GVirConfigDomain* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
	gchar* _tmp15_ = NULL;
	const gchar* _tmp16_ = NULL;
	const gchar* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	gchar* _tmp21_ = NULL;
	gchar* _tmp22_ = NULL;
	gchar* _tmp23_ = NULL;
	gchar* _tmp24_ = NULL;
	const gchar* _tmp25_ = NULL;
	const gchar* _tmp26_ = NULL;
	const gchar* _tmp27_ = NULL;
	gchar* _tmp28_ = NULL;
	gchar* _tmp29_ = NULL;
	gchar* _tmp30_ = NULL;
	gchar* _tmp31_ = NULL;
	gchar* _tmp32_ = NULL;
	gboolean _tmp33_ = FALSE;
	const gchar* _tmp34_ = NULL;
	const gchar* _tmp37_ = NULL;
	const gchar* _tmp38_ = NULL;
	GQuark _tmp40_ = 0U;
#line 364 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	static GQuark _tmp39_label0 = 0;
#line 364 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	static GQuark _tmp39_label1 = 0;
#line 4031 "libvirt-machine.c"
	GError * _inner_error_ = NULL;
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 355 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->_domain_config;
#line 355 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_config_object_to_xml ((GVirConfigObject*) _tmp0_);
#line 355 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	xmldoc = _tmp1_;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = xmldoc;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = boxes_extract_xpath (_tmp3_, "string(/domain/devices/graphics/@type)", TRUE, &_inner_error_);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp4_;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4065 "libvirt-machine.c"
		} else {
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4083 "libvirt-machine.c"
		}
	}
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp2_;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = NULL;
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (type);
#line 356 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	type = _tmp5_;
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = xmldoc;
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = type;
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = string_to_string (_tmp8_);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = g_strconcat ("string(/domain/devices/graphics[@type='", _tmp9_, "']/@port)", NULL);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = _tmp10_;
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = boxes_extract_xpath (_tmp7_, _tmp11_, FALSE, &_inner_error_);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp13_ = _tmp12_;
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp11_);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = _tmp13_;
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp2_);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4132 "libvirt-machine.c"
		} else {
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp2_);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4152 "libvirt-machine.c"
		}
	}
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp14_ = _tmp6_;
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = NULL;
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (port);
#line 357 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	port = _tmp14_;
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp16_ = xmldoc;
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp17_ = type;
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = string_to_string (_tmp17_);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp19_ = g_strconcat ("string(/domain/devices/graphics[@type='", _tmp18_, "']/@socket)", NULL);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp20_ = _tmp19_;
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp21_ = boxes_extract_xpath (_tmp16_, _tmp20_, FALSE, &_inner_error_);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp22_ = _tmp21_;
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp20_);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = _tmp22_;
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp6_);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp2_);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4203 "libvirt-machine.c"
		} else {
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp6_);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp2_);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4225 "libvirt-machine.c"
		}
	}
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp23_ = _tmp15_;
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = NULL;
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (socket);
#line 358 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	socket = _tmp23_;
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp25_ = xmldoc;
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp26_ = type;
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp27_ = string_to_string (_tmp26_);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp28_ = g_strconcat ("string(/domain/devices/graphics[@type='", _tmp27_, "']/@listen)", NULL);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp29_ = _tmp28_;
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp30_ = boxes_extract_xpath (_tmp25_, _tmp29_, FALSE, &_inner_error_);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp31_ = _tmp30_;
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp29_);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp24_ = _tmp31_;
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp15_);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp6_);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp2_);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4278 "libvirt-machine.c"
		} else {
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp15_);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp6_);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp2_);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 4302 "libvirt-machine.c"
		}
	}
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp32_ = _tmp24_;
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp24_ = NULL;
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (host);
#line 359 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	host = _tmp32_;
#line 361 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp34_ = host;
#line 361 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp34_ == NULL) {
#line 361 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp33_ = TRUE;
#line 4319 "libvirt-machine.c"
	} else {
		const gchar* _tmp35_ = NULL;
#line 361 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp35_ = host;
#line 361 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp33_ = g_strcmp0 (_tmp35_, "") == 0;
#line 4326 "libvirt-machine.c"
	}
#line 361 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp33_) {
#line 4330 "libvirt-machine.c"
		gchar* _tmp36_ = NULL;
#line 362 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp36_ = g_strdup ("localhost");
#line 362 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (host);
#line 362 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		host = _tmp36_;
#line 4338 "libvirt-machine.c"
	}
#line 364 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp37_ = type;
#line 364 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp38_ = _tmp37_;
#line 364 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp40_ = (NULL == _tmp38_) ? 0 : g_quark_from_string (_tmp38_);
#line 364 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp40_ == ((0 != _tmp39_label0) ? _tmp39_label0 : (_tmp39_label0 = g_quark_from_static_string ("spice")))) {
#line 364 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (0) {
#line 4350 "libvirt-machine.c"
			default:
			{
				BoxesBoxConfig* _tmp41_ = NULL;
				const gchar* _tmp42_ = NULL;
				const gchar* _tmp43_ = NULL;
				gint _tmp44_ = 0;
				BoxesSpiceDisplay* _tmp45_ = NULL;
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp41_ = ((BoxesMachine*) self)->config;
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp42_ = host;
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp43_ = port;
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp44_ = atoi (_tmp43_);
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp45_ = boxes_spice_display_new ((BoxesMachine*) self, _tmp41_, _tmp42_, _tmp44_, 0, NULL);
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				result = (BoxesDisplay*) _tmp45_;
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp24_);
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp15_);
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp6_);
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp2_);
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (xmldoc);
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (host);
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (socket);
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (port);
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (type);
#line 366 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return result;
#line 4390 "libvirt-machine.c"
			}
		}
	} else if (_tmp40_ == ((0 != _tmp39_label1) ? _tmp39_label1 : (_tmp39_label1 = g_quark_from_static_string ("vnc")))) {
#line 364 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (0) {
#line 4396 "libvirt-machine.c"
			default:
			{
				BoxesBoxConfig* _tmp46_ = NULL;
				const gchar* _tmp47_ = NULL;
				const gchar* _tmp48_ = NULL;
				gint _tmp49_ = 0;
				BoxesVncDisplay* _tmp50_ = NULL;
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp46_ = ((BoxesMachine*) self)->config;
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp47_ = host;
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp48_ = port;
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp49_ = atoi (_tmp48_);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp50_ = boxes_vnc_display_new (_tmp46_, _tmp47_, _tmp49_);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				result = (BoxesDisplay*) _tmp50_;
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp24_);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp15_);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp6_);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp2_);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (xmldoc);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (host);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (socket);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (port);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (type);
#line 369 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return result;
#line 4436 "libvirt-machine.c"
			}
		}
	} else {
#line 364 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (0) {
#line 4442 "libvirt-machine.c"
			default:
			{
				const gchar* _tmp51_ = NULL;
				gchar* _tmp52_ = NULL;
				gchar* _tmp53_ = NULL;
				GError* _tmp54_ = NULL;
				GError* _tmp55_ = NULL;
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp51_ = type;
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp52_ = g_strconcat ("unsupported display of type ", _tmp51_, NULL);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp53_ = _tmp52_;
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp54_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, _tmp53_);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp55_ = _tmp54_;
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp53_);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_inner_error_ = _tmp55_;
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_inner_error_->domain == BOXES_ERROR) {
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_propagate_error (error, _inner_error_);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (_tmp24_);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (_tmp15_);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (_tmp6_);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (_tmp2_);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (xmldoc);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (host);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (socket);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (port);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (type);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					return NULL;
#line 4488 "libvirt-machine.c"
				} else {
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (_tmp24_);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (_tmp15_);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (_tmp6_);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (_tmp2_);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (xmldoc);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (host);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (socket);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (port);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (type);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_clear_error (&_inner_error_);
#line 372 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					return NULL;
#line 4514 "libvirt-machine.c"
				}
			}
		}
	}
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp24_);
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp15_);
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp6_);
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp2_);
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (xmldoc);
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (host);
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (socket);
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (port);
#line 352 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (type);
#line 4537 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_take_screenshot_data_free (gpointer _data) {
	BoxesLibvirtMachineTakeScreenshotData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->result);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineTakeScreenshotData, _data_);
#line 4550 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_take_screenshot (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineTakeScreenshotData* _data_;
	BoxesLibvirtMachine* _tmp0_ = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineTakeScreenshotData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_real_take_screenshot);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_real_take_screenshot_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_take_screenshot_co (_data_);
#line 4572 "libvirt-machine.c"
}


static GdkPixbuf* boxes_libvirt_machine_real_take_screenshot_finish (BoxesMachine* base, GAsyncResult* _res_, GError** error) {
	GdkPixbuf* result;
	BoxesLibvirtMachineTakeScreenshotData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 4583 "libvirt-machine.c"
	}
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _data_->result;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->result = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 4593 "libvirt-machine.c"
}


static Block35Data* block35_data_ref (Block35Data* _data35_) {
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data35_->_ref_count_);
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data35_;
#line 4602 "libvirt-machine.c"
}


static void block35_data_unref (void * _userdata_) {
	Block35Data* _data35_;
	_data35_ = (Block35Data*) _userdata_;
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data35_->_ref_count_)) {
#line 4611 "libvirt-machine.c"
		BoxesLibvirtMachine* self;
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data35_->self;
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data35_->stream);
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block35Data, _data35_);
#line 4621 "libvirt-machine.c"
	}
}


static void boxes_libvirt_machine_take_screenshot_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineTakeScreenshotData* _data_;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_take_screenshot_co (_data_);
#line 4636 "libvirt-machine.c"
}


static void __lambda163_ (Block35Data* _data35_, GError** error) {
	BoxesLibvirtMachine* self;
	GVirDomain* _tmp0_ = NULL;
	GVirStream* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	GError * _inner_error_ = NULL;
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data35_->self;
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->_domain;
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _data35_->stream;
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = gvir_domain_screenshot (_tmp0_, _tmp1_, (guint) 0, (guint) 0, &_inner_error_);
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp3_);
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 389 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 4665 "libvirt-machine.c"
	}
}


static void ___lambda163__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda163_ (self, error);
#line 4673 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_real_take_screenshot_co (BoxesLibvirtMachineTakeScreenshotData* _data_) {
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 4682 "libvirt-machine.c"
		goto _state_0;
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 4686 "libvirt-machine.c"
		goto _state_1;
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 2:
#line 4690 "libvirt-machine.c"
		goto _state_2;
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 3:
#line 4694 "libvirt-machine.c"
		goto _state_3;
		default:
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 4699 "libvirt-machine.c"
	}
	_state_0:
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data35_ = g_slice_new0 (Block35Data);
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data35_->_ref_count_ = 1;
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data35_->self = g_object_ref (_data_->self);
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data35_->_async_data_ = _data_;
#line 377 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->state = GVIR_DOMAIN_STATE_NONE;
#line 4712 "libvirt-machine.c"
	{
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp1_ = NULL;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp1_ = _data_->self->priv->_domain;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_get_info_async (_data_->_tmp1_, NULL, boxes_libvirt_machine_take_screenshot_ready, _data_);
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 4724 "libvirt-machine.c"
		_state_1:
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_ = NULL;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_ = gvir_domain_get_info_finish (_data_->_tmp1_, _data_->_res_, &_data_->_inner_error_);
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = _data_->_tmp2_;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 4734 "libvirt-machine.c"
			goto __catch20_g_error;
		}
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = NULL;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = _data_->_tmp0_;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = NULL;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = NULL;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->_tmp3_;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = 0;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->_tmp4_->state;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->state = _data_->_tmp5_;
#line 379 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_data_->_tmp4_);
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_data_->_tmp0_);
#line 4757 "libvirt-machine.c"
	}
	goto __finally20;
	__catch20_g_error:
	{
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 381 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = NULL;
#line 381 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 381 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = NULL;
#line 381 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = _data_->_tmp6_;
#line 381 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:381: Failed to get information on '%s'", _data_->_tmp7_);
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->_error_);
#line 4778 "libvirt-machine.c"
	}
	__finally20:
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block35_data_unref (_data_->_data35_);
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data35_ = NULL;
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4795 "libvirt-machine.c"
		} else {
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 4799 "libvirt-machine.c"
		}
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 378 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 4805 "libvirt-machine.c"
	}
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp10_ = 0;
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp10_ = _data_->state;
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp10_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp11_ = 0;
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp11_ = _data_->state;
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->_tmp11_ != GVIR_DOMAIN_STATE_PAUSED;
#line 4819 "libvirt-machine.c"
	} else {
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = FALSE;
#line 4823 "libvirt-machine.c"
	}
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp9_) {
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12_ = 0;
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12_ = _data_->state;
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->_tmp12_ != GVIR_DOMAIN_STATE_PMSUSPENDED;
#line 4833 "libvirt-machine.c"
	} else {
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = FALSE;
#line 4837 "libvirt-machine.c"
	}
#line 384 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp8_) {
#line 385 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->result = NULL;
#line 385 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block35_data_unref (_data_->_data35_);
#line 385 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data35_ = NULL;
#line 385 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 385 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4851 "libvirt-machine.c"
		} else {
#line 385 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 4855 "libvirt-machine.c"
		}
#line 385 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 385 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 4861 "libvirt-machine.c"
	}
#line 387 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp13_ = NULL;
#line 387 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp13_ = _data_->self->priv->_connection;
#line 387 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp14_ = NULL;
#line 387 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp14_ = gvir_connection_get_stream (_data_->_tmp13_, (guint) 0);
#line 387 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data35_->stream = _data_->_tmp14_;
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_state_ = 2;
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_run_in_thread (___lambda163__boxes_run_in_thread_func, block35_data_ref (_data_->_data35_), block35_data_unref, boxes_libvirt_machine_take_screenshot_ready, _data_);
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 4879 "libvirt-machine.c"
	_state_2:
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_run_in_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block35_data_unref (_data_->_data35_);
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data35_ = NULL;
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4897 "libvirt-machine.c"
		} else {
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 4901 "libvirt-machine.c"
		}
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 388 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 4907 "libvirt-machine.c"
	}
#line 392 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp15_ = NULL;
#line 392 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp15_ = gdk_pixbuf_loader_new ();
#line 392 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->loader = _data_->_tmp15_;
#line 393 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp16_ = NULL;
#line 393 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp16_ = _data_->_data35_->stream;
#line 393 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = NULL;
#line 393 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = g_io_stream_get_input_stream ((GIOStream*) _data_->_tmp16_);
#line 393 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = NULL;
#line 393 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = _g_object_ref0 (_data_->_tmp17_);
#line 393 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->input_stream = _data_->_tmp18_;
#line 394 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp19_ = NULL;
#line 394 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp19_ = g_new0 (guint8, 65535);
#line 394 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer_length1 = 0;
#line 394 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_buffer_size_ = 0;
#line 394 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer = _data_->_tmp19_;
#line 394 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer_length1 = 65535;
#line 394 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_buffer_size_ = _data_->buffer_length1;
#line 395 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->length = (gssize) 0;
#line 4945 "libvirt-machine.c"
	{
#line 396 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp20_ = TRUE;
#line 396 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		while (TRUE) {
#line 396 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (!_data_->_tmp20_) {
#line 399 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp21_ = 0L;
#line 399 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp21_ = _data_->length;
#line 399 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (!(_data_->_tmp21_ > ((gssize) 0))) {
#line 399 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					break;
#line 4961 "libvirt-machine.c"
				}
			}
#line 396 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = FALSE;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp23_ = NULL;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp23_ = _data_->input_stream;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp24_ = NULL;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp24__length1 = 0;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp24_ = _data_->buffer;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp24__length1 = _data_->buffer_length1;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_state_ = 3;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_input_stream_read_async (_data_->_tmp23_, _data_->_tmp24_, (gsize) _data_->_tmp24__length1, G_PRIORITY_DEFAULT, NULL, boxes_libvirt_machine_take_screenshot_ready, _data_);
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 4984 "libvirt-machine.c"
			_state_3:
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp25_ = 0L;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp25_ = g_input_stream_read_finish (_data_->_tmp23_, _data_->_res_, &_data_->_inner_error_);
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp22_ = _data_->_tmp25_;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->buffer = (g_free (_data_->buffer), NULL);
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->input_stream);
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->loader);
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				block35_data_unref (_data_->_data35_);
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_data35_ = NULL;
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5012 "libvirt-machine.c"
				} else {
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 5016 "libvirt-machine.c"
				}
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 5022 "libvirt-machine.c"
			}
#line 397 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->length = _data_->_tmp22_;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp26_ = NULL;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp26_ = _data_->loader;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp27_ = NULL;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp27__length1 = 0;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp27_ = _data_->buffer;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp27__length1 = _data_->buffer_length1;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp28_ = 0L;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp28_ = _data_->length;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gdk_pixbuf_loader_write (_data_->_tmp26_, _data_->_tmp27_ + 0, (gsize) (((gint) _data_->_tmp28_) - 0), &_data_->_inner_error_);
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->buffer = (g_free (_data_->buffer), NULL);
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->input_stream);
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->loader);
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				block35_data_unref (_data_->_data35_);
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_data35_ = NULL;
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5064 "libvirt-machine.c"
				} else {
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 5068 "libvirt-machine.c"
				}
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 398 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 5074 "libvirt-machine.c"
			}
		}
	}
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp29_ = NULL;
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp29_ = _data_->loader;
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gdk_pixbuf_loader_close (_data_->_tmp29_, &_data_->_inner_error_);
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->buffer = (g_free (_data_->buffer), NULL);
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data_->input_stream);
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data_->loader);
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block35_data_unref (_data_->_data35_);
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data35_ = NULL;
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5104 "libvirt-machine.c"
		} else {
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 5108 "libvirt-machine.c"
		}
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 400 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 5114 "libvirt-machine.c"
	}
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp30_ = NULL;
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp30_ = _data_->loader;
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp31_ = NULL;
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp31_ = gdk_pixbuf_loader_get_pixbuf (_data_->_tmp30_);
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp32_ = NULL;
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp32_ = _g_object_ref0 (_data_->_tmp31_);
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->result = _data_->_tmp32_;
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer = (g_free (_data_->buffer), NULL);
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->input_stream);
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->loader);
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block35_data_unref (_data_->_data35_);
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data35_ = NULL;
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5144 "libvirt-machine.c"
	} else {
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 5148 "libvirt-machine.c"
	}
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 402 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer = (g_free (_data_->buffer), NULL);
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->input_stream);
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->loader);
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block35_data_unref (_data_->_data35_);
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data35_ = NULL;
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5168 "libvirt-machine.c"
	} else {
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 5172 "libvirt-machine.c"
	}
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 376 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 5178 "libvirt-machine.c"
}


static Block36Data* block36_data_ref (Block36Data* _data36_) {
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data36_->_ref_count_);
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data36_;
#line 5187 "libvirt-machine.c"
}


static void block36_data_unref (void * _userdata_) {
	Block36Data* _data36_;
	_data36_ = (Block36Data*) _userdata_;
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data36_->_ref_count_)) {
#line 5196 "libvirt-machine.c"
		BoxesLibvirtMachine* self;
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data36_->self;
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data36_->domain);
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block36Data, _data36_);
#line 5206 "libvirt-machine.c"
	}
}


static void ___lambda80_ (Block36Data* _data36_, GError** error) {
	BoxesLibvirtMachine* self;
	GVirStorageVol* _tmp6_ = NULL;
	GError * _inner_error_ = NULL;
#line 420 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data36_->self;
#line 5217 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_ = NULL;
#line 423 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = _data36_->domain;
#line 423 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_delete (_tmp0_, (guint) (GVIR_DOMAIN_DELETE_SAVED_STATE | GVIR_DOMAIN_DELETE_SNAPSHOTS_METADATA), &_inner_error_);
#line 423 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5226 "libvirt-machine.c"
			goto __catch21_g_error;
		}
	}
	goto __finally21;
	__catch21_g_error:
	{
		GError* err = NULL;
		GError* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
#line 421 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		err = _inner_error_;
#line 421 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 426 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = err;
#line 426 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_->message;
#line 426 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:426: %s", _tmp2_);
#line 421 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (err);
#line 5248 "libvirt-machine.c"
	}
	__finally21:
#line 421 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 421 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 421 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5257 "libvirt-machine.c"
	}
	{
		GVirDomain* _tmp3_ = NULL;
#line 431 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _data36_->domain;
#line 431 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_stop (_tmp3_, (guint) 0, &_inner_error_);
#line 431 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5267 "libvirt-machine.c"
			goto __catch22_g_error;
		}
	}
	goto __finally22;
	__catch22_g_error:
	{
		GError* err = NULL;
		GError* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
#line 429 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		err = _inner_error_;
#line 429 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 433 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = err;
#line 433 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _tmp4_->message;
#line 433 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:433: %s", _tmp5_);
#line 429 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (err);
#line 5289 "libvirt-machine.c"
	}
	__finally22:
#line 429 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 429 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 429 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5298 "libvirt-machine.c"
	}
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = self->priv->_storage_volume;
#line 437 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp6_ != NULL) {
#line 5304 "libvirt-machine.c"
		{
			GVirStorageVol* _tmp7_ = NULL;
#line 439 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = self->priv->_storage_volume;
#line 439 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_storage_vol_delete (_tmp7_, (guint) 0, &_inner_error_);
#line 439 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5313 "libvirt-machine.c"
				goto __catch23_g_error;
			}
		}
		goto __finally23;
		__catch23_g_error:
		{
			GError* err = NULL;
			GError* _tmp8_ = NULL;
			const gchar* _tmp9_ = NULL;
#line 438 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			err = _inner_error_;
#line 438 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_inner_error_ = NULL;
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = err;
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp9_ = _tmp8_->message;
#line 441 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_warning ("libvirt-machine.vala:441: %s", _tmp9_);
#line 438 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_error_free0 (err);
#line 5335 "libvirt-machine.c"
		}
		__finally23:
#line 438 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 438 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 438 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 5344 "libvirt-machine.c"
		}
	}
}


static void ____lambda80__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 420 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda80_ (self, error);
#line 5353 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_delete (BoxesMachine* base, gboolean by_user) {
	BoxesLibvirtMachine * self;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	guint _tmp5_ = 0U;
	gboolean _tmp7_ = FALSE;
#line 405 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 406 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 406 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 406 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = g_strconcat ("delete libvirt machine: ", _tmp1_, NULL);
#line 406 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 406 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:406: %s", _tmp3_);
#line 406 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp3_);
#line 407 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = by_user;
#line 407 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (boxes_libvirt_machine_parent_class)->delete (G_TYPE_CHECK_INSTANCE_CAST (self, BOXES_TYPE_MACHINE, BoxesMachine), _tmp4_);
#line 409 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_set_stats_enable (self, FALSE);
#line 410 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = self->priv->shutdown_timeout;
#line 410 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp5_ != ((guint) 0)) {
#line 5390 "libvirt-machine.c"
		guint _tmp6_ = 0U;
#line 411 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = self->priv->shutdown_timeout;
#line 411 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_source_remove (_tmp6_);
#line 412 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->shutdown_timeout = (guint) 0;
#line 5398 "libvirt-machine.c"
	}
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = by_user;
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp7_) {
#line 5404 "libvirt-machine.c"
		Block36Data* _data36_;
		GVirDomain* _tmp8_ = NULL;
		GVirDomain* _tmp9_ = NULL;
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data36_ = g_slice_new0 (Block36Data);
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data36_->_ref_count_ = 1;
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data36_->self = g_object_ref (self);
#line 416 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = self->priv->_domain;
#line 416 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _g_object_ref0 (_tmp8_);
#line 416 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data36_->domain = _tmp9_;
#line 420 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread (____lambda80__boxes_run_in_thread_func, block36_data_ref (_data36_), block36_data_unref, NULL, NULL);
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block36_data_unref (_data36_);
#line 415 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data36_ = NULL;
#line 5426 "libvirt-machine.c"
	}
}


static void boxes_libvirt_machine_real_save_real_data_free (gpointer _data) {
	BoxesLibvirtMachineSaveRealData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineSaveRealData, _data_);
#line 5438 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_save_real (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineSaveRealData* _data_;
	BoxesLibvirtMachine* _tmp0_ = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineSaveRealData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_real_save_real);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_real_save_real_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_save_real_co (_data_);
#line 5460 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_save_real_finish (BoxesMachine* base, GAsyncResult* _res_, GError** error) {
	BoxesLibvirtMachineSaveRealData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5470 "libvirt-machine.c"
	}
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 5474 "libvirt-machine.c"
}


static void boxes_libvirt_machine_save_real_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineSaveRealData* _data_;
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_save_real_co (_data_);
#line 5488 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_real_save_real_co (BoxesLibvirtMachineSaveRealData* _data_) {
#line 447 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 447 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 5497 "libvirt-machine.c"
		goto _state_0;
#line 447 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 5501 "libvirt-machine.c"
		goto _state_1;
		default:
#line 447 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 5506 "libvirt-machine.c"
	}
	_state_0:
#line 448 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->priv->saving = TRUE;
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = NULL;
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = _data_->self->priv->_domain;
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_state_ = 1;
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gvir_domain_save_async (_data_->_tmp0_, (guint) 0, NULL, boxes_libvirt_machine_save_real_ready, _data_);
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 5521 "libvirt-machine.c"
	_state_1:
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gvir_domain_save_finish (_data_->_tmp0_, _data_->_res_, &_data_->_inner_error_);
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5535 "libvirt-machine.c"
		} else {
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 5539 "libvirt-machine.c"
		}
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 449 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 5545 "libvirt-machine.c"
	}
#line 450 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->priv->saving = FALSE;
#line 447 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 447 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5553 "libvirt-machine.c"
	} else {
#line 447 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 5557 "libvirt-machine.c"
	}
#line 447 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 447 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 5563 "libvirt-machine.c"
}


static void boxes_libvirt_machine_suspend_data_free (gpointer _data) {
	BoxesLibvirtMachineSuspendData* _data_;
	_data_ = _data;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineSuspendData, _data_);
#line 5574 "libvirt-machine.c"
}


void boxes_libvirt_machine_suspend (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineSuspendData* _data_;
	BoxesLibvirtMachine* _tmp0_ = NULL;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineSuspendData);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_suspend);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_suspend_data_free);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_suspend_co (_data_);
#line 5593 "libvirt-machine.c"
}


void boxes_libvirt_machine_suspend_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_, GError** error) {
	BoxesLibvirtMachineSuspendData* _data_;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5603 "libvirt-machine.c"
	}
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 5607 "libvirt-machine.c"
}


static void boxes_libvirt_machine_suspend_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineSuspendData* _data_;
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_suspend_co (_data_);
#line 5621 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_suspend_co (BoxesLibvirtMachineSuspendData* _data_) {
#line 453 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 453 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 5630 "libvirt-machine.c"
		goto _state_0;
#line 453 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 5634 "libvirt-machine.c"
		goto _state_1;
		default:
#line 453 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 5639 "libvirt-machine.c"
	}
	_state_0:
#line 454 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = FALSE;
#line 454 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = boxes_libvirt_machine_get_save_on_quit (_data_->self);
#line 454 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = FALSE;
#line 454 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 454 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp1_) {
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_save ((BoxesMachine*) _data_->self, boxes_libvirt_machine_suspend_ready, _data_);
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 5658 "libvirt-machine.c"
		_state_1:
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_save_finish ((BoxesMachine*) _data_->self, _data_->_res_, &_data_->_inner_error_);
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5672 "libvirt-machine.c"
			} else {
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 5676 "libvirt-machine.c"
			}
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 455 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 5682 "libvirt-machine.c"
		}
	} else {
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_ = NULL;
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_ = _data_->self->priv->_domain;
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_suspend (_data_->_tmp2_, &_data_->_inner_error_);
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5701 "libvirt-machine.c"
			} else {
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 5705 "libvirt-machine.c"
			}
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 457 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 5711 "libvirt-machine.c"
		}
	}
#line 453 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 453 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5718 "libvirt-machine.c"
	} else {
#line 453 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 5722 "libvirt-machine.c"
	}
#line 453 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 453 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 5728 "libvirt-machine.c"
}


void boxes_libvirt_machine_force_shutdown (BoxesLibvirtMachine* self, gboolean confirm) {
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp12_ = NULL;
	const gchar* _tmp13_ = NULL;
	GError * _inner_error_ = NULL;
#line 460 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 461 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = confirm;
#line 461 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 5743 "libvirt-machine.c"
		GtkMessageDialog* dialog = NULL;
		BoxesAppWindow* _tmp1_ = NULL;
		BoxesAppWindow* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		GtkMessageDialog* _tmp4_ = NULL;
		GtkMessageDialog* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gint response = 0;
		GtkMessageDialog* _tmp8_ = NULL;
		gint _tmp9_ = 0;
		GtkMessageDialog* _tmp10_ = NULL;
		gint _tmp11_ = 0;
#line 462 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_machine_get_window ((BoxesMachine*) self);
#line 462 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 462 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _ ("When you force shutdown, the box may lose data.");
#line 462 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) _tmp2_, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, _tmp3_);
#line 462 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_ref_sink (_tmp4_);
#line 462 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		dialog = _tmp4_;
#line 467 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = dialog;
#line 467 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _ ("_Cancel");
#line 467 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _ ("_Shutdown");
#line 467 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_dialog_add_buttons ((GtkDialog*) _tmp5_, _tmp6_, GTK_RESPONSE_CANCEL, _tmp7_, GTK_RESPONSE_OK, NULL);
#line 469 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = dialog;
#line 469 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = gtk_dialog_run ((GtkDialog*) _tmp8_);
#line 469 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		response = _tmp9_;
#line 470 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = dialog;
#line 470 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp10_);
#line 472 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = response;
#line 472 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp11_ != ((gint) GTK_RESPONSE_OK)) {
#line 473 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (dialog);
#line 473 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 5795 "libvirt-machine.c"
		}
#line 461 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (dialog);
#line 5799 "libvirt-machine.c"
	}
#line 476 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 476 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp13_ = _tmp12_;
#line 476 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:476: Force shutdown '%s'..", _tmp13_);
#line 5807 "libvirt-machine.c"
	{
		GVirDomain* _tmp14_ = NULL;
#line 478 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->force_stopped = TRUE;
#line 479 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = self->priv->_domain;
#line 479 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_stop (_tmp14_, (guint) 0, &_inner_error_);
#line 479 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5818 "libvirt-machine.c"
			goto __catch24_g_error;
		}
	}
	goto __finally24;
	__catch24_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
		GError* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
#line 477 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 477 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 481 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = self->priv->_domain;
#line 481 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp16_ = gvir_domain_get_name (_tmp15_);
#line 481 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp17_ = _error_;
#line 481 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp18_ = _tmp17_->message;
#line 481 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:481: Failed to shutdown '%s': %s", _tmp16_, _tmp18_);
#line 477 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 5846 "libvirt-machine.c"
	}
	__finally24:
#line 477 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 477 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 477 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 477 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5857 "libvirt-machine.c"
	}
}


void boxes_libvirt_machine_try_shutdown (BoxesLibvirtMachine* self) {
	GError * _inner_error_ = NULL;
#line 485 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 5866 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_ = NULL;
#line 487 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->priv->_domain;
#line 487 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_shutdown (_tmp0_, (guint) 0, &_inner_error_);
#line 487 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5875 "libvirt-machine.c"
			goto __catch25_g_error;
		}
	}
	goto __finally25;
	__catch25_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		GError* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
#line 486 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 486 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 489 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = self->priv->_domain;
#line 489 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = gvir_domain_get_name (_tmp1_);
#line 489 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _error_;
#line 489 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_->message;
#line 489 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:489: Failed to reboot '%s': %s", _tmp2_, _tmp4_);
#line 486 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 5903 "libvirt-machine.c"
	}
	__finally25:
#line 486 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 486 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 486 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 486 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5914 "libvirt-machine.c"
	}
}


GVirDomainDisk* boxes_libvirt_machine_get_domain_disk (BoxesLibvirtMachine* self, GError** error) {
	GVirDomainDisk* result = NULL;
	GVirDomainDisk* disk = NULL;
	gpointer _tmp0_ = NULL;
	GVirDomainDisk* _tmp1_ = NULL;
	GVirConfigDomain* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	GError * _inner_error_ = NULL;
#line 493 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 494 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = NULL;
#line 494 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, gvir_domain_disk_get_type ()) ? ((GVirDomainDisk*) _tmp0_) : NULL);
#line 494 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	disk = _tmp1_;
#line 496 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = self->priv->_domain_config;
#line 496 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = gvir_config_domain_get_devices (_tmp2_);
#line 5939 "libvirt-machine.c"
	{
		GList* device_config_collection = NULL;
		GList* device_config_it = NULL;
#line 496 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		device_config_collection = _tmp3_;
#line 496 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		for (device_config_it = device_config_collection; device_config_it != NULL; device_config_it = device_config_it->next) {
#line 5947 "libvirt-machine.c"
			GVirConfigDomainDevice* _tmp4_ = NULL;
			GVirConfigDomainDevice* device_config = NULL;
#line 496 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp4_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_config_it->data);
#line 496 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			device_config = _tmp4_;
#line 5954 "libvirt-machine.c"
			{
				GVirConfigDomainDevice* _tmp5_ = NULL;
#line 497 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp5_ = device_config;
#line 497 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gvir_config_domain_disk_get_type ())) {
#line 5961 "libvirt-machine.c"
					GVirConfigDomainDisk* disk_config = NULL;
					GVirConfigDomainDevice* _tmp6_ = NULL;
					GVirConfigDomainDisk* _tmp7_ = NULL;
					GVirConfigDomainDiskGuestDeviceType disk_type = 0;
					GVirConfigDomainDisk* _tmp8_ = NULL;
					GVirConfigDomainDiskGuestDeviceType _tmp9_ = 0;
					const gchar* _tmp10_ = NULL;
					GVirStorageVol* _tmp11_ = NULL;
					gchar* storage_volume_path = NULL;
					gchar* _tmp14_ = NULL;
					gboolean _tmp15_ = FALSE;
					GVirConfigDomainDiskGuestDeviceType _tmp16_ = 0;
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp6_ = device_config;
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, gvir_config_domain_disk_get_type ()) ? ((GVirConfigDomainDisk*) _tmp6_) : NULL);
#line 498 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					disk_config = _tmp7_;
#line 499 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp8_ = disk_config;
#line 499 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp9_ = gvir_config_domain_disk_get_guest_device_type (_tmp8_);
#line 499 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					disk_type = _tmp9_;
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp11_ = self->priv->_storage_volume;
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_tmp11_ != NULL) {
#line 5990 "libvirt-machine.c"
						GVirStorageVol* _tmp12_ = NULL;
						const gchar* _tmp13_ = NULL;
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp12_ = self->priv->_storage_volume;
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp13_ = gvir_storage_vol_get_path (_tmp12_, &_inner_error_);
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp10_ = _tmp13_;
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							g_propagate_error (error, _inner_error_);
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (disk_config);
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (device_config);
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							__g_list_free__g_object_unref0_0 (device_config_collection);
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (disk);
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							return NULL;
#line 6013 "libvirt-machine.c"
						}
					} else {
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp10_ = NULL;
#line 6018 "libvirt-machine.c"
					}
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp14_ = g_strdup (_tmp10_);
#line 500 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					storage_volume_path = _tmp14_;
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp16_ = disk_type;
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_tmp16_ == GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK) {
#line 6028 "libvirt-machine.c"
						GVirConfigDomainDisk* _tmp17_ = NULL;
						const gchar* _tmp18_ = NULL;
						const gchar* _tmp19_ = NULL;
#line 504 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp17_ = disk_config;
#line 504 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp18_ = gvir_config_domain_disk_get_source (_tmp17_);
#line 504 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp19_ = storage_volume_path;
#line 504 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp15_ = g_strcmp0 (_tmp18_, _tmp19_) == 0;
#line 6040 "libvirt-machine.c"
					} else {
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp15_ = FALSE;
#line 6044 "libvirt-machine.c"
					}
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_tmp15_) {
#line 6048 "libvirt-machine.c"
						GVirDomain* _tmp20_ = NULL;
						GVirConfigDomainDevice* _tmp21_ = NULL;
						GObject* _tmp22_ = NULL;
						GObject* _tmp23_ = NULL;
						GVirDomainDisk* _tmp24_ = NULL;
#line 505 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp20_ = self->priv->_domain;
#line 505 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp21_ = device_config;
#line 505 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp22_ = g_object_new (gvir_domain_disk_get_type (), "domain", _tmp20_, "config", _tmp21_, NULL);
#line 505 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp23_ = G_IS_INITIALLY_UNOWNED (_tmp22_) ? g_object_ref_sink (_tmp22_) : _tmp22_;
#line 505 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp24_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, gvir_domain_disk_get_type ()) ? ((GVirDomainDisk*) _tmp23_) : NULL;
#line 505 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						if (_tmp24_ == NULL) {
#line 505 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (_tmp23_);
#line 6068 "libvirt-machine.c"
						}
#line 505 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (disk);
#line 505 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						disk = _tmp24_;
#line 509 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_free0 (storage_volume_path);
#line 509 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (disk_config);
#line 509 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (device_config);
#line 509 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						break;
#line 6082 "libvirt-machine.c"
					}
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (storage_volume_path);
#line 503 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (disk_config);
#line 6088 "libvirt-machine.c"
				}
#line 497 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (device_config);
#line 6092 "libvirt-machine.c"
			}
		}
#line 497 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__g_list_free__g_object_unref0_0 (device_config_collection);
#line 6097 "libvirt-machine.c"
	}
#line 514 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = disk;
#line 514 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 6103 "libvirt-machine.c"
}


static GVirDomainInterface* boxes_libvirt_machine_get_domain_network_interface (BoxesLibvirtMachine* self, GError** error) {
	GVirDomainInterface* result = NULL;
	GVirDomainInterface* net = NULL;
	gpointer _tmp0_ = NULL;
	GVirDomainInterface* _tmp1_ = NULL;
	GVirConfigDomain* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 518 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = NULL;
#line 518 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, gvir_domain_interface_get_type ()) ? ((GVirDomainInterface*) _tmp0_) : NULL);
#line 518 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	net = _tmp1_;
#line 521 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = self->priv->_domain_config;
#line 521 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = gvir_config_domain_get_devices (_tmp2_);
#line 6126 "libvirt-machine.c"
	{
		GList* device_config_collection = NULL;
		GList* device_config_it = NULL;
#line 521 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		device_config_collection = _tmp3_;
#line 521 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		for (device_config_it = device_config_collection; device_config_it != NULL; device_config_it = device_config_it->next) {
#line 6134 "libvirt-machine.c"
			GVirConfigDomainDevice* _tmp4_ = NULL;
			GVirConfigDomainDevice* device_config = NULL;
#line 521 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp4_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_config_it->data);
#line 521 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			device_config = _tmp4_;
#line 6141 "libvirt-machine.c"
			{
				GVirConfigDomainDevice* _tmp5_ = NULL;
#line 522 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp5_ = device_config;
#line 522 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gvir_config_domain_interface_get_type ())) {
#line 6148 "libvirt-machine.c"
					GVirDomain* _tmp6_ = NULL;
					GVirConfigDomainDevice* _tmp7_ = NULL;
					GObject* _tmp8_ = NULL;
					GObject* _tmp9_ = NULL;
					GVirDomainInterface* _tmp10_ = NULL;
#line 523 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp6_ = self->priv->_domain;
#line 523 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp7_ = device_config;
#line 523 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp8_ = g_object_new (gvir_domain_interface_get_type (), "domain", _tmp6_, "config", _tmp7_, NULL);
#line 523 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp9_ = G_IS_INITIALLY_UNOWNED (_tmp8_) ? g_object_ref_sink (_tmp8_) : _tmp8_;
#line 523 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp10_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, gvir_domain_interface_get_type ()) ? ((GVirDomainInterface*) _tmp9_) : NULL;
#line 523 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_tmp10_ == NULL) {
#line 523 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (_tmp9_);
#line 6168 "libvirt-machine.c"
					}
#line 523 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (net);
#line 523 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					net = _tmp10_;
#line 526 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (device_config);
#line 526 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					break;
#line 6178 "libvirt-machine.c"
				}
#line 522 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (device_config);
#line 6182 "libvirt-machine.c"
			}
		}
#line 522 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__g_list_free__g_object_unref0_0 (device_config_collection);
#line 6187 "libvirt-machine.c"
	}
#line 530 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = net;
#line 530 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 6193 "libvirt-machine.c"
}


static GVirDomainStartFlags boxes_libvirt_machine_connect_flags_to_gvir (BoxesLibvirtMachine* self, BoxesMachineConnectFlags flags) {
	GVirDomainStartFlags result = 0;
	GVirDomainStartFlags gvir_flags = 0;
	BoxesMachineConnectFlags _tmp0_ = 0;
#line 533 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 534 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gvir_flags = 0;
#line 535 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = flags;
#line 535 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((_tmp0_ & BOXES_MACHINE_CONNECT_FLAGS_IGNORE_SAVED_STATE) == BOXES_MACHINE_CONNECT_FLAGS_IGNORE_SAVED_STATE) {
#line 6209 "libvirt-machine.c"
		GVirDomainStartFlags _tmp1_ = 0;
#line 536 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_flags;
#line 536 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_flags = _tmp1_ | GVIR_DOMAIN_START_FORCE_BOOT;
#line 6215 "libvirt-machine.c"
	}
#line 537 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = gvir_flags;
#line 537 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 6221 "libvirt-machine.c"
}


static void boxes_libvirt_machine_start_data_free (gpointer _data) {
	BoxesLibvirtMachineStartData* _data_;
	_data_ = _data;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->cancellable);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineStartData, _data_);
#line 6234 "libvirt-machine.c"
}


void boxes_libvirt_machine_start (BoxesLibvirtMachine* self, BoxesMachineConnectFlags flags, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineStartData* _data_;
	BoxesLibvirtMachine* _tmp0_ = NULL;
	BoxesMachineConnectFlags _tmp1_ = 0;
	GCancellable* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineStartData);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_start);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_start_data_free);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = flags;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->flags = _tmp1_;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = cancellable;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->cancellable);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->cancellable = _tmp3_;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_start_co (_data_);
#line 6268 "libvirt-machine.c"
}


void boxes_libvirt_machine_start_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_, GError** error) {
	BoxesLibvirtMachineStartData* _data_;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 6278 "libvirt-machine.c"
	}
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 6282 "libvirt-machine.c"
}


static void boxes_libvirt_machine_start_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtMachineStartData* _data_;
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = _user_data_;
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_res_ = _res_;
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_start_co (_data_);
#line 6296 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_start_co (BoxesLibvirtMachineStartData* _data_) {
#line 540 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 540 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 6305 "libvirt-machine.c"
		goto _state_0;
#line 540 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 6309 "libvirt-machine.c"
		goto _state_1;
#line 540 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 2:
#line 6313 "libvirt-machine.c"
		goto _state_2;
#line 540 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 3:
#line 6317 "libvirt-machine.c"
		goto _state_3;
		default:
#line 540 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 6322 "libvirt-machine.c"
	}
	_state_0:
#line 541 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = 0;
#line 541 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 541 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = 0;
#line 541 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 541 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp1_ == BOXES_MACHINE_MACHINE_STATE_RUNNING) {
#line 542 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 542 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 6339 "libvirt-machine.c"
		} else {
#line 542 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 6343 "libvirt-machine.c"
		}
#line 542 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 542 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 6349 "libvirt-machine.c"
	}
#line 544 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = 0;
#line 544 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 544 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp3_ = 0;
#line 544 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 544 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp3_ == BOXES_MACHINE_MACHINE_STATE_PAUSED) {
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = NULL;
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->self->priv->_domain;
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = NULL;
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->cancellable;
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_resume_async (_data_->_tmp4_, _data_->_tmp5_, boxes_libvirt_machine_start_ready, _data_);
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 6375 "libvirt-machine.c"
		_state_1:
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_resume_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 6389 "libvirt-machine.c"
			} else {
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 6393 "libvirt-machine.c"
			}
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 545 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 6399 "libvirt-machine.c"
		}
	} else {
#line 546 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = 0;
#line 546 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 546 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = 0;
#line 546 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = _data_->_tmp6_;
#line 546 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp7_ == BOXES_MACHINE_MACHINE_STATE_SLEEPING) {
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp8_ = NULL;
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp8_ = _data_->self->priv->_domain;
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp9_ = NULL;
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp9_ = _data_->cancellable;
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_state_ = 2;
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_wakeup_async (_data_->_tmp8_, (guint) 0, _data_->_tmp9_, boxes_libvirt_machine_start_ready, _data_);
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 6426 "libvirt-machine.c"
			_state_2:
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_wakeup_finish (_data_->_tmp8_, _data_->_res_, &_data_->_inner_error_);
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 6440 "libvirt-machine.c"
				} else {
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 6444 "libvirt-machine.c"
				}
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 547 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 6450 "libvirt-machine.c"
			}
		} else {
#line 549 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp11_ = NULL;
#line 549 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp11_ = _data_->self->priv->_domain;
#line 549 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp12_ = FALSE;
#line 549 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp12_ = gvir_domain_get_saved (_data_->_tmp11_);
#line 549 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_tmp12_) {
#line 550 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp13_ = 0;
#line 550 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp13_ = _data_->flags;
#line 550 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp10_ = !((_data_->_tmp13_ & BOXES_MACHINE_CONNECT_FLAGS_IGNORE_SAVED_STATE) == BOXES_MACHINE_CONNECT_FLAGS_IGNORE_SAVED_STATE);
#line 6469 "libvirt-machine.c"
			} else {
#line 549 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp10_ = FALSE;
#line 6473 "libvirt-machine.c"
			}
#line 549 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->restore = _data_->_tmp10_;
#line 551 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp14_ = FALSE;
#line 551 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp14_ = _data_->restore;
#line 551 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_tmp14_) {
#line 553 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp15_ = NULL;
#line 553 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp15_ = _ ("Restoring %s from disk");
#line 553 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp16_ = NULL;
#line 553 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp16_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 553 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp17_ = NULL;
#line 553 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 553 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp18_ = NULL;
#line 553 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp18_ = g_strdup_printf (_data_->_tmp15_, _data_->_tmp17_);
#line 553 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp19_ = NULL;
#line 553 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp19_ = _data_->_tmp18_;
#line 553 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_status ((BoxesMachine*) _data_->self, _data_->_tmp19_);
#line 553 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_data_->_tmp19_);
#line 6507 "libvirt-machine.c"
			} else {
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp20_ = NULL;
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp20_ = _ ("Starting %s");
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp21_ = NULL;
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp21_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp22_ = NULL;
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp22_ = _data_->_tmp21_;
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp23_ = NULL;
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp23_ = g_strdup_printf (_data_->_tmp20_, _data_->_tmp22_);
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp24_ = NULL;
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp24_ = _data_->_tmp23_;
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_status ((BoxesMachine*) _data_->self, _data_->_tmp24_);
#line 556 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_data_->_tmp24_);
#line 6533 "libvirt-machine.c"
			}
			{
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp25_ = NULL;
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp25_ = _data_->self->priv->_domain;
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp26_ = 0;
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp26_ = _data_->flags;
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp27_ = 0;
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp27_ = boxes_libvirt_machine_connect_flags_to_gvir (_data_->self, _data_->_tmp26_);
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp28_ = NULL;
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp28_ = _data_->cancellable;
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_state_ = 3;
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				gvir_domain_start_async (_data_->_tmp25_, (guint) _data_->_tmp27_, _data_->_tmp28_, boxes_libvirt_machine_start_ready, _data_);
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 6558 "libvirt-machine.c"
				_state_3:
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				gvir_domain_start_finish (_data_->_tmp25_, _data_->_res_, &_data_->_inner_error_);
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 558 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 6566 "libvirt-machine.c"
						goto __catch26_g_io_error_cancelled;
					}
					goto __catch26_g_error;
				}
			}
			goto __finally26;
			__catch26_g_io_error_cancelled:
			{
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_error_ = _data_->_inner_error_;
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_inner_error_ = NULL;
#line 560 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp29_ = NULL;
#line 560 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp29_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 560 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp30_ = NULL;
#line 560 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp30_ = _data_->_tmp29_;
#line 560 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_debug ("libvirt-machine.vala:560: starting of %s was cancelled", _data_->_tmp30_);
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_error_free0 (_data_->_error_);
#line 6591 "libvirt-machine.c"
			}
			goto __finally26;
			__catch26_g_error:
			{
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_vala1__error_ = _data_->_inner_error_;
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_inner_error_ = NULL;
#line 562 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp31_ = FALSE;
#line 562 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp31_ = _data_->restore;
#line 562 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_tmp31_) {
#line 563 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_tmp32_ = NULL;
#line 563 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_tmp32_ = _data_->_vala1__error_;
#line 563 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_tmp33_ = NULL;
#line 563 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_tmp33_ = _data_->_tmp32_->message;
#line 563 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_tmp34_ = NULL;
#line 563 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_tmp34_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_RESTORE_FAILED, _data_->_tmp33_);
#line 563 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_inner_error_ = _data_->_tmp34_;
#line 563 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_error_free0 (_data_->_vala1__error_);
#line 6622 "libvirt-machine.c"
					goto __finally26;
				} else {
#line 565 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_tmp35_ = NULL;
#line 565 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_tmp35_ = _data_->_vala1__error_;
#line 565 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_tmp36_ = NULL;
#line 565 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_tmp36_ = _data_->_tmp35_->message;
#line 565 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_tmp37_ = NULL;
#line 565 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_tmp37_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_START_FAILED, _data_->_tmp36_);
#line 565 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_data_->_inner_error_ = _data_->_tmp37_;
#line 565 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_error_free0 (_data_->_vala1__error_);
#line 6641 "libvirt-machine.c"
					goto __finally26;
				}
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_error_free0 (_data_->_vala1__error_);
#line 6646 "libvirt-machine.c"
			}
			__finally26:
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 6659 "libvirt-machine.c"
				} else {
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 6663 "libvirt-machine.c"
				}
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 557 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 6669 "libvirt-machine.c"
			}
		}
	}
#line 540 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 540 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 6677 "libvirt-machine.c"
	} else {
#line 540 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 6681 "libvirt-machine.c"
	}
#line 540 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 540 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 6687 "libvirt-machine.c"
}


static Block37Data* block37_data_ref (Block37Data* _data37_) {
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data37_->_ref_count_);
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data37_;
#line 6696 "libvirt-machine.c"
}


static void block37_data_unref (void * _userdata_) {
	Block37Data* _data37_;
	_data37_ = (Block37Data*) _userdata_;
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data37_->_ref_count_)) {
#line 6705 "libvirt-machine.c"
		BoxesLibvirtMachine* self;
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data37_->self;
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data37_->notification);
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block37Data, _data37_);
#line 6715 "libvirt-machine.c"
	}
}


static void ___lambda164_ (BoxesLibvirtMachine* self, GObject* obj, GAsyncResult* res) {
	GError * _inner_error_ = NULL;
#line 573 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (res != NULL);
#line 6724 "libvirt-machine.c"
	{
		GAsyncResult* _tmp0_ = NULL;
#line 575 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = res;
#line 575 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_start_finish (self, _tmp0_, &_inner_error_);
#line 575 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6733 "libvirt-machine.c"
			goto __catch27_g_error;
		}
#line 576 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_restart ((BoxesMachine*) self);
#line 6738 "libvirt-machine.c"
	}
	goto __finally27;
	__catch27_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		GError* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
#line 574 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 574 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 578 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = self->priv->_domain;
#line 578 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = gvir_domain_get_name (_tmp1_);
#line 578 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _error_;
#line 578 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_->message;
#line 578 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:578: Failed to start '%s': %s", _tmp2_, _tmp4_);
#line 574 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 6764 "libvirt-machine.c"
	}
	__finally27:
#line 574 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 574 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 574 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 574 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 6775 "libvirt-machine.c"
	}
}


static void ____lambda164__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 573 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda164_ ((BoxesLibvirtMachine*) self, source_object, res);
#line 573 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (self);
#line 6785 "libvirt-machine.c"
}


static void ___lambda166_ (BoxesLibvirtMachine* self, GObject* obj, GAsyncResult* res) {
	GError * _inner_error_ = NULL;
#line 594 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (res != NULL);
#line 6793 "libvirt-machine.c"
	{
		GAsyncResult* _tmp0_ = NULL;
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = res;
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_start_finish (self, _tmp0_, &_inner_error_);
#line 596 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6802 "libvirt-machine.c"
			goto __catch28_g_error;
		}
	}
	goto __finally28;
	__catch28_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		GError* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
#line 595 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 595 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = self->priv->_domain;
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = gvir_domain_get_name (_tmp1_);
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _error_;
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_->message;
#line 598 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:598: Failed to start '%s': %s", _tmp2_, _tmp4_);
#line 595 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 6830 "libvirt-machine.c"
	}
	__finally28:
#line 595 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 595 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 595 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 595 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 6841 "libvirt-machine.c"
	}
}


static void ____lambda166__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 594 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda166_ ((BoxesLibvirtMachine*) self, source_object, res);
#line 594 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (self);
#line 6851 "libvirt-machine.c"
}


static void __lambda165_ (Block37Data* _data37_) {
	BoxesLibvirtMachine* self;
	gboolean _tmp0_ = FALSE;
	BoxesMachineMachineState _tmp1_ = 0;
	BoxesMachineMachineState _tmp2_ = 0;
#line 590 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data37_->self;
#line 591 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 591 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 591 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp2_ == BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 591 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = TRUE;
#line 6870 "libvirt-machine.c"
	} else {
		BoxesMachineMachineState _tmp3_ = 0;
		BoxesMachineMachineState _tmp4_ = 0;
#line 592 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 592 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 592 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = _tmp4_ == BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED;
#line 6880 "libvirt-machine.c"
	}
#line 591 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 6884 "libvirt-machine.c"
		const gchar* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		gulong _tmp7_ = 0UL;
		guint _tmp8_ = 0U;
		GdNotification* _tmp10_ = NULL;
#line 593 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 593 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _tmp5_;
#line 593 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:593: '%s' stopped.", _tmp6_);
#line 594 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_start (self, BOXES_MACHINE_CONNECT_FLAGS_NONE, NULL, ____lambda166__gasync_ready_callback, g_object_ref (self));
#line 602 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _data37_->state_id;
#line 602 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_signal_handler_disconnect ((GObject*) self, _tmp7_);
#line 603 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = self->priv->shutdown_timeout;
#line 603 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp8_ != ((guint) 0)) {
#line 6906 "libvirt-machine.c"
			guint _tmp9_ = 0U;
#line 604 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp9_ = self->priv->shutdown_timeout;
#line 604 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_source_remove (_tmp9_);
#line 605 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			self->priv->shutdown_timeout = (guint) 0;
#line 6914 "libvirt-machine.c"
		}
#line 607 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = _data37_->notification;
#line 607 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp10_ != NULL) {
#line 6920 "libvirt-machine.c"
			GdNotification* _tmp11_ = NULL;
#line 608 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp11_ = _data37_->notification;
#line 608 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gd_notification_dismiss (_tmp11_);
#line 609 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (_data37_->notification);
#line 609 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data37_->notification = NULL;
#line 6930 "libvirt-machine.c"
		}
	}
}


static void ___lambda165__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 590 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda165_ (self);
#line 6939 "libvirt-machine.c"
}


static void __lambda168_ (Block37Data* _data37_) {
	BoxesLibvirtMachine* self;
#line 616 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data37_->self;
#line 617 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data37_->notification);
#line 617 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data37_->notification = NULL;
#line 618 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_force_shutdown (self, FALSE);
#line 6953 "libvirt-machine.c"
}


static void ___lambda168__boxes_notification_ok_func (gpointer self) {
#line 616 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda168_ (self);
#line 6960 "libvirt-machine.c"
}


static gboolean __lambda167_ (Block37Data* _data37_) {
	BoxesLibvirtMachine* self;
	gboolean result = FALSE;
	BoxesNotificationOKFunc really_force_shutdown = NULL;
	void* really_force_shutdown_target = NULL;
	GDestroyNotify really_force_shutdown_target_destroy_notify = NULL;
	gchar* message = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	BoxesAppWindow* _tmp4_ = NULL;
	BoxesAppWindow* _tmp5_ = NULL;
	BoxesNotificationbar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	BoxesNotificationOKFunc _tmp8_ = NULL;
	void* _tmp8__target = NULL;
	GDestroyNotify _tmp8__target_destroy_notify = NULL;
	GdNotification* _tmp9_ = NULL;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data37_->self;
#line 616 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown = ___lambda168__boxes_notification_ok_func;
#line 616 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target = block37_data_ref (_data37_);
#line 616 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target_destroy_notify = block37_data_unref;
#line 621 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _ ("Restart of '%s' is taking too long. Force it to shutdown?");
#line 621 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 621 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 621 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = g_strdup_printf (_tmp0_, _tmp2_);
#line 621 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	message = _tmp3_;
#line 622 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = boxes_machine_get_window ((BoxesMachine*) self);
#line 622 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_;
#line 622 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = _tmp5_->notificationbar;
#line 622 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = _ ("_Shutdown");
#line 622 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = really_force_shutdown;
#line 622 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8__target = really_force_shutdown_target;
#line 622 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8__target_destroy_notify = really_force_shutdown_target_destroy_notify;
#line 622 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target_destroy_notify = NULL;
#line 622 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = boxes_notificationbar_display_for_action (_tmp6_, message, _tmp7_, _tmp8_, _tmp8__target, _tmp8__target_destroy_notify, NULL, NULL, NULL, -1);
#line 622 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data37_->notification);
#line 622 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data37_->notification = _tmp9_;
#line 627 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->shutdown_timeout = (guint) 0;
#line 629 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = FALSE;
#line 629 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (message);
#line 629 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(really_force_shutdown_target_destroy_notify == NULL) ? NULL : (really_force_shutdown_target_destroy_notify (really_force_shutdown_target), NULL);
#line 629 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown = NULL;
#line 629 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target = NULL;
#line 629 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target_destroy_notify = NULL;
#line 629 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7039 "libvirt-machine.c"
}


static gboolean ___lambda167__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda167_ (self);
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7048 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_restart (BoxesMachine* base) {
	BoxesLibvirtMachine * self;
	Block37Data* _data37_;
	BoxesMachineMachineState _tmp0_ = 0;
	BoxesMachineMachineState _tmp1_ = 0;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	gulong _tmp6_ = 0UL;
	guint _tmp7_ = 0U;
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data37_ = g_slice_new0 (Block37Data);
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data37_->_ref_count_ = 1;
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data37_->self = g_object_ref (self);
#line 571 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 571 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 571 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == BOXES_MACHINE_MACHINE_STATE_SAVED) {
#line 7075 "libvirt-machine.c"
		const gchar* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
#line 572 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 572 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _tmp2_;
#line 572 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:572: '%s' is in saved state. Resuming it..", _tmp3_);
#line 573 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_start (self, BOXES_MACHINE_CONNECT_FLAGS_NONE, NULL, ____lambda164__gasync_ready_callback, g_object_ref (self));
#line 582 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block37_data_unref (_data37_);
#line 582 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data37_ = NULL;
#line 582 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 7092 "libvirt-machine.c"
	}
#line 585 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachine*) self)->stay_on_display = TRUE;
#line 586 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data37_->state_id = (gulong) 0;
#line 587 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data37_->notification = NULL;
#line 588 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 588 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_;
#line 588 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:588: Rebooting '%s'..", _tmp5_);
#line 590 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = g_signal_connect_data ((GObject*) self, "notify::state", (GCallback) ___lambda165__g_object_notify, block37_data_ref (_data37_), (GClosureNotify) block37_data_unref, 0);
#line 590 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data37_->state_id = _tmp6_;
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda167__gsource_func, block37_data_ref (_data37_), block37_data_unref);
#line 614 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->shutdown_timeout = _tmp7_;
#line 632 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_try_shutdown (self);
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block37_data_unref (_data37_);
#line 570 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data37_ = NULL;
#line 7120 "libvirt-machine.c"
}


static void boxes_libvirt_machine_wait_for_save_data_free (gpointer _data) {
	BoxesLibvirtMachineWaitForSaveData* _data_;
	_data_ = _data;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineWaitForSaveData, _data_);
#line 7131 "libvirt-machine.c"
}


static void boxes_libvirt_machine_wait_for_save (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineWaitForSaveData* _data_;
	BoxesLibvirtMachine* _tmp0_ = NULL;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineWaitForSaveData);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_machine_wait_for_save);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_machine_wait_for_save_data_free);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_wait_for_save_co (_data_);
#line 7150 "libvirt-machine.c"
}


static void boxes_libvirt_machine_wait_for_save_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_) {
	BoxesLibvirtMachineWaitForSaveData* _data_;
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 7158 "libvirt-machine.c"
}


static Block38Data* block38_data_ref (Block38Data* _data38_) {
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data38_->_ref_count_);
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data38_;
#line 7167 "libvirt-machine.c"
}


static void block38_data_unref (void * _userdata_) {
	Block38Data* _data38_;
	_data38_ = (Block38Data*) _userdata_;
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data38_->_ref_count_)) {
#line 7176 "libvirt-machine.c"
		BoxesLibvirtMachine* self;
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data38_->self;
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block38Data, _data38_);
#line 7184 "libvirt-machine.c"
	}
}


static void __lambda154_ (Block38Data* _data38_) {
	BoxesLibvirtMachine* self;
	BoxesMachineMachineState _tmp0_ = 0;
	BoxesMachineMachineState _tmp1_ = 0;
#line 639 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data38_->self;
#line 640 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 640 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 640 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == BOXES_MACHINE_MACHINE_STATE_SAVED) {
#line 641 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_wait_for_save_co (_data38_->_async_data_);
#line 7203 "libvirt-machine.c"
	}
}


static void ___lambda154__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 639 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda154_ (self);
#line 7211 "libvirt-machine.c"
}


static gboolean __lambda156_ (Block38Data* _data38_) {
	BoxesLibvirtMachine* self;
	gboolean result = FALSE;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data38_->self;
#line 648 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_wait_for_save_co (_data38_->_async_data_);
#line 650 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = FALSE;
#line 650 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7226 "libvirt-machine.c"
}


static gboolean ___lambda156__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda156_ (self);
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7235 "libvirt-machine.c"
}


static void __lambda155_ (Block38Data* _data38_) {
	BoxesLibvirtMachine* self;
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data38_->self;
#line 644 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda156__gsource_func, block38_data_ref (_data38_), block38_data_unref);
#line 7245 "libvirt-machine.c"
}


static void ___lambda155__g_cancellable_cancelled (GCancellable* _sender, gpointer self) {
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda155_ (self);
#line 7252 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_wait_for_save_co (BoxesLibvirtMachineWaitForSaveData* _data_) {
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 7261 "libvirt-machine.c"
		goto _state_0;
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 7265 "libvirt-machine.c"
		goto _state_1;
		default:
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 7270 "libvirt-machine.c"
	}
	_state_0:
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data38_ = g_slice_new0 (Block38Data);
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data38_->_ref_count_ = 1;
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data38_->self = g_object_ref (_data_->self);
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data38_->_async_data_ = _data_;
#line 636 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = FALSE;
#line 636 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = _data_->self->priv->saving;
#line 636 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (!_data_->_tmp0_) {
#line 637 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block38_data_unref (_data_->_data38_);
#line 637 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data38_ = NULL;
#line 637 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 637 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7295 "libvirt-machine.c"
		} else {
#line 637 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 7299 "libvirt-machine.c"
		}
#line 637 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 637 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 7305 "libvirt-machine.c"
	}
#line 639 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = 0UL;
#line 639 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = g_signal_connect_data ((GObject*) _data_->self, "notify::state", (GCallback) ___lambda154__g_object_notify, block38_data_ref (_data_->_data38_), (GClosureNotify) block38_data_unref, 0);
#line 639 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->state_notify_id = _data_->_tmp1_;
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = NULL;
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp3_ = NULL;
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp4_ = 0UL;
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp4_ = g_signal_connect_data (_data_->_tmp3_, "cancelled", (GCallback) ___lambda155__g_cancellable_cancelled, block38_data_ref (_data_->_data38_), (GClosureNotify) block38_data_unref, 0);
#line 643 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->cancelled_id = _data_->_tmp4_;
#line 654 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp5_ = NULL;
#line 654 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp5_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 654 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp6_ = NULL;
#line 654 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 654 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:654: %s is being saved, delaying starting untill " \
"its saved", _data_->_tmp6_);
#line 655 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_state_ = 1;
#line 655 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 7341 "libvirt-machine.c"
	_state_1:
	;
#line 657 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp7_ = 0UL;
#line 657 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp7_ = _data_->state_notify_id;
#line 657 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_handler_disconnect ((GObject*) _data_->self, _data_->_tmp7_);
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp8_ = NULL;
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp8_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp9_ = NULL;
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp9_ = _data_->_tmp8_;
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp10_ = 0UL;
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp10_ = _data_->cancelled_id;
#line 658 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_cancellable_disconnect (_data_->_tmp9_, _data_->_tmp10_);
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block38_data_unref (_data_->_data38_);
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data38_ = NULL;
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7372 "libvirt-machine.c"
	} else {
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 7376 "libvirt-machine.c"
	}
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 635 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 7382 "libvirt-machine.c"
}


GVirDomain* boxes_libvirt_machine_get_domain (BoxesLibvirtMachine* self) {
	GVirDomain* result;
	GVirDomain* _tmp0_ = NULL;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->_domain;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _tmp0_;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7397 "libvirt-machine.c"
}


void boxes_libvirt_machine_set_domain (BoxesLibvirtMachine* self, GVirDomain* value) {
	GVirDomain* _tmp0_ = NULL;
	GVirDomain* _tmp1_ = NULL;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = value;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->_domain);
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->_domain = _tmp1_;
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_notify ((GObject *) self, "domain");
#line 7416 "libvirt-machine.c"
}


GVirConfigDomain* boxes_libvirt_machine_get_domain_config (BoxesLibvirtMachine* self) {
	GVirConfigDomain* result;
	GVirConfigDomain* _tmp0_ = NULL;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->_domain_config;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _tmp0_;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7431 "libvirt-machine.c"
}


void boxes_libvirt_machine_set_domain_config (BoxesLibvirtMachine* self, GVirConfigDomain* value) {
	GVirConfigDomain* _tmp0_ = NULL;
	GVirConfigDomain* _tmp1_ = NULL;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = value;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->_domain_config);
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->_domain_config = _tmp1_;
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_notify ((GObject *) self, "domain-config");
#line 7450 "libvirt-machine.c"
}


GVirConnection* boxes_libvirt_machine_get_connection (BoxesLibvirtMachine* self) {
	GVirConnection* result;
	GVirConnection* _tmp0_ = NULL;
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->_connection;
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _tmp0_;
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7465 "libvirt-machine.c"
}


void boxes_libvirt_machine_set_connection (BoxesLibvirtMachine* self, GVirConnection* value) {
	GVirConnection* _tmp0_ = NULL;
	GVirConnection* _tmp1_ = NULL;
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = value;
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->_connection);
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->_connection = _tmp1_;
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_notify ((GObject *) self, "connection");
#line 7484 "libvirt-machine.c"
}


GVirStorageVol* boxes_libvirt_machine_get_storage_volume (BoxesLibvirtMachine* self) {
	GVirStorageVol* result;
	GVirStorageVol* _tmp0_ = NULL;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->_storage_volume;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _tmp0_;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7499 "libvirt-machine.c"
}


void boxes_libvirt_machine_set_storage_volume (BoxesLibvirtMachine* self, GVirStorageVol* value) {
	GVirStorageVol* _tmp0_ = NULL;
	GVirStorageVol* _tmp1_ = NULL;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = value;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->_storage_volume);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->_storage_volume = _tmp1_;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_notify ((GObject *) self, "storage-volume");
#line 7518 "libvirt-machine.c"
}


BoxesVMCreator* boxes_libvirt_machine_get_vm_creator (BoxesLibvirtMachine* self) {
	BoxesVMCreator* result;
	BoxesVMCreator* _tmp0_ = NULL;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->_vm_creator;
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _tmp0_;
#line 13 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7533 "libvirt-machine.c"
}


static gpointer _boxes_vm_creator_ref0 (gpointer self) {
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self ? boxes_vm_creator_ref (self) : NULL;
#line 7540 "libvirt-machine.c"
}


void boxes_libvirt_machine_set_vm_creator (BoxesLibvirtMachine* self, BoxesVMCreator* value) {
	BoxesVMCreator* _tmp0_ = NULL;
	BoxesVMCreator* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	BoxesVMCreator* _tmp5_ = NULL;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = value;
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _boxes_vm_creator_ref0 (_tmp0_);
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_boxes_vm_creator_unref0 (self->priv->_vm_creator);
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->_vm_creator = _tmp1_;
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = boxes_libvirt_machine_get_importing (self);
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_can_delete ((BoxesMachine*) self, !_tmp3_);
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = value;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp5_ != NULL) {
#line 7571 "libvirt-machine.c"
		GVirConfigDomain* _tmp6_ = NULL;
		gboolean _tmp7_ = FALSE;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = self->priv->_domain_config;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = boxes_vm_configurator_is_live_config (_tmp6_);
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = !_tmp7_;
#line 7580 "libvirt-machine.c"
	} else {
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = FALSE;
#line 7584 "libvirt-machine.c"
	}
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_under_construction ((BoxesMachine*) self, _tmp4_);
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_notify ((GObject *) self, "vm-creator");
#line 7590 "libvirt-machine.c"
}


gboolean boxes_libvirt_machine_get_importing (BoxesLibvirtMachine* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
	BoxesVMCreator* _tmp1_ = NULL;
	BoxesVMCreator* _tmp2_ = NULL;
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_libvirt_machine_get_vm_creator (self);
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp2_ != NULL) {
#line 7607 "libvirt-machine.c"
		BoxesVMCreator* _tmp3_ = NULL;
		BoxesVMCreator* _tmp4_ = NULL;
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = boxes_libvirt_machine_get_vm_creator (self);
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, BOXES_TYPE_VM_IMPORTER);
#line 7616 "libvirt-machine.c"
	} else {
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = FALSE;
#line 7620 "libvirt-machine.c"
	}
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _tmp0_;
#line 23 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7626 "libvirt-machine.c"
}


gboolean boxes_libvirt_machine_get_save_on_quit (BoxesLibvirtMachine* self) {
	gboolean result;
	BoxesCollectionSource* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = ((BoxesMachine*) self)->source;
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_iconfig_get_boolean ((BoxesIConfig*) _tmp0_, "source", "save-on-quit", FALSE);
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _tmp1_;
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7644 "libvirt-machine.c"
}


void boxes_libvirt_machine_set_save_on_quit (BoxesLibvirtMachine* self, gboolean value) {
	BoxesCollectionSource* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = ((BoxesMachine*) self)->source;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = value;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_iconfig_set_boolean ((BoxesIConfig*) _tmp0_, "source", "save-on-quit", _tmp1_);
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_notify ((GObject *) self, "save-on-quit");
#line 7661 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_real_get_can_save (BoxesMachine* base) {
	gboolean result;
	BoxesLibvirtMachine* self;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = self->priv->saving;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (!_tmp1_) {
#line 7676 "libvirt-machine.c"
		BoxesMachineMachineState _tmp2_ = 0;
		BoxesMachineMachineState _tmp3_ = 0;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _tmp2_;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = _tmp3_ != BOXES_MACHINE_MACHINE_STATE_SAVED;
#line 7685 "libvirt-machine.c"
	} else {
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = FALSE;
#line 7689 "libvirt-machine.c"
	}
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _tmp0_;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7695 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_real_get_should_autosave (BoxesMachine* base) {
	gboolean result;
	BoxesLibvirtMachine* self;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = BOXES_MACHINE_CLASS (boxes_libvirt_machine_parent_class)->get_should_autosave (G_TYPE_CHECK_INSTANCE_CAST (self, BOXES_TYPE_MACHINE, BoxesMachine));
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_) {
#line 7710 "libvirt-machine.c"
		gboolean _tmp2_ = FALSE;
		BoxesVMCreator* _tmp3_ = NULL;
		BoxesVMCreator* _tmp4_ = NULL;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = boxes_libvirt_machine_get_vm_creator (self);
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp4_ == NULL) {
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp2_ = TRUE;
#line 7722 "libvirt-machine.c"
		} else {
			BoxesVMCreator* _tmp5_ = NULL;
			BoxesVMCreator* _tmp6_ = NULL;
			gboolean _tmp7_ = FALSE;
			gboolean _tmp8_ = FALSE;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp5_ = boxes_libvirt_machine_get_vm_creator (self);
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6_ = _tmp5_;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = boxes_vm_creator_get_express_install (_tmp6_);
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = _tmp7_;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp2_ = !_tmp8_;
#line 7738 "libvirt-machine.c"
		}
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = _tmp2_;
#line 7742 "libvirt-machine.c"
	} else {
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = FALSE;
#line 7746 "libvirt-machine.c"
	}
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _tmp0_;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 7752 "libvirt-machine.c"
}


static GObject * boxes_libvirt_machine_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineMachineStat* _tmp0_ = NULL;
	GCancellable* _tmp1_ = NULL;
#line 96 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	parent_class = G_OBJECT_CLASS (boxes_libvirt_machine_parent_class);
#line 96 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 96 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine);
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = g_new0 (BoxesLibvirtMachineMachineStat, BOXES_LIBVIRT_MACHINE_STATS_SIZE);
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats = (_vala_BoxesLibvirtMachineMachineStat_array_free (self->priv->stats, self->priv->stats_length1), NULL);
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats = _tmp0_;
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats_length1 = BOXES_LIBVIRT_MACHINE_STATS_SIZE;
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->_stats_size_ = self->priv->stats_length1;
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = g_cancellable_new ();
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->stats_cancellable);
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats_cancellable = _tmp1_;
#line 96 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return obj;
#line 7786 "libvirt-machine.c"
}


static GVirDomainDiskStats* _vala_GVirDomainDiskStats_copy (GVirDomainDiskStats* self) {
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return g_boxed_copy (gvir_domain_disk_stats_get_type (), self);
#line 7793 "libvirt-machine.c"
}


static gpointer __vala_GVirDomainDiskStats_copy0 (gpointer self) {
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self ? _vala_GVirDomainDiskStats_copy (self) : NULL;
#line 7800 "libvirt-machine.c"
}


static GVirDomainInterfaceStats* _vala_GVirDomainInterfaceStats_copy (GVirDomainInterfaceStats* self) {
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return g_boxed_copy (gvir_domain_interface_stats_get_type (), self);
#line 7807 "libvirt-machine.c"
}


static gpointer __vala_GVirDomainInterfaceStats_copy0 (gpointer self) {
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self ? _vala_GVirDomainInterfaceStats_copy (self) : NULL;
#line 7814 "libvirt-machine.c"
}


static void boxes_libvirt_machine_machine_stat_copy (const BoxesLibvirtMachineMachineStat* self, BoxesLibvirtMachineMachineStat* dest) {
	gint64 _tmp0_ = 0LL;
	gdouble _tmp1_ = 0.0;
	gdouble _tmp2_ = 0.0;
	gdouble _tmp3_ = 0.0;
	gdouble _tmp4_ = 0.0;
	GVirDomainDiskStats* _tmp5_ = NULL;
	GVirDomainDiskStats* _tmp6_ = NULL;
	gdouble _tmp7_ = 0.0;
	gdouble _tmp8_ = 0.0;
	GVirDomainInterfaceStats* _tmp9_ = NULL;
	GVirDomainInterfaceStats* _tmp10_ = NULL;
	gdouble _tmp11_ = 0.0;
	gdouble _tmp12_ = 0.0;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = (*self).timestamp;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).timestamp = _tmp0_;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = (*self).cpu_time;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).cpu_time = _tmp1_;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = (*self).cpu_time_abs;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).cpu_time_abs = _tmp2_;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = (*self).cpu_guest_percent;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).cpu_guest_percent = _tmp3_;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = (*self).memory_percent;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).memory_percent = _tmp4_;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = (*self).disk;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = __vala_GVirDomainDiskStats_copy0 (_tmp5_);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainDiskStats_free0 ((*dest).disk);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).disk = _tmp6_;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = (*self).disk_read;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).disk_read = _tmp7_;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = (*self).disk_write;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).disk_write = _tmp8_;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = (*self).net;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = __vala_GVirDomainInterfaceStats_copy0 (_tmp9_);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInterfaceStats_free0 ((*dest).net);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).net = _tmp10_;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = (*self).net_read;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).net_read = _tmp11_;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = (*self).net_write;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*dest).net_write = _tmp12_;
#line 7884 "libvirt-machine.c"
}


static void boxes_libvirt_machine_machine_stat_destroy (BoxesLibvirtMachineMachineStat* self) {
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainDiskStats_free0 ((*self).disk);
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInterfaceStats_free0 ((*self).net);
#line 7893 "libvirt-machine.c"
}


static BoxesLibvirtMachineMachineStat* boxes_libvirt_machine_machine_stat_dup (const BoxesLibvirtMachineMachineStat* self) {
	BoxesLibvirtMachineMachineStat* dup;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	dup = g_new0 (BoxesLibvirtMachineMachineStat, 1);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_copy (self, dup);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return dup;
#line 7905 "libvirt-machine.c"
}


static void boxes_libvirt_machine_machine_stat_free (BoxesLibvirtMachineMachineStat* self) {
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_destroy (self);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_free (self);
#line 7914 "libvirt-machine.c"
}


static GType boxes_libvirt_machine_machine_stat_get_type (void) {
	static volatile gsize boxes_libvirt_machine_machine_stat_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_libvirt_machine_machine_stat_type_id__volatile)) {
		GType boxes_libvirt_machine_machine_stat_type_id;
		boxes_libvirt_machine_machine_stat_type_id = g_boxed_type_register_static ("BoxesLibvirtMachineMachineStat", (GBoxedCopyFunc) boxes_libvirt_machine_machine_stat_dup, (GBoxedFreeFunc) boxes_libvirt_machine_machine_stat_free);
		g_once_init_leave (&boxes_libvirt_machine_machine_stat_type_id__volatile, boxes_libvirt_machine_machine_stat_type_id);
	}
	return boxes_libvirt_machine_machine_stat_type_id__volatile;
}


static void boxes_libvirt_machine_class_init (BoxesLibvirtMachineClass * klass) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_parent_class = g_type_class_peek_parent (klass);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_type_class_add_private (klass, sizeof (BoxesLibvirtMachinePrivate));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachineClass *) klass)->disconnect_display = boxes_libvirt_machine_real_disconnect_display;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachineClass *) klass)->connect_display = boxes_libvirt_machine_real_connect_display;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachineClass *) klass)->connect_display_finish = boxes_libvirt_machine_real_connect_display_finish;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachineClass *) klass)->get_properties = boxes_libvirt_machine_real_get_properties;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachineClass *) klass)->take_screenshot = boxes_libvirt_machine_real_take_screenshot;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachineClass *) klass)->take_screenshot_finish = boxes_libvirt_machine_real_take_screenshot_finish;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachineClass *) klass)->delete = boxes_libvirt_machine_real_delete;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachineClass *) klass)->save_real = boxes_libvirt_machine_real_save_real;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachineClass *) klass)->save_real_finish = boxes_libvirt_machine_real_save_real_finish;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachineClass *) klass)->restart = boxes_libvirt_machine_real_restart;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_can_save = boxes_libvirt_machine_real_get_can_save;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_should_autosave = boxes_libvirt_machine_real_get_should_autosave;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_libvirt_machine_get_property;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_libvirt_machine_set_property;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (klass)->constructor = boxes_libvirt_machine_constructor;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_libvirt_machine_finalize;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_LIBVIRT_MACHINE_DOMAIN, g_param_spec_object ("domain", "domain", "domain", gvir_domain_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_LIBVIRT_MACHINE_DOMAIN_CONFIG, g_param_spec_object ("domain-config", "domain-config", "domain-config", gvir_config_domain_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_LIBVIRT_MACHINE_CONNECTION, g_param_spec_object ("connection", "connection", "connection", gvir_connection_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_LIBVIRT_MACHINE_STORAGE_VOLUME, g_param_spec_object ("storage-volume", "storage-volume", "storage-volume", gvir_storage_vol_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_LIBVIRT_MACHINE_VM_CREATOR, boxes_param_spec_vm_creator ("vm-creator", "vm-creator", "vm-creator", BOXES_TYPE_VM_CREATOR, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_LIBVIRT_MACHINE_IMPORTING, g_param_spec_boolean ("importing", "importing", "importing", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_LIBVIRT_MACHINE_SAVE_ON_QUIT, g_param_spec_boolean ("save-on-quit", "save-on-quit", "save-on-quit", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_LIBVIRT_MACHINE_CAN_SAVE, g_param_spec_boolean ("can-save", "can-save", "can-save", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_LIBVIRT_MACHINE_SHOULD_AUTOSAVE, g_param_spec_boolean ("should-autosave", "should-autosave", "should-autosave", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_new ("stats_updated", BOXES_TYPE_LIBVIRT_MACHINE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 7986 "libvirt-machine.c"
}


static void boxes_libvirt_machine_instance_init (BoxesLibvirtMachine * self) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv = BOXES_LIBVIRT_MACHINE_GET_PRIVATE (self);
#line 7993 "libvirt-machine.c"
}


static void boxes_libvirt_machine_finalize (GObject* obj) {
	BoxesLibvirtMachine * self;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine);
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->_domain);
#line 7 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->_domain_config);
#line 8 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->_connection);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->_storage_volume);
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_boxes_vm_creator_unref0 (self->priv->_vm_creator);
#line 25 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->properties);
#line 88 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->stats_cancellable);
#line 91 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats = (_vala_BoxesLibvirtMachineMachineStat_array_free (self->priv->stats, self->priv->stats_length1), NULL);
#line 267 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->cpu_stats = (g_free (self->cpu_stats), NULL);
#line 268 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->io_stats = (g_free (self->io_stats), NULL);
#line 269 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->net_stats = (g_free (self->net_stats), NULL);
#line 517 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (boxes_libvirt_machine_parent_class)->finalize (obj);
#line 8025 "libvirt-machine.c"
}


GType boxes_libvirt_machine_get_type (void) {
	static volatile gsize boxes_libvirt_machine_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_libvirt_machine_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesLibvirtMachineClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_libvirt_machine_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesLibvirtMachine), 0, (GInstanceInitFunc) boxes_libvirt_machine_instance_init, NULL };
		GType boxes_libvirt_machine_type_id;
		boxes_libvirt_machine_type_id = g_type_register_static (BOXES_TYPE_MACHINE, "BoxesLibvirtMachine", &g_define_type_info, 0);
		g_once_init_leave (&boxes_libvirt_machine_type_id__volatile, boxes_libvirt_machine_type_id);
	}
	return boxes_libvirt_machine_type_id__volatile;
}


static void _vala_boxes_libvirt_machine_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesLibvirtMachine * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (property_id) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_DOMAIN:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_value_set_object (value, boxes_libvirt_machine_get_domain (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_DOMAIN_CONFIG:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_value_set_object (value, boxes_libvirt_machine_get_domain_config (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_CONNECTION:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_value_set_object (value, boxes_libvirt_machine_get_connection (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_STORAGE_VOLUME:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_value_set_object (value, boxes_libvirt_machine_get_storage_volume (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_VM_CREATOR:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_value_set_vm_creator (value, boxes_libvirt_machine_get_vm_creator (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_IMPORTING:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_value_set_boolean (value, boxes_libvirt_machine_get_importing (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_SAVE_ON_QUIT:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_value_set_boolean (value, boxes_libvirt_machine_get_save_on_quit (self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_CAN_SAVE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_value_set_boolean (value, boxes_machine_get_can_save ((BoxesMachine*) self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_SHOULD_AUTOSAVE:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_value_set_boolean (value, boxes_machine_get_should_autosave ((BoxesMachine*) self));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 8100 "libvirt-machine.c"
		default:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 8106 "libvirt-machine.c"
	}
}


static void _vala_boxes_libvirt_machine_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	BoxesLibvirtMachine * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (property_id) {
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_DOMAIN:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_domain (self, g_value_get_object (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_DOMAIN_CONFIG:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_domain_config (self, g_value_get_object (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_CONNECTION:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_connection (self, g_value_get_object (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_STORAGE_VOLUME:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_storage_volume (self, g_value_get_object (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_VM_CREATOR:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_vm_creator (self, boxes_value_get_vm_creator (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_SAVE_ON_QUIT:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_save_on_quit (self, g_value_get_boolean (value));
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 8152 "libvirt-machine.c"
		default:
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 8158 "libvirt-machine.c"
	}
}



