/* libvirt-machine.c generated by valac 0.18.0.79-04df6, 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 <clutter/clutter.h>
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libcommon.h>
#include <libvirt-gobject/libvirt-gobject.h>
#include <libvirt-gconfig/libvirt-gconfig.h>
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gstdio.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include <clutter-gtk/clutter-gtk.h>
#include <gdk/gdk.h>
#include <config.h>
#include <osinfo/osinfo.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_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_UI, BoxesUIClass))
#define BOXES_IS_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UI))
#define BOXES_IS_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_UI))
#define BOXES_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_UI, BoxesUIClass))

typedef struct _BoxesUI BoxesUI;
typedef struct _BoxesUIClass BoxesUIClass;
typedef struct _BoxesUIPrivate BoxesUIPrivate;

#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_TYPE_MACHINE_ACTOR (boxes_machine_actor_get_type ())
#define BOXES_MACHINE_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MACHINE_ACTOR, BoxesMachineActor))
#define BOXES_MACHINE_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MACHINE_ACTOR, BoxesMachineActorClass))
#define BOXES_IS_MACHINE_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MACHINE_ACTOR))
#define BOXES_IS_MACHINE_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MACHINE_ACTOR))
#define BOXES_MACHINE_ACTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MACHINE_ACTOR, BoxesMachineActorClass))

typedef struct _BoxesMachineActor BoxesMachineActor;
typedef struct _BoxesMachineActorClass BoxesMachineActorClass;

#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_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 _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 _Block14Data Block14Data;
typedef struct _Block15Data Block15Data;
#define __vala_GVirDomainDiskStats_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirDomainDiskStats_free (var), NULL)))
typedef struct _BoxesLibvirtMachineUpdateIoStatData BoxesLibvirtMachineUpdateIoStatData;
typedef struct _Block16Data Block16Data;
typedef struct _Block17Data Block17Data;
#define __vala_GVirDomainInterfaceStats_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirDomainInterfaceStats_free (var), NULL)))
typedef struct _BoxesLibvirtMachineUpdateNetStatData BoxesLibvirtMachineUpdateNetStatData;
typedef struct _BoxesLibvirtMachineUpdateStatsData BoxesLibvirtMachineUpdateStatsData;
typedef struct _Block18Data Block18Data;
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
typedef struct _Block19Data Block19Data;

#define BOXES_TYPE_APP (boxes_app_get_type ())
#define BOXES_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_APP, BoxesApp))
#define BOXES_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_APP, BoxesAppClass))
#define BOXES_IS_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_APP))
#define BOXES_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_APP))
#define BOXES_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_APP, BoxesAppClass))

typedef struct _BoxesApp BoxesApp;
typedef struct _BoxesAppClass BoxesAppClass;
typedef struct _BoxesAppPrivate BoxesAppPrivate;

#define BOXES_TYPE_CLUTTER_WIDGET (boxes_clutter_widget_get_type ())
#define BOXES_CLUTTER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_CLUTTER_WIDGET, BoxesClutterWidget))
#define BOXES_CLUTTER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_CLUTTER_WIDGET, BoxesClutterWidgetClass))
#define BOXES_IS_CLUTTER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_CLUTTER_WIDGET))
#define BOXES_IS_CLUTTER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_CLUTTER_WIDGET))
#define BOXES_CLUTTER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_CLUTTER_WIDGET, BoxesClutterWidgetClass))

typedef struct _BoxesClutterWidget BoxesClutterWidget;
typedef struct _BoxesClutterWidgetClass BoxesClutterWidgetClass;

#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_REVEALER (boxes_revealer_get_type ())
#define BOXES_REVEALER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_REVEALER, BoxesRevealer))
#define BOXES_REVEALER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_REVEALER, BoxesRevealerClass))
#define BOXES_IS_REVEALER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_REVEALER))
#define BOXES_IS_REVEALER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_REVEALER))
#define BOXES_REVEALER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_REVEALER, BoxesRevealerClass))

typedef struct _BoxesRevealer BoxesRevealer;
typedef struct _BoxesRevealerClass BoxesRevealerClass;

#define BOXES_TYPE_SIDEBAR (boxes_sidebar_get_type ())
#define BOXES_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SIDEBAR, BoxesSidebar))
#define BOXES_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SIDEBAR, BoxesSidebarClass))
#define BOXES_IS_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SIDEBAR))
#define BOXES_IS_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SIDEBAR))
#define BOXES_SIDEBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SIDEBAR, BoxesSidebarClass))

typedef struct _BoxesSidebar BoxesSidebar;
typedef struct _BoxesSidebarClass BoxesSidebarClass;

#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_WIZARD (boxes_wizard_get_type ())
#define BOXES_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WIZARD, BoxesWizard))
#define BOXES_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WIZARD, BoxesWizardClass))
#define BOXES_IS_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WIZARD))
#define BOXES_IS_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WIZARD))
#define BOXES_WIZARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WIZARD, BoxesWizardClass))

typedef struct _BoxesWizard BoxesWizard;
typedef struct _BoxesWizardClass BoxesWizardClass;

#define BOXES_TYPE_PROPERTIES (boxes_properties_get_type ())
#define BOXES_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTIES, BoxesProperties))
#define BOXES_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTIES, BoxesPropertiesClass))
#define BOXES_IS_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTIES))
#define BOXES_IS_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTIES))
#define BOXES_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTIES, BoxesPropertiesClass))

typedef struct _BoxesProperties BoxesProperties;
typedef struct _BoxesPropertiesClass BoxesPropertiesClass;

#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_COLLECTION (boxes_collection_get_type ())
#define BOXES_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION, BoxesCollection))
#define BOXES_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION, BoxesCollectionClass))
#define BOXES_IS_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION))
#define BOXES_IS_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION))
#define BOXES_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION, BoxesCollectionClass))

typedef struct _BoxesCollection BoxesCollection;
typedef struct _BoxesCollectionClass BoxesCollectionClass;

#define BOXES_TYPE_COLLECTION_FILTER (boxes_collection_filter_get_type ())
#define BOXES_COLLECTION_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_FILTER, BoxesCollectionFilter))
#define BOXES_COLLECTION_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_FILTER, BoxesCollectionFilterClass))
#define BOXES_IS_COLLECTION_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_FILTER))
#define BOXES_IS_COLLECTION_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_FILTER))
#define BOXES_COLLECTION_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_FILTER, BoxesCollectionFilterClass))

typedef struct _BoxesCollectionFilter BoxesCollectionFilter;
typedef struct _BoxesCollectionFilterClass BoxesCollectionFilterClass;

#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 _Block20Data Block20Data;
typedef struct _Block21Data Block21Data;
typedef struct _Block22Data Block22Data;
typedef struct _Block23Data Block23Data;
typedef struct _Block24Data Block24Data;
typedef struct _Block25Data Block25Data;
typedef struct _Block26Data Block26Data;

#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 _Block27Data Block27Data;
typedef struct _BoxesLibvirtMachineTakeScreenshotData BoxesLibvirtMachineTakeScreenshotData;
typedef struct _Block28Data Block28Data;
typedef struct _BoxesLibvirtMachineSaveRealData BoxesLibvirtMachineSaveRealData;
typedef struct _BoxesLibvirtMachineSuspendData BoxesLibvirtMachineSuspendData;
typedef struct _Block29Data Block29Data;
#define __vala_GVirNodeInfo_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirNodeInfo_free (var), NULL)))
typedef struct _Block30Data Block30Data;
typedef struct _BoxesLibvirtMachineStartData BoxesLibvirtMachineStartData;
typedef struct _Block31Data Block31Data;
#define __vala_GVirStorageVolInfo_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirStorageVolInfo_free (var), NULL)))
#define __vala_GVirStoragePoolInfo_free0(var) ((var == NULL) ? NULL : (var = (_vala_GVirStoragePoolInfo_free (var), NULL)))
typedef struct _Block32Data Block32Data;

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

struct _BoxesUI {
	GObject parent_instance;
	BoxesUIPrivate * priv;
	BoxesUIState previous_ui_state;
};

struct _BoxesUIClass {
	GObjectClass parent_class;
	void (*ui_state_changed) (BoxesUI* self);
	ClutterActor* (*get_actor) (BoxesUI* self);
};

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

struct _BoxesCollectionItemClass {
	BoxesUIClass parent_class;
};

typedef enum  {
	BOXES_PROPERTIES_PAGE_LOGIN,
	BOXES_PROPERTIES_PAGE_SYSTEM,
	BOXES_PROPERTIES_PAGE_DISPLAY,
	BOXES_PROPERTIES_PAGE_DEVICES,
	BOXES_PROPERTIES_PAGE_LAST
} BoxesPropertiesPage;

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

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

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

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, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*connect_display_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*disconnect_display) (BoxesMachine* self);
	void (*delete) (BoxesMachine* self, gboolean by_user);
};

struct _BoxesLibvirtMachine {
	BoxesMachine parent_instance;
	BoxesLibvirtMachinePrivate * priv;
	GVirDomain* domain;
	GVirConfigDomain* domain_config;
	GVirConnection* connection;
	GVirStorageVol* storage_volume;
	BoxesVMCreator* vm_creator;
	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 {
	guint shutdown_timeout;
	guint stats_update_timeout;
	GCancellable* stats_cancellable;
	BoxesLibvirtMachineMachineStat* stats;
	gint stats_length1;
	gint _stats_size_;
	gboolean force_stopped;
};

struct _BoxesLibvirtMachineConnectDisplayData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	gboolean _tmp0_;
	gboolean _tmp1_;
	BoxesDisplay* _tmp2_;
	BoxesDisplay* _tmp3_;
	BoxesDisplay* _tmp4_;
	BoxesDisplay* _tmp5_;
	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 _Block14Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineMachineStat* stat;
	gpointer _async_data_;
};

struct _Block15Data {
	int _ref_count_;
	Block14Data * _data14_;
	GVirDomainDisk* disk;
};

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

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

struct _Block17Data {
	int _ref_count_;
	Block16Data * _data16_;
	GVirDomainInterface* net;
};

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

struct _BoxesLibvirtMachineUpdateStatsData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	gint64 _tmp0_;
	gint64 now;
	gint64 _tmp1_;
	BoxesLibvirtMachineMachineStat _tmp2_;
	BoxesLibvirtMachineMachineStat stat;
	GVirDomain* _tmp3_;
	GCancellable* _tmp4_;
	GVirDomainInfo* _tmp5_;
	GVirDomainInfo* info;
	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 _Block18Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	gboolean stats_updating;
};

typedef void (*PropertyStringChanged) (BoxesProperty* property, const gchar* value, void* user_data, GError** error);
struct _Block19Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	gchar* log;
	GtkDialog* dialog;
};

struct _BoxesApp {
	BoxesUI parent_instance;
	BoxesAppPrivate * priv;
	GtkApplicationWindow* window;
	GtkNotebook* notebook;
	BoxesClutterWidget* embed;
	ClutterStage* stage;
	ClutterBinLayout* stage_bin;
	ClutterActor* overlay_bin_actor;
	ClutterBinLayout* overlay_bin;
	BoxesCollectionItem* current_item;
	BoxesSearchbar* searchbar;
	BoxesTopbar* topbar;
	BoxesNotificationbar* notificationbar;
	BoxesRevealer* sidebar_revealer;
	BoxesRevealer* searchbar_revealer;
	BoxesSidebar* sidebar;
	BoxesSelectionbar* selectionbar;
	guint duration;
	GSettings* settings;
	BoxesWizard* wizard;
	BoxesProperties* properties;
	BoxesDisplayPage* display_page;
	BoxesCollection* collection;
	BoxesCollectionFilter* filter;
	GSimpleAction* action_properties;
	GSimpleAction* action_fullscreen;
	BoxesCollectionView* view;
};

struct _BoxesAppClass {
	BoxesUIClass parent_class;
};

struct _Block20Data {
	int _ref_count_;
	Block19Data * _data19_;
	GtkFileChooserDialog* chooser;
};

struct _Block21Data {
	int _ref_count_;
	Block20Data * _data20_;
	GtkMessageDialog* m;
};

struct _Block22Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	GVirConfigDomainDisk* disk_config;
};

struct _Block23Data {
	int _ref_count_;
	Block22Data * _data22_;
	GtkLabel* label;
	gboolean empty;
	GtkLabel* button_label;
};

struct _Block24Data {
	int _ref_count_;
	Block23Data * _data23_;
	GtkFileChooserDialog* dialog;
};

struct _Block25Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	BoxesProperty* property;
};

struct _Block26Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	BoxesProperty* property;
};

struct _Block27Data {
	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;
	Block27Data* _data27_;
	GVirDomainState state;
	GVirDomain* _tmp0_;
	GVirDomainInfo* _tmp1_;
	GVirDomainInfo* _tmp2_;
	GVirDomainInfo* _tmp3_;
	GVirDomainState _tmp4_;
	GError* _error_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	gboolean _tmp7_;
	gboolean _tmp8_;
	GVirDomainState _tmp9_;
	GVirDomainState _tmp10_;
	gboolean _tmp11_;
	GVirDomainState _tmp12_;
	gboolean _tmp13_;
	GVirConnection* _tmp14_;
	GVirStream* _tmp15_;
	GdkPixbufLoader* _tmp16_;
	GdkPixbufLoader* loader;
	GVirStream* _tmp17_;
	GInputStream* _tmp18_;
	GInputStream* _tmp19_;
	GInputStream* input_stream;
	guint8* _tmp20_;
	guint8* buffer;
	gint buffer_length1;
	gint _buffer_size_;
	gssize length;
	gboolean _tmp21_;
	gboolean _tmp22_;
	gssize _tmp23_;
	GInputStream* _tmp24_;
	guint8* _tmp25_;
	gint _tmp25__length1;
	gssize _tmp26_;
	gssize _tmp27_;
	GdkPixbufLoader* _tmp28_;
	guint8* _tmp29_;
	gint _tmp29__length1;
	gssize _tmp30_;
	GdkPixbufLoader* _tmp31_;
	GdkPixbufLoader* _tmp32_;
	GdkPixbuf* _tmp33_;
	GdkPixbuf* _tmp34_;
	GError * _inner_error_;
};

struct _Block28Data {
	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 _Block29Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	BoxesProperty* property;
};

typedef void (*PropertySizeChanged) (BoxesProperty* property, guint64 value, void* user_data, GError** error);
struct _Block30Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	BoxesProperty* property;
	guint64 value;
};

struct _BoxesLibvirtMachineStartData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtMachine* self;
	BoxesMachineMachineState _tmp0_;
	BoxesMachineMachineState _tmp1_;
	BoxesMachineMachineState _tmp2_;
	BoxesMachineMachineState _tmp3_;
	GVirDomain* _tmp4_;
	BoxesMachineMachineState _tmp5_;
	BoxesMachineMachineState _tmp6_;
	GVirDomain* _tmp7_;
	GVirDomain* _tmp8_;
	gboolean _tmp9_;
	const gchar* _tmp10_;
	const gchar* _tmp11_;
	const gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	GVirDomain* _tmp20_;
	GError * _inner_error_;
};

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

typedef void (*BoxesNotificationbarOKFunc) (void* user_data);
typedef void (*BoxesNotificationbarCancelFunc) (void* user_data);
struct _Block32Data {
	int _ref_count_;
	BoxesLibvirtMachine * self;
	guint64 value;
};


static gpointer boxes_libvirt_machine_parent_class = NULL;
extern BoxesApp* boxes_app_app;

GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_ui_state_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_actor_get_type (void) G_GNUC_CONST;
GType boxes_libvirt_machine_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_SAVE_ON_QUIT
};
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, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_libvirt_machine_real_connect_display_co (BoxesLibvirtMachineConnectDisplayData* _data_);
static void boxes_libvirt_machine_start (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_libvirt_machine_start_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_, GError** error);
static void boxes_libvirt_machine_connect_display_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static 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);
static void boxes_libvirt_machine_update_domain_config (BoxesLibvirtMachine* self);
GVirStorageVol* boxes_get_storage_volume (GVirConnection* connection, GVirDomain* domain);
static void boxes_libvirt_machine_reconnect_display (BoxesLibvirtMachine* self);
void boxes_machine_connect_display (BoxesMachine* self, 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);
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 __lambda87_ (BoxesLibvirtMachine* self);
static void ___lambda87__gvir_domain_started (GVirDomain* _sender, gpointer self);
static void __lambda88_ (BoxesLibvirtMachine* self);
static void ___lambda88__gvir_domain_suspended (GVirDomain* _sender, gpointer self);
static void __lambda89_ (BoxesLibvirtMachine* self);
static void ___lambda89__gvir_domain_resumed (GVirDomain* _sender, gpointer self);
static void __lambda90_ (BoxesLibvirtMachine* self);
static void ___lambda90__gvir_domain_stopped (GVirDomain* _sender, gpointer self);
static void __lambda91_ (BoxesLibvirtMachine* self);
static void ___lambda91__gvir_domain_pmsuspended (GVirDomain* _sender, gpointer self);
static void __lambda92_ (BoxesLibvirtMachine* self);
BoxesMachineMachineState boxes_machine_get_state (BoxesMachine* self);
static void ___lambda92__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 Block14Data* block14_data_ref (Block14Data* _data14_);
static void block14_data_unref (void * _userdata_);
static Block15Data* block15_data_ref (Block15Data* _data15_);
static void block15_data_unref (void * _userdata_);
static GVirDomainDisk* boxes_libvirt_machine_get_domain_disk (BoxesLibvirtMachine* self, GError** error);
static void ___lambda84_ (Block15Data* _data15_, GError** error);
static void _vala_GVirDomainDiskStats_free (GVirDomainDiskStats* self);
static void ____lambda84__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 Block16Data* block16_data_ref (Block16Data* _data16_);
static void block16_data_unref (void * _userdata_);
static Block17Data* block17_data_ref (Block17Data* _data17_);
static void block17_data_unref (void * _userdata_);
static GVirDomainInterface* boxes_libvirt_machine_get_domain_network_interface (BoxesLibvirtMachine* self, GError** error);
static void ___lambda85_ (Block17Data* _data17_, GError** error);
static void _vala_GVirDomainInterfaceStats_free (GVirDomainInterfaceStats* self);
static void ____lambda85__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_add2 (BoxesLibvirtMachineMachineStat** array, int* length, int* size, const BoxesLibvirtMachineMachineStat* value);
static void _vala_array_add3 (gdouble** array, int* length, int* size, gdouble value);
static void _vala_array_add4 (gdouble** array, int* length, int* size, gdouble value);
static void _vala_array_add5 (gdouble** array, int* length, int* size, gdouble value);
static Block18Data* block18_data_ref (Block18Data* _data18_);
static void block18_data_unref (void * _userdata_);
static gboolean ___lambda83_ (Block18Data* _data18_);
static void __lambda86_ (Block18Data* _data18_);
static void ___lambda86__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static gboolean ____lambda83__gsource_func (gpointer self);
void boxes_libvirt_machine_try_change_name (BoxesLibvirtMachine* self, const gchar* name, GError** error);
void boxes_collection_item_set_name (BoxesCollectionItem* self, const gchar* value);
void boxes_libvirt_machine_try_enable_usb_redir (BoxesLibvirtMachine* self, GError** error);
void boxes_vm_configurator_remove_usb_controllers (GVirConfigDomain* domain, GError** error);
void boxes_vm_configurator_add_usb_support (GVirConfigDomain* domain);
gboolean boxes_machine_is_on (BoxesMachine* self);
static void boxes_libvirt_machine_notify_reboot_required (BoxesLibvirtMachine* self);
void boxes_libvirt_machine_try_enable_smartcard (BoxesLibvirtMachine* self, GError** error);
void boxes_vm_configurator_add_smartcard_support (GVirConfigDomain* domain);
static gchar* boxes_libvirt_machine_collect_logs (BoxesLibvirtMachine* self);
const gchar* gvir_domain_state_to_string (GVirDomainState self);
void boxes_display_collect_logs (BoxesDisplay* self, GString* builder);
static GList* boxes_libvirt_machine_real_get_properties (BoxesMachine* base, BoxesPropertiesPage page, PropertyCreationFlag flags);
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
BoxesProperty* boxes_iproperties_provider_add_string_property (BoxesIPropertiesProvider* self, GList** list, const gchar* name, const gchar* value, PropertyStringChanged changed, void* changed_target);
static void ___lambda98_ (BoxesLibvirtMachine* self, BoxesProperty* property, const gchar* name, GError** error);
static void ____lambda98__property_string_changed (BoxesProperty* property, const gchar* value, gpointer self, GError** error);
gchar* boxes_display_get_uri (BoxesDisplay* self);
static void boxes_libvirt_machine_add_ram_property (BoxesLibvirtMachine* self, GList** list);
static void boxes_libvirt_machine_add_storage_property (BoxesLibvirtMachine* self, GList** list);
BoxesProperty* boxes_iproperties_provider_add_property (BoxesIPropertiesProvider* self, GList** list, const gchar* name, GtkWidget* widget, GtkWidget* extra_widget);
static void ___lambda102_ (BoxesLibvirtMachine* self);
static Block19Data* block19_data_ref (Block19Data* _data19_);
static void block19_data_unref (void * _userdata_);
GType boxes_app_get_type (void) G_GNUC_CONST;
GType boxes_clutter_widget_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_revealer_get_type (void) G_GNUC_CONST;
GType boxes_sidebar_get_type (void) G_GNUC_CONST;
GType boxes_selectionbar_get_type (void) G_GNUC_CONST;
GType boxes_wizard_get_type (void) G_GNUC_CONST;
GType boxes_properties_get_type (void) G_GNUC_CONST;
GType boxes_display_page_get_type (void) G_GNUC_CONST;
GType boxes_collection_get_type (void) G_GNUC_CONST;
GType boxes_collection_filter_get_type (void) G_GNUC_CONST;
GType boxes_collection_view_get_type (void) G_GNUC_CONST;
static void __lambda103_ (Block19Data* _data19_, gint response_id);
static Block20Data* block20_data_ref (Block20Data* _data20_);
static void block20_data_unref (void * _userdata_);
static void ___lambda104_ (Block20Data* _data20_, gint response_id);
static Block21Data* block21_data_ref (Block21Data* _data21_);
static void block21_data_unref (void * _userdata_);
static void ____lambda105_ (Block21Data* _data21_);
static void _____lambda105__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void ____lambda104__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void ___lambda103__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void ____lambda102__gtk_button_clicked (GtkButton* _sender, gpointer self);
const gchar* boxes_display_get_protocol (BoxesDisplay* self);
static Block22Data* block22_data_ref (Block22Data* _data22_);
static void block22_data_unref (void * _userdata_);
static Block23Data* block23_data_ref (Block23Data* _data23_);
static void block23_data_unref (void * _userdata_);
static void ______lambda106_ (Block23Data* _data23_);
static Block24Data* block24_data_ref (Block24Data* _data24_);
static void block24_data_unref (void * _userdata_);
static void ___lambda107_ (Block24Data* _data24_, gint response);
static void ____lambda107__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void _______lambda106__gtk_button_clicked (GtkButton* _sender, gpointer self);
static Block25Data* block25_data_ref (Block25Data* _data25_);
static void block25_data_unref (void * _userdata_);
static void ____lambda108_ (Block25Data* _data25_);
static void _____lambda108__gtk_button_clicked (GtkButton* _sender, gpointer self);
static Block26Data* block26_data_ref (Block26Data* _data26_);
static void block26_data_unref (void * _userdata_);
static void ____lambda109_ (Block26Data* _data26_);
static void _____lambda109__gtk_button_clicked (GtkButton* _sender, gpointer self);
GList* boxes_display_get_properties (BoxesDisplay* self, BoxesPropertiesPage page, PropertyCreationFlag flags);
static BoxesDisplay* boxes_libvirt_machine_create_display (BoxesLibvirtMachine* self, GError** error);
void boxes_machine_set_display (BoxesMachine* self, BoxesDisplay* value);
gchar* boxes_extract_xpath (const gchar* xmldoc, const gchar* xpath, gboolean required, GError** error);
BoxesSpiceDisplay* boxes_spice_display_new (BoxesBoxConfig* config, const gchar* host, gint port);
BoxesSpiceDisplay* boxes_spice_display_construct (GType object_type, BoxesBoxConfig* config, const gchar* host, gint port);
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 Block27Data* block27_data_ref (Block27Data* _data27_);
static void block27_data_unref (void * _userdata_);
static void boxes_libvirt_machine_take_screenshot_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void __lambda110_ (Block27Data* _data27_, GError** error);
static void ___lambda110__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 Block28Data* block28_data_ref (Block28Data* _data28_);
static void block28_data_unref (void * _userdata_);
static void ___lambda111_ (Block28Data* _data28_, GError** error);
static void ____lambda111__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);
static void boxes_libvirt_machine_update_ram_property (BoxesLibvirtMachine* self, BoxesProperty* property);
void boxes_property_set_reboot_required (BoxesProperty* self, gboolean value);
static Block29Data* block29_data_ref (Block29Data* _data29_);
static void block29_data_unref (void * _userdata_);
static void _vala_GVirNodeInfo_free (GVirNodeInfo* self);
BoxesProperty* boxes_iproperties_provider_add_size_property (BoxesIPropertiesProvider* self, GList** list, const gchar* name, guint64 size, guint64 min, guint64 max, guint64 step, PropertySizeChanged changed, void* changed_target);
static void boxes_libvirt_machine_on_ram_changed (BoxesLibvirtMachine* self, BoxesProperty* property, guint64 value);
static void _boxes_libvirt_machine_on_ram_changed_property_size_changed (BoxesProperty* property, guint64 value, gpointer self);
static void ___lambda100_ (Block29Data* _data29_);
static void ____lambda100__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static Block30Data* block30_data_ref (Block30Data* _data30_);
static void block30_data_unref (void * _userdata_);
static gboolean __lambda99_ (Block30Data* _data30_);
static gboolean ___lambda99__gsource_func (gpointer self);
void boxes_property_set_deferred_change (BoxesProperty* self, GSourceFunc value, gpointer value_target, GDestroyNotify value_target_destroy_notify);
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 __lambda93_ (BoxesLibvirtMachine* self);
static Block31Data* block31_data_ref (Block31Data* _data31_);
static void block31_data_unref (void * _userdata_);
static void __lambda94_ (Block31Data* _data31_);
static void ___lambda95_ (BoxesLibvirtMachine* self, GObject* obj, GAsyncResult* res);
static void ____lambda95__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void ___lambda94__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static gboolean __lambda96_ (Block31Data* _data31_);
static void __lambda97_ (Block31Data* _data31_);
static void ___lambda97__boxes_notificationbar_ok_func (gpointer self);
GdNotification* boxes_notificationbar_display_for_action (BoxesNotificationbar* self, const gchar* message, const gchar* action_label, BoxesNotificationbarOKFunc action_func, void* action_func_target, GDestroyNotify action_func_target_destroy_notify, BoxesNotificationbarCancelFunc ignore_func, void* ignore_func_target, GDestroyNotify ignore_func_target_destroy_notify, gint timeout);
static gboolean ___lambda96__gsource_func (gpointer self);
static void ___lambda93__boxes_notificationbar_ok_func (gpointer self);
#define BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT 6
GVirStoragePool* boxes_get_storage_pool (GVirConnection* connection);
static void _vala_GVirStorageVolInfo_free (GVirStorageVolInfo* self);
static void boxes_libvirt_machine_on_storage_changed (BoxesLibvirtMachine* self, BoxesProperty* property, guint64 value);
static void _boxes_libvirt_machine_on_storage_changed_property_size_changed (BoxesProperty* property, guint64 value, gpointer self);
static void _vala_GVirStoragePoolInfo_free (GVirStoragePoolInfo* self);
static Block32Data* block32_data_ref (Block32Data* _data32_);
static void block32_data_unref (void * _userdata_);
static gboolean __lambda101_ (Block32Data* _data32_);
gboolean boxes_machine_is_running (BoxesMachine* self);
static gboolean ___lambda101__gsource_func (gpointer self);
void boxes_libvirt_machine_set_save_on_quit (BoxesLibvirtMachine* self, gboolean value);
static GObject * boxes_libvirt_machine_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
void boxes_machine_set_can_save (BoxesMachine* self, gboolean value);
static GVirDomainDiskStats* _vala_GVirDomainDiskStats_copy (GVirDomainDiskStats* self);
static GVirDomainInterfaceStats* _vala_GVirDomainInterfaceStats_copy (GVirDomainInterfaceStats* self);
static void boxes_libvirt_machine_finalize (GObject* obj);
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 54 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (array != NULL) {
#line 1178 "libvirt-machine.c"
		int i;
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_machine_stat_destroy (&array[i]);
#line 1184 "libvirt-machine.c"
		}
	}
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_free (array);
#line 1189 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_disconnect_display (BoxesMachine* base) {
	BoxesLibvirtMachine * self;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 18 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachine*) self)->stay_on_display = FALSE;
#line 20 "/extra-data/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 1201 "libvirt-machine.c"
}


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


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


static void boxes_libvirt_machine_real_connect_display (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineConnectDisplayData* _data_;
	BoxesLibvirtMachine* _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineConnectDisplayData);
#line 5 "/extra-data/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 "/extra-data/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 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_connect_display_co (_data_);
#line 1241 "libvirt-machine.c"
}


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


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


static gboolean boxes_libvirt_machine_real_connect_display_co (BoxesLibvirtMachineConnectDisplayData* _data_) {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 1278 "libvirt-machine.c"
		goto _state_0;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 1282 "libvirt-machine.c"
		goto _state_1;
		default:
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 1287 "libvirt-machine.c"
	}
	_state_0:
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_state_ = 1;
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_start (_data_->self, boxes_libvirt_machine_connect_display_ready, _data_);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 1296 "libvirt-machine.c"
	_state_1:
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_start_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1310 "libvirt-machine.c"
		} else {
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1314 "libvirt-machine.c"
		}
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 1320 "libvirt-machine.c"
	}
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = FALSE;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = boxes_libvirt_machine_update_display (_data_->self, &_data_->_inner_error_);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1338 "libvirt-machine.c"
		} else {
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1342 "libvirt-machine.c"
		}
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 1348 "libvirt-machine.c"
	}
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp1_) {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = _data_->_tmp2_;
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_display_connect_it (_data_->_tmp3_, &_data_->_inner_error_);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1368 "libvirt-machine.c"
			} else {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1372 "libvirt-machine.c"
			}
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 1378 "libvirt-machine.c"
		}
	} else {
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_show_display ((BoxesMachine*) _data_->self);
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->_tmp4_;
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_display_set_enable_audio (_data_->_tmp5_, TRUE);
#line 1389 "libvirt-machine.c"
	}
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1395 "libvirt-machine.c"
	} else {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1399 "libvirt-machine.c"
	}
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 1405 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_domain_config (BoxesLibvirtMachine* self) {
	GError * _inner_error_ = NULL;
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 1413 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
		GVirConfigDomain* _tmp1_ = NULL;
		GVirConfigDomain* _tmp2_;
		GVirConnection* _tmp3_;
		GVirDomain* _tmp4_;
		GVirStorageVol* _tmp5_ = NULL;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->domain;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_NONE, &_inner_error_);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 1429 "libvirt-machine.c"
			goto __catch12_g_error;
		}
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self->domain_config);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->domain_config = _tmp2_;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = self->connection;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->domain;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = boxes_get_storage_volume (_tmp3_, _tmp4_);
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self->storage_volume);
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->storage_volume = _tmp5_;
#line 1446 "libvirt-machine.c"
	}
	goto __finally12;
	__catch12_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp6_;
		const gchar* _tmp7_ = NULL;
		GError* _tmp8_;
		const gchar* _tmp9_;
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = self->domain;
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = gvir_domain_get_name (_tmp6_);
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _error_;
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _tmp8_->message;
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_critical ("libvirt-machine.vala:69: Failed to fetch configuration for domain '%s'" \
": %s", _tmp7_, _tmp9_);
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 1472 "libvirt-machine.c"
	}
	__finally12:
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 65 "/extra-data/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 65 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1483 "libvirt-machine.c"
	}
}


static void boxes_libvirt_machine_reconnect_display (BoxesLibvirtMachine* self) {
	BoxesDisplay* _tmp0_;
	BoxesDisplay* _tmp1_;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == NULL) {
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 1501 "libvirt-machine.c"
	}
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_disconnect_display ((BoxesMachine*) self);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_connect_display ((BoxesMachine*) self, NULL, NULL);
#line 1507 "libvirt-machine.c"
}


static void _vala_GVirDomainInfo_free (GVirDomainInfo* self) {
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_domain_info_get_type (), self);
#line 1514 "libvirt-machine.c"
}


static void __lambda87_ (BoxesLibvirtMachine* self) {
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 1521 "libvirt-machine.c"
}


static void ___lambda87__gvir_domain_started (GVirDomain* _sender, gpointer self) {
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda87_ (self);
#line 1528 "libvirt-machine.c"
}


static void __lambda88_ (BoxesLibvirtMachine* self) {
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_PAUSED);
#line 1535 "libvirt-machine.c"
}


static void ___lambda88__gvir_domain_suspended (GVirDomain* _sender, gpointer self) {
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda88_ (self);
#line 1542 "libvirt-machine.c"
}


static void __lambda89_ (BoxesLibvirtMachine* self) {
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 1549 "libvirt-machine.c"
}


static void ___lambda89__gvir_domain_resumed (GVirDomain* _sender, gpointer self) {
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda89_ (self);
#line 1556 "libvirt-machine.c"
}


static void __lambda90_ (BoxesLibvirtMachine* self) {
	GVirDomain* _tmp0_;
	GSignalInvocationHint* _tmp1_ = NULL;
	GQuark _tmp2_;
	GQuark _tmp3_ = 0U;
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->domain;
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = g_signal_get_invocation_hint (_tmp0_);
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = (*_tmp1_).detail;
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = g_quark_from_string ("saved");
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp2_ == _tmp3_) {
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_SAVED);
#line 1577 "libvirt-machine.c"
	} else {
		gboolean _tmp4_;
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->priv->force_stopped;
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp4_) {
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			self->priv->force_stopped = FALSE;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED);
#line 1588 "libvirt-machine.c"
		} else {
#line 137 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 1592 "libvirt-machine.c"
		}
	}
}


static void ___lambda90__gvir_domain_stopped (GVirDomain* _sender, gpointer self) {
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda90_ (self);
#line 1601 "libvirt-machine.c"
}


static void __lambda91_ (BoxesLibvirtMachine* self) {
#line 140 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_SLEEPING);
#line 1608 "libvirt-machine.c"
}


static void ___lambda91__gvir_domain_pmsuspended (GVirDomain* _sender, gpointer self) {
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda91_ (self);
#line 1615 "libvirt-machine.c"
}


static void __lambda92_ (BoxesLibvirtMachine* self) {
	BoxesMachineMachineState _tmp0_;
	BoxesMachineMachineState _tmp1_;
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == BOXES_MACHINE_MACHINE_STATE_RUNNING) {
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_reconnect_display (self);
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_stats_enable (self, TRUE);
#line 1632 "libvirt-machine.c"
	} else {
#line 147 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_stats_enable (self, FALSE);
#line 1636 "libvirt-machine.c"
	}
}


static void ___lambda92__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda92_ (self);
#line 1644 "libvirt-machine.c"
}


static void _boxes_libvirt_machine_update_domain_config_gvir_domain_updated (GVirDomain* _sender, gpointer self) {
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_domain_config (self);
#line 1651 "libvirt-machine.c"
}


BoxesLibvirtMachine* boxes_libvirt_machine_construct (GType object_type, BoxesCollectionSource* source, GVirConnection* connection, GVirDomain* domain, GError** error) {
	BoxesLibvirtMachine * self = NULL;
	GVirDomain* _tmp0_;
	GVirConfigDomain* _tmp1_ = NULL;
	GVirConfigDomain* config;
	GVirConfigDomain* _tmp2_;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* item_name;
	BoxesCollectionSource* _tmp12_;
	const gchar* _tmp13_;
	GVirDomain* _tmp14_;
	const gchar* _tmp15_ = NULL;
	gchar* _tmp16_;
	gchar* _tmp17_;
	GVirDomain* _tmp18_;
	const gchar* _tmp19_ = NULL;
	GVirConnection* _tmp20_;
	GVirConnection* _tmp21_;
	GVirDomain* _tmp22_;
	GVirDomain* _tmp23_;
	GVirDomain* _tmp33_;
	GVirDomain* _tmp34_;
	GVirDomain* _tmp35_;
	GVirDomain* _tmp36_;
	GVirDomain* _tmp37_;
	GVirDomain* _tmp38_;
	BoxesMachineMachineState _tmp39_;
	BoxesMachineMachineState _tmp40_;
	GError * _inner_error_ = NULL;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (source != NULL, NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (connection != NULL, NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (domain != NULL, NULL);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = domain;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	config = _tmp1_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 1709 "libvirt-machine.c"
	}
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = config;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = gvir_config_domain_get_title (_tmp2_);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = _tmp5_;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp6_ == NULL) {
#line 1723 "libvirt-machine.c"
		GVirDomain* _tmp7_;
		const gchar* _tmp8_ = NULL;
		gchar* _tmp9_;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = domain;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = gvir_domain_get_name (_tmp7_);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = g_strdup (_tmp8_);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp5_);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _tmp9_;
#line 1737 "libvirt-machine.c"
	}
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = _tmp5_;
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = g_strdup (_tmp10_);
#line 86 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	item_name = _tmp11_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = source;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp13_ = item_name;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) boxes_machine_construct (object_type, _tmp12_, _tmp13_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp14_ = domain;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = gvir_domain_get_name (_tmp14_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp16_ = g_strconcat ("new libvirt machine: ", _tmp15_, NULL);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp17_ = _tmp16_;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:89: %s", _tmp17_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp17_);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = domain;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp19_ = gvir_domain_get_uuid (_tmp18_);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_create_display_config ((BoxesMachine*) self, _tmp19_);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp20_ = connection;
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp21_ = _g_object_ref0 (_tmp20_);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->connection);
#line 91 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->connection = _tmp21_;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp22_ = domain;
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp23_ = _g_object_ref0 (_tmp22_);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->domain);
#line 92 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->domain = _tmp23_;
#line 1785 "libvirt-machine.c"
	{
		GVirDomain* _tmp24_;
		GVirDomainInfo* _tmp25_ = NULL;
		GVirDomainInfo* _tmp26_;
		GVirDomainInfo* _tmp27_;
		GVirDomainState _tmp28_;
		GVirDomainState _tmp29_;
		GVirDomainState s;
		GVirDomainState _tmp30_;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp24_ = domain;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp25_ = gvir_domain_get_info (_tmp24_, &_inner_error_);
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp26_ = _tmp25_;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 1803 "libvirt-machine.c"
			goto __catch13_g_error;
		}
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp27_ = _tmp26_;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp28_ = _tmp27_->state;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp29_ = _tmp28_;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_tmp27_);
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		s = _tmp29_;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp30_ = s;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (_tmp30_) {
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_RUNNING:
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_BLOCKED:
#line 1824 "libvirt-machine.c"
			{
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_libvirt_machine_set_stats_enable (self, TRUE);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1832 "libvirt-machine.c"
			}
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_PAUSED:
#line 1836 "libvirt-machine.c"
			{
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_PAUSED);
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1842 "libvirt-machine.c"
			}
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_SHUTDOWN:
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_SHUTOFF:
#line 1848 "libvirt-machine.c"
			{
				GVirDomain* _tmp31_;
				gboolean _tmp32_ = FALSE;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp31_ = domain;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp32_ = gvir_domain_get_saved (_tmp31_);
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_tmp32_) {
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_SAVED);
#line 1860 "libvirt-machine.c"
				} else {
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 1864 "libvirt-machine.c"
				}
#line 111 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1868 "libvirt-machine.c"
			}
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_CRASHED:
#line 1872 "libvirt-machine.c"
			{
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1878 "libvirt-machine.c"
			}
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_PMSUSPENDED:
#line 1882 "libvirt-machine.c"
			{
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_SLEEPING);
#line 117 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1888 "libvirt-machine.c"
			}
			default:
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			case GVIR_DOMAIN_STATE_NONE:
#line 1893 "libvirt-machine.c"
			{
#line 120 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_UNKNOWN);
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				break;
#line 1899 "libvirt-machine.c"
			}
		}
	}
	goto __finally13;
	__catch13_g_error:
	{
		GError* _error_ = NULL;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 124 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_UNKNOWN);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 1915 "libvirt-machine.c"
	}
	__finally13:
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (item_name);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp5_);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 1932 "libvirt-machine.c"
	}
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp33_ = domain;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp33_, "started", (GCallback) ___lambda87__gvir_domain_started, self, 0);
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp34_ = domain;
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp34_, "suspended", (GCallback) ___lambda88__gvir_domain_suspended, self, 0);
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp35_ = domain;
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp35_, "resumed", (GCallback) ___lambda89__gvir_domain_resumed, self, 0);
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp36_ = domain;
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp36_, "stopped", (GCallback) ___lambda90__gvir_domain_stopped, self, 0);
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp37_ = domain;
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp37_, "pmsuspended", (GCallback) ___lambda91__gvir_domain_pmsuspended, self, 0);
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object ((GObject*) self, "notify::state", (GCallback) ___lambda92__g_object_notify, self, 0);
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_domain_config (self);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp38_ = domain;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_object (_tmp38_, "updated", (GCallback) _boxes_libvirt_machine_update_domain_config_gvir_domain_updated, self, 0);
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp39_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp40_ = _tmp39_;
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp40_ != BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 154 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_load_screenshot ((BoxesMachine*) self);
#line 1970 "libvirt-machine.c"
	}
#line 155 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_screenshot_enable ((BoxesMachine*) self, TRUE);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (item_name);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp5_);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (config);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self;
#line 1982 "libvirt-machine.c"
}


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


static void boxes_libvirt_machine_update_cpu_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat) {
	BoxesLibvirtMachineMachineStat* _tmp0_;
	gint _tmp0__length1;
	BoxesLibvirtMachineMachineStat _tmp1_;
	BoxesLibvirtMachineMachineStat _tmp2_ = {0};
	BoxesLibvirtMachineMachineStat prev;
	gboolean _tmp3_ = FALSE;
	GVirDomainInfo* _tmp4_;
	GVirDomainState _tmp5_;
	gboolean _tmp8_;
	GVirDomainInfo* _tmp9_;
	guint64 _tmp10_;
	BoxesLibvirtMachineMachineStat _tmp11_;
	gdouble _tmp12_;
	GVirDomainInfo* _tmp13_;
	guint64 _tmp14_;
	BoxesLibvirtMachineMachineStat _tmp15_;
	gint64 _tmp16_;
	BoxesLibvirtMachineMachineStat _tmp17_;
	gint64 _tmp18_;
	gint64 dt;
	BoxesLibvirtMachineMachineStat _tmp19_;
	gdouble _tmp20_;
	gint64 _tmp21_;
	gdouble percent;
	gdouble _tmp22_;
	GVirDomainInfo* _tmp23_;
	guint16 _tmp24_;
	gdouble _tmp25_;
	gdouble _tmp26_ = 0.0;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (info != NULL);
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (stat != NULL);
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->priv->stats;
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0__length1 = self->priv->stats_length1;
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_[BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1];
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_copy (&_tmp1_, &_tmp2_);
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	prev = _tmp2_;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = info;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->state;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp5_ == GVIR_DOMAIN_STATE_CRASHED) {
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = TRUE;
#line 2047 "libvirt-machine.c"
	} else {
		GVirDomainInfo* _tmp6_;
		GVirDomainState _tmp7_;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = info;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _tmp6_->state;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _tmp7_ == GVIR_DOMAIN_STATE_SHUTOFF;
#line 2057 "libvirt-machine.c"
	}
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = _tmp3_;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp8_) {
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&prev);
#line 163 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 2067 "libvirt-machine.c"
	}
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = info;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = _tmp9_->cpuTime;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = prev;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = _tmp11_.cpu_time_abs;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).cpu_time = _tmp10_ - _tmp12_;
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp13_ = info;
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp14_ = _tmp13_->cpuTime;
#line 166 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).cpu_time_abs = (gdouble) _tmp14_;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = *stat;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp16_ = _tmp15_.timestamp;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp17_ = prev;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = _tmp17_.timestamp;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	dt = (_tmp16_ - _tmp18_) * 10;
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp19_ = *stat;
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp20_ = _tmp19_.cpu_time;
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp21_ = dt;
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	percent = _tmp20_ / _tmp21_;
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp22_ = percent;
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp23_ = info;
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp24_ = _tmp23_->nrVirtCpu;
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	percent = _tmp22_ / _tmp24_;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp25_ = percent;
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp26_ = CLAMP (_tmp25_, (gdouble) 0, (gdouble) 100);
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).cpu_guest_percent = _tmp26_;
#line 158 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_destroy (&prev);
#line 2119 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_mem_stat (BoxesLibvirtMachine* self, GVirDomainInfo* info, BoxesLibvirtMachineMachineStat* stat) {
	GVirDomainInfo* _tmp0_;
	GVirDomainState _tmp1_;
	GVirDomainInfo* _tmp2_;
	guint64 _tmp3_;
	GVirDomainInfo* _tmp4_;
	guint64 _tmp5_;
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (info != NULL);
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (stat != NULL);
#line 175 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = info;
#line 175 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_->state;
#line 175 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 176 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 2144 "libvirt-machine.c"
	}
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = info;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_->memory;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = info;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->maxMem;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*stat).memory_percent = (_tmp3_ * 100.0) / _tmp5_;
#line 2156 "libvirt-machine.c"
}


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


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


static gpointer __vala_GVirDomainInfo_copy0 (gpointer self) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self ? _vala_GVirDomainInfo_copy (self) : NULL;
#line 2183 "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_;
	GVirDomainInfo* _tmp1_;
	GVirDomainInfo* _tmp2_;
	BoxesLibvirtMachineMachineStat* _tmp3_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineUpdateIoStatData);
#line 5 "/extra-data/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 "/extra-data/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 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = info;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = __vala_GVirDomainInfo_copy0 (_tmp1_);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInfo_free0 (_data_->info);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->info = _tmp2_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = stat;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->stat = _tmp3_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_io_stat_co (_data_);
#line 2217 "libvirt-machine.c"
}


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


static Block14Data* block14_data_ref (Block14Data* _data14_) {
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data14_->_ref_count_);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data14_;
#line 2234 "libvirt-machine.c"
}


static void block14_data_unref (void * _userdata_) {
	Block14Data* _data14_;
	_data14_ = (Block14Data*) _userdata_;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data14_->_ref_count_)) {
#line 2243 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data14_->self;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block14Data, _data14_);
#line 2251 "libvirt-machine.c"
	}
}


static Block15Data* block15_data_ref (Block15Data* _data15_) {
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data15_->_ref_count_);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data15_;
#line 2261 "libvirt-machine.c"
}


static void block15_data_unref (void * _userdata_) {
	Block15Data* _data15_;
	_data15_ = (Block15Data*) _userdata_;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data15_->_ref_count_)) {
#line 2270 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data15_->_data14_->self;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data15_->disk);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block14_data_unref (_data15_->_data14_);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data15_->_data14_ = NULL;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block15Data, _data15_);
#line 2282 "libvirt-machine.c"
	}
}


static void _vala_GVirDomainDiskStats_free (GVirDomainDiskStats* self) {
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_domain_disk_stats_get_type (), self);
#line 2290 "libvirt-machine.c"
}


static void ___lambda84_ (Block15Data* _data15_, GError** error) {
	Block14Data* _data14_;
	BoxesLibvirtMachine * self;
	GVirDomainDisk* _tmp0_;
	GVirDomainDiskStats* _tmp1_ = NULL;
	GVirDomainDiskStats* _tmp2_;
	BoxesLibvirtMachineMachineStat* _tmp3_;
	GError * _inner_error_ = NULL;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data14_ = _data15_->_data14_;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data14_->self;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _data15_->disk;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_disk_get_stats (_tmp0_, &_inner_error_);
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 2318 "libvirt-machine.c"
	}
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _data14_->stat;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainDiskStats_free0 ((*_tmp3_).disk);
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*_tmp3_).disk = _tmp2_;
#line 2326 "libvirt-machine.c"
}


static void ____lambda84__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda84_ (self, error);
#line 2333 "libvirt-machine.c"
}


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


static gboolean boxes_libvirt_machine_update_io_stat_co (BoxesLibvirtMachineUpdateIoStatData* _data_) {
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 2356 "libvirt-machine.c"
		goto _state_0;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 2360 "libvirt-machine.c"
		goto _state_1;
		default:
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 2365 "libvirt-machine.c"
	}
	_state_0:
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data14_ = g_slice_new0 (Block14Data);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data14_->_ref_count_ = 1;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data14_->self = g_object_ref (_data_->self);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = _data_->stat;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data14_->stat = _data_->_tmp0_;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data14_->_async_data_ = _data_;
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->info;
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = _data_->_tmp1_->state;
#line 182 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp2_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block14_data_unref (_data_->_data14_);
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data14_ = NULL;
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2394 "libvirt-machine.c"
		} else {
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2398 "libvirt-machine.c"
		}
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 183 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2404 "libvirt-machine.c"
	}
	{
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data15_ = g_slice_new0 (Block15Data);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data15_->_ref_count_ = 1;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data15_->_data14_ = block14_data_ref (_data_->_data14_);
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = NULL;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = boxes_libvirt_machine_get_domain_disk (_data_->self, &_data_->_inner_error_);
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data15_->disk = _data_->_tmp3_;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block15_data_unref (_data_->_data15_);
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data15_ = NULL;
#line 2425 "libvirt-machine.c"
			goto __catch14_g_error;
		}
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->_data15_->disk;
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp4_ == NULL) {
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block15_data_unref (_data_->_data15_);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data15_ = NULL;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block14_data_unref (_data_->_data14_);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data14_ = NULL;
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2444 "libvirt-machine.c"
			} else {
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 2448 "libvirt-machine.c"
			}
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 188 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 2454 "libvirt-machine.c"
		}
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread (____lambda84__boxes_run_in_thread_func, block15_data_ref (_data_->_data15_), block15_data_unref, NULL, boxes_libvirt_machine_update_io_stat_ready, _data_);
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2462 "libvirt-machine.c"
		_state_1:
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block15_data_unref (_data_->_data15_);
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data15_ = NULL;
#line 2472 "libvirt-machine.c"
			goto __catch14_g_error;
		}
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->self->priv->stats;
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5__length1 = _data_->self->priv->stats_length1;
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_[BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1];
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp7_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&_data_->_tmp6_, &_data_->_tmp7_);
#line 193 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->prev = _data_->_tmp7_;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->prev;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->_tmp8_.disk;
#line 194 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp9_ != NULL) {
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp10_ = _data_->_data14_->stat;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp11_ = _data_->_data14_->stat;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp12_ = (*_data_->_tmp11_).disk;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp13_ = _data_->_tmp12_->rd_bytes;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp14_ = _data_->prev;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp15_ = _data_->_tmp14_.disk;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp16_ = _data_->_tmp15_->rd_bytes;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_tmp10_).disk_read = (gdouble) (_data_->_tmp13_ - _data_->_tmp16_);
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp17_ = _data_->_data14_->stat;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp18_ = _data_->_data14_->stat;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp19_ = (*_data_->_tmp18_).disk;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = _data_->_tmp19_->wr_bytes;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = _data_->prev;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp22_ = _data_->_tmp21_.disk;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp23_ = _data_->_tmp22_->wr_bytes;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_tmp17_).disk_write = (gdouble) (_data_->_tmp20_ - _data_->_tmp23_);
#line 2525 "libvirt-machine.c"
		}
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&_data_->prev);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block15_data_unref (_data_->_data15_);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data15_ = NULL;
#line 2533 "libvirt-machine.c"
	}
	goto __finally14;
	__catch14_g_error:
	{
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->err = _data_->_inner_error_;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 199 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp24_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 199 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp25_ = _data_->_tmp24_;
#line 199 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp26_ = _data_->err;
#line 199 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp27_ = _data_->_tmp26_->message;
#line 199 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:199: Failed to fetch I/O statistics for %s: %s", _data_->_tmp25_, _data_->_tmp27_);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->err);
#line 2554 "libvirt-machine.c"
	}
	__finally14:
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block14_data_unref (_data_->_data14_);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data14_ = NULL;
#line 185 "/extra-data/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 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2569 "libvirt-machine.c"
	}
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block14_data_unref (_data_->_data14_);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data14_ = NULL;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2579 "libvirt-machine.c"
	} else {
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2583 "libvirt-machine.c"
	}
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 2589 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_net_stat_data_free (gpointer _data) {
	BoxesLibvirtMachineUpdateNetStatData* _data_;
	_data_ = _data;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInfo_free0 (_data_->info);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineUpdateNetStatData, _data_);
#line 2602 "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_;
	GVirDomainInfo* _tmp1_;
	GVirDomainInfo* _tmp2_;
	BoxesLibvirtMachineMachineStat* _tmp3_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineUpdateNetStatData);
#line 5 "/extra-data/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 "/extra-data/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 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = info;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = __vala_GVirDomainInfo_copy0 (_tmp1_);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInfo_free0 (_data_->info);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->info = _tmp2_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = stat;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->stat = _tmp3_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_net_stat_co (_data_);
#line 2636 "libvirt-machine.c"
}


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


static Block16Data* block16_data_ref (Block16Data* _data16_) {
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data16_->_ref_count_);
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data16_;
#line 2653 "libvirt-machine.c"
}


static void block16_data_unref (void * _userdata_) {
	Block16Data* _data16_;
	_data16_ = (Block16Data*) _userdata_;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data16_->_ref_count_)) {
#line 2662 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data16_->self;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block16Data, _data16_);
#line 2670 "libvirt-machine.c"
	}
}


static Block17Data* block17_data_ref (Block17Data* _data17_) {
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data17_->_ref_count_);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data17_;
#line 2680 "libvirt-machine.c"
}


static void block17_data_unref (void * _userdata_) {
	Block17Data* _data17_;
	_data17_ = (Block17Data*) _userdata_;
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data17_->_ref_count_)) {
#line 2689 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data17_->_data16_->self;
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data17_->net);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block16_data_unref (_data17_->_data16_);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data17_->_data16_ = NULL;
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block17Data, _data17_);
#line 2701 "libvirt-machine.c"
	}
}


static void _vala_GVirDomainInterfaceStats_free (GVirDomainInterfaceStats* self) {
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_domain_interface_stats_get_type (), self);
#line 2709 "libvirt-machine.c"
}


static void ___lambda85_ (Block17Data* _data17_, GError** error) {
	Block16Data* _data16_;
	BoxesLibvirtMachine * self;
	GVirDomainInterface* _tmp0_;
	GVirDomainInterfaceStats* _tmp1_ = NULL;
	GVirDomainInterfaceStats* _tmp2_;
	BoxesLibvirtMachineMachineStat* _tmp3_;
	GError * _inner_error_ = NULL;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data16_ = _data17_->_data16_;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data16_->self;
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _data17_->net;
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_interface_get_stats (_tmp0_, &_inner_error_);
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 2737 "libvirt-machine.c"
	}
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _data16_->stat;
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInterfaceStats_free0 ((*_tmp3_).net);
#line 213 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*_tmp3_).net = _tmp2_;
#line 2745 "libvirt-machine.c"
}


static void ____lambda85__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda85_ (self, error);
#line 2752 "libvirt-machine.c"
}


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


static gboolean boxes_libvirt_machine_update_net_stat_co (BoxesLibvirtMachineUpdateNetStatData* _data_) {
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 2775 "libvirt-machine.c"
		goto _state_0;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 2779 "libvirt-machine.c"
		goto _state_1;
		default:
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 2784 "libvirt-machine.c"
	}
	_state_0:
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data16_ = g_slice_new0 (Block16Data);
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data16_->_ref_count_ = 1;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data16_->self = g_object_ref (_data_->self);
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = _data_->stat;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data16_->stat = _data_->_tmp0_;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data16_->_async_data_ = _data_;
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->info;
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = _data_->_tmp1_->state;
#line 204 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp2_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block16_data_unref (_data_->_data16_);
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data16_ = NULL;
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2813 "libvirt-machine.c"
		} else {
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2817 "libvirt-machine.c"
		}
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2823 "libvirt-machine.c"
	}
	{
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data17_ = g_slice_new0 (Block17Data);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data17_->_ref_count_ = 1;
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data17_->_data16_ = block16_data_ref (_data_->_data16_);
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = NULL;
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = boxes_libvirt_machine_get_domain_network_interface (_data_->self, &_data_->_inner_error_);
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data17_->net = _data_->_tmp3_;
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block17_data_unref (_data_->_data17_);
#line 208 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data17_ = NULL;
#line 2844 "libvirt-machine.c"
			goto __catch15_g_error;
		}
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->_data17_->net;
#line 209 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp4_ == NULL) {
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block17_data_unref (_data_->_data17_);
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data17_ = NULL;
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block16_data_unref (_data_->_data16_);
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data16_ = NULL;
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2863 "libvirt-machine.c"
			} else {
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 2867 "libvirt-machine.c"
			}
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 210 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 2873 "libvirt-machine.c"
		}
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread (____lambda85__boxes_run_in_thread_func, block17_data_ref (_data_->_data17_), block17_data_unref, NULL, boxes_libvirt_machine_update_net_stat_ready, _data_);
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2881 "libvirt-machine.c"
		_state_1:
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block17_data_unref (_data_->_data17_);
#line 212 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_data17_ = NULL;
#line 2891 "libvirt-machine.c"
			goto __catch15_g_error;
		}
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = _data_->self->priv->stats;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5__length1 = _data_->self->priv->stats_length1;
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_[BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1];
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp7_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&_data_->_tmp6_, &_data_->_tmp7_);
#line 215 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->prev = _data_->_tmp7_;
#line 216 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->prev;
#line 216 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->_tmp8_.net;
#line 216 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp9_ != NULL) {
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp10_ = _data_->_data16_->stat;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp11_ = _data_->_data16_->stat;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp12_ = (*_data_->_tmp11_).net;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp13_ = _data_->_tmp12_->rx_bytes;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp14_ = _data_->prev;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp15_ = _data_->_tmp14_.net;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp16_ = _data_->_tmp15_->rx_bytes;
#line 217 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_tmp10_).net_read = (gdouble) (_data_->_tmp13_ - _data_->_tmp16_);
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp17_ = _data_->_data16_->stat;
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp18_ = _data_->_data16_->stat;
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp19_ = (*_data_->_tmp18_).net;
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = _data_->_tmp19_->tx_bytes;
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = _data_->prev;
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp22_ = _data_->_tmp21_.net;
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp23_ = _data_->_tmp22_->tx_bytes;
#line 218 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			(*_data_->_tmp17_).net_write = (gdouble) (_data_->_tmp20_ - _data_->_tmp23_);
#line 2944 "libvirt-machine.c"
		}
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&_data_->prev);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block17_data_unref (_data_->_data17_);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data17_ = NULL;
#line 2952 "libvirt-machine.c"
	}
	goto __finally15;
	__catch15_g_error:
	{
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->err = _data_->_inner_error_;
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp24_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp25_ = _data_->_tmp24_;
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp26_ = _data_->err;
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp27_ = _data_->_tmp26_->message;
#line 221 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:221: Failed to fetch network statistics for %s: %" \
"s", _data_->_tmp25_, _data_->_tmp27_);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->err);
#line 2973 "libvirt-machine.c"
	}
	__finally15:
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block16_data_unref (_data_->_data16_);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data16_ = NULL;
#line 207 "/extra-data/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 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 207 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 2988 "libvirt-machine.c"
	}
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block16_data_unref (_data_->_data16_);
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data16_ = NULL;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2998 "libvirt-machine.c"
	} else {
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3002 "libvirt-machine.c"
	}
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 3008 "libvirt-machine.c"
}


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


static void boxes_libvirt_machine_update_stats (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineUpdateStatsData* _data_;
	BoxesLibvirtMachine* _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineUpdateStatsData);
#line 5 "/extra-data/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 "/extra-data/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 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_stats_co (_data_);
#line 3038 "libvirt-machine.c"
}


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


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


static BoxesLibvirtMachineMachineStat* _vala_array_dup1 (BoxesLibvirtMachineMachineStat* self, int length) {
	BoxesLibvirtMachineMachineStat* result;
	int i;
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = g_new0 (BoxesLibvirtMachineMachineStat, length);
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	for (i = 0; i < length; i++) {
#line 3071 "libvirt-machine.c"
		BoxesLibvirtMachineMachineStat _tmp0_ = {0};
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&self[i], &_tmp0_);
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		result[i] = _tmp0_;
#line 3077 "libvirt-machine.c"
	}
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3081 "libvirt-machine.c"
}


static void _vala_array_add2 (BoxesLibvirtMachineMachineStat** array, int* length, int* size, const BoxesLibvirtMachineMachineStat* value) {
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((*length) == (*size)) {
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*array = g_renew (BoxesLibvirtMachineMachineStat, *array, *size);
#line 3092 "libvirt-machine.c"
	}
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*array)[(*length)++] = *value;
#line 3096 "libvirt-machine.c"
}


static void _vala_array_add3 (gdouble** array, int* length, int* size, gdouble value) {
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((*length) == (*size)) {
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*array = g_renew (gdouble, *array, *size);
#line 3107 "libvirt-machine.c"
	}
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*array)[(*length)++] = value;
#line 3111 "libvirt-machine.c"
}


static void _vala_array_add4 (gdouble** array, int* length, int* size, gdouble value) {
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((*length) == (*size)) {
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		*array = g_renew (gdouble, *array, *size);
#line 3122 "libvirt-machine.c"
	}
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(*array)[(*length)++] = value;
#line 3126 "libvirt-machine.c"
}


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


static gboolean boxes_libvirt_machine_update_stats_co (BoxesLibvirtMachineUpdateStatsData* _data_) {
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 3150 "libvirt-machine.c"
		goto _state_0;
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 3154 "libvirt-machine.c"
		goto _state_1;
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 2:
#line 3158 "libvirt-machine.c"
		goto _state_2;
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 3:
#line 3162 "libvirt-machine.c"
		goto _state_3;
		default:
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 3167 "libvirt-machine.c"
	}
	_state_0:
	{
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = 0LL;
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = g_get_monotonic_time ();
#line 232 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->now = _data_->_tmp0_;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp1_ = _data_->now;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp2_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp2_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_.timestamp = _data_->_tmp1_;
#line 233 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat = _data_->_tmp2_;
#line 234 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = _data_->self->domain;
#line 234 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->self->priv->stats_cancellable;
#line 234 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 234 "/extra-data/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 234 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3197 "libvirt-machine.c"
		_state_1:
#line 234 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = NULL;
#line 234 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = gvir_domain_get_info_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 234 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->info = _data_->_tmp5_;
#line 234 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 234 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_machine_stat_destroy (&_data_->stat);
#line 234 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 3211 "libvirt-machine.c"
				goto __catch16_g_io_error_cancelled;
			}
			goto __catch16_g_error;
		}
#line 236 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->info;
#line 236 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_cpu_stat (_data_->self, _data_->_tmp6_, &_data_->stat);
#line 237 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = _data_->info;
#line 237 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_mem_stat (_data_->self, _data_->_tmp7_, &_data_->stat);
#line 238 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->info;
#line 238 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 2;
#line 238 "/extra-data/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 238 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3232 "libvirt-machine.c"
		_state_2:
#line 238 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_io_stat_finish (_data_->self, _data_->_res_);
#line 239 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp9_ = _data_->info;
#line 239 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 3;
#line 239 "/extra-data/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 239 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3244 "libvirt-machine.c"
		_state_3:
#line 239 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_net_stat_finish (_data_->self, _data_->_res_);
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp10_ = _data_->self->priv->stats;
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp10__length1 = _data_->self->priv->stats_length1;
#line 241 "/extra-data/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 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp11__length1 = BOXES_LIBVIRT_MACHINE_STATS_SIZE - 1;
#line 241 "/extra-data/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 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->stats = _data_->_tmp11_;
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->stats_length1 = _data_->_tmp11__length1;
#line 241 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->self->priv->_stats_size_ = _data_->self->priv->stats_length1;
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12_ = _data_->self->priv->stats;
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12__length1 = _data_->self->priv->stats_length1;
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp13_ = _data_->stat;
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		memset (&_data_->_tmp14_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_copy (&_data_->_tmp13_, &_data_->_tmp14_);
#line 242 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_vala_array_add2 (&_data_->self->priv->stats, &_data_->self->priv->stats_length1, &_data_->self->priv->_stats_size_, &_data_->_tmp14_);
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_data_->info);
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_machine_stat_destroy (&_data_->stat);
#line 3280 "libvirt-machine.c"
	}
	goto __finally16;
	__catch16_g_io_error_cancelled:
	{
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->err = _data_->_inner_error_;
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 245 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->err);
#line 245 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 245 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3295 "libvirt-machine.c"
		} else {
#line 245 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 3299 "libvirt-machine.c"
		}
#line 245 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 245 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3305 "libvirt-machine.c"
	}
	goto __finally16;
	__catch16_g_error:
	{
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_vala1_err = _data_->_inner_error_;
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 247 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp15_ = _data_->_vala1_err;
#line 247 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp16_ = _data_->_tmp15_->message;
#line 247 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:247: %s", _data_->_tmp16_);
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->_vala1_err);
#line 3322 "libvirt-machine.c"
	}
	__finally16:
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 231 "/extra-data/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 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_data_->_inner_error_);
#line 231 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 3333 "libvirt-machine.c"
	}
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = NULL;
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = g_new0 (gdouble, 0);
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->cpu_stats = (g_free (_data_->self->cpu_stats), NULL);
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->cpu_stats = _data_->_tmp17_;
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->cpu_stats_length1 = 0;
#line 250 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->_cpu_stats_size_ = _data_->self->cpu_stats_length1;
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = NULL;
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = g_new0 (gdouble, 0);
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->io_stats = (g_free (_data_->self->io_stats), NULL);
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->io_stats = _data_->_tmp18_;
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->io_stats_length1 = 0;
#line 251 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->_io_stats_size_ = _data_->self->io_stats_length1;
#line 252 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp19_ = NULL;
#line 252 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp19_ = g_new0 (gdouble, 0);
#line 252 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->net_stats = (g_free (_data_->self->net_stats), NULL);
#line 252 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->net_stats = _data_->_tmp19_;
#line 252 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->net_stats_length1 = 0;
#line 252 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self->_net_stats_size_ = _data_->self->net_stats_length1;
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20_ = _data_->self->priv->stats;
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20__length1 = _data_->self->priv->stats_length1;
#line 3375 "libvirt-machine.c"
	{
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat_collection_length1 = 0;
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_stat_collection_size_ = 0;
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat_collection = _data_->_tmp20_;
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->stat_collection_length1 = _data_->_tmp20__length1;
#line 254 "/extra-data/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 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			memset (&_data_->_tmp21_, 0, sizeof (BoxesLibvirtMachineMachineStat));
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_machine_stat_copy (&_data_->stat_collection[_data_->stat_it], &_data_->_tmp21_);
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_vala1_stat = _data_->_tmp21_;
#line 3393 "libvirt-machine.c"
			{
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp22_ = _data_->self->cpu_stats;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp22__length1 = _data_->self->cpu_stats_length1;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp23_ = _data_->_vala1_stat;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp24_ = _data_->_tmp23_.cpu_guest_percent;
#line 255 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_vala_array_add3 (&_data_->self->cpu_stats, &_data_->self->cpu_stats_length1, &_data_->self->_cpu_stats_size_, _data_->_tmp24_);
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp25_ = _data_->self->net_stats;
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp25__length1 = _data_->self->net_stats_length1;
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp26_ = _data_->_vala1_stat;
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp27_ = _data_->_tmp26_.net_read;
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp28_ = _data_->_vala1_stat;
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp29_ = _data_->_tmp28_.net_write;
#line 256 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_vala_array_add4 (&_data_->self->net_stats, &_data_->self->net_stats_length1, &_data_->self->_net_stats_size_, _data_->_tmp27_ + _data_->_tmp29_);
#line 257 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp30_ = _data_->self->io_stats;
#line 257 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp30__length1 = _data_->self->io_stats_length1;
#line 257 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp31_ = _data_->_vala1_stat;
#line 257 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp32_ = _data_->_tmp31_.disk_read;
#line 257 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp33_ = _data_->_vala1_stat;
#line 257 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp34_ = _data_->_tmp33_.disk_write;
#line 257 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_vala_array_add5 (&_data_->self->io_stats, &_data_->self->io_stats_length1, &_data_->self->_io_stats_size_, _data_->_tmp32_ + _data_->_tmp34_);
#line 254 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_libvirt_machine_machine_stat_destroy (&_data_->_vala1_stat);
#line 3435 "libvirt-machine.c"
			}
		}
	}
#line 260 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_emit_by_name (_data_->self, "stats-updated");
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3445 "libvirt-machine.c"
	} else {
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3449 "libvirt-machine.c"
	}
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 230 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 3455 "libvirt-machine.c"
}


static Block18Data* block18_data_ref (Block18Data* _data18_) {
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data18_->_ref_count_);
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data18_;
#line 3464 "libvirt-machine.c"
}


static void block18_data_unref (void * _userdata_) {
	Block18Data* _data18_;
	_data18_ = (Block18Data*) _userdata_;
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data18_->_ref_count_)) {
#line 3473 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data18_->self;
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block18Data, _data18_);
#line 3481 "libvirt-machine.c"
	}
}


static void __lambda86_ (Block18Data* _data18_) {
	BoxesLibvirtMachine * self;
#line 279 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data18_->self;
#line 279 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data18_->stats_updating = FALSE;
#line 3492 "libvirt-machine.c"
}


static void ___lambda86__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 279 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda86_ (self);
#line 279 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block18_data_unref (self);
#line 3501 "libvirt-machine.c"
}


static gboolean ___lambda83_ (Block18Data* _data18_) {
	BoxesLibvirtMachine * self;
	gboolean result = FALSE;
	gboolean _tmp0_;
#line 271 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data18_->self;
#line 272 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _data18_->stats_updating;
#line 272 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 3515 "libvirt-machine.c"
		const gchar* _tmp1_;
		const gchar* _tmp2_;
#line 273 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 273 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 273 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:273: Fetching of stats for '%s' is taking too lon" \
"g. Probably a libvirt bug.", _tmp2_);
#line 275 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		result = TRUE;
#line 275 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return result;
#line 3528 "libvirt-machine.c"
	}
#line 278 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data18_->stats_updating = TRUE;
#line 279 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_stats (self, ___lambda86__gasync_ready_callback, block18_data_ref (_data18_));
#line 281 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = TRUE;
#line 281 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3538 "libvirt-machine.c"
}


static gboolean ____lambda83__gsource_func (gpointer self) {
	gboolean result;
	result = ___lambda83_ (self);
#line 271 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 3547 "libvirt-machine.c"
}


static void boxes_libvirt_machine_set_stats_enable (BoxesLibvirtMachine* self, gboolean enable) {
	gboolean _tmp0_;
#line 263 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = enable;
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 3559 "libvirt-machine.c"
		Block18Data* _data18_;
		const gchar* _tmp1_;
		const gchar* _tmp2_;
		gchar* _tmp3_;
		gchar* _tmp4_;
		guint _tmp5_;
		GCancellable* _tmp6_;
		guint _tmp7_ = 0U;
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data18_ = g_slice_new0 (Block18Data);
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data18_->_ref_count_ = 1;
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data18_->self = g_object_ref (self);
#line 265 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 265 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 265 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = g_strconcat ("enable statistics for ", _tmp2_, NULL);
#line 265 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 265 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:265: %s", _tmp4_);
#line 265 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp4_);
#line 266 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = self->priv->stats_update_timeout;
#line 266 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp5_ != ((guint) 0)) {
#line 267 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block18_data_unref (_data18_);
#line 267 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data18_ = NULL;
#line 267 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3596 "libvirt-machine.c"
		}
#line 269 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = self->priv->stats_cancellable;
#line 269 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_cancellable_reset (_tmp6_);
#line 270 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data18_->stats_updating = FALSE;
#line 271 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 1, ____lambda83__gsource_func, block18_data_ref (_data18_), block18_data_unref);
#line 271 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->stats_update_timeout = _tmp7_;
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block18_data_unref (_data18_);
#line 264 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data18_ = NULL;
#line 3612 "libvirt-machine.c"
	} else {
		const gchar* _tmp8_;
		const gchar* _tmp9_;
		gchar* _tmp10_;
		gchar* _tmp11_;
		guint _tmp12_;
#line 284 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 284 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _tmp8_;
#line 284 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = g_strconcat ("disable statistics for ", _tmp9_, NULL);
#line 284 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _tmp10_;
#line 284 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:284: %s", _tmp11_);
#line 284 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp11_);
#line 285 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = self->priv->stats_update_timeout;
#line 285 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp12_ != ((guint) 0)) {
#line 3635 "libvirt-machine.c"
			GCancellable* _tmp13_;
			guint _tmp14_;
#line 286 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp13_ = self->priv->stats_cancellable;
#line 286 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_cancellable_cancel (_tmp13_);
#line 287 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp14_ = self->priv->stats_update_timeout;
#line 287 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_source_remove (_tmp14_);
#line 3646 "libvirt-machine.c"
		}
#line 289 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->stats_update_timeout = (guint) 0;
#line 3650 "libvirt-machine.c"
	}
}


void boxes_libvirt_machine_try_change_name (BoxesLibvirtMachine* self, const gchar* name, GError** error) {
	GError * _inner_error_ = NULL;
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 293 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (name != NULL);
#line 3661 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
		GVirConfigDomain* _tmp1_ = NULL;
		GVirConfigDomain* config;
		GVirConfigDomain* _tmp2_;
		const gchar* _tmp3_;
		GVirDomain* _tmp4_;
		GVirConfigDomain* _tmp5_;
		const gchar* _tmp6_;
#line 295 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->domain;
#line 295 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 295 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		config = _tmp1_;
#line 295 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 3679 "libvirt-machine.c"
			goto __catch17_g_error;
		}
#line 297 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = config;
#line 297 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = name;
#line 297 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_config_domain_set_title (_tmp2_, _tmp3_);
#line 299 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->domain;
#line 299 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = config;
#line 299 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_set_config (_tmp4_, _tmp5_, &_inner_error_);
#line 299 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 299 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (config);
#line 3698 "libvirt-machine.c"
			goto __catch17_g_error;
		}
#line 301 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = name;
#line 301 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_collection_item_set_name ((BoxesCollectionItem*) self, _tmp6_);
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 3707 "libvirt-machine.c"
	}
	goto __finally17;
	__catch17_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp7_;
		const gchar* _tmp8_ = NULL;
		const gchar* _tmp9_;
		GError* _tmp10_;
		const gchar* _tmp11_;
		GError* _tmp12_;
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = self->domain;
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = gvir_domain_get_name (_tmp7_);
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = name;
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = _error_;
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _tmp10_->message;
#line 303 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:303: Failed to change title of box '%s' to '%s': " \
"%s", _tmp8_, _tmp9_, _tmp11_);
#line 305 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, "Invalid libvirt title");
#line 305 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = _tmp12_;
#line 305 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 3741 "libvirt-machine.c"
		goto __finally17;
	}
	__finally17:
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3753 "libvirt-machine.c"
		} else {
#line 294 "/extra-data/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 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 294 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 3761 "libvirt-machine.c"
		}
	}
}


void boxes_libvirt_machine_try_enable_usb_redir (BoxesLibvirtMachine* self, GError** error) {
	GVirDomain* _tmp0_;
	GVirConfigDomain* _tmp1_ = NULL;
	GVirConfigDomain* config;
	GVirConfigDomain* _tmp2_;
	GVirConfigDomain* _tmp3_;
	GVirDomain* _tmp4_;
	GVirConfigDomain* _tmp5_;
	gboolean _tmp6_ = FALSE;
	GError * _inner_error_ = NULL;
#line 309 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 310 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->domain;
#line 310 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 310 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	config = _tmp1_;
#line 310 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 310 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 310 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 3791 "libvirt-machine.c"
	}
#line 313 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = config;
#line 313 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_vm_configurator_remove_usb_controllers (_tmp2_, &_inner_error_);
#line 313 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 313 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 313 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 313 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 3805 "libvirt-machine.c"
	}
#line 316 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = config;
#line 316 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_vm_configurator_add_usb_support (_tmp3_);
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = self->domain;
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = config;
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gvir_domain_set_config (_tmp4_, _tmp5_, &_inner_error_);
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 319 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 3825 "libvirt-machine.c"
	}
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = boxes_machine_is_on ((BoxesMachine*) self);
#line 320 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp6_) {
#line 321 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_notify_reboot_required (self);
#line 3833 "libvirt-machine.c"
	}
#line 309 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (config);
#line 3837 "libvirt-machine.c"
}


void boxes_libvirt_machine_try_enable_smartcard (BoxesLibvirtMachine* self, GError** error) {
	GVirDomain* _tmp0_;
	GVirConfigDomain* _tmp1_ = NULL;
	GVirConfigDomain* config;
	GVirConfigDomain* _tmp2_;
	GVirDomain* _tmp3_;
	GVirConfigDomain* _tmp4_;
	gboolean _tmp5_ = FALSE;
	GError * _inner_error_ = NULL;
#line 324 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 325 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->domain;
#line 325 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 325 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	config = _tmp1_;
#line 325 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 325 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 325 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 3864 "libvirt-machine.c"
	}
#line 327 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = config;
#line 327 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_vm_configurator_add_smartcard_support (_tmp2_);
#line 330 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = self->domain;
#line 330 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = config;
#line 330 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gvir_domain_set_config (_tmp3_, _tmp4_, &_inner_error_);
#line 330 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 330 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 330 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 330 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 3884 "libvirt-machine.c"
	}
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = boxes_machine_is_on ((BoxesMachine*) self);
#line 331 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp5_) {
#line 332 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_notify_reboot_required (self);
#line 3892 "libvirt-machine.c"
	}
#line 324 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (config);
#line 3896 "libvirt-machine.c"
}


static gchar* boxes_libvirt_machine_collect_logs (BoxesLibvirtMachine* self) {
	gchar* result = NULL;
	GString* _tmp0_;
	GString* builder;
	GString* _tmp1_;
	GVirDomain* _tmp2_;
	const gchar* _tmp3_ = NULL;
	GString* _tmp4_;
	GVirDomain* _tmp5_;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	GVirDomain* _tmp8_;
	gboolean _tmp9_ = FALSE;
	GString* _tmp10_;
	const gchar* _tmp11_;
	BoxesDisplay* _tmp25_;
	BoxesDisplay* _tmp26_;
	GString* _tmp50_;
	const gchar* _tmp51_;
	gchar* _tmp52_;
	GError * _inner_error_ = NULL;
#line 335 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 336 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = g_string_new ("");
#line 336 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	builder = _tmp0_;
#line 338 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = builder;
#line 338 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = self->domain;
#line 338 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = gvir_domain_get_name (_tmp2_);
#line 338 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_string_append_printf (_tmp1_, "Domain: %s\n", _tmp3_);
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = builder;
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = self->domain;
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = gvir_domain_get_uuid (_tmp5_);
#line 339 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_string_append_printf (_tmp4_, "UUID: %s\n", _tmp6_);
#line 340 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = self->domain;
#line 340 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = gvir_domain_get_persistent (_tmp8_);
#line 340 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp9_) {
#line 340 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = "yes";
#line 3951 "libvirt-machine.c"
	} else {
#line 340 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = "no";
#line 3955 "libvirt-machine.c"
	}
#line 340 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = builder;
#line 340 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = _tmp7_;
#line 340 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_string_append_printf (_tmp10_, "Persistent: %s\n", _tmp11_);
#line 3963 "libvirt-machine.c"
	{
		GVirDomain* _tmp12_;
		GVirDomainInfo* _tmp13_ = NULL;
		GVirDomainInfo* info;
		GString* _tmp14_;
		guint64 _tmp15_;
		GString* _tmp16_;
		guint64 _tmp17_;
		GString* _tmp18_;
		guint64 _tmp19_;
		GString* _tmp20_;
		guint16 _tmp21_;
		GString* _tmp22_;
		GVirDomainState _tmp23_;
		GEnumValue* _tmp24_;
#line 342 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = self->domain;
#line 342 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = gvir_domain_get_info (_tmp12_, &_inner_error_);
#line 342 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		info = _tmp13_;
#line 342 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 3987 "libvirt-machine.c"
			goto __catch18_g_error;
		}
#line 343 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = builder;
#line 343 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = info->cpuTime;
#line 343 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append_printf (_tmp14_, "Cpu time: %" G_GINT64_MODIFIER "d\n", _tmp15_);
#line 344 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp16_ = builder;
#line 344 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp17_ = info->memory;
#line 344 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append_printf (_tmp16_, "Memory: %" G_GINT64_MODIFIER "d\n", _tmp17_);
#line 345 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp18_ = builder;
#line 345 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp19_ = info->maxMem;
#line 345 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append_printf (_tmp18_, "Max memory: %" G_GINT64_MODIFIER "d\n", _tmp19_);
#line 346 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp20_ = builder;
#line 346 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp21_ = info->nrVirtCpu;
#line 346 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append_printf (_tmp20_, "CPUs: %d\n", (gint) _tmp21_);
#line 347 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp22_ = builder;
#line 347 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp23_ = info->state;
#line 347 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp24_ = g_enum_get_value (g_type_class_ref (gvir_domain_state_get_type ()), _tmp23_);
#line 347 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append_printf (_tmp22_, "State: %s\n", (_tmp24_ != NULL) ? _tmp24_->value_name : NULL);
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (info);
#line 4024 "libvirt-machine.c"
	}
	goto __finally18;
	__catch18_g_error:
	{
		GError* e = NULL;
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		e = _inner_error_;
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (e);
#line 4036 "libvirt-machine.c"
	}
	__finally18:
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_string_free0 (builder);
#line 341 "/extra-data/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 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 341 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 4049 "libvirt-machine.c"
	}
#line 351 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp25_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 351 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp26_ = _tmp25_;
#line 351 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp26_ != NULL) {
#line 4057 "libvirt-machine.c"
		BoxesDisplay* _tmp27_;
		BoxesDisplay* _tmp28_;
		GString* _tmp29_;
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp27_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp28_ = _tmp27_;
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp29_ = builder;
#line 352 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_display_collect_logs (_tmp28_, _tmp29_);
#line 4069 "libvirt-machine.c"
	}
	{
		GVirDomain* _tmp30_;
		GVirConfigDomain* _tmp31_ = NULL;
		GVirConfigDomain* conf;
		GString* _tmp32_;
		GString* _tmp33_;
		GString* _tmp34_;
		gchar* _tmp35_ = NULL;
		gchar* _tmp36_;
		GString* _tmp37_;
#line 356 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp30_ = self->domain;
#line 356 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp31_ = gvir_domain_get_config (_tmp30_, (guint) GVIR_DOMAIN_XML_NONE, &_inner_error_);
#line 356 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		conf = _tmp31_;
#line 356 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 4089 "libvirt-machine.c"
			goto __catch19_g_error;
		}
#line 357 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp32_ = builder;
#line 357 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append_printf (_tmp32_, "\nDomain config:\n");
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp33_ = builder;
#line 358 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append_printf (_tmp33_, "------------------------------------------------------------\n");
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp34_ = builder;
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp35_ = gvir_config_object_to_xml ((GVirConfigObject*) conf);
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp36_ = _tmp35_;
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append (_tmp34_, _tmp36_);
#line 360 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp36_);
#line 361 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp37_ = builder;
#line 361 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append_printf (_tmp37_, "%s", "\n" "------------------------------------------------------------\n");
#line 355 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (conf);
#line 4116 "libvirt-machine.c"
	}
	goto __finally19;
	__catch19_g_error:
	{
		GError* _error_ = NULL;
#line 355 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 355 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 355 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 4128 "libvirt-machine.c"
	}
	__finally19:
#line 355 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 355 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_string_free0 (builder);
#line 355 "/extra-data/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 355 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 355 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 4141 "libvirt-machine.c"
	}
	{
		const gchar* _tmp38_ = NULL;
		GVirDomain* _tmp39_;
		const gchar* _tmp40_ = NULL;
		gchar* _tmp41_;
		gchar* _tmp42_;
		gchar* _tmp43_ = NULL;
		gchar* _tmp44_;
		gchar* logfile;
		gchar* data = NULL;
		gchar* _tmp45_ = NULL;
		GString* _tmp46_;
		GString* _tmp47_;
		GString* _tmp48_;
		GString* _tmp49_;
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp38_ = g_get_user_cache_dir ();
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp39_ = self->domain;
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp40_ = gvir_domain_get_name (_tmp39_);
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp41_ = g_strconcat (_tmp40_, ".log", NULL);
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp42_ = _tmp41_;
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp43_ = g_build_filename (_tmp38_, "libvirt/qemu/log", _tmp42_, NULL);
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp44_ = _tmp43_;
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_tmp42_);
#line 367 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		logfile = _tmp44_;
#line 369 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_file_get_contents (logfile, &_tmp45_, NULL, &_inner_error_);
#line 369 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (data);
#line 369 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		data = _tmp45_;
#line 369 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 369 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (data);
#line 369 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (logfile);
#line 4188 "libvirt-machine.c"
			goto __catch20_g_error;
		}
#line 370 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp46_ = builder;
#line 370 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append_printf (_tmp46_, "\nQEMU log:\n");
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp47_ = builder;
#line 371 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append_printf (_tmp47_, "------------------------------------------------------------\n");
#line 373 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp48_ = builder;
#line 373 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append (_tmp48_, data);
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp49_ = builder;
#line 374 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_string_append_printf (_tmp49_, "------------------------------------------------------------\n");
#line 366 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (data);
#line 366 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (logfile);
#line 4211 "libvirt-machine.c"
	}
	goto __finally20;
	__catch20_g_error:
	{
		GError* e = NULL;
#line 366 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		e = _inner_error_;
#line 366 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 366 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (e);
#line 4223 "libvirt-machine.c"
	}
	__finally20:
#line 366 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 366 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_string_free0 (builder);
#line 366 "/extra-data/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 366 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 366 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return NULL;
#line 4236 "libvirt-machine.c"
	}
#line 377 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp50_ = builder;
#line 377 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp51_ = _tmp50_->str;
#line 377 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp52_ = g_strdup (_tmp51_);
#line 377 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = _tmp52_;
#line 377 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_string_free0 (builder);
#line 377 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 4250 "libvirt-machine.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 4257 "libvirt-machine.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_list_free (self);
#line 4266 "libvirt-machine.c"
}


static void ___lambda98_ (BoxesLibvirtMachine* self, BoxesProperty* property, const gchar* name, GError** error) {
	const gchar* _tmp0_;
	GError * _inner_error_ = NULL;
#line 393 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (property != NULL);
#line 393 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (name != NULL);
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = name;
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_try_change_name (self, _tmp0_, &_inner_error_);
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 4289 "libvirt-machine.c"
		} else {
#line 394 "/extra-data/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 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 394 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 4297 "libvirt-machine.c"
		}
	}
}


static void ____lambda98__property_string_changed (BoxesProperty* property, const gchar* value, gpointer self, GError** error) {
#line 393 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda98_ (self, property, value, error);
#line 4306 "libvirt-machine.c"
}


static Block19Data* block19_data_ref (Block19Data* _data19_) {
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data19_->_ref_count_);
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data19_;
#line 4315 "libvirt-machine.c"
}


static void block19_data_unref (void * _userdata_) {
	Block19Data* _data19_;
	_data19_ = (Block19Data*) _userdata_;
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data19_->_ref_count_)) {
#line 4324 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data19_->self;
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data19_->dialog);
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (_data19_->log);
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block19Data, _data19_);
#line 4336 "libvirt-machine.c"
	}
}


static Block20Data* block20_data_ref (Block20Data* _data20_) {
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data20_->_ref_count_);
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data20_;
#line 4346 "libvirt-machine.c"
}


static void block20_data_unref (void * _userdata_) {
	Block20Data* _data20_;
	_data20_ = (Block20Data*) _userdata_;
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data20_->_ref_count_)) {
#line 4355 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data20_->_data19_->self;
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data20_->chooser);
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block19_data_unref (_data20_->_data19_);
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data20_->_data19_ = NULL;
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block20Data, _data20_);
#line 4367 "libvirt-machine.c"
	}
}


static guint8* string_get_data (const gchar* self, int* result_length1) {
	guint8* result;
	guint8* res;
	gint res_length1;
	gint _res_size_;
	gint _tmp0_;
	gint _tmp1_;
	gint _tmp2_;
	guint8* _tmp3_;
	gint _tmp3__length1;
	guint8* _tmp4_;
	gint _tmp4__length1;
#line 1250 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1251 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	res = (guint8*) self;
#line 1251 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	res_length1 = -1;
#line 1251 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_res_size_ = res_length1;
#line 1252 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1252 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1252 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	res_length1 = (gint) _tmp1_;
#line 1252 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_tmp2_ = res_length1;
#line 1253 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_tmp3_ = res;
#line 1253 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_tmp3__length1 = res_length1;
#line 1253 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_tmp4_ = _tmp3_;
#line 1253 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	_tmp4__length1 = _tmp3__length1;
#line 1253 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	if (result_length1) {
#line 1253 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
		*result_length1 = _tmp4__length1;
#line 4412 "libvirt-machine.c"
	}
#line 1253 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	result = _tmp4_;
#line 1253 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	return result;
#line 4418 "libvirt-machine.c"
}


static Block21Data* block21_data_ref (Block21Data* _data21_) {
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data21_->_ref_count_);
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data21_;
#line 4427 "libvirt-machine.c"
}


static void block21_data_unref (void * _userdata_) {
	Block21Data* _data21_;
	_data21_ = (Block21Data*) _userdata_;
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data21_->_ref_count_)) {
#line 4436 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data21_->_data20_->_data19_->self;
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data21_->m);
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block20_data_unref (_data21_->_data20_);
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data21_->_data20_ = NULL;
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block21Data, _data21_);
#line 4448 "libvirt-machine.c"
	}
}


static void ____lambda105_ (Block21Data* _data21_) {
	Block20Data* _data20_;
	Block19Data* _data19_;
	BoxesLibvirtMachine * self;
	GtkMessageDialog* _tmp0_;
#line 447 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data20_ = _data21_->_data20_;
#line 447 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data19_ = _data20_->_data19_;
#line 447 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data19_->self;
#line 447 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _data21_->m;
#line 447 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp0_);
#line 4468 "libvirt-machine.c"
}


static void _____lambda105__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 447 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	____lambda105_ (self);
#line 4475 "libvirt-machine.c"
}


static void ___lambda104_ (Block20Data* _data20_, gint response_id) {
	Block19Data* _data19_;
	BoxesLibvirtMachine * self;
	gint _tmp0_;
	GError * _inner_error_ = NULL;
#line 434 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data19_ = _data20_->_data19_;
#line 434 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data19_->self;
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = response_id;
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_ == ((gint) GTK_RESPONSE_OK)) {
#line 4492 "libvirt-machine.c"
		GtkFileChooserDialog* _tmp1_;
		GFile* _tmp2_ = NULL;
		GFile* _tmp3_;
		GFile* file;
		GtkFileChooserDialog* _tmp17_;
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = _data20_->chooser;
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = gtk_file_chooser_get_file ((GtkFileChooser*) _tmp1_);
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _g_object_ref0 (_tmp2_);
#line 436 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		file = _tmp3_;
#line 4506 "libvirt-machine.c"
		{
			GFile* _tmp4_;
			guint8* _tmp5_;
			gint _tmp5__length1;
			guint8* _tmp6_;
			gint _tmp6__length1;
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp4_ = file;
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp5_ = string_get_data (_data19_->log, &_tmp5__length1);
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6_ = _tmp5_;
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6__length1 = _tmp5__length1;
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_file_replace_contents (_tmp4_, _tmp6_, (gsize) _tmp6__length1, NULL, FALSE, G_FILE_CREATE_REPLACE_DESTINATION, NULL, NULL, &_inner_error_);
#line 438 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 4525 "libvirt-machine.c"
				goto __catch22_g_error;
			}
		}
		goto __finally22;
		__catch22_g_error:
		{
			GError* e = NULL;
			Block21Data* _data21_;
			GtkFileChooserDialog* _tmp7_;
			const gchar* _tmp8_ = NULL;
			GError* _tmp9_;
			const gchar* _tmp10_;
			gchar* _tmp11_ = NULL;
			gchar* _tmp12_;
			GtkMessageDialog* _tmp13_;
			GtkMessageDialog* _tmp14_;
			GtkMessageDialog* _tmp15_;
			GtkMessageDialog* _tmp16_;
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			e = _inner_error_;
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_inner_error_ = NULL;
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data21_ = g_slice_new0 (Block21Data);
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data21_->_ref_count_ = 1;
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data21_->_data20_ = block20_data_ref (_data20_);
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = _data20_->chooser;
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = _ ("Error saving: %s");
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp9_ = e;
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp10_ = _tmp9_->message;
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp11_ = g_strdup_printf (_tmp8_, _tmp10_);
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp12_ = _tmp11_;
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp13_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) _tmp7_, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _tmp12_);
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_ref_sink (_tmp13_);
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp14_ = _tmp13_;
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp12_);
#line 441 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data21_->m = _tmp14_;
#line 446 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp15_ = _data21_->m;
#line 446 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gtk_widget_show_all ((GtkWidget*) _tmp15_);
#line 447 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp16_ = _data21_->m;
#line 447 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_signal_connect_data ((GtkDialog*) _tmp16_, "response", (GCallback) _____lambda105__gtk_dialog_response, block21_data_ref (_data21_), (GClosureNotify) block21_data_unref, 0);
#line 448 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_error_free0 (e);
#line 448 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block21_data_unref (_data21_);
#line 448 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data21_ = NULL;
#line 448 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (file);
#line 448 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 4594 "libvirt-machine.c"
		}
		__finally22:
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (file);
#line 437 "/extra-data/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 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 437 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 4607 "libvirt-machine.c"
		}
#line 450 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp17_ = _data20_->chooser;
#line 450 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp17_);
#line 435 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (file);
#line 4615 "libvirt-machine.c"
	} else {
		GtkFileChooserDialog* _tmp18_;
#line 452 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp18_ = _data20_->chooser;
#line 452 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp18_);
#line 4622 "libvirt-machine.c"
	}
}


static void ____lambda104__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 434 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda104_ (self, response_id);
#line 4630 "libvirt-machine.c"
}


static void __lambda103_ (Block19Data* _data19_, gint response_id) {
	BoxesLibvirtMachine * self;
	gint _tmp0_;
#line 427 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data19_->self;
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = response_id;
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_ == 100) {
#line 4643 "libvirt-machine.c"
		Block20Data* _data20_;
		const gchar* _tmp1_ = NULL;
		BoxesApp* _tmp2_;
		GtkApplicationWindow* _tmp3_;
		GtkFileChooserDialog* _tmp4_;
		GtkFileChooserDialog* _tmp5_;
		GtkFileChooserDialog* _tmp6_;
		GtkFileChooserDialog* _tmp7_;
		GtkFileChooserDialog* _tmp8_;
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data20_ = g_slice_new0 (Block20Data);
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data20_->_ref_count_ = 1;
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data20_->_data19_ = block19_data_ref (_data19_);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = _ ("Save log");
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = boxes_app_app;
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _tmp2_->window;
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_tmp1_, (GtkWindow*) _tmp3_, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_SAVE, GTK_RESPONSE_OK, NULL);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_ref_sink (_tmp4_);
#line 429 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data20_->chooser = _tmp4_;
#line 432 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _data20_->chooser;
#line 432 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_file_chooser_set_local_only ((GtkFileChooser*) _tmp5_, FALSE);
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _data20_->chooser;
#line 433 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_file_chooser_set_do_overwrite_confirmation ((GtkFileChooser*) _tmp6_, TRUE);
#line 434 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _data20_->chooser;
#line 434 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_signal_connect_data ((GtkDialog*) _tmp7_, "response", (GCallback) ____lambda104__gtk_dialog_response, block20_data_ref (_data20_), (GClosureNotify) block20_data_unref, 0);
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _data20_->chooser;
#line 455 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_widget_show_all ((GtkWidget*) _tmp8_);
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block20_data_unref (_data20_);
#line 428 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data20_ = NULL;
#line 4691 "libvirt-machine.c"
	} else {
		gint _tmp9_;
#line 456 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = response_id;
#line 456 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp9_ == 101) {
#line 4698 "libvirt-machine.c"
			GdkDisplay* _tmp10_ = NULL;
			GtkClipboard* _tmp11_ = NULL;
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp10_ = gtk_widget_get_display ((GtkWidget*) _data19_->dialog);
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp11_ = gtk_clipboard_get_for_display (_tmp10_, GDK_SELECTION_CLIPBOARD);
#line 457 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gtk_clipboard_set_text (_tmp11_, _data19_->log, -1);
#line 4707 "libvirt-machine.c"
		} else {
#line 459 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gtk_widget_destroy ((GtkWidget*) _data19_->dialog);
#line 4711 "libvirt-machine.c"
		}
	}
}


static void ___lambda103__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 427 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda103_ (self, response_id);
#line 4720 "libvirt-machine.c"
}


static void ___lambda102_ (BoxesLibvirtMachine* self) {
	Block19Data* _data19_;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	BoxesApp* _tmp2_;
	GtkApplicationWindow* _tmp3_;
	const gchar* _tmp4_ = NULL;
	GtkDialog* _tmp5_;
	GtkTextView* _tmp6_;
	GtkTextView* text;
	GtkScrolledWindow* _tmp7_;
	GtkScrolledWindow* scroll;
	GtkBox* _tmp8_ = NULL;
	GtkTextBuffer* _tmp9_;
	GtkTextBuffer* _tmp10_;
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data19_ = g_slice_new0 (Block19Data);
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data19_->_ref_count_ = 1;
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data19_->self = g_object_ref (self);
#line 409 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_libvirt_machine_collect_logs (self);
#line 409 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data19_->log = _tmp0_;
#line 410 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _ ("Troubleshooting log");
#line 410 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = boxes_app_app;
#line 410 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_->window;
#line 410 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = _ ("Copy to clipboard");
#line 410 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = (GtkDialog*) gtk_dialog_new_with_buttons (_tmp1_, (GtkWindow*) _tmp3_, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_SAVE, 100, _tmp4_, 101, GTK_STOCK_CLOSE, GTK_RESPONSE_OK, NULL);
#line 410 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_ref_sink (_tmp5_);
#line 410 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data19_->dialog = _tmp5_;
#line 416 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gtk_window_set_default_size ((GtkWindow*) _data19_->dialog, 640, 480);
#line 417 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = (GtkTextView*) gtk_text_view_new ();
#line 417 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_ref_sink (_tmp6_);
#line 417 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	text = _tmp6_;
#line 418 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gtk_text_view_set_editable (text, FALSE);
#line 419 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
#line 419 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_ref_sink (_tmp7_);
#line 419 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	scroll = _tmp7_;
#line 420 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gtk_container_add ((GtkContainer*) scroll, (GtkWidget*) text);
#line 421 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gtk_widget_set_vexpand ((GtkWidget*) scroll, TRUE);
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = gtk_dialog_get_content_area (_data19_->dialog);
#line 423 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gtk_container_add ((GtkContainer*) _tmp8_, (GtkWidget*) scroll);
#line 424 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = gtk_text_view_get_buffer (text);
#line 424 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = _tmp9_;
#line 424 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gtk_text_buffer_set_text (_tmp10_, _data19_->log, -1);
#line 425 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gtk_widget_show_all ((GtkWidget*) _data19_->dialog);
#line 427 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_signal_connect_data (_data19_->dialog, "response", (GCallback) ___lambda103__gtk_dialog_response, block19_data_ref (_data19_), (GClosureNotify) block19_data_unref, 0);
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (scroll);
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (text);
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block19_data_unref (_data19_);
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data19_ = NULL;
#line 4805 "libvirt-machine.c"
}


static void ____lambda102__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda102_ (self);
#line 4812 "libvirt-machine.c"
}


static Block22Data* block22_data_ref (Block22Data* _data22_) {
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data22_->_ref_count_);
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data22_;
#line 4821 "libvirt-machine.c"
}


static void block22_data_unref (void * _userdata_) {
	Block22Data* _data22_;
	_data22_ = (Block22Data*) _userdata_;
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data22_->_ref_count_)) {
#line 4830 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data22_->self;
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data22_->disk_config);
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block22Data, _data22_);
#line 4840 "libvirt-machine.c"
	}
}


static Block23Data* block23_data_ref (Block23Data* _data23_) {
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data23_->_ref_count_);
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data23_;
#line 4850 "libvirt-machine.c"
}


static void block23_data_unref (void * _userdata_) {
	Block23Data* _data23_;
	_data23_ = (Block23Data*) _userdata_;
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data23_->_ref_count_)) {
#line 4859 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data23_->_data22_->self;
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data23_->button_label);
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data23_->label);
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block22_data_unref (_data23_->_data22_);
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data23_->_data22_ = NULL;
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block23Data, _data23_);
#line 4873 "libvirt-machine.c"
	}
}


static Block24Data* block24_data_ref (Block24Data* _data24_) {
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data24_->_ref_count_);
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data24_;
#line 4883 "libvirt-machine.c"
}


static void block24_data_unref (void * _userdata_) {
	Block24Data* _data24_;
	_data24_ = (Block24Data*) _userdata_;
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data24_->_ref_count_)) {
#line 4892 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data24_->_data23_->_data22_->self;
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data24_->dialog);
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block23_data_unref (_data24_->_data23_);
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data24_->_data23_ = NULL;
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block24Data, _data24_);
#line 4904 "libvirt-machine.c"
	}
}


static void ___lambda107_ (Block24Data* _data24_, gint response) {
	Block23Data* _data23_;
	Block22Data* _data22_;
	BoxesLibvirtMachine * self;
	gint _tmp0_;
	GtkFileChooserDialog* _tmp15_;
	GError * _inner_error_ = NULL;
#line 516 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data23_ = _data24_->_data23_;
#line 516 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data22_ = _data23_->_data22_;
#line 516 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data22_->self;
#line 517 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = response;
#line 517 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_ == ((gint) GTK_RESPONSE_ACCEPT)) {
#line 4926 "libvirt-machine.c"
		GtkFileChooserDialog* _tmp1_;
		gchar* _tmp2_ = NULL;
		gchar* path;
		GVirConfigDomainDisk* _tmp3_;
		const gchar* _tmp4_;
#line 518 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = _data24_->dialog;
#line 518 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = gtk_file_chooser_get_filename ((GtkFileChooser*) _tmp1_);
#line 518 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		path = _tmp2_;
#line 519 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _data22_->disk_config;
#line 519 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = path;
#line 519 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_config_domain_disk_set_source (_tmp3_, _tmp4_);
#line 4944 "libvirt-machine.c"
		{
			GVirDomain* _tmp5_;
			GVirConfigDomainDisk* _tmp6_;
			GtkLabel* _tmp7_;
			const gchar* _tmp8_ = NULL;
			GtkLabel* _tmp9_;
			const gchar* _tmp10_;
			gchar* _tmp11_ = NULL;
			gchar* _tmp12_;
#line 521 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp5_ = self->domain;
#line 521 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6_ = _data22_->disk_config;
#line 521 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_update_device (_tmp5_, (GVirConfigDomainDevice*) _tmp6_, (guint) GVIR_DOMAIN_UPDATE_DEVICE_CURRENT, &_inner_error_);
#line 521 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 4962 "libvirt-machine.c"
				goto __catch23_g_error;
			}
#line 522 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = _data23_->button_label;
#line 522 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = _ ("Remove");
#line 522 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gtk_label_set_text (_tmp7_, _tmp8_);
#line 523 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp9_ = _data23_->label;
#line 523 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp10_ = path;
#line 523 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp11_ = boxes_get_utf8_basename (_tmp10_);
#line 523 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp12_ = _tmp11_;
#line 523 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gtk_label_set_text (_tmp9_, _tmp12_);
#line 523 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp12_);
#line 524 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data23_->empty = FALSE;
#line 4985 "libvirt-machine.c"
		}
		goto __finally23;
		__catch23_g_error:
		{
			GError* e = NULL;
			GError* _tmp13_;
			const gchar* _tmp14_;
#line 520 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			e = _inner_error_;
#line 520 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_inner_error_ = NULL;
#line 526 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp13_ = e;
#line 526 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp14_ = _tmp13_->message;
#line 526 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_signal_emit_by_name ((BoxesMachine*) self, "got-error", _tmp14_);
#line 520 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_error_free0 (e);
#line 5005 "libvirt-machine.c"
		}
		__finally23:
#line 520 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 520 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (path);
#line 520 "/extra-data/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 520 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 520 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 5018 "libvirt-machine.c"
		}
#line 517 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (path);
#line 5022 "libvirt-machine.c"
	}
#line 529 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = _data24_->dialog;
#line 529 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp15_);
#line 5028 "libvirt-machine.c"
}


static void ____lambda107__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 516 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda107_ (self, response_id);
#line 5035 "libvirt-machine.c"
}


static void ______lambda106_ (Block23Data* _data23_) {
	Block22Data* _data22_;
	BoxesLibvirtMachine * self;
	gboolean _tmp0_;
	GError * _inner_error_ = NULL;
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data22_ = _data23_->_data22_;
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data22_->self;
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _data23_->empty;
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 5052 "libvirt-machine.c"
		Block24Data* _data24_;
		const gchar* _tmp1_ = NULL;
		BoxesApp* _tmp2_;
		GtkApplicationWindow* _tmp3_;
		GtkFileChooserDialog* _tmp4_;
		GtkFileChooserDialog* _tmp5_;
		GtkFileChooserDialog* _tmp6_;
		GtkFileChooserDialog* _tmp7_;
		GtkFileChooserDialog* _tmp8_;
		GtkFileFilter* _tmp9_;
		GtkFileFilter* _tmp10_;
		GtkFileChooserDialog* _tmp11_;
		GtkFileFilter* _tmp12_;
		GtkFileFilter* _tmp13_;
		GtkFileChooserDialog* _tmp14_;
		GtkFileChooserDialog* _tmp15_;
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data24_ = g_slice_new0 (Block24Data);
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data24_->_ref_count_ = 1;
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data24_->_data23_ = block23_data_ref (_data23_);
#line 506 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = _ ("Select a device or ISO file");
#line 506 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = boxes_app_app;
#line 506 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _tmp2_->window;
#line 506 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_tmp1_, (GtkWindow*) _tmp3_, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);
#line 506 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_ref_sink (_tmp4_);
#line 506 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data24_->dialog = _tmp4_;
#line 511 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _data24_->dialog;
#line 511 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_window_set_modal ((GtkWindow*) _tmp5_, TRUE);
#line 512 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _data24_->dialog;
#line 512 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_file_chooser_set_show_hidden ((GtkFileChooser*) _tmp6_, FALSE);
#line 513 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _data24_->dialog;
#line 513 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_file_chooser_set_local_only ((GtkFileChooser*) _tmp7_, TRUE);
#line 514 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _data24_->dialog;
#line 514 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = gtk_file_filter_new ();
#line 514 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_ref_sink (_tmp9_);
#line 514 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = _tmp9_;
#line 514 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_file_chooser_set_filter ((GtkFileChooser*) _tmp8_, _tmp10_);
#line 514 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_tmp10_);
#line 515 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _data24_->dialog;
#line 515 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = gtk_file_chooser_get_filter ((GtkFileChooser*) _tmp11_);
#line 515 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = _tmp12_;
#line 515 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_file_filter_add_mime_type (_tmp13_, "application/x-cd-image");
#line 516 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = _data24_->dialog;
#line 516 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_signal_connect_data ((GtkDialog*) _tmp14_, "response", (GCallback) ____lambda107__gtk_dialog_response, block24_data_ref (_data24_), (GClosureNotify) block24_data_unref, 0);
#line 531 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = _data24_->dialog;
#line 531 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_widget_show_all ((GtkWidget*) _tmp15_);
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block24_data_unref (_data24_);
#line 505 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data24_ = NULL;
#line 5131 "libvirt-machine.c"
	} else {
		GVirConfigDomainDisk* _tmp16_;
#line 533 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp16_ = _data22_->disk_config;
#line 533 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_config_domain_disk_set_source (_tmp16_, "");
#line 5138 "libvirt-machine.c"
		{
			GVirDomain* _tmp17_;
			GVirConfigDomainDisk* _tmp18_;
			GtkLabel* _tmp19_;
			const gchar* _tmp20_ = NULL;
			GtkLabel* _tmp21_;
			const gchar* _tmp22_ = NULL;
			gchar* _tmp23_ = NULL;
			gchar* _tmp24_;
#line 535 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp17_ = self->domain;
#line 535 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp18_ = _data22_->disk_config;
#line 535 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_update_device (_tmp17_, (GVirConfigDomainDevice*) _tmp18_, (guint) GVIR_DOMAIN_UPDATE_DEVICE_CURRENT, &_inner_error_);
#line 535 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 5156 "libvirt-machine.c"
				goto __catch24_g_error;
			}
#line 536 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data23_->empty = TRUE;
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp19_ = _data23_->button_label;
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp20_ = _ ("Select");
#line 537 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gtk_label_set_text (_tmp19_, _tmp20_);
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp21_ = _data23_->label;
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp22_ = _ ("empty");
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp23_ = g_markup_printf_escaped ("<i>%s</i>", _tmp22_);
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp24_ = _tmp23_;
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gtk_label_set_markup (_tmp21_, _tmp24_);
#line 538 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp24_);
#line 5179 "libvirt-machine.c"
		}
		goto __finally24;
		__catch24_g_error:
		{
			GError* e = NULL;
			GError* _tmp25_;
			const gchar* _tmp26_;
#line 534 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			e = _inner_error_;
#line 534 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_inner_error_ = NULL;
#line 540 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp25_ = e;
#line 540 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp26_ = _tmp25_->message;
#line 540 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_signal_emit_by_name ((BoxesMachine*) self, "got-error", _tmp26_);
#line 534 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_error_free0 (e);
#line 5199 "libvirt-machine.c"
		}
		__finally24:
#line 534 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 534 "/extra-data/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 534 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 534 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 5210 "libvirt-machine.c"
		}
	}
}


static void _______lambda106__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	______lambda106_ (self);
#line 5219 "libvirt-machine.c"
}


static Block25Data* block25_data_ref (Block25Data* _data25_) {
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data25_->_ref_count_);
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data25_;
#line 5228 "libvirt-machine.c"
}


static void block25_data_unref (void * _userdata_) {
	Block25Data* _data25_;
	_data25_ = (Block25Data*) _userdata_;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data25_->_ref_count_)) {
#line 5237 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data25_->self;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data25_->property);
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block25Data, _data25_);
#line 5247 "libvirt-machine.c"
	}
}


static void ____lambda108_ (Block25Data* _data25_) {
	BoxesLibvirtMachine * self;
	GError * _inner_error_ = NULL;
#line 576 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data25_->self;
#line 5257 "libvirt-machine.c"
	{
		BoxesProperty* _tmp0_;
#line 578 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_try_enable_usb_redir (self, &_inner_error_);
#line 578 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 5264 "libvirt-machine.c"
			goto __catch26_g_error;
		}
#line 579 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_domain_config (self);
#line 580 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = _data25_->property;
#line 580 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_signal_emit_by_name (_tmp0_, "refresh-properties");
#line 5273 "libvirt-machine.c"
	}
	goto __finally26;
	__catch26_g_error:
	{
		GError* _error_ = NULL;
#line 577 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 577 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 582 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:582: Failed to enable usb");
#line 577 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 5287 "libvirt-machine.c"
	}
	__finally26:
#line 577 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 577 "/extra-data/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 577 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 577 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5298 "libvirt-machine.c"
	}
}


static void _____lambda108__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 576 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	____lambda108_ (self);
#line 5306 "libvirt-machine.c"
}


static Block26Data* block26_data_ref (Block26Data* _data26_) {
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data26_->_ref_count_);
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data26_;
#line 5315 "libvirt-machine.c"
}


static void block26_data_unref (void * _userdata_) {
	Block26Data* _data26_;
	_data26_ = (Block26Data*) _userdata_;
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data26_->_ref_count_)) {
#line 5324 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data26_->self;
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data26_->property);
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block26Data, _data26_);
#line 5334 "libvirt-machine.c"
	}
}


static void ____lambda109_ (Block26Data* _data26_) {
	BoxesLibvirtMachine * self;
	GError * _inner_error_ = NULL;
#line 593 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data26_->self;
#line 5344 "libvirt-machine.c"
	{
		BoxesProperty* _tmp0_;
#line 595 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_try_enable_smartcard (self, &_inner_error_);
#line 595 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 5351 "libvirt-machine.c"
			goto __catch27_g_error;
		}
#line 596 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_domain_config (self);
#line 597 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = _data26_->property;
#line 597 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_signal_emit_by_name (_tmp0_, "refresh-properties");
#line 5360 "libvirt-machine.c"
	}
	goto __finally27;
	__catch27_g_error:
	{
		GError* _error_ = NULL;
#line 594 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 594 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 599 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:599: Failed to enable smartcard");
#line 594 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 5374 "libvirt-machine.c"
	}
	__finally27:
#line 594 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 594 "/extra-data/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 594 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 594 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 5385 "libvirt-machine.c"
	}
}


static void _____lambda109__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 593 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	____lambda109_ (self);
#line 5393 "libvirt-machine.c"
}


static GList* boxes_libvirt_machine_real_get_properties (BoxesMachine* base, BoxesPropertiesPage page, PropertyCreationFlag flags) {
	BoxesLibvirtMachine * self;
	GList* result = NULL;
	GList* list;
	BoxesDisplay* _tmp0_;
	BoxesDisplay* _tmp1_;
	BoxesPropertiesPage _tmp4_;
	BoxesDisplay* _tmp122_;
	BoxesDisplay* _tmp123_;
	GError * _inner_error_ = NULL;
#line 380 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 381 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	list = NULL;
#line 384 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 384 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 384 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp1_ == NULL) {
#line 5417 "libvirt-machine.c"
		{
#line 386 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_update_display (self, &_inner_error_);
#line 386 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 5423 "libvirt-machine.c"
				goto __catch21_g_error;
			}
		}
		goto __finally21;
		__catch21_g_error:
		{
			GError* e = NULL;
			GError* _tmp2_;
			const gchar* _tmp3_;
#line 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			e = _inner_error_;
#line 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_inner_error_ = NULL;
#line 388 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp2_ = e;
#line 388 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp3_ = _tmp2_->message;
#line 388 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_warning ("libvirt-machine.vala:388: %s", _tmp3_);
#line 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_error_free0 (e);
#line 5445 "libvirt-machine.c"
		}
		__finally21:
#line 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			__g_list_free__g_object_unref0_0 (list);
#line 385 "/extra-data/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 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 385 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 5458 "libvirt-machine.c"
		}
	}
#line 391 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = page;
#line 391 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_tmp4_) {
#line 391 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_LOGIN:
#line 5467 "libvirt-machine.c"
		{
			const gchar* _tmp5_ = NULL;
			const gchar* _tmp6_;
			const gchar* _tmp7_;
			BoxesProperty* _tmp8_ = NULL;
			BoxesProperty* _tmp9_;
			const gchar* _tmp10_ = NULL;
			BoxesCollectionSource* _tmp11_;
			gchar* _tmp12_;
			gchar* _tmp13_;
			gchar* _tmp14_;
			BoxesProperty* _tmp15_ = NULL;
			BoxesProperty* _tmp16_;
			BoxesDisplay* _tmp17_;
			BoxesDisplay* _tmp18_;
#line 393 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp5_ = _ ("Name");
#line 393 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 393 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = _tmp6_;
#line 393 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp5_, _tmp7_, ____lambda98__property_string_changed, self);
#line 393 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp9_ = _tmp8_;
#line 393 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (_tmp9_);
#line 396 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp10_ = _ ("Virtualizer");
#line 396 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp11_ = ((BoxesMachine*) self)->source;
#line 396 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp12_ = boxes_collection_source_get_uri (_tmp11_);
#line 396 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp13_ = _tmp12_;
#line 396 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp14_ = _tmp13_;
#line 396 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp15_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp10_, _tmp14_, NULL, NULL);
#line 396 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp16_ = _tmp15_;
#line 396 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (_tmp16_);
#line 396 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (_tmp14_);
#line 397 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp17_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 397 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp18_ = _tmp17_;
#line 397 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_tmp18_ != NULL) {
#line 5519 "libvirt-machine.c"
				const gchar* _tmp19_ = NULL;
				BoxesDisplay* _tmp20_;
				BoxesDisplay* _tmp21_;
				gchar* _tmp22_;
				gchar* _tmp23_;
				gchar* _tmp24_;
				BoxesProperty* _tmp25_ = NULL;
				BoxesProperty* _tmp26_;
#line 398 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp19_ = _ ("URI");
#line 398 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp20_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 398 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp21_ = _tmp20_;
#line 398 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp22_ = boxes_display_get_uri (_tmp21_);
#line 398 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp23_ = _tmp22_;
#line 398 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp24_ = _tmp23_;
#line 398 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp25_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp19_, _tmp24_, NULL, NULL);
#line 398 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp26_ = _tmp25_;
#line 398 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_tmp26_);
#line 398 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp24_);
#line 5548 "libvirt-machine.c"
			}
#line 399 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			break;
#line 5552 "libvirt-machine.c"
		}
#line 391 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_SYSTEM:
#line 5556 "libvirt-machine.c"
		{
			const gchar* _tmp27_ = NULL;
			GtkButton* _tmp28_;
			GtkButton* button;
			GtkButton* _tmp29_;
			GtkButton* _tmp30_;
			BoxesProperty* _tmp31_ = NULL;
			BoxesProperty* _tmp32_;
			GtkButton* _tmp33_;
#line 402 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_add_ram_property (self, &list);
#line 403 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_add_storage_property (self, &list);
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp27_ = _ ("Troubleshooting log");
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp28_ = (GtkButton*) gtk_button_new_with_label (_tmp27_);
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_ref_sink (_tmp28_);
#line 405 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			button = _tmp28_;
#line 406 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp29_ = button;
#line 406 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gtk_widget_set_halign ((GtkWidget*) _tmp29_, GTK_ALIGN_START);
#line 407 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp30_ = button;
#line 407 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp31_ = boxes_iproperties_provider_add_property ((BoxesIPropertiesProvider*) self, &list, NULL, (GtkWidget*) _tmp30_, NULL);
#line 407 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp32_ = _tmp31_;
#line 407 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (_tmp32_);
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp33_ = button;
#line 408 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_signal_connect_object (_tmp33_, "clicked", (GCallback) ____lambda102__gtk_button_clicked, self, 0);
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (button);
#line 463 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			break;
#line 5598 "libvirt-machine.c"
		}
#line 391 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_DISPLAY:
#line 5602 "libvirt-machine.c"
		{
			BoxesDisplay* _tmp34_;
			BoxesDisplay* _tmp35_;
#line 466 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp34_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 466 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp35_ = _tmp34_;
#line 466 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_tmp35_ != NULL) {
#line 5612 "libvirt-machine.c"
				const gchar* _tmp36_ = NULL;
				BoxesDisplay* _tmp37_;
				BoxesDisplay* _tmp38_;
				const gchar* _tmp39_;
				const gchar* _tmp40_;
				BoxesProperty* _tmp41_ = NULL;
				BoxesProperty* _tmp42_;
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp36_ = _ ("Protocol");
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp37_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp38_ = _tmp37_;
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp39_ = boxes_display_get_protocol (_tmp38_);
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp40_ = _tmp39_;
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp41_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp36_, _tmp40_, NULL, NULL);
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp42_ = _tmp41_;
#line 467 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_tmp42_);
#line 5636 "libvirt-machine.c"
			}
#line 468 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			break;
#line 5640 "libvirt-machine.c"
		}
#line 391 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_DEVICES:
#line 5644 "libvirt-machine.c"
		{
			GVirConfigDomain* _tmp43_;
			GList* _tmp44_ = NULL;
			gboolean has_usb_redir;
			gboolean has_smartcard;
			gboolean _tmp100_;
			gboolean _tmp102_ = FALSE;
			gboolean _tmp103_;
			gboolean _tmp104_;
			gboolean _tmp112_ = FALSE;
			gboolean _tmp113_;
			gboolean _tmp114_;
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp43_ = self->domain_config;
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp44_ = gvir_config_domain_get_devices (_tmp43_);
#line 5661 "libvirt-machine.c"
			{
				GList* device_config_collection = NULL;
				GList* device_config_it = NULL;
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				device_config_collection = _tmp44_;
#line 471 "/extra-data/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 5669 "libvirt-machine.c"
					GVirConfigDomainDevice* _tmp45_;
					GVirConfigDomainDevice* device_config = NULL;
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp45_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_config_it->data);
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					device_config = _tmp45_;
#line 5676 "libvirt-machine.c"
					{
						Block22Data* _data22_;
						GVirConfigDomainDevice* _tmp46_;
						GVirConfigDomainDevice* _tmp47_;
						GVirConfigDomainDisk* _tmp48_;
						GVirConfigDomainDisk* _tmp49_;
						GVirConfigDomainDiskGuestDeviceType _tmp50_ = 0;
						GVirConfigDomainDiskGuestDeviceType disk_type;
						GVirConfigDomainDiskGuestDeviceType _tmp51_;
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_data22_ = g_slice_new0 (Block22Data);
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_data22_->_ref_count_ = 1;
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_data22_->self = g_object_ref (self);
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp46_ = device_config;
#line 472 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp46_, gvir_config_domain_disk_get_type ())) {
#line 473 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (device_config);
#line 473 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							block22_data_unref (_data22_);
#line 473 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_data22_ = NULL;
#line 473 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							continue;
#line 5704 "libvirt-machine.c"
						}
#line 474 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp47_ = device_config;
#line 474 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp48_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp47_, gvir_config_domain_disk_get_type ()) ? ((GVirConfigDomainDisk*) _tmp47_) : NULL);
#line 474 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_data22_->disk_config = _tmp48_;
#line 475 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp49_ = _data22_->disk_config;
#line 475 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp50_ = gvir_config_domain_disk_get_guest_device_type (_tmp49_);
#line 475 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						disk_type = _tmp50_;
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp51_ = disk_type;
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						if (_tmp51_ == GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_CDROM) {
#line 5722 "libvirt-machine.c"
							Block23Data* _data23_;
							GtkGrid* _tmp52_;
							GtkGrid* grid;
							GtkGrid* _tmp53_;
							GtkGrid* _tmp54_;
							GtkLabel* _tmp55_;
							GtkGrid* _tmp56_;
							GtkLabel* _tmp57_;
							GVirConfigDomainDisk* _tmp58_;
							const gchar* _tmp59_ = NULL;
							gchar* _tmp60_;
							gchar* source;
							gboolean _tmp61_ = FALSE;
							const gchar* _tmp62_;
							gboolean _tmp64_;
							GtkLabel* _tmp65_;
							GtkButton* _tmp66_;
							GtkButton* button;
							GtkButton* _tmp67_;
							GtkLabel* _tmp68_;
							GtkGrid* _tmp69_;
							GtkButton* _tmp70_;
							gboolean _tmp71_;
							GtkButton* _tmp84_;
							const gchar* _tmp85_ = NULL;
							GtkGrid* _tmp86_;
							BoxesProperty* _tmp87_ = NULL;
							BoxesProperty* _tmp88_;
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_data23_ = g_slice_new0 (Block23Data);
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_data23_->_ref_count_ = 1;
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_data23_->_data22_ = block22_data_ref (_data22_);
#line 477 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp52_ = (GtkGrid*) gtk_grid_new ();
#line 477 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							g_object_ref_sink (_tmp52_);
#line 477 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							grid = _tmp52_;
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp53_ = grid;
#line 478 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							gtk_orientable_set_orientation ((GtkOrientable*) _tmp53_, GTK_ORIENTATION_HORIZONTAL);
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp54_ = grid;
#line 479 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							gtk_grid_set_column_spacing (_tmp54_, (guint) 12);
#line 481 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp55_ = (GtkLabel*) gtk_label_new ("");
#line 481 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							g_object_ref_sink (_tmp55_);
#line 481 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_data23_->label = _tmp55_;
#line 482 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp56_ = grid;
#line 482 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp57_ = _data23_->label;
#line 482 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							gtk_container_add ((GtkContainer*) _tmp56_, (GtkWidget*) _tmp57_);
#line 484 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp58_ = _data22_->disk_config;
#line 484 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp59_ = gvir_config_domain_disk_get_source (_tmp58_);
#line 484 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp60_ = g_strdup (_tmp59_);
#line 484 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							source = _tmp60_;
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp62_ = source;
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							if (_tmp62_ == NULL) {
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp61_ = TRUE;
#line 5797 "libvirt-machine.c"
							} else {
								const gchar* _tmp63_;
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp63_ = source;
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp61_ = g_strcmp0 (_tmp63_, "") == 0;
#line 5804 "libvirt-machine.c"
							}
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp64_ = _tmp61_;
#line 485 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_data23_->empty = _tmp64_;
#line 487 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp65_ = (GtkLabel*) gtk_label_new ("");
#line 487 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							g_object_ref_sink (_tmp65_);
#line 487 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_data23_->button_label = _tmp65_;
#line 488 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp66_ = (GtkButton*) gtk_button_new ();
#line 488 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							g_object_ref_sink (_tmp66_);
#line 488 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							button = _tmp66_;
#line 489 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp67_ = button;
#line 489 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp68_ = _data23_->button_label;
#line 489 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							gtk_container_add ((GtkContainer*) _tmp67_, (GtkWidget*) _tmp68_);
#line 491 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp69_ = grid;
#line 491 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp70_ = button;
#line 491 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							gtk_container_add ((GtkContainer*) _tmp69_, (GtkWidget*) _tmp70_);
#line 493 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp71_ = _data23_->empty;
#line 493 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							if (_tmp71_) {
#line 5838 "libvirt-machine.c"
								GtkLabel* _tmp72_;
								const gchar* _tmp73_ = NULL;
								GtkLabel* _tmp74_;
								const gchar* _tmp75_ = NULL;
								gchar* _tmp76_ = NULL;
								gchar* _tmp77_;
#line 495 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp72_ = _data23_->button_label;
#line 495 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp73_ = _ ("Select");
#line 495 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								gtk_label_set_text (_tmp72_, _tmp73_);
#line 497 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp74_ = _data23_->label;
#line 497 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp75_ = _ ("empty");
#line 497 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp76_ = g_markup_printf_escaped ("<i>%s</i>", _tmp75_);
#line 497 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp77_ = _tmp76_;
#line 497 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								gtk_label_set_markup (_tmp74_, _tmp77_);
#line 497 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_g_free0 (_tmp77_);
#line 5863 "libvirt-machine.c"
							} else {
								GtkLabel* _tmp78_;
								const gchar* _tmp79_ = NULL;
								GtkLabel* _tmp80_;
								const gchar* _tmp81_;
								gchar* _tmp82_ = NULL;
								gchar* _tmp83_;
#line 500 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp78_ = _data23_->button_label;
#line 500 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp79_ = _ ("Remove");
#line 500 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								gtk_label_set_text (_tmp78_, _tmp79_);
#line 501 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp80_ = _data23_->label;
#line 501 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp81_ = source;
#line 501 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp82_ = boxes_get_utf8_basename (_tmp81_);
#line 501 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_tmp83_ = _tmp82_;
#line 501 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								gtk_label_set_text (_tmp80_, _tmp83_);
#line 501 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								_g_free0 (_tmp83_);
#line 5889 "libvirt-machine.c"
							}
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp84_ = button;
#line 504 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							g_signal_connect_data (_tmp84_, "clicked", (GCallback) _______lambda106__gtk_button_clicked, block23_data_ref (_data23_), (GClosureNotify) block23_data_unref, 0);
#line 545 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp85_ = _ ("CD/DVD");
#line 545 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp86_ = grid;
#line 545 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp87_ = boxes_iproperties_provider_add_property ((BoxesIPropertiesProvider*) self, &list, _tmp85_, (GtkWidget*) _tmp86_, NULL);
#line 545 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp88_ = _tmp87_;
#line 545 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (_tmp88_);
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (button);
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_free0 (source);
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (grid);
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							block23_data_unref (_data23_);
#line 476 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_data23_ = NULL;
#line 5915 "libvirt-machine.c"
						}
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (device_config);
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						block22_data_unref (_data22_);
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_data22_ = NULL;
#line 5923 "libvirt-machine.c"
					}
				}
#line 471 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				__g_list_free__g_object_unref0_0 (device_config_collection);
#line 5928 "libvirt-machine.c"
			}
#line 549 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			has_usb_redir = FALSE;
#line 550 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			has_smartcard = FALSE;
#line 5934 "libvirt-machine.c"
			{
				GVirDomain* _tmp89_;
				GVirConfigDomain* _tmp90_ = NULL;
				GVirConfigDomain* inactive_config;
				GVirConfigDomain* _tmp91_;
				GList* _tmp92_ = NULL;
#line 554 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp89_ = self->domain;
#line 554 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp90_ = gvir_domain_get_config (_tmp89_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 554 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				inactive_config = _tmp90_;
#line 554 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_inner_error_ != NULL) {
#line 5949 "libvirt-machine.c"
					goto __catch25_g_error;
				}
#line 555 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp91_ = inactive_config;
#line 555 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp92_ = gvir_config_domain_get_devices (_tmp91_);
#line 5956 "libvirt-machine.c"
				{
					GList* device_collection = NULL;
					GList* device_it = NULL;
#line 555 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					device_collection = _tmp92_;
#line 555 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					for (device_it = device_collection; device_it != NULL; device_it = device_it->next) {
#line 5964 "libvirt-machine.c"
						GVirConfigDomainDevice* _tmp93_;
						GVirConfigDomainDevice* device = NULL;
#line 555 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp93_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_it->data);
#line 555 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						device = _tmp93_;
#line 5971 "libvirt-machine.c"
						{
							GVirConfigDomainDevice* _tmp94_;
							GVirConfigDomainDevice* _tmp95_;
#line 556 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp94_ = device;
#line 556 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp94_, gvir_config_domain_redirdev_get_type ())) {
#line 557 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								has_usb_redir = TRUE;
#line 5981 "libvirt-machine.c"
							}
#line 559 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_tmp95_ = device;
#line 559 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp95_, gvir_config_domain_smartcard_get_type ())) {
#line 560 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
								has_smartcard = TRUE;
#line 5989 "libvirt-machine.c"
							}
#line 555 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (device);
#line 5993 "libvirt-machine.c"
						}
					}
#line 555 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					__g_list_free__g_object_unref0_0 (device_collection);
#line 5998 "libvirt-machine.c"
				}
#line 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (inactive_config);
#line 6002 "libvirt-machine.c"
			}
			goto __finally25;
			__catch25_g_error:
			{
				GError* _error_ = NULL;
				GVirDomain* _tmp96_;
				const gchar* _tmp97_ = NULL;
				GError* _tmp98_;
				const gchar* _tmp99_;
#line 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_error_ = _inner_error_;
#line 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_inner_error_ = NULL;
#line 564 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp96_ = self->domain;
#line 564 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp97_ = gvir_domain_get_name (_tmp96_);
#line 564 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp98_ = _error_;
#line 564 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp99_ = _tmp98_->message;
#line 564 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_warning ("libvirt-machine.vala:564: Failed to fetch configuration for domain '%s" \
"': %s", _tmp97_, _tmp99_);
#line 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_error_free0 (_error_);
#line 6028 "libvirt-machine.c"
			}
			__finally25:
#line 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				__g_list_free__g_object_unref0_0 (list);
#line 553 "/extra-data/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 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_clear_error (&_inner_error_);
#line 553 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return NULL;
#line 6041 "libvirt-machine.c"
			}
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp100_ = has_usb_redir;
#line 567 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (!_tmp100_) {
#line 6047 "libvirt-machine.c"
				PropertyCreationFlag _tmp101_;
#line 568 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp101_ = flags;
#line 568 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				flags = _tmp101_ | PROPERTY_CREATION_FLAG_NO_USB;
#line 6053 "libvirt-machine.c"
			}
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp103_ = has_usb_redir;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (!_tmp103_) {
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp102_ = HAVE_USBREDIR;
#line 6061 "libvirt-machine.c"
			} else {
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp102_ = FALSE;
#line 6065 "libvirt-machine.c"
			}
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp104_ = _tmp102_;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_tmp104_) {
#line 6071 "libvirt-machine.c"
				Block25Data* _data25_;
				const gchar* _tmp105_ = NULL;
				GtkButton* _tmp106_;
				GtkButton* button;
				GtkButton* _tmp107_;
				const gchar* _tmp108_ = NULL;
				GtkButton* _tmp109_;
				BoxesProperty* _tmp110_ = NULL;
				GtkButton* _tmp111_;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data25_ = g_slice_new0 (Block25Data);
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data25_->_ref_count_ = 1;
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data25_->self = g_object_ref (self);
#line 573 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp105_ = _ ("Add support to guest");
#line 573 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp106_ = (GtkButton*) gtk_button_new_with_label (_tmp105_);
#line 573 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_ref_sink (_tmp106_);
#line 573 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				button = _tmp106_;
#line 574 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp107_ = button;
#line 574 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				gtk_widget_set_halign ((GtkWidget*) _tmp107_, GTK_ALIGN_START);
#line 575 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp108_ = _ ("USB device support");
#line 575 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp109_ = button;
#line 575 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp110_ = boxes_iproperties_provider_add_property ((BoxesIPropertiesProvider*) self, &list, _tmp108_, (GtkWidget*) _tmp109_, NULL);
#line 575 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data25_->property = _tmp110_;
#line 576 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp111_ = button;
#line 576 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_signal_connect_data (_tmp111_, "clicked", (GCallback) _____lambda108__gtk_button_clicked, block25_data_ref (_data25_), (GClosureNotify) block25_data_unref, 0);
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (button);
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				block25_data_unref (_data25_);
#line 572 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data25_ = NULL;
#line 6117 "libvirt-machine.c"
			}
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp113_ = has_smartcard;
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (!_tmp113_) {
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp112_ = HAVE_SMARTCARD;
#line 6125 "libvirt-machine.c"
			} else {
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp112_ = FALSE;
#line 6129 "libvirt-machine.c"
			}
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp114_ = _tmp112_;
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_tmp114_) {
#line 6135 "libvirt-machine.c"
				Block26Data* _data26_;
				const gchar* _tmp115_ = NULL;
				GtkButton* _tmp116_;
				GtkButton* button;
				GtkButton* _tmp117_;
				const gchar* _tmp118_ = NULL;
				GtkButton* _tmp119_;
				BoxesProperty* _tmp120_ = NULL;
				GtkButton* _tmp121_;
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data26_ = g_slice_new0 (Block26Data);
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data26_->_ref_count_ = 1;
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data26_->self = g_object_ref (self);
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp115_ = _ ("Add support to guest");
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp116_ = (GtkButton*) gtk_button_new_with_label (_tmp115_);
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_ref_sink (_tmp116_);
#line 590 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				button = _tmp116_;
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp117_ = button;
#line 591 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				gtk_widget_set_halign ((GtkWidget*) _tmp117_, GTK_ALIGN_START);
#line 592 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp118_ = _ ("Smartcard support");
#line 592 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp119_ = button;
#line 592 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp120_ = boxes_iproperties_provider_add_property ((BoxesIPropertiesProvider*) self, &list, _tmp118_, (GtkWidget*) _tmp119_, NULL);
#line 592 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data26_->property = _tmp120_;
#line 593 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp121_ = button;
#line 593 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_signal_connect_data (_tmp121_, "clicked", (GCallback) _____lambda109__gtk_button_clicked, block26_data_ref (_data26_), (GClosureNotify) block26_data_unref, 0);
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (button);
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				block26_data_unref (_data26_);
#line 589 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data26_ = NULL;
#line 6181 "libvirt-machine.c"
			}
#line 604 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			break;
#line 6185 "libvirt-machine.c"
		}
		default:
#line 391 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 6190 "libvirt-machine.c"
	}
#line 607 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp122_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 607 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp123_ = _tmp122_;
#line 607 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp123_ != NULL) {
#line 6198 "libvirt-machine.c"
		BoxesDisplay* _tmp124_;
		BoxesDisplay* _tmp125_;
		BoxesPropertiesPage _tmp126_;
		PropertyCreationFlag _tmp127_;
		GList* _tmp128_ = NULL;
#line 608 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp124_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 608 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp125_ = _tmp124_;
#line 608 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp126_ = page;
#line 608 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp127_ = flags;
#line 608 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp128_ = boxes_display_get_properties (_tmp125_, _tmp126_, _tmp127_);
#line 608 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		list = g_list_concat (list, _tmp128_);
#line 6216 "libvirt-machine.c"
	}
#line 611 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = list;
#line 611 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 6222 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_update_display (BoxesLibvirtMachine* self, GError** error) {
	gboolean result = FALSE;
	BoxesDisplay* _tmp0_;
	BoxesDisplay* _tmp1_;
	gboolean created_display;
	BoxesDisplay* _tmp2_;
	BoxesDisplay* _tmp3_;
	GError * _inner_error_ = NULL;
#line 614 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 615 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_update_domain_config (self);
#line 617 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 617 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 617 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	created_display = _tmp1_ == NULL;
#line 618 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 618 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 618 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp3_ == NULL) {
#line 6250 "libvirt-machine.c"
		BoxesDisplay* _tmp4_ = NULL;
		BoxesDisplay* _tmp5_;
		BoxesDisplay* _tmp6_;
#line 619 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = boxes_libvirt_machine_create_display (self, &_inner_error_);
#line 619 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _tmp4_;
#line 619 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 619 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 619 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 6264 "libvirt-machine.c"
		}
#line 619 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _tmp5_;
#line 619 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_set_display ((BoxesMachine*) self, _tmp6_);
#line 619 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_tmp6_);
#line 6272 "libvirt-machine.c"
	}
#line 620 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = created_display;
#line 620 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 6278 "libvirt-machine.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1264 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1265 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	result = self;
#line 1265 "/home/zeenix/jhbuild/share/vala-0.20/vapi/glib-2.0.vapi"
	return result;
#line 6290 "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;
	GVirConfigDomain* _tmp0_;
	gchar* _tmp1_ = NULL;
	gchar* xmldoc;
	const gchar* _tmp2_;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_;
	gchar* _tmp12_;
	const gchar* _tmp13_;
	const gchar* _tmp14_;
	const gchar* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
	gchar* _tmp17_;
	gchar* _tmp18_ = NULL;
	gchar* _tmp19_;
	gchar* _tmp20_;
	const gchar* _tmp21_;
	const gchar* _tmp22_;
	const gchar* _tmp23_ = NULL;
	gchar* _tmp24_ = NULL;
	gchar* _tmp25_;
	gchar* _tmp26_ = NULL;
	gchar* _tmp27_;
	gchar* _tmp28_;
	gboolean _tmp29_ = FALSE;
	const gchar* _tmp30_;
	gboolean _tmp32_;
	const gchar* _tmp34_;
	const gchar* _tmp35_;
	GQuark _tmp37_ = 0U;
#line 635 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	static GQuark _tmp36_label0 = 0;
#line 635 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	static GQuark _tmp36_label1 = 0;
#line 6340 "libvirt-machine.c"
	GError * _inner_error_ = NULL;
#line 623 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 626 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->domain_config;
#line 626 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = gvir_config_object_to_xml ((GVirConfigObject*) _tmp0_);
#line 626 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	xmldoc = _tmp1_;
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = xmldoc;
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = boxes_extract_xpath (_tmp2_, "string(/domain/devices/graphics/@type)", TRUE, &_inner_error_);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = _tmp3_;
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 6374 "libvirt-machine.c"
		} else {
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 627 "/extra-data/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 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 6392 "libvirt-machine.c"
		}
	}
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (type);
#line 627 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	type = _tmp4_;
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = xmldoc;
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = type;
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = string_to_string (_tmp6_);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = g_strconcat ("string(/domain/devices/graphics[@type='", _tmp7_, "']/@port)", NULL);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = _tmp8_;
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = boxes_extract_xpath (_tmp5_, _tmp9_, FALSE, &_inner_error_);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp11_ = _tmp10_;
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp9_);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp12_ = _tmp11_;
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 6435 "libvirt-machine.c"
		} else {
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 628 "/extra-data/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 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 6453 "libvirt-machine.c"
		}
	}
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (port);
#line 628 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	port = _tmp12_;
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp13_ = xmldoc;
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp14_ = type;
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp15_ = string_to_string (_tmp14_);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp16_ = g_strconcat ("string(/domain/devices/graphics[@type='", _tmp15_, "']/@socket)", NULL);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp17_ = _tmp16_;
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = boxes_extract_xpath (_tmp13_, _tmp17_, FALSE, &_inner_error_);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp19_ = _tmp18_;
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp17_);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp20_ = _tmp19_;
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 6496 "libvirt-machine.c"
		} else {
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 629 "/extra-data/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 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 6514 "libvirt-machine.c"
		}
	}
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (socket);
#line 629 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	socket = _tmp20_;
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp21_ = xmldoc;
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp22_ = type;
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp23_ = string_to_string (_tmp22_);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp24_ = g_strconcat ("string(/domain/devices/graphics[@type='", _tmp23_, "']/@listen)", NULL);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp25_ = _tmp24_;
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp26_ = boxes_extract_xpath (_tmp21_, _tmp25_, FALSE, &_inner_error_);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp27_ = _tmp26_;
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp25_);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp28_ = _tmp27_;
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 6557 "libvirt-machine.c"
		} else {
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (xmldoc);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (host);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (socket);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (port);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_free0 (type);
#line 630 "/extra-data/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 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_clear_error (&_inner_error_);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return NULL;
#line 6575 "libvirt-machine.c"
		}
	}
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (host);
#line 630 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	host = _tmp28_;
#line 632 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp30_ = host;
#line 632 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp30_ == NULL) {
#line 632 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp29_ = TRUE;
#line 6588 "libvirt-machine.c"
	} else {
		const gchar* _tmp31_;
#line 632 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp31_ = host;
#line 632 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp29_ = g_strcmp0 (_tmp31_, "") == 0;
#line 6595 "libvirt-machine.c"
	}
#line 632 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp32_ = _tmp29_;
#line 632 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp32_) {
#line 6601 "libvirt-machine.c"
		gchar* _tmp33_;
#line 633 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp33_ = g_strdup ("localhost");
#line 633 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_free0 (host);
#line 633 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		host = _tmp33_;
#line 6609 "libvirt-machine.c"
	}
#line 635 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp34_ = type;
#line 635 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp35_ = _tmp34_;
#line 635 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp37_ = (NULL == _tmp35_) ? 0 : g_quark_from_string (_tmp35_);
#line 635 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp37_ == ((0 != _tmp36_label0) ? _tmp36_label0 : (_tmp36_label0 = g_quark_from_static_string ("spice")))) {
#line 635 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (0) {
#line 6621 "libvirt-machine.c"
			default:
			{
				BoxesBoxConfig* _tmp38_;
				const gchar* _tmp39_;
				const gchar* _tmp40_;
				gint _tmp41_ = 0;
				BoxesSpiceDisplay* _tmp42_;
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp38_ = ((BoxesMachine*) self)->config;
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp39_ = host;
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp40_ = port;
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp41_ = atoi (_tmp40_);
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp42_ = boxes_spice_display_new (_tmp38_, _tmp39_, _tmp41_);
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				result = (BoxesDisplay*) _tmp42_;
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (xmldoc);
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (host);
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (socket);
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (port);
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (type);
#line 637 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return result;
#line 6653 "libvirt-machine.c"
			}
		}
	} else if (_tmp37_ == ((0 != _tmp36_label1) ? _tmp36_label1 : (_tmp36_label1 = g_quark_from_static_string ("vnc")))) {
#line 635 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (0) {
#line 6659 "libvirt-machine.c"
			default:
			{
				BoxesBoxConfig* _tmp43_;
				const gchar* _tmp44_;
				const gchar* _tmp45_;
				gint _tmp46_ = 0;
				BoxesVncDisplay* _tmp47_;
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp43_ = ((BoxesMachine*) self)->config;
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp44_ = host;
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp45_ = port;
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp46_ = atoi (_tmp45_);
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp47_ = boxes_vnc_display_new (_tmp43_, _tmp44_, _tmp46_);
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				result = (BoxesDisplay*) _tmp47_;
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (xmldoc);
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (host);
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (socket);
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (port);
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (type);
#line 640 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return result;
#line 6691 "libvirt-machine.c"
			}
		}
	} else {
#line 635 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		switch (0) {
#line 6697 "libvirt-machine.c"
			default:
			{
				const gchar* _tmp48_;
				gchar* _tmp49_;
				gchar* _tmp50_;
				GError* _tmp51_;
				GError* _tmp52_;
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp48_ = type;
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp49_ = g_strconcat ("unsupported display of type ", _tmp48_, NULL);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp50_ = _tmp49_;
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp51_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, _tmp50_);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp52_ = _tmp51_;
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_tmp50_);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_inner_error_ = _tmp52_;
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_inner_error_->domain == BOXES_ERROR) {
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_propagate_error (error, _inner_error_);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (xmldoc);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (host);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (socket);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (port);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (type);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					return NULL;
#line 6735 "libvirt-machine.c"
				} else {
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (xmldoc);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (host);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (socket);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (port);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (type);
#line 643 "/extra-data/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 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_clear_error (&_inner_error_);
#line 643 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					return NULL;
#line 6753 "libvirt-machine.c"
				}
			}
		}
	}
#line 623 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (xmldoc);
#line 623 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (host);
#line 623 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (socket);
#line 623 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (port);
#line 623 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (type);
#line 6768 "libvirt-machine.c"
}


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


static void boxes_libvirt_machine_real_take_screenshot (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineTakeScreenshotData* _data_;
	BoxesLibvirtMachine* _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineTakeScreenshotData);
#line 5 "/extra-data/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 "/extra-data/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 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_take_screenshot_co (_data_);
#line 6803 "libvirt-machine.c"
}


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


static Block27Data* block27_data_ref (Block27Data* _data27_) {
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data27_->_ref_count_);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data27_;
#line 6833 "libvirt-machine.c"
}


static void block27_data_unref (void * _userdata_) {
	Block27Data* _data27_;
	_data27_ = (Block27Data*) _userdata_;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data27_->_ref_count_)) {
#line 6842 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data27_->self;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data27_->stream);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block27Data, _data27_);
#line 6852 "libvirt-machine.c"
	}
}


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


static void __lambda110_ (Block27Data* _data27_, GError** error) {
	BoxesLibvirtMachine * self;
	GVirDomain* _tmp0_;
	GVirStream* _tmp1_;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_;
	GError * _inner_error_ = NULL;
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data27_->self;
#line 660 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->domain;
#line 660 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _data27_->stream;
#line 660 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = gvir_domain_screenshot (_tmp0_, _tmp1_, (guint) 0, (guint) 0, &_inner_error_);
#line 660 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 660 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp3_);
#line 660 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 660 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 660 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 6896 "libvirt-machine.c"
	}
}


static void ___lambda110__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda110_ (self, error);
#line 6904 "libvirt-machine.c"
}


static gboolean boxes_libvirt_machine_real_take_screenshot_co (BoxesLibvirtMachineTakeScreenshotData* _data_) {
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 6913 "libvirt-machine.c"
		goto _state_0;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 6917 "libvirt-machine.c"
		goto _state_1;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 2:
#line 6921 "libvirt-machine.c"
		goto _state_2;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 3:
#line 6925 "libvirt-machine.c"
		goto _state_3;
		default:
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 6930 "libvirt-machine.c"
	}
	_state_0:
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data27_ = g_slice_new0 (Block27Data);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data27_->_ref_count_ = 1;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data27_->self = g_object_ref (_data_->self);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data27_->_async_data_ = _data_;
#line 648 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->state = GVIR_DOMAIN_STATE_NONE;
#line 6943 "libvirt-machine.c"
	{
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp0_ = _data_->self->domain;
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_get_info_async (_data_->_tmp0_, NULL, boxes_libvirt_machine_take_screenshot_ready, _data_);
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 6953 "libvirt-machine.c"
		_state_1:
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp1_ = NULL;
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp1_ = gvir_domain_get_info_finish (_data_->_tmp0_, _data_->_res_, &_data_->_inner_error_);
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_ = _data_->_tmp1_;
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 6963 "libvirt-machine.c"
			goto __catch28_g_error;
		}
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp3_ = _data_->_tmp2_;
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->_tmp3_->state;
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->state = _data_->_tmp4_;
#line 650 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirDomainInfo_free0 (_data_->_tmp3_);
#line 6974 "libvirt-machine.c"
	}
	goto __finally28;
	__catch28_g_error:
	{
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 652 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 652 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_;
#line 652 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:652: Failed to get information on '%s'", _data_->_tmp6_);
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_data_->_error_);
#line 6991 "libvirt-machine.c"
	}
	__finally28:
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block27_data_unref (_data_->_data27_);
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data27_ = NULL;
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7008 "libvirt-machine.c"
		} else {
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 7012 "libvirt-machine.c"
		}
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 649 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 7018 "libvirt-machine.c"
	}
#line 655 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp9_ = _data_->state;
#line 655 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp9_ != GVIR_DOMAIN_STATE_RUNNING) {
#line 655 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp10_ = _data_->state;
#line 655 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = _data_->_tmp10_ != GVIR_DOMAIN_STATE_PAUSED;
#line 7028 "libvirt-machine.c"
	} else {
#line 655 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp8_ = FALSE;
#line 7032 "libvirt-machine.c"
	}
#line 655 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp11_ = _data_->_tmp8_;
#line 655 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp11_) {
#line 655 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp12_ = _data_->state;
#line 655 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = _data_->_tmp12_ != GVIR_DOMAIN_STATE_PMSUSPENDED;
#line 7042 "libvirt-machine.c"
	} else {
#line 655 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp7_ = FALSE;
#line 7046 "libvirt-machine.c"
	}
#line 655 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp13_ = _data_->_tmp7_;
#line 655 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp13_) {
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->result = NULL;
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block27_data_unref (_data_->_data27_);
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data27_ = NULL;
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7062 "libvirt-machine.c"
		} else {
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 7066 "libvirt-machine.c"
		}
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 656 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 7072 "libvirt-machine.c"
	}
#line 658 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp14_ = _data_->self->connection;
#line 658 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp15_ = NULL;
#line 658 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp15_ = gvir_connection_get_stream (_data_->_tmp14_, (guint) 0);
#line 658 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data27_->stream = _data_->_tmp15_;
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_state_ = 2;
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_run_in_thread (___lambda110__boxes_run_in_thread_func, block27_data_ref (_data_->_data27_), block27_data_unref, NULL, boxes_libvirt_machine_take_screenshot_ready, _data_);
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 7088 "libvirt-machine.c"
	_state_2:
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_run_in_thread_finish (_data_->_res_, &_data_->_inner_error_);
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block27_data_unref (_data_->_data27_);
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data27_ = NULL;
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7106 "libvirt-machine.c"
		} else {
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 7110 "libvirt-machine.c"
		}
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 659 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 7116 "libvirt-machine.c"
	}
#line 663 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp16_ = gdk_pixbuf_loader_new ();
#line 663 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->loader = _data_->_tmp16_;
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp17_ = _data_->_data27_->stream;
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = NULL;
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp18_ = g_io_stream_get_input_stream ((GIOStream*) _data_->_tmp17_);
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp19_ = _g_object_ref0 (_data_->_tmp18_);
#line 664 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->input_stream = _data_->_tmp19_;
#line 665 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20_ = NULL;
#line 665 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp20_ = g_new0 (guint8, 65535);
#line 665 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer = _data_->_tmp20_;
#line 665 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer_length1 = 65535;
#line 665 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_buffer_size_ = _data_->buffer_length1;
#line 666 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->length = (gssize) 0;
#line 7144 "libvirt-machine.c"
	{
#line 667 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp21_ = TRUE;
#line 667 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		while (TRUE) {
#line 667 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp22_ = _data_->_tmp21_;
#line 667 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (!_data_->_tmp22_) {
#line 670 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp23_ = _data_->length;
#line 670 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (!(_data_->_tmp23_ > ((gssize) 0))) {
#line 670 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					break;
#line 7160 "libvirt-machine.c"
				}
			}
#line 667 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp21_ = FALSE;
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp24_ = _data_->input_stream;
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp25_ = _data_->buffer;
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp25__length1 = _data_->buffer_length1;
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_state_ = 3;
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_input_stream_read_async (_data_->_tmp24_, (void*) _data_->_tmp25_, (gsize) _data_->_tmp25__length1, G_PRIORITY_DEFAULT, NULL, boxes_libvirt_machine_take_screenshot_ready, _data_);
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 7177 "libvirt-machine.c"
			_state_3:
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp26_ = 0L;
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp26_ = g_input_stream_read_finish (_data_->_tmp24_, _data_->_res_, &_data_->_inner_error_);
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp27_ = _data_->_tmp26_;
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->buffer = (g_free (_data_->buffer), NULL);
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->input_stream);
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->loader);
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				block27_data_unref (_data_->_data27_);
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_data27_ = NULL;
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7205 "libvirt-machine.c"
				} else {
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 7209 "libvirt-machine.c"
				}
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 7215 "libvirt-machine.c"
			}
#line 668 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->length = _data_->_tmp27_;
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp28_ = _data_->loader;
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp29_ = _data_->buffer;
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp29__length1 = _data_->buffer_length1;
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp30_ = _data_->length;
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gdk_pixbuf_loader_write (_data_->_tmp28_, _data_->_tmp29_ + 0, (gsize) (_data_->_tmp30_ - 0), &_data_->_inner_error_);
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->buffer = (g_free (_data_->buffer), NULL);
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->input_stream);
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (_data_->loader);
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				block27_data_unref (_data_->_data27_);
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_data27_ = NULL;
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7249 "libvirt-machine.c"
				} else {
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 7253 "libvirt-machine.c"
				}
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 669 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 7259 "libvirt-machine.c"
			}
		}
	}
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp31_ = _data_->loader;
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gdk_pixbuf_loader_close (_data_->_tmp31_, &_data_->_inner_error_);
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->buffer = (g_free (_data_->buffer), NULL);
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data_->input_stream);
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data_->loader);
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block27_data_unref (_data_->_data27_);
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_data27_ = NULL;
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7287 "libvirt-machine.c"
		} else {
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 7291 "libvirt-machine.c"
		}
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 671 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 7297 "libvirt-machine.c"
	}
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp32_ = _data_->loader;
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp33_ = NULL;
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp33_ = gdk_pixbuf_loader_get_pixbuf (_data_->_tmp32_);
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp34_ = _g_object_ref0 (_data_->_tmp33_);
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->result = _data_->_tmp34_;
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer = (g_free (_data_->buffer), NULL);
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->input_stream);
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->loader);
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block27_data_unref (_data_->_data27_);
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data27_ = NULL;
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7323 "libvirt-machine.c"
	} else {
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 7327 "libvirt-machine.c"
	}
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 673 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->buffer = (g_free (_data_->buffer), NULL);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->input_stream);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->loader);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block27_data_unref (_data_->_data27_);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_data27_ = NULL;
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7347 "libvirt-machine.c"
	} else {
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 7351 "libvirt-machine.c"
	}
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 647 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 7357 "libvirt-machine.c"
}


static Block28Data* block28_data_ref (Block28Data* _data28_) {
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data28_->_ref_count_);
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data28_;
#line 7366 "libvirt-machine.c"
}


static void block28_data_unref (void * _userdata_) {
	Block28Data* _data28_;
	_data28_ = (Block28Data*) _userdata_;
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data28_->_ref_count_)) {
#line 7375 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data28_->self;
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data28_->domain);
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block28Data, _data28_);
#line 7385 "libvirt-machine.c"
	}
}


static void ___lambda111_ (Block28Data* _data28_, GError** error) {
	BoxesLibvirtMachine * self;
	GVirStorageVol* _tmp6_;
	GError * _inner_error_ = NULL;
#line 691 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data28_->self;
#line 7396 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
#line 694 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = _data28_->domain;
#line 694 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_delete (_tmp0_, (guint) GVIR_DOMAIN_DELETE_SAVED_STATE, &_inner_error_);
#line 694 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 7405 "libvirt-machine.c"
			goto __catch29_g_error;
		}
	}
	goto __finally29;
	__catch29_g_error:
	{
		GError* err = NULL;
		GError* _tmp1_;
		const gchar* _tmp2_;
#line 692 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		err = _inner_error_;
#line 692 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 696 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = err;
#line 696 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_->message;
#line 696 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:696: %s", _tmp2_);
#line 692 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (err);
#line 7427 "libvirt-machine.c"
	}
	__finally29:
#line 692 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 692 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 692 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 7436 "libvirt-machine.c"
	}
	{
		GVirDomain* _tmp3_;
#line 701 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _data28_->domain;
#line 701 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_stop (_tmp3_, (guint) 0, &_inner_error_);
#line 701 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 7446 "libvirt-machine.c"
			goto __catch30_g_error;
		}
	}
	goto __finally30;
	__catch30_g_error:
	{
		GError* err = NULL;
		GError* _tmp4_;
		const gchar* _tmp5_;
#line 699 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		err = _inner_error_;
#line 699 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 703 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = err;
#line 703 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _tmp4_->message;
#line 703 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:703: %s", _tmp5_);
#line 699 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (err);
#line 7468 "libvirt-machine.c"
	}
	__finally30:
#line 699 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 699 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 699 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 7477 "libvirt-machine.c"
	}
#line 707 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = self->storage_volume;
#line 707 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp6_ != NULL) {
#line 7483 "libvirt-machine.c"
		{
			GVirStorageVol* _tmp7_;
#line 709 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = self->storage_volume;
#line 709 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_storage_vol_delete (_tmp7_, (guint) 0, &_inner_error_);
#line 709 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 7492 "libvirt-machine.c"
				goto __catch31_g_error;
			}
		}
		goto __finally31;
		__catch31_g_error:
		{
			GError* err = NULL;
			GError* _tmp8_;
			const gchar* _tmp9_;
#line 708 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			err = _inner_error_;
#line 708 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_inner_error_ = NULL;
#line 711 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = err;
#line 711 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp9_ = _tmp8_->message;
#line 711 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_warning ("libvirt-machine.vala:711: %s", _tmp9_);
#line 708 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_error_free0 (err);
#line 7514 "libvirt-machine.c"
		}
		__finally31:
#line 708 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 708 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 708 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 7523 "libvirt-machine.c"
		}
	}
}


static void ____lambda111__boxes_run_in_thread_func (gpointer self, GError** error) {
#line 691 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda111_ (self, error);
#line 7532 "libvirt-machine.c"
}


static void boxes_libvirt_machine_real_delete (BoxesMachine* base, gboolean by_user) {
	BoxesLibvirtMachine * self;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gboolean _tmp4_;
	guint _tmp5_;
	gboolean _tmp7_;
#line 676 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 677 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 677 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 677 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = g_strconcat ("delete libvirt machine: ", _tmp1_, NULL);
#line 677 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 677 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:677: %s", _tmp3_);
#line 677 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (_tmp3_);
#line 678 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = by_user;
#line 678 "/extra-data/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 680 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_set_stats_enable (self, FALSE);
#line 681 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = self->priv->shutdown_timeout;
#line 681 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp5_ != ((guint) 0)) {
#line 7569 "libvirt-machine.c"
		guint _tmp6_;
#line 682 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = self->priv->shutdown_timeout;
#line 682 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_source_remove (_tmp6_);
#line 683 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->shutdown_timeout = (guint) 0;
#line 7577 "libvirt-machine.c"
	}
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = by_user;
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp7_) {
#line 7583 "libvirt-machine.c"
		Block28Data* _data28_;
		GVirDomain* _tmp8_;
		GVirDomain* _tmp9_;
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data28_ = g_slice_new0 (Block28Data);
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data28_->_ref_count_ = 1;
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data28_->self = g_object_ref (self);
#line 687 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = self->domain;
#line 687 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _g_object_ref0 (_tmp8_);
#line 687 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data28_->domain = _tmp9_;
#line 691 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_run_in_thread (____lambda111__boxes_run_in_thread_func, block28_data_ref (_data28_), block28_data_unref, NULL, NULL, NULL);
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block28_data_unref (_data28_);
#line 686 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data28_ = NULL;
#line 7605 "libvirt-machine.c"
	}
}


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


static void boxes_libvirt_machine_real_save_real (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachine * self;
	BoxesLibvirtMachineSaveRealData* _data_;
	BoxesLibvirtMachine* _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = (BoxesLibvirtMachine*) base;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineSaveRealData);
#line 5 "/extra-data/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 "/extra-data/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 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_real_save_real_co (_data_);
#line 7639 "libvirt-machine.c"
}


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


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


static gboolean boxes_libvirt_machine_real_save_real_co (BoxesLibvirtMachineSaveRealData* _data_) {
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 7676 "libvirt-machine.c"
		goto _state_0;
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 7680 "libvirt-machine.c"
		goto _state_1;
		default:
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 7685 "libvirt-machine.c"
	}
	_state_0:
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = _data_->self->domain;
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_state_ = 1;
#line 718 "/extra-data/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 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 7696 "libvirt-machine.c"
	_state_1:
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	gvir_domain_save_finish (_data_->_tmp0_, _data_->_res_, &_data_->_inner_error_);
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7710 "libvirt-machine.c"
		} else {
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 7714 "libvirt-machine.c"
		}
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 718 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 7720 "libvirt-machine.c"
	}
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7726 "libvirt-machine.c"
	} else {
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 7730 "libvirt-machine.c"
	}
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 717 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 7736 "libvirt-machine.c"
}


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


void boxes_libvirt_machine_suspend (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineSuspendData* _data_;
	BoxesLibvirtMachine* _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineSuspendData);
#line 5 "/extra-data/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 "/extra-data/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 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_suspend_co (_data_);
#line 7766 "libvirt-machine.c"
}


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


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


static gboolean boxes_libvirt_machine_suspend_co (BoxesLibvirtMachineSuspendData* _data_) {
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 7803 "libvirt-machine.c"
		goto _state_0;
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 7807 "libvirt-machine.c"
		goto _state_1;
		default:
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 7812 "libvirt-machine.c"
	}
	_state_0:
#line 722 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = boxes_libvirt_machine_get_save_on_quit (_data_->self);
#line 722 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 722 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp1_) {
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_save ((BoxesMachine*) _data_->self, boxes_libvirt_machine_suspend_ready, _data_);
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 7827 "libvirt-machine.c"
		_state_1:
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_machine_save_finish ((BoxesMachine*) _data_->self, _data_->_res_, &_data_->_inner_error_);
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7841 "libvirt-machine.c"
			} else {
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 7845 "libvirt-machine.c"
			}
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 723 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 7851 "libvirt-machine.c"
		}
	} else {
#line 725 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp2_ = _data_->self->domain;
#line 725 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_suspend (_data_->_tmp2_, &_data_->_inner_error_);
#line 725 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 725 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 725 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 725 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 725 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7868 "libvirt-machine.c"
			} else {
#line 725 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 7872 "libvirt-machine.c"
			}
#line 725 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 725 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 7878 "libvirt-machine.c"
		}
	}
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 7885 "libvirt-machine.c"
	} else {
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 7889 "libvirt-machine.c"
	}
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 721 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 7895 "libvirt-machine.c"
}


void boxes_libvirt_machine_force_shutdown (BoxesLibvirtMachine* self, gboolean confirm) {
	gboolean _tmp0_;
	const gchar* _tmp9_;
	const gchar* _tmp10_;
	GError * _inner_error_ = NULL;
#line 728 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 729 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = confirm;
#line 729 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_) {
#line 7910 "libvirt-machine.c"
		BoxesApp* _tmp1_;
		GtkApplicationWindow* _tmp2_;
		const gchar* _tmp3_ = NULL;
		GtkMessageDialog* _tmp4_;
		GtkMessageDialog* dialog;
		GtkMessageDialog* _tmp5_;
		gint _tmp6_ = 0;
		gint response;
		GtkMessageDialog* _tmp7_;
		gint _tmp8_;
#line 730 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_app_app;
#line 730 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_->window;
#line 730 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _ ("When you force shutdown, the box may lose data.");
#line 730 "/extra-data/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_OK_CANCEL, _tmp3_);
#line 730 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_ref_sink (_tmp4_);
#line 730 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		dialog = _tmp4_;
#line 735 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = dialog;
#line 735 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = gtk_dialog_run ((GtkDialog*) _tmp5_);
#line 735 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		response = _tmp6_;
#line 736 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = dialog;
#line 736 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp7_);
#line 738 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = response;
#line 738 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp8_ != ((gint) GTK_RESPONSE_OK)) {
#line 739 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (dialog);
#line 739 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return;
#line 7951 "libvirt-machine.c"
		}
#line 729 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (dialog);
#line 7955 "libvirt-machine.c"
	}
#line 742 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp9_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 742 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp10_ = _tmp9_;
#line 742 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:742: Force shutdown '%s'..", _tmp10_);
#line 7963 "libvirt-machine.c"
	{
		GVirDomain* _tmp11_;
#line 744 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self->priv->force_stopped = TRUE;
#line 745 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = self->domain;
#line 745 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_stop (_tmp11_, (guint) 0, &_inner_error_);
#line 745 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 7974 "libvirt-machine.c"
			goto __catch32_g_error;
		}
	}
	goto __finally32;
	__catch32_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp12_;
		const gchar* _tmp13_ = NULL;
		GError* _tmp14_;
		const gchar* _tmp15_;
#line 743 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 743 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 747 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = self->domain;
#line 747 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = gvir_domain_get_name (_tmp12_);
#line 747 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = _error_;
#line 747 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = _tmp14_->message;
#line 747 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:747: Failed to shutdown '%s': %s", _tmp13_, _tmp15_);
#line 743 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 8002 "libvirt-machine.c"
	}
	__finally32:
#line 743 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 743 "/extra-data/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 743 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 743 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 8013 "libvirt-machine.c"
	}
}


static GVirDomainDisk* boxes_libvirt_machine_get_domain_disk (BoxesLibvirtMachine* self, GError** error) {
	GVirDomainDisk* result = NULL;
	GVirDomainDisk* _tmp0_;
	GVirDomainDisk* disk;
	GVirConfigDomain* _tmp1_;
	GList* _tmp2_ = NULL;
	GError * _inner_error_ = NULL;
#line 751 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 752 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (NULL, gvir_domain_disk_get_type ()) ? ((GVirDomainDisk*) NULL) : NULL);
#line 752 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	disk = _tmp0_;
#line 754 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = self->domain_config;
#line 754 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = gvir_config_domain_get_devices (_tmp1_);
#line 8035 "libvirt-machine.c"
	{
		GList* device_config_collection = NULL;
		GList* device_config_it = NULL;
#line 754 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		device_config_collection = _tmp2_;
#line 754 "/extra-data/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 8043 "libvirt-machine.c"
			GVirConfigDomainDevice* _tmp3_;
			GVirConfigDomainDevice* device_config = NULL;
#line 754 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp3_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_config_it->data);
#line 754 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			device_config = _tmp3_;
#line 8050 "libvirt-machine.c"
			{
				GVirConfigDomainDevice* _tmp4_;
#line 755 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp4_ = device_config;
#line 755 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gvir_config_domain_disk_get_type ())) {
#line 8057 "libvirt-machine.c"
					GVirConfigDomainDevice* _tmp5_;
					GVirConfigDomainDisk* _tmp6_;
					GVirConfigDomainDisk* disk_config;
					GVirConfigDomainDisk* _tmp7_;
					GVirConfigDomainDiskGuestDeviceType _tmp8_ = 0;
					GVirConfigDomainDiskGuestDeviceType disk_type;
					const gchar* _tmp9_ = NULL;
					GVirStorageVol* _tmp10_;
					const gchar* _tmp13_;
					gchar* _tmp14_;
					gchar* storage_volume_path;
					gboolean _tmp15_ = FALSE;
					GVirConfigDomainDiskGuestDeviceType _tmp16_;
					gboolean _tmp20_;
#line 756 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp5_ = device_config;
#line 756 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gvir_config_domain_disk_get_type ()) ? ((GVirConfigDomainDisk*) _tmp5_) : NULL);
#line 756 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					disk_config = _tmp6_;
#line 757 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp7_ = disk_config;
#line 757 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp8_ = gvir_config_domain_disk_get_guest_device_type (_tmp7_);
#line 757 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					disk_type = _tmp8_;
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp10_ = self->storage_volume;
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_tmp10_ != NULL) {
#line 8088 "libvirt-machine.c"
						GVirStorageVol* _tmp11_;
						const gchar* _tmp12_ = NULL;
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp11_ = self->storage_volume;
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp12_ = gvir_storage_vol_get_path (_tmp11_, &_inner_error_);
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp9_ = _tmp12_;
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						if (_inner_error_ != NULL) {
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							g_propagate_error (error, _inner_error_);
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (disk_config);
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (device_config);
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							__g_list_free__g_object_unref0_0 (device_config_collection);
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							_g_object_unref0 (disk);
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
							return NULL;
#line 8111 "libvirt-machine.c"
						}
					} else {
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp9_ = NULL;
#line 8116 "libvirt-machine.c"
					}
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp13_ = _tmp9_;
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp14_ = g_strdup (_tmp13_);
#line 758 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					storage_volume_path = _tmp14_;
#line 761 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp16_ = disk_type;
#line 761 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_tmp16_ == GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK) {
#line 8128 "libvirt-machine.c"
						GVirConfigDomainDisk* _tmp17_;
						const gchar* _tmp18_ = NULL;
						const gchar* _tmp19_;
#line 762 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp17_ = disk_config;
#line 762 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp18_ = gvir_config_domain_disk_get_source (_tmp17_);
#line 762 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp19_ = storage_volume_path;
#line 762 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp15_ = g_strcmp0 (_tmp18_, _tmp19_) == 0;
#line 8140 "libvirt-machine.c"
					} else {
#line 761 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp15_ = FALSE;
#line 8144 "libvirt-machine.c"
					}
#line 761 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp20_ = _tmp15_;
#line 761 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					if (_tmp20_) {
#line 8150 "libvirt-machine.c"
						GVirDomain* _tmp21_;
						GVirConfigDomainDevice* _tmp22_;
						GObject* _tmp23_ = NULL;
						GObject* _tmp24_;
#line 763 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp21_ = self->domain;
#line 763 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp22_ = device_config;
#line 763 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp23_ = g_object_new (gvir_domain_disk_get_type (), "domain", _tmp21_, "config", _tmp22_, NULL);
#line 763 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_tmp24_ = G_IS_INITIALLY_UNOWNED (_tmp23_) ? g_object_ref_sink (_tmp23_) : _tmp23_;
#line 763 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (disk);
#line 763 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						disk = G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, gvir_domain_disk_get_type ()) ? ((GVirDomainDisk*) _tmp24_) : NULL;
#line 767 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_free0 (storage_volume_path);
#line 767 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (disk_config);
#line 767 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						_g_object_unref0 (device_config);
#line 767 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
						break;
#line 8175 "libvirt-machine.c"
					}
#line 761 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_free0 (storage_volume_path);
#line 761 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (disk_config);
#line 8181 "libvirt-machine.c"
				}
#line 755 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (device_config);
#line 8185 "libvirt-machine.c"
			}
		}
#line 755 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__g_list_free__g_object_unref0_0 (device_config_collection);
#line 8190 "libvirt-machine.c"
	}
#line 772 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = disk;
#line 772 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 8196 "libvirt-machine.c"
}


static GVirDomainInterface* boxes_libvirt_machine_get_domain_network_interface (BoxesLibvirtMachine* self, GError** error) {
	GVirDomainInterface* result = NULL;
	GVirDomainInterface* _tmp0_;
	GVirDomainInterface* net;
	GVirConfigDomain* _tmp1_;
	GList* _tmp2_ = NULL;
#line 775 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 776 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (NULL, gvir_domain_interface_get_type ()) ? ((GVirDomainInterface*) NULL) : NULL);
#line 776 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	net = _tmp0_;
#line 779 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = self->domain_config;
#line 779 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = gvir_config_domain_get_devices (_tmp1_);
#line 8216 "libvirt-machine.c"
	{
		GList* device_config_collection = NULL;
		GList* device_config_it = NULL;
#line 779 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		device_config_collection = _tmp2_;
#line 779 "/extra-data/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 8224 "libvirt-machine.c"
			GVirConfigDomainDevice* _tmp3_;
			GVirConfigDomainDevice* device_config = NULL;
#line 779 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp3_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_config_it->data);
#line 779 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			device_config = _tmp3_;
#line 8231 "libvirt-machine.c"
			{
				GVirConfigDomainDevice* _tmp4_;
#line 780 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp4_ = device_config;
#line 780 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gvir_config_domain_interface_get_type ())) {
#line 8238 "libvirt-machine.c"
					GVirDomain* _tmp5_;
					GVirConfigDomainDevice* _tmp6_;
					GObject* _tmp7_ = NULL;
					GObject* _tmp8_;
#line 781 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp5_ = self->domain;
#line 781 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp6_ = device_config;
#line 781 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp7_ = g_object_new (gvir_domain_interface_get_type (), "domain", _tmp5_, "config", _tmp6_, NULL);
#line 781 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_tmp8_ = G_IS_INITIALLY_UNOWNED (_tmp7_) ? g_object_ref_sink (_tmp7_) : _tmp7_;
#line 781 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (net);
#line 781 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					net = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gvir_domain_interface_get_type ()) ? ((GVirDomainInterface*) _tmp8_) : NULL;
#line 784 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (device_config);
#line 784 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					break;
#line 8259 "libvirt-machine.c"
				}
#line 780 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_object_unref0 (device_config);
#line 8263 "libvirt-machine.c"
			}
		}
#line 780 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__g_list_free__g_object_unref0_0 (device_config_collection);
#line 8268 "libvirt-machine.c"
	}
#line 788 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = net;
#line 788 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 8274 "libvirt-machine.c"
}


static void boxes_libvirt_machine_update_ram_property (BoxesLibvirtMachine* self, BoxesProperty* property) {
	GError * _inner_error_ = NULL;
#line 791 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 791 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (property != NULL);
#line 8284 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
		GVirConfigDomain* _tmp1_ = NULL;
		GVirConfigDomain* config;
		GVirConfigDomain* _tmp2_;
		guint64 _tmp3_;
		guint64 _tmp4_;
		guint64 actual;
		guint64 _tmp5_;
		guint64 _tmp6_;
		guint64 pending;
		guint64 _tmp7_;
		guint64 _tmp8_;
		BoxesProperty* _tmp9_;
		guint64 _tmp10_;
		guint64 _tmp11_;
#line 793 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->domain;
#line 793 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 793 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		config = _tmp1_;
#line 793 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 8309 "libvirt-machine.c"
			goto __catch33_g_error;
		}
#line 796 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = self->domain_config;
#line 796 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = gvir_config_domain_get_memory (_tmp2_);
#line 796 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 796 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		actual = _tmp4_ / 1024;
#line 797 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = gvir_config_domain_get_memory (config);
#line 797 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _tmp5_;
#line 797 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		pending = _tmp6_ / 1024;
#line 799 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = actual;
#line 799 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = pending;
#line 799 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:799: RAM actual: %llu, pending: %llu", _tmp7_, _tmp8_);
#line 801 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = property;
#line 801 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = actual;
#line 801 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = pending;
#line 801 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_property_set_reboot_required (_tmp9_, (_tmp10_ - _tmp11_) > ((guint64) 1));
#line 792 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 8342 "libvirt-machine.c"
	}
	goto __finally33;
	__catch33_g_error:
	{
		GError* e = NULL;
#line 792 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		e = _inner_error_;
#line 792 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 792 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (e);
#line 8354 "libvirt-machine.c"
	}
	__finally33:
#line 792 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 792 "/extra-data/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 792 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 792 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 8365 "libvirt-machine.c"
	}
}


static Block29Data* block29_data_ref (Block29Data* _data29_) {
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data29_->_ref_count_);
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data29_;
#line 8375 "libvirt-machine.c"
}


static void block29_data_unref (void * _userdata_) {
	Block29Data* _data29_;
	_data29_ = (Block29Data*) _userdata_;
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data29_->_ref_count_)) {
#line 8384 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data29_->self;
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data29_->property);
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block29Data, _data29_);
#line 8394 "libvirt-machine.c"
	}
}


static void _vala_GVirNodeInfo_free (GVirNodeInfo* self) {
#line 808 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_node_info_get_type (), self);
#line 8402 "libvirt-machine.c"
}


static void _boxes_libvirt_machine_on_ram_changed_property_size_changed (BoxesProperty* property, guint64 value, gpointer self) {
#line 810 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_on_ram_changed (self, property, value);
#line 8409 "libvirt-machine.c"
}


static void ___lambda100_ (Block29Data* _data29_) {
	BoxesLibvirtMachine * self;
	gboolean _tmp0_ = FALSE;
#line 818 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data29_->self;
#line 819 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_machine_is_on ((BoxesMachine*) self);
#line 819 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (!_tmp0_) {
#line 8422 "libvirt-machine.c"
		BoxesProperty* _tmp1_;
#line 820 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = _data29_->property;
#line 820 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_property_set_reboot_required (_tmp1_, FALSE);
#line 8428 "libvirt-machine.c"
	}
}


static void ____lambda100__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 818 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda100_ (self);
#line 8436 "libvirt-machine.c"
}


static void boxes_libvirt_machine_add_ram_property (BoxesLibvirtMachine* self, GList** list) {
	GError * _inner_error_ = NULL;
#line 806 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 8444 "libvirt-machine.c"
	{
		Block29Data* _data29_;
		GVirConnection* _tmp0_;
		GVirNodeInfo* _tmp1_ = NULL;
		GVirNodeInfo* _tmp2_;
		GVirNodeInfo* _tmp3_;
		gulong _tmp4_;
		gulong _tmp5_;
		gulong max_ram;
		const gchar* _tmp6_ = NULL;
		GVirConfigDomain* _tmp7_;
		guint64 _tmp8_;
		guint64 _tmp9_;
		gulong _tmp10_;
		BoxesProperty* _tmp11_ = NULL;
		BoxesProperty* _tmp12_;
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data29_ = g_slice_new0 (Block29Data);
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data29_->_ref_count_ = 1;
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data29_->self = g_object_ref (self);
#line 808 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->connection;
#line 808 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_connection_get_node_info (_tmp0_, &_inner_error_);
#line 808 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = _tmp1_;
#line 808 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 808 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			block29_data_unref (_data29_);
#line 808 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data29_ = NULL;
#line 8479 "libvirt-machine.c"
			goto __catch34_g_error;
		}
#line 808 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _tmp2_;
#line 808 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_->memory;
#line 808 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = _tmp4_;
#line 808 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirNodeInfo_free0 (_tmp3_);
#line 808 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		max_ram = _tmp5_;
#line 810 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = _ ("Memory");
#line 810 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = self->domain_config;
#line 810 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = gvir_config_domain_get_memory (_tmp7_);
#line 810 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = _tmp8_;
#line 810 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = max_ram;
#line 810 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = boxes_iproperties_provider_add_size_property ((BoxesIPropertiesProvider*) self, list, _tmp6_, _tmp9_, (guint64) (OSINFO_MEBIBYTES / OSINFO_KIBIBYTES), (guint64) _tmp10_, (guint64) (OSINFO_MEBIBYTES / OSINFO_KIBIBYTES), _boxes_libvirt_machine_on_ram_changed_property_size_changed, self);
#line 810 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data29_->property = _tmp11_;
#line 818 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_signal_connect_data ((GObject*) self, "notify::state", (GCallback) ____lambda100__g_object_notify, block29_data_ref (_data29_), (GClosureNotify) block29_data_unref, 0);
#line 823 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = _data29_->property;
#line 823 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_ram_property (self, _tmp12_);
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block29_data_unref (_data29_);
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data29_ = NULL;
#line 8516 "libvirt-machine.c"
	}
	goto __finally34;
	__catch34_g_error:
	{
		GError* _error_ = NULL;
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 8528 "libvirt-machine.c"
	}
	__finally34:
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 807 "/extra-data/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 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 807 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 8539 "libvirt-machine.c"
	}
}


static Block30Data* block30_data_ref (Block30Data* _data30_) {
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data30_->_ref_count_);
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data30_;
#line 8549 "libvirt-machine.c"
}


static void block30_data_unref (void * _userdata_) {
	Block30Data* _data30_;
	_data30_ = (Block30Data*) _userdata_;
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data30_->_ref_count_)) {
#line 8558 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data30_->self;
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data30_->property);
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block30Data, _data30_);
#line 8568 "libvirt-machine.c"
	}
}


static gboolean __lambda99_ (Block30Data* _data30_) {
	BoxesLibvirtMachine * self;
	gboolean result = FALSE;
	gboolean _tmp18_ = FALSE;
	GError * _inner_error_ = NULL;
#line 829 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data30_->self;
#line 8580 "libvirt-machine.c"
	{
		GVirDomain* _tmp0_;
		GVirConfigDomain* _tmp1_ = NULL;
		GVirConfigDomain* config;
		GVirConfigDomain* _tmp2_;
		guint64 _tmp3_;
		GVirConfigDomain* _tmp4_;
		GObjectClass* _tmp5_ = NULL;
		GParamSpec* _tmp6_ = NULL;
		GVirDomain* _tmp9_;
		GVirConfigDomain* _tmp10_;
		guint64 _tmp11_;
		gboolean _tmp12_ = FALSE;
#line 831 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = self->domain;
#line 831 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = gvir_domain_get_config (_tmp0_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 831 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		config = _tmp1_;
#line 831 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 8602 "libvirt-machine.c"
			goto __catch35_g_error;
		}
#line 832 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = config;
#line 832 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _data30_->value;
#line 832 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_config_domain_set_memory (_tmp2_, _tmp3_);
#line 833 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = config;
#line 833 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = G_OBJECT_GET_CLASS ((GObject*) _tmp4_);
#line 833 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = g_object_class_find_property (_tmp5_, "current-memory");
#line 833 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp6_ != NULL) {
#line 8619 "libvirt-machine.c"
			GVirConfigDomain* _tmp7_;
			guint64 _tmp8_;
#line 834 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = config;
#line 834 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp8_ = _data30_->value;
#line 834 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_set ((GObject*) _tmp7_, "current-memory", _tmp8_, NULL);
#line 8628 "libvirt-machine.c"
		}
#line 835 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = self->domain;
#line 835 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = config;
#line 835 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_set_config (_tmp9_, _tmp10_, &_inner_error_);
#line 835 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 835 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (config);
#line 8640 "libvirt-machine.c"
			goto __catch35_g_error;
		}
#line 836 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _data30_->value;
#line 836 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:836: RAM changed to %llu", _tmp11_);
#line 837 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = boxes_machine_is_on ((BoxesMachine*) self);
#line 837 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp12_) {
#line 838 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			boxes_libvirt_machine_notify_reboot_required (self);
#line 8653 "libvirt-machine.c"
		}
#line 830 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (config);
#line 8657 "libvirt-machine.c"
	}
	goto __finally35;
	__catch35_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp13_;
		const gchar* _tmp14_ = NULL;
		guint64 _tmp15_;
		GError* _tmp16_;
		const gchar* _tmp17_;
#line 830 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 830 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 840 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = self->domain;
#line 840 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = gvir_domain_get_name (_tmp13_);
#line 840 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = _data30_->value;
#line 840 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp16_ = _error_;
#line 840 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp17_ = _tmp16_->message;
#line 840 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:840: Failed to change RAM of box '%s' to %llu: %s", _tmp14_, _tmp15_, _tmp17_);
#line 830 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 8686 "libvirt-machine.c"
	}
	__finally35:
#line 830 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 830 "/extra-data/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 830 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 830 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 8697 "libvirt-machine.c"
	}
#line 846 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp18_ = boxes_machine_is_on ((BoxesMachine*) self);
#line 846 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp18_) {
#line 8703 "libvirt-machine.c"
		BoxesProperty* _tmp19_;
#line 847 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp19_ = _data30_->property;
#line 847 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_update_ram_property (self, _tmp19_);
#line 8709 "libvirt-machine.c"
	}
#line 849 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = FALSE;
#line 849 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 8715 "libvirt-machine.c"
}


static gboolean ___lambda99__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda99_ (self);
#line 829 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 8724 "libvirt-machine.c"
}


static void boxes_libvirt_machine_on_ram_changed (BoxesLibvirtMachine* self, BoxesProperty* property, guint64 value) {
	Block30Data* _data30_;
	BoxesProperty* _tmp0_;
	BoxesProperty* _tmp1_;
	guint64 _tmp2_;
	BoxesProperty* _tmp3_;
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (property != NULL);
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data30_ = g_slice_new0 (Block30Data);
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data30_->_ref_count_ = 1;
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data30_->self = g_object_ref (self);
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = property;
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data30_->property);
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data30_->property = _tmp1_;
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = value;
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data30_->value = _tmp2_;
#line 829 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = _data30_->property;
#line 829 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_property_set_deferred_change (_tmp3_, ___lambda99__gsource_func, block30_data_ref (_data30_), block30_data_unref);
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block30_data_unref (_data30_);
#line 827 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data30_ = NULL;
#line 8764 "libvirt-machine.c"
}


static void boxes_libvirt_machine_start_data_free (gpointer _data) {
	BoxesLibvirtMachineStartData* _data_;
	_data_ = _data;
#line 775 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 775 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_slice_free (BoxesLibvirtMachineStartData, _data_);
#line 8775 "libvirt-machine.c"
}


static void boxes_libvirt_machine_start (BoxesLibvirtMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtMachineStartData* _data_;
	BoxesLibvirtMachine* _tmp0_;
#line 775 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_slice_new0 (BoxesLibvirtMachineStartData);
#line 775 "/extra-data/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 775 "/extra-data/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 775 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 775 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->self = _tmp0_;
#line 775 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_start_co (_data_);
#line 8794 "libvirt-machine.c"
}


static void boxes_libvirt_machine_start_finish (BoxesLibvirtMachine* self, GAsyncResult* _res_, GError** error) {
	BoxesLibvirtMachineStartData* _data_;
#line 775 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 775 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 8804 "libvirt-machine.c"
	}
#line 775 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 8808 "libvirt-machine.c"
}


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


static gboolean boxes_libvirt_machine_start_co (BoxesLibvirtMachineStartData* _data_) {
#line 853 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (_data_->_state_) {
#line 853 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 0:
#line 8831 "libvirt-machine.c"
		goto _state_0;
#line 853 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 1:
#line 8835 "libvirt-machine.c"
		goto _state_1;
#line 853 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 2:
#line 8839 "libvirt-machine.c"
		goto _state_2;
#line 853 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case 3:
#line 8843 "libvirt-machine.c"
		goto _state_3;
		default:
#line 853 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_assert_not_reached ();
#line 8848 "libvirt-machine.c"
	}
	_state_0:
#line 854 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp0_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 854 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 854 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp1_ == BOXES_MACHINE_MACHINE_STATE_RUNNING) {
#line 855 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 855 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 8861 "libvirt-machine.c"
		} else {
#line 855 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 8865 "libvirt-machine.c"
		}
#line 855 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 855 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 8871 "libvirt-machine.c"
	}
#line 857 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp2_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 857 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 857 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_tmp3_ == BOXES_MACHINE_MACHINE_STATE_PAUSED) {
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp4_ = _data_->self->domain;
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_state_ = 1;
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_resume_async (_data_->_tmp4_, NULL, boxes_libvirt_machine_start_ready, _data_);
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 8887 "libvirt-machine.c"
		_state_1:
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_resume_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 8901 "libvirt-machine.c"
			} else {
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 8905 "libvirt-machine.c"
			}
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 858 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 8911 "libvirt-machine.c"
		}
	} else {
#line 859 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp5_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 859 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data_->_tmp6_ = _data_->_tmp5_;
#line 859 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data_->_tmp6_ == BOXES_MACHINE_MACHINE_STATE_SLEEPING) {
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp7_ = _data_->self->domain;
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_state_ = 2;
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_wakeup_async (_data_->_tmp7_, (guint) 0, NULL, boxes_libvirt_machine_start_ready, _data_);
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 8928 "libvirt-machine.c"
			_state_2:
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_wakeup_finish (_data_->_tmp7_, _data_->_res_, &_data_->_inner_error_);
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 8942 "libvirt-machine.c"
				} else {
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 8946 "libvirt-machine.c"
				}
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 860 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 8952 "libvirt-machine.c"
			}
		} else {
#line 862 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp8_ = _data_->self->domain;
#line 862 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp9_ = FALSE;
#line 862 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp9_ = gvir_domain_get_saved (_data_->_tmp8_);
#line 862 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_tmp9_) {
#line 864 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp10_ = NULL;
#line 864 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp10_ = _ ("Restoring %s from disk");
#line 864 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp11_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 864 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp12_ = _data_->_tmp11_;
#line 864 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp13_ = NULL;
#line 864 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp13_ = g_strdup_printf (_data_->_tmp10_, _data_->_tmp12_);
#line 864 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp14_ = _data_->_tmp13_;
#line 864 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_status ((BoxesMachine*) _data_->self, _data_->_tmp14_);
#line 864 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_data_->_tmp14_);
#line 8981 "libvirt-machine.c"
			} else {
#line 867 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp15_ = NULL;
#line 867 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp15_ = _ ("Starting %s");
#line 867 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp16_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 867 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 867 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp18_ = NULL;
#line 867 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp18_ = g_strdup_printf (_data_->_tmp15_, _data_->_tmp17_);
#line 867 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_data_->_tmp19_ = _data_->_tmp18_;
#line 867 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				boxes_machine_set_status ((BoxesMachine*) _data_->self, _data_->_tmp19_);
#line 867 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_g_free0 (_data_->_tmp19_);
#line 9001 "libvirt-machine.c"
			}
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_tmp20_ = _data_->self->domain;
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data_->_state_ = 3;
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_start_async (_data_->_tmp20_, (guint) 0, NULL, boxes_libvirt_machine_start_ready, _data_);
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			return FALSE;
#line 9011 "libvirt-machine.c"
			_state_3:
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_domain_start_finish (_data_->_tmp20_, _data_->_res_, &_data_->_inner_error_);
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_error_free (_data_->_inner_error_);
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_data_->_state_ == 0) {
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 9025 "libvirt-machine.c"
				} else {
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 9029 "libvirt-machine.c"
				}
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				g_object_unref (_data_->_async_result);
#line 868 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				return FALSE;
#line 9035 "libvirt-machine.c"
			}
		}
	}
#line 853 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 853 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 9043 "libvirt-machine.c"
	} else {
#line 853 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 9047 "libvirt-machine.c"
	}
#line 853 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 853 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return FALSE;
#line 9053 "libvirt-machine.c"
}


static Block31Data* block31_data_ref (Block31Data* _data31_) {
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data31_->_ref_count_);
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data31_;
#line 9062 "libvirt-machine.c"
}


static void block31_data_unref (void * _userdata_) {
	Block31Data* _data31_;
	_data31_ = (Block31Data*) _userdata_;
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data31_->_ref_count_)) {
#line 9071 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data31_->self;
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_data31_->notification);
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block31Data, _data31_);
#line 9081 "libvirt-machine.c"
	}
}


static void ___lambda95_ (BoxesLibvirtMachine* self, GObject* obj, GAsyncResult* res) {
	GError * _inner_error_ = NULL;
#line 883 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (res != NULL);
#line 9090 "libvirt-machine.c"
	{
		GAsyncResult* _tmp0_;
#line 885 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = res;
#line 885 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_start_finish (self, _tmp0_, &_inner_error_);
#line 885 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 9099 "libvirt-machine.c"
			goto __catch36_g_error;
		}
	}
	goto __finally36;
	__catch36_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp1_;
		const gchar* _tmp2_ = NULL;
		GError* _tmp3_;
		const gchar* _tmp4_;
#line 884 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 884 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 887 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = self->domain;
#line 887 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = gvir_domain_get_name (_tmp1_);
#line 887 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = _error_;
#line 887 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_->message;
#line 887 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:887: Failed to start '%s': %s", _tmp2_, _tmp4_);
#line 884 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 9127 "libvirt-machine.c"
	}
	__finally36:
#line 884 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 884 "/extra-data/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 884 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 884 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 9138 "libvirt-machine.c"
	}
}


static void ____lambda95__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 883 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	___lambda95_ (self, source_object, res);
#line 883 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_unref (self);
#line 9148 "libvirt-machine.c"
}


static void __lambda94_ (Block31Data* _data31_) {
	BoxesLibvirtMachine * self;
	gboolean _tmp0_ = FALSE;
	BoxesMachineMachineState _tmp1_;
	BoxesMachineMachineState _tmp2_;
	gboolean _tmp5_;
#line 880 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data31_->self;
#line 881 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 881 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 881 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp2_ == BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 881 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = TRUE;
#line 9168 "libvirt-machine.c"
	} else {
		BoxesMachineMachineState _tmp3_;
		BoxesMachineMachineState _tmp4_;
#line 881 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = boxes_machine_get_state ((BoxesMachine*) self);
#line 881 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = _tmp3_;
#line 881 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp0_ = _tmp4_ == BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED;
#line 9178 "libvirt-machine.c"
	}
#line 881 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp0_;
#line 881 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp5_) {
#line 9184 "libvirt-machine.c"
		const gchar* _tmp6_;
		const gchar* _tmp7_;
		gulong _tmp8_;
		guint _tmp9_;
#line 882 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 882 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _tmp6_;
#line 882 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:882: '%s' stopped.", _tmp7_);
#line 883 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_start (self, ____lambda95__gasync_ready_callback, g_object_ref (self));
#line 890 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _data31_->state_id;
#line 890 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_signal_handler_disconnect ((GObject*) self, _tmp8_);
#line 891 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = self->priv->shutdown_timeout;
#line 891 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp9_ != ((guint) 0)) {
#line 9205 "libvirt-machine.c"
			guint _tmp10_;
#line 892 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp10_ = self->priv->shutdown_timeout;
#line 892 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			g_source_remove (_tmp10_);
#line 893 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			self->priv->shutdown_timeout = (guint) 0;
#line 9213 "libvirt-machine.c"
		}
#line 895 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_data31_->notification != NULL) {
#line 896 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gd_notification_dismiss (_data31_->notification);
#line 897 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (_data31_->notification);
#line 897 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_data31_->notification = NULL;
#line 9223 "libvirt-machine.c"
		}
	}
}


static void ___lambda94__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 880 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda94_ (self);
#line 9232 "libvirt-machine.c"
}


static void __lambda97_ (Block31Data* _data31_) {
	BoxesLibvirtMachine * self;
#line 904 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data31_->self;
#line 905 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data31_->notification);
#line 905 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data31_->notification = NULL;
#line 906 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_force_shutdown (self, FALSE);
#line 9246 "libvirt-machine.c"
}


static void ___lambda97__boxes_notificationbar_ok_func (gpointer self) {
#line 904 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda97_ (self);
#line 9253 "libvirt-machine.c"
}


static gboolean __lambda96_ (Block31Data* _data31_) {
	BoxesLibvirtMachine * self;
	gboolean result = FALSE;
	BoxesNotificationbarOKFunc really_force_shutdown;
	void* really_force_shutdown_target;
	GDestroyNotify really_force_shutdown_target_destroy_notify;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_ = NULL;
	gchar* message;
	BoxesApp* _tmp4_;
	BoxesNotificationbar* _tmp5_;
	BoxesNotificationbarOKFunc _tmp6_;
	void* _tmp6__target;
	GDestroyNotify _tmp6__target_destroy_notify;
	GdNotification* _tmp7_ = NULL;
#line 902 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data31_->self;
#line 904 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown = ___lambda97__boxes_notificationbar_ok_func;
#line 904 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target = block31_data_ref (_data31_);
#line 904 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target_destroy_notify = block31_data_unref;
#line 909 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _ ("Restart of '%s' is taking too long. Force it to shutdown?");
#line 909 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 909 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 909 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = g_strdup_printf (_tmp0_, _tmp2_);
#line 909 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	message = _tmp3_;
#line 910 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = boxes_app_app;
#line 910 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->notificationbar;
#line 910 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = really_force_shutdown;
#line 910 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6__target = really_force_shutdown_target;
#line 910 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6__target_destroy_notify = really_force_shutdown_target_destroy_notify;
#line 910 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target_destroy_notify = NULL;
#line 910 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = boxes_notificationbar_display_for_action (_tmp5_, message, GTK_STOCK_YES, _tmp6_, _tmp6__target, _tmp6__target_destroy_notify, NULL, NULL, NULL, -1);
#line 910 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_data31_->notification);
#line 910 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data31_->notification = _tmp7_;
#line 915 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->shutdown_timeout = (guint) 0;
#line 917 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = FALSE;
#line 917 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (message);
#line 917 "/extra-data/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 917 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown = NULL;
#line 917 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target = NULL;
#line 917 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	really_force_shutdown_target_destroy_notify = NULL;
#line 917 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 9326 "libvirt-machine.c"
}


static gboolean ___lambda96__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda96_ (self);
#line 902 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 9335 "libvirt-machine.c"
}


static void __lambda93_ (BoxesLibvirtMachine* self) {
	Block31Data* _data31_;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gulong _tmp2_ = 0UL;
	guint _tmp3_ = 0U;
	GError * _inner_error_ = NULL;
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data31_ = g_slice_new0 (Block31Data);
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data31_->_ref_count_ = 1;
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data31_->self = g_object_ref (self);
#line 875 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 875 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = _tmp0_;
#line 875 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_debug ("libvirt-machine.vala:875: Rebooting '%s'..", _tmp1_);
#line 876 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	((BoxesMachine*) self)->stay_on_display = TRUE;
#line 877 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data31_->state_id = (gulong) 0;
#line 878 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data31_->notification = NULL;
#line 880 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = g_signal_connect_data ((GObject*) self, "notify::state", (GCallback) ___lambda94__g_object_notify, block31_data_ref (_data31_), (GClosureNotify) block31_data_unref, 0);
#line 880 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data31_->state_id = _tmp2_;
#line 902 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda96__gsource_func, block31_data_ref (_data31_), block31_data_unref);
#line 902 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->shutdown_timeout = _tmp3_;
#line 9372 "libvirt-machine.c"
	{
		GVirDomain* _tmp4_;
#line 921 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = self->domain;
#line 921 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		gvir_domain_shutdown (_tmp4_, (guint) 0, &_inner_error_);
#line 921 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 9381 "libvirt-machine.c"
			goto __catch37_g_error;
		}
	}
	goto __finally37;
	__catch37_g_error:
	{
		GError* _error_ = NULL;
		GVirDomain* _tmp5_;
		const gchar* _tmp6_ = NULL;
		GError* _tmp7_;
		const gchar* _tmp8_;
#line 920 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 920 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 923 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = self->domain;
#line 923 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = gvir_domain_get_name (_tmp5_);
#line 923 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = _error_;
#line 923 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _tmp7_->message;
#line 923 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:923: Failed to reboot '%s': %s", _tmp6_, _tmp8_);
#line 920 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 9409 "libvirt-machine.c"
	}
	__finally37:
#line 920 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 920 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		block31_data_unref (_data31_);
#line 920 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_data31_ = NULL;
#line 920 "/extra-data/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 920 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 920 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 9424 "libvirt-machine.c"
	}
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block31_data_unref (_data31_);
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data31_ = NULL;
#line 9430 "libvirt-machine.c"
}


static void ___lambda93__boxes_notificationbar_ok_func (gpointer self) {
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__lambda93_ (self);
#line 9437 "libvirt-machine.c"
}


static void boxes_libvirt_machine_notify_reboot_required (BoxesLibvirtMachine* self) {
	BoxesNotificationbarOKFunc reboot;
	void* reboot_target;
	GDestroyNotify reboot_target_destroy_notify;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_ = NULL;
	gchar* message;
	BoxesApp* _tmp4_;
	BoxesNotificationbar* _tmp5_;
	BoxesNotificationbarOKFunc _tmp6_;
	void* _tmp6__target;
	GDestroyNotify _tmp6__target_destroy_notify;
	GdNotification* _tmp7_ = NULL;
	GdNotification* _tmp8_;
#line 873 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot = ___lambda93__boxes_notificationbar_ok_func;
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target = g_object_ref (self);
#line 874 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target_destroy_notify = g_object_unref;
#line 926 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = _ ("Changes require restart of '%s'. Attempt restart?");
#line 926 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 926 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 926 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp3_ = g_strdup_printf (_tmp0_, _tmp2_);
#line 926 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	message = _tmp3_;
#line 927 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp4_ = boxes_app_app;
#line 927 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp5_ = _tmp4_->notificationbar;
#line 927 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6_ = reboot;
#line 927 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6__target = reboot_target;
#line 927 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp6__target_destroy_notify = reboot_target_destroy_notify;
#line 927 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target_destroy_notify = NULL;
#line 927 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp7_ = boxes_notificationbar_display_for_action (_tmp5_, message, GTK_STOCK_YES, _tmp6_, _tmp6__target, _tmp6__target_destroy_notify, NULL, NULL, NULL, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 927 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp8_ = _tmp7_;
#line 927 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (_tmp8_);
#line 873 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_free0 (message);
#line 873 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	(reboot_target_destroy_notify == NULL) ? NULL : (reboot_target_destroy_notify (reboot_target), NULL);
#line 873 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot = NULL;
#line 873 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target = NULL;
#line 873 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	reboot_target_destroy_notify = NULL;
#line 9503 "libvirt-machine.c"
}


static void _vala_GVirStorageVolInfo_free (GVirStorageVolInfo* self) {
#line 937 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_storage_vol_info_get_type (), self);
#line 9510 "libvirt-machine.c"
}


static void _boxes_libvirt_machine_on_storage_changed_property_size_changed (BoxesProperty* property, guint64 value, gpointer self) {
#line 940 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_on_storage_changed (self, property, value);
#line 9517 "libvirt-machine.c"
}


static void _vala_GVirStoragePoolInfo_free (GVirStoragePoolInfo* self) {
#line 934 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_boxed_free (gvir_storage_pool_info_get_type (), self);
#line 9524 "libvirt-machine.c"
}


static void boxes_libvirt_machine_add_storage_property (BoxesLibvirtMachine* self, GList** list) {
	GVirStorageVol* _tmp0_;
	GError * _inner_error_ = NULL;
#line 930 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 931 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->storage_volume;
#line 931 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_ == NULL) {
#line 932 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 9539 "libvirt-machine.c"
	}
	{
		GVirStorageVol* _tmp1_;
		GVirStorageVolInfo* _tmp2_ = NULL;
		GVirStorageVolInfo* volume_info;
		GVirConnection* _tmp3_;
		GVirStoragePool* _tmp4_ = NULL;
		GVirStoragePool* pool;
		GVirStoragePool* _tmp5_;
		GVirStoragePoolInfo* _tmp6_ = NULL;
		GVirStoragePoolInfo* pool_info;
		GVirStorageVolInfo* _tmp7_;
		guint64 _tmp8_;
		GVirStoragePoolInfo* _tmp9_;
		guint64 _tmp10_;
		guint64 max_storage;
		const gchar* _tmp11_ = NULL;
		GVirStorageVolInfo* _tmp12_;
		guint64 _tmp13_;
		GVirStorageVolInfo* _tmp14_;
		guint64 _tmp15_;
		guint64 _tmp16_;
		BoxesProperty* _tmp17_ = NULL;
		BoxesProperty* _tmp18_;
#line 935 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = self->storage_volume;
#line 935 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp2_ = gvir_storage_vol_get_info (_tmp1_, &_inner_error_);
#line 935 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		volume_info = _tmp2_;
#line 935 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 9572 "libvirt-machine.c"
			goto __catch38_g_error;
		}
#line 936 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp3_ = self->connection;
#line 936 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp4_ = boxes_get_storage_pool (_tmp3_);
#line 936 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		pool = _tmp4_;
#line 937 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp5_ = pool;
#line 937 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp6_ = gvir_storage_pool_get_info (_tmp5_, &_inner_error_);
#line 937 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		pool_info = _tmp6_;
#line 937 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_inner_error_ != NULL) {
#line 937 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (pool);
#line 937 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			__vala_GVirStorageVolInfo_free0 (volume_info);
#line 9593 "libvirt-machine.c"
			goto __catch38_g_error;
		}
#line 938 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp7_ = volume_info;
#line 938 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _tmp7_->capacity;
#line 938 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = pool_info;
#line 938 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = _tmp9_->available;
#line 938 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		max_storage = (_tmp8_ + _tmp10_) / OSINFO_KIBIBYTES;
#line 940 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _ ("Maximum Disk Size");
#line 940 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = volume_info;
#line 940 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = _tmp12_->capacity;
#line 940 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp14_ = volume_info;
#line 940 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp15_ = _tmp14_->capacity;
#line 940 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp16_ = max_storage;
#line 940 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp17_ = boxes_iproperties_provider_add_size_property ((BoxesIPropertiesProvider*) self, list, _tmp11_, _tmp13_ / OSINFO_KIBIBYTES, _tmp15_ / OSINFO_KIBIBYTES, _tmp16_, (guint64) (OSINFO_GIBIBYTES / OSINFO_KIBIBYTES), _boxes_libvirt_machine_on_storage_changed_property_size_changed, self);
#line 940 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp18_ = _tmp17_;
#line 940 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (_tmp18_);
#line 934 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirStoragePoolInfo_free0 (pool_info);
#line 934 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (pool);
#line 934 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		__vala_GVirStorageVolInfo_free0 (volume_info);
#line 9630 "libvirt-machine.c"
	}
	goto __finally38;
	__catch38_g_error:
	{
		GError* _error_ = NULL;
		GVirStorageVol* _tmp19_;
		const gchar* _tmp20_ = NULL;
		GError* _tmp21_;
		const gchar* _tmp22_;
#line 934 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 934 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 948 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp19_ = self->storage_volume;
#line 948 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp20_ = gvir_storage_vol_get_name (_tmp19_);
#line 948 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp21_ = _error_;
#line 948 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp22_ = _tmp21_->message;
#line 948 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:948: Failed to get information on volume '%s' or " \
"it's parent pool: %s", _tmp20_, _tmp22_);
#line 934 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 9656 "libvirt-machine.c"
	}
	__finally38:
#line 934 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 934 "/extra-data/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 934 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 934 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return;
#line 9667 "libvirt-machine.c"
	}
}


static Block32Data* block32_data_ref (Block32Data* _data32_) {
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_atomic_int_inc (&_data32_->_ref_count_);
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return _data32_;
#line 9677 "libvirt-machine.c"
}


static void block32_data_unref (void * _userdata_) {
	Block32Data* _data32_;
	_data32_ = (Block32Data*) _userdata_;
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (g_atomic_int_dec_and_test (&_data32_->_ref_count_)) {
#line 9686 "libvirt-machine.c"
		BoxesLibvirtMachine * self;
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		self = _data32_->self;
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_object_unref0 (self);
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_slice_free (Block32Data, _data32_);
#line 9694 "libvirt-machine.c"
	}
}


static gboolean __lambda101_ (Block32Data* _data32_) {
	BoxesLibvirtMachine * self;
	gboolean result = FALSE;
	GVirStorageVol* _tmp0_;
	GError * _inner_error_ = NULL;
#line 956 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = _data32_->self;
#line 957 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = self->storage_volume;
#line 957 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_tmp0_ == NULL) {
#line 958 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		result = FALSE;
#line 958 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return result;
#line 9714 "libvirt-machine.c"
	}
	{
		gboolean _tmp1_ = FALSE;
		guint64 _tmp8_;
#line 961 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp1_ = boxes_machine_is_running ((BoxesMachine*) self);
#line 961 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		if (_tmp1_) {
#line 9723 "libvirt-machine.c"
			GVirDomainDisk* _tmp2_ = NULL;
			GVirDomainDisk* disk;
			GVirDomainDisk* _tmp3_;
#line 962 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp2_ = boxes_libvirt_machine_get_domain_disk (self, &_inner_error_);
#line 962 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			disk = _tmp2_;
#line 962 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 9733 "libvirt-machine.c"
				goto __catch39_g_error;
			}
#line 963 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp3_ = disk;
#line 963 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_tmp3_ != NULL) {
#line 9740 "libvirt-machine.c"
				GVirDomainDisk* _tmp4_;
				guint64 _tmp5_;
#line 964 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp4_ = disk;
#line 964 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				_tmp5_ = _data32_->value;
#line 964 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				gvir_domain_disk_resize (_tmp4_, _tmp5_, (guint) 0, &_inner_error_);
#line 964 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				if (_inner_error_ != NULL) {
#line 964 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
					_g_object_unref0 (disk);
#line 9753 "libvirt-machine.c"
					goto __catch39_g_error;
				}
			}
#line 961 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_g_object_unref0 (disk);
#line 9759 "libvirt-machine.c"
		} else {
			GVirStorageVol* _tmp6_;
			guint64 _tmp7_;
#line 967 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp6_ = self->storage_volume;
#line 967 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			_tmp7_ = _data32_->value;
#line 967 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			gvir_storage_vol_resize (_tmp6_, _tmp7_ * OSINFO_KIBIBYTES, GVIR_STORAGE_VOL_RESIZE_NONE, &_inner_error_);
#line 967 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (_inner_error_ != NULL) {
#line 9771 "libvirt-machine.c"
				goto __catch39_g_error;
			}
		}
#line 968 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp8_ = _data32_->value;
#line 968 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_debug ("libvirt-machine.vala:968: Storage changed to %llu", _tmp8_);
#line 9779 "libvirt-machine.c"
	}
	goto __finally39;
	__catch39_g_error:
	{
		GError* _error_ = NULL;
		GVirStorageVol* _tmp9_;
		const gchar* _tmp10_ = NULL;
		guint64 _tmp11_;
		GError* _tmp12_;
		const gchar* _tmp13_;
#line 960 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_error_ = _inner_error_;
#line 960 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_inner_error_ = NULL;
#line 970 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp9_ = self->storage_volume;
#line 970 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp10_ = gvir_storage_vol_get_name (_tmp9_);
#line 970 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp11_ = _data32_->value;
#line 970 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp12_ = _error_;
#line 970 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_tmp13_ = _tmp12_->message;
#line 970 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_warning ("libvirt-machine.vala:970: Failed to change storage capacity of volume " \
"'%s' to %llu: %s", _tmp10_, _tmp11_, _tmp13_);
#line 960 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		_g_error_free0 (_error_);
#line 9808 "libvirt-machine.c"
	}
	__finally39:
#line 960 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if (_inner_error_ != NULL) {
#line 960 "/extra-data/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 960 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_clear_error (&_inner_error_);
#line 960 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		return FALSE;
#line 9819 "libvirt-machine.c"
	}
#line 976 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	result = FALSE;
#line 976 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 9825 "libvirt-machine.c"
}


static gboolean ___lambda101__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda101_ (self);
#line 956 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return result;
#line 9834 "libvirt-machine.c"
}


static void boxes_libvirt_machine_on_storage_changed (BoxesLibvirtMachine* self, BoxesProperty* property, guint64 value) {
	Block32Data* _data32_;
	guint64 _tmp0_;
	BoxesProperty* _tmp1_;
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (property != NULL);
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data32_ = g_slice_new0 (Block32Data);
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data32_->_ref_count_ = 1;
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data32_->self = g_object_ref (self);
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = value;
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data32_->value = _tmp0_;
#line 956 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = property;
#line 956 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_property_set_deferred_change (_tmp1_, ___lambda101__gsource_func, block32_data_ref (_data32_), block32_data_unref);
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	block32_data_unref (_data32_);
#line 954 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_data32_ = NULL;
#line 9864 "libvirt-machine.c"
}


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


void boxes_libvirt_machine_set_save_on_quit (BoxesLibvirtMachine* self, gboolean value) {
	BoxesCollectionSource* _tmp0_;
	gboolean _tmp1_;
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = ((BoxesMachine*) self)->source;
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = value;
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_iconfig_set_boolean ((BoxesIConfig*) _tmp0_, "source", "save-on-quit", _tmp1_);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_object_notify ((GObject *) self, "save-on-quit");
#line 9899 "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_;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	parent_class = G_OBJECT_CLASS (boxes_libvirt_machine_parent_class);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine);
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp0_ = g_new0 (BoxesLibvirtMachineMachineStat, BOXES_LIBVIRT_MACHINE_STATS_SIZE);
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats = (_vala_BoxesLibvirtMachineMachineStat_array_free (self->priv->stats, self->priv->stats_length1), NULL);
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats = _tmp0_;
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats_length1 = BOXES_LIBVIRT_MACHINE_STATS_SIZE;
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->_stats_size_ = self->priv->stats_length1;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_tmp1_ = g_cancellable_new ();
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->stats_cancellable);
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats_cancellable = _tmp1_;
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_machine_set_can_save ((BoxesMachine*) self, TRUE);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return obj;
#line 9935 "libvirt-machine.c"
}


static GVirDomainDiskStats* _vala_GVirDomainDiskStats_copy (GVirDomainDiskStats* self) {
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return g_boxed_copy (gvir_domain_disk_stats_get_type (), self);
#line 9942 "libvirt-machine.c"
}


static gpointer __vala_GVirDomainDiskStats_copy0 (gpointer self) {
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self ? _vala_GVirDomainDiskStats_copy (self) : NULL;
#line 9949 "libvirt-machine.c"
}


static GVirDomainInterfaceStats* _vala_GVirDomainInterfaceStats_copy (GVirDomainInterfaceStats* self) {
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return g_boxed_copy (gvir_domain_interface_stats_get_type (), self);
#line 9956 "libvirt-machine.c"
}


static gpointer __vala_GVirDomainInterfaceStats_copy0 (gpointer self) {
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return self ? _vala_GVirDomainInterfaceStats_copy (self) : NULL;
#line 9963 "libvirt-machine.c"
}


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


static void boxes_libvirt_machine_machine_stat_destroy (BoxesLibvirtMachineMachineStat* self) {
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainDiskStats_free0 ((*self).disk);
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	__vala_GVirDomainInterfaceStats_free0 ((*self).net);
#line 10042 "libvirt-machine.c"
}


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


static void boxes_libvirt_machine_machine_stat_free (BoxesLibvirtMachineMachineStat* self) {
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_machine_stat_destroy (self);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_free (self);
#line 10063 "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 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	boxes_libvirt_machine_parent_class = g_type_class_peek_parent (klass);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_type_class_add_private (klass, sizeof (BoxesLibvirtMachinePrivate));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->disconnect_display = boxes_libvirt_machine_real_disconnect_display;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->connect_display = boxes_libvirt_machine_real_connect_display;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->connect_display_finish = boxes_libvirt_machine_real_connect_display_finish;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_properties = boxes_libvirt_machine_real_get_properties;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->take_screenshot = boxes_libvirt_machine_real_take_screenshot;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->take_screenshot_finish = boxes_libvirt_machine_real_take_screenshot_finish;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->delete = boxes_libvirt_machine_real_delete;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->save_real = boxes_libvirt_machine_real_save_real;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->save_real_finish = boxes_libvirt_machine_real_save_real_finish;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_libvirt_machine_get_property;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_libvirt_machine_set_property;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (klass)->constructor = boxes_libvirt_machine_constructor;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_libvirt_machine_finalize;
#line 5 "/extra-data/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 "/extra-data/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 10113 "libvirt-machine.c"
}


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


static void boxes_libvirt_machine_finalize (GObject* obj) {
	BoxesLibvirtMachine * self;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine);
#line 6 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->domain);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->domain_config);
#line 8 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->connection);
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->storage_volume);
#line 10 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_boxes_vm_creator_unref0 (self->vm_creator);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_g_object_unref0 (self->priv->stats_cancellable);
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->priv->stats = (_vala_BoxesLibvirtMachineMachineStat_array_free (self->priv->stats, self->priv->stats_length1), NULL);
#line 227 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->cpu_stats = (g_free (self->cpu_stats), NULL);
#line 228 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->io_stats = (g_free (self->io_stats), NULL);
#line 229 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	self->net_stats = (g_free (self->net_stats), NULL);
#line 775 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	G_OBJECT_CLASS (boxes_libvirt_machine_parent_class)->finalize (obj);
#line 10150 "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 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (property_id) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_SAVE_ON_QUIT:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		g_value_set_boolean (value, boxes_libvirt_machine_get_save_on_quit (self));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 10177 "libvirt-machine.c"
		default:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 10183 "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 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	switch (property_id) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		case BOXES_LIBVIRT_MACHINE_SAVE_ON_QUIT:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		boxes_libvirt_machine_set_save_on_quit (self, g_value_get_boolean (value));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 10199 "libvirt-machine.c"
		default:
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		break;
#line 10205 "libvirt-machine.c"
	}
}



