/* main.c generated by valac 0.56.18-dirty, the Vala compiler
 * generated from main.vala, do not modify */

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

#include <glib.h>
#include <glib/gi18n-lib.h>
#include <stdio.h>
#include "config.h"
#include <stdlib.h>
#include <gio/gio.h>
#include <glib-object.h>
#include <string.h>
#include "common.h"
#include <locale.h>
#include <gtk/gtk.h>
#include <libvirt-gobject/libvirt-gobject.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
typedef struct _Block40Data Block40Data;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _RunChecksData RunChecksData;

#define BOXES_TYPE_WELCOME_TUTORIAL (boxes_welcome_tutorial_get_type ())
#define BOXES_WELCOME_TUTORIAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WELCOME_TUTORIAL, BoxesWelcomeTutorial))
#define BOXES_WELCOME_TUTORIAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WELCOME_TUTORIAL, BoxesWelcomeTutorialClass))
#define BOXES_IS_WELCOME_TUTORIAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WELCOME_TUTORIAL))
#define BOXES_IS_WELCOME_TUTORIAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WELCOME_TUTORIAL))
#define BOXES_WELCOME_TUTORIAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WELCOME_TUTORIAL, BoxesWelcomeTutorialClass))

typedef struct _BoxesWelcomeTutorial BoxesWelcomeTutorial;
typedef struct _BoxesWelcomeTutorialClass BoxesWelcomeTutorialClass;

#define BOXES_TYPE_WELCOME_TUTORIAL_PAGE (boxes_welcome_tutorial_page_get_type ())
#define BOXES_WELCOME_TUTORIAL_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_WELCOME_TUTORIAL_PAGE, BoxesWelcomeTutorialPage))
#define BOXES_WELCOME_TUTORIAL_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_WELCOME_TUTORIAL_PAGE, BoxesWelcomeTutorialPageClass))
#define BOXES_IS_WELCOME_TUTORIAL_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_WELCOME_TUTORIAL_PAGE))
#define BOXES_IS_WELCOME_TUTORIAL_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_WELCOME_TUTORIAL_PAGE))
#define BOXES_WELCOME_TUTORIAL_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_WELCOME_TUTORIAL_PAGE, BoxesWelcomeTutorialPageClass))

typedef struct _BoxesWelcomeTutorialPage BoxesWelcomeTutorialPage;
typedef struct _BoxesWelcomeTutorialPageClass BoxesWelcomeTutorialPageClass;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#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;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _Block40Data {
	int _ref_count_;
	GMainLoop* loop;
};

struct _RunChecksData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	gchar* selinux_context_diagnosis;
	gchar* _tmp0_;
	gchar* storage_pool_diagnosis;
	gchar* _tmp1_;
	gboolean cpu;
	gboolean kvm;
	gboolean libvirt_kvm;
	gboolean selinux_context_default;
	gchar* _tmp2_;
	gboolean _tmp3_;
	gboolean storage_pool;
	gchar* _tmp4_;
	gboolean _tmp5_;
	FILE* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	FILE* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_;
	FILE* _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	FILE* _tmp21_;
	gchar* _tmp22_;
	gchar* _tmp23_;
	gchar* _tmp24_;
	gchar* _tmp25_;
	const gchar* _tmp26_;
	gint _tmp27_;
	gint _tmp28_;
	FILE* _tmp29_;
	const gchar* _tmp30_;
	gchar* _tmp31_;
	gchar* _tmp32_;
	gchar* _tmp33_;
	gchar* _tmp34_;
	FILE* _tmp35_;
	gchar* _tmp36_;
	gchar* _tmp37_;
	gchar* _tmp38_;
	gchar* _tmp39_;
	const gchar* _tmp40_;
	gint _tmp41_;
	gint _tmp42_;
	FILE* _tmp43_;
	const gchar* _tmp44_;
	gchar* _tmp45_;
	gchar* _tmp46_;
	gchar* _tmp47_;
	gchar* _tmp48_;
	FILE* _tmp49_;
	FILE* _tmp50_;
	FILE* _tmp51_;
	const gchar* _tmp52_;
};

VALA_EXTERN gboolean version;
gboolean version = FALSE;
VALA_EXTERN gboolean checks;
gboolean checks = FALSE;

VALA_EXTERN void parse_local_args (gchar*** args,
                       gint* args_length1);
static Block40Data* block40_data_ref (Block40Data* _data40_);
static void block40_data_unref (void * _userdata_);
VALA_EXTERN void run_checks (GAsyncReadyCallback _callback_,
                 gpointer _user_data_);
VALA_EXTERN void run_checks_finish (GAsyncResult* _res_);
static void ___lambda151_ (Block40Data* _data40_,
                    GObject* obj,
                    GAsyncResult* res);
static void ____lambda151__gasync_ready_callback (GObject* source_object,
                                           GAsyncResult* res,
                                           gpointer self);
static void run_checks_data_free (gpointer _data);
static gboolean run_checks_co (RunChecksData* _data_);
VALA_EXTERN void boxes_check_cpu_vt_capability (GAsyncReadyCallback _callback_,
                                    gpointer _user_data_);
VALA_EXTERN gboolean boxes_check_cpu_vt_capability_finish (GAsyncResult* _res_);
static void run_checks_ready (GObject* source_object,
                       GAsyncResult* _res_,
                       gpointer _user_data_);
VALA_EXTERN void boxes_check_module_kvm_loaded (GAsyncReadyCallback _callback_,
                                    gpointer _user_data_);
VALA_EXTERN gboolean boxes_check_module_kvm_loaded_finish (GAsyncResult* _res_);
VALA_EXTERN void boxes_check_libvirt_kvm (GAsyncReadyCallback _callback_,
                              gpointer _user_data_);
VALA_EXTERN gboolean boxes_check_libvirt_kvm_finish (GAsyncResult* _res_);
VALA_EXTERN void boxes_check_selinux_context_default (GAsyncReadyCallback _callback_,
                                          gpointer _user_data_);
VALA_EXTERN gboolean boxes_check_selinux_context_default_finish (GAsyncResult* _res_,
                                                     gchar** diagnosis);
VALA_EXTERN void boxes_check_storage_pool (GAsyncReadyCallback _callback_,
                               gpointer _user_data_);
VALA_EXTERN gboolean boxes_check_storage_pool_finish (GAsyncResult* _res_,
                                          gchar** diagnosis);
static gint _vala_main (gchar** args,
                 gint args_length1);
VALA_EXTERN GType boxes_welcome_tutorial_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BoxesWelcomeTutorial, g_object_unref)
VALA_EXTERN GType boxes_welcome_tutorial_page_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BoxesWelcomeTutorialPage, g_object_unref)
VALA_EXTERN GType boxes_app_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BoxesApp, g_object_unref)
VALA_EXTERN BoxesApp* boxes_app_new (void);
VALA_EXTERN BoxesApp* boxes_app_construct (GType object_type);

const GOptionEntry local_options[3] = {{"version", (gchar) 0, (gint) 0, G_OPTION_ARG_NONE, &version, N_ ("Display version number"), NULL}, {"checks", (gchar) 0, (gint) 0, G_OPTION_ARG_NONE, &checks, N_ ("Check virtualization capabilities"), NULL}, {NULL}};

static Block40Data*
block40_data_ref (Block40Data* _data40_)
{
	g_atomic_int_inc (&_data40_->_ref_count_);
	return _data40_;
}

static void
block40_data_unref (void * _userdata_)
{
	Block40Data* _data40_;
	_data40_ = (Block40Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data40_->_ref_count_)) {
		_g_main_loop_unref0 (_data40_->loop);
		g_slice_free (Block40Data, _data40_);
	}
}

static void
___lambda151_ (Block40Data* _data40_,
               GObject* obj,
               GAsyncResult* res)
{
	GMainLoop* _tmp0_;
	g_return_if_fail (res != NULL);
	run_checks_finish (res);
	_tmp0_ = _data40_->loop;
	g_main_loop_quit (_tmp0_);
}

static void
____lambda151__gasync_ready_callback (GObject* source_object,
                                      GAsyncResult* res,
                                      gpointer self)
{
	___lambda151_ (self, source_object, res);
	block40_data_unref (self);
}

void
parse_local_args (gchar*** args,
                  gint* args_length1)
{
	GOptionContext* opt_context = NULL;
	GOptionContext* _tmp0_;
	GError* _inner_error0_ = NULL;
	_tmp0_ = g_option_context_new (NULL);
	opt_context = _tmp0_;
	g_option_context_set_ignore_unknown_options (opt_context, TRUE);
	g_option_context_add_main_entries (opt_context, local_options, NULL);
	g_option_context_set_help_enabled (opt_context, FALSE);
	{
		g_option_context_parse (opt_context, (gint*) (args_length1), args, &_inner_error0_);
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			if (_inner_error0_->domain == G_OPTION_ERROR) {
				goto __catch0_g_option_error;
			}
			_g_option_context_free0 (opt_context);
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return;
		}
	}
	goto __finally0;
	__catch0_g_option_error:
	{
		g_clear_error (&_inner_error0_);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		_g_option_context_free0 (opt_context);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
		g_clear_error (&_inner_error0_);
		return;
	}
	if (version) {
		FILE* _tmp1_;
		_tmp1_ = stdout;
		fprintf (_tmp1_, "%s\n", PACKAGE_VERSION);
		exit (0);
	}
	if (checks) {
		Block40Data* _data40_;
		GMainLoop* _tmp2_;
		GMainLoop* _tmp3_;
		_data40_ = g_slice_new0 (Block40Data);
		_data40_->_ref_count_ = 1;
		_tmp2_ = g_main_loop_new (NULL, FALSE);
		_data40_->loop = _tmp2_;
		run_checks (____lambda151__gasync_ready_callback, block40_data_ref (_data40_));
		_tmp3_ = _data40_->loop;
		g_main_loop_run (_tmp3_);
		exit (0);
		block40_data_unref (_data40_);
		_data40_ = NULL;
	}
	_g_option_context_free0 (opt_context);
}

static void
run_checks_data_free (gpointer _data)
{
	RunChecksData* _data_;
	_data_ = _data;
	g_slice_free (RunChecksData, _data_);
}

void
run_checks (GAsyncReadyCallback _callback_,
            gpointer _user_data_)
{
	RunChecksData* _data_;
	_data_ = g_slice_new0 (RunChecksData);
	_data_->_async_result = g_task_new (NULL, NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, run_checks_data_free);
	run_checks_co (_data_);
}

void
run_checks_finish (GAsyncResult* _res_)
{
	RunChecksData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
}

static void
run_checks_ready (GObject* source_object,
                  GAsyncResult* _res_,
                  gpointer _user_data_)
{
	RunChecksData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	run_checks_co (_data_);
}

static gboolean
run_checks_co (RunChecksData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		case 3:
		goto _state_3;
		case 4:
		goto _state_4;
		case 5:
		goto _state_5;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = g_strdup ("");
	_data_->selinux_context_diagnosis = _data_->_tmp0_;
	_data_->_tmp1_ = g_strdup ("");
	_data_->storage_pool_diagnosis = _data_->_tmp1_;
	_data_->_state_ = 1;
	boxes_check_cpu_vt_capability (run_checks_ready, _data_);
	return FALSE;
	_state_1:
	_data_->cpu = boxes_check_cpu_vt_capability_finish (_data_->_res_);
	_data_->_state_ = 2;
	boxes_check_module_kvm_loaded (run_checks_ready, _data_);
	return FALSE;
	_state_2:
	_data_->kvm = boxes_check_module_kvm_loaded_finish (_data_->_res_);
	_data_->_state_ = 3;
	boxes_check_libvirt_kvm (run_checks_ready, _data_);
	return FALSE;
	_state_3:
	_data_->libvirt_kvm = boxes_check_libvirt_kvm_finish (_data_->_res_);
	_data_->_tmp2_ = NULL;
	_data_->_state_ = 4;
	boxes_check_selinux_context_default (run_checks_ready, _data_);
	return FALSE;
	_state_4:
	_data_->_tmp3_ = boxes_check_selinux_context_default_finish (_data_->_res_, &_data_->_tmp2_);
	_g_free0 (_data_->selinux_context_diagnosis);
	_data_->selinux_context_diagnosis = _data_->_tmp2_;
	_data_->selinux_context_default = _data_->_tmp3_;
	_data_->_tmp4_ = NULL;
	_data_->_state_ = 5;
	boxes_check_storage_pool (run_checks_ready, _data_);
	return FALSE;
	_state_5:
	_data_->_tmp5_ = boxes_check_storage_pool_finish (_data_->_res_, &_data_->_tmp4_);
	_g_free0 (_data_->storage_pool_diagnosis);
	_data_->storage_pool_diagnosis = _data_->_tmp4_;
	_data_->storage_pool = _data_->_tmp5_;
	_data_->_tmp6_ = stdout;
	_data_->_tmp7_ = boxes_yes_no (_data_->cpu);
	_data_->_tmp8_ = _data_->_tmp7_;
	_data_->_tmp9_ = g_strdup_printf (_ ("• The CPU is capable of virtualization: %s\n"), _data_->_tmp8_);
	_data_->_tmp10_ = _data_->_tmp9_;
	fprintf (_data_->_tmp6_, "%s", _data_->_tmp10_);
	_g_free0 (_data_->_tmp10_);
	_g_free0 (_data_->_tmp8_);
	_data_->_tmp11_ = stdout;
	_data_->_tmp12_ = boxes_yes_no (_data_->kvm);
	_data_->_tmp13_ = _data_->_tmp12_;
	_data_->_tmp14_ = g_strdup_printf (_ ("• The KVM module is loaded: %s\n"), _data_->_tmp13_);
	_data_->_tmp15_ = _data_->_tmp14_;
	fprintf (_data_->_tmp11_, "%s", _data_->_tmp15_);
	_g_free0 (_data_->_tmp15_);
	_g_free0 (_data_->_tmp13_);
	_data_->_tmp16_ = stdout;
	_data_->_tmp17_ = boxes_yes_no (_data_->libvirt_kvm);
	_data_->_tmp18_ = _data_->_tmp17_;
	_data_->_tmp19_ = g_strdup_printf (_ ("• Libvirt KVM guest available: %s\n"), _data_->_tmp18_);
	_data_->_tmp20_ = _data_->_tmp19_;
	fprintf (_data_->_tmp16_, "%s", _data_->_tmp20_);
	_g_free0 (_data_->_tmp20_);
	_g_free0 (_data_->_tmp18_);
	_data_->_tmp21_ = stdout;
	_data_->_tmp22_ = boxes_yes_no (_data_->storage_pool);
	_data_->_tmp23_ = _data_->_tmp22_;
	_data_->_tmp24_ = g_strdup_printf (_ ("• Boxes storage pool available: %s\n"), _data_->_tmp23_);
	_data_->_tmp25_ = _data_->_tmp24_;
	fprintf (_data_->_tmp21_, "%s", _data_->_tmp25_);
	_g_free0 (_data_->_tmp25_);
	_g_free0 (_data_->_tmp23_);
	_data_->_tmp26_ = _data_->storage_pool_diagnosis;
	_data_->_tmp27_ = strlen (_data_->_tmp26_);
	_data_->_tmp28_ = _data_->_tmp27_;
	if (_data_->_tmp28_ != 0) {
		_data_->_tmp29_ = stdout;
		_data_->_tmp30_ = _data_->storage_pool_diagnosis;
		_data_->_tmp31_ = boxes_indent ("    ", _data_->_tmp30_);
		_data_->_tmp32_ = _data_->_tmp31_;
		_data_->_tmp33_ = g_strconcat (_data_->_tmp32_, "\n", NULL);
		_data_->_tmp34_ = _data_->_tmp33_;
		fprintf (_data_->_tmp29_, "%s", _data_->_tmp34_);
		_g_free0 (_data_->_tmp34_);
		_g_free0 (_data_->_tmp32_);
	}
	_data_->_tmp35_ = stdout;
	_data_->_tmp36_ = boxes_yes_no (_data_->selinux_context_default);
	_data_->_tmp37_ = _data_->_tmp36_;
	_data_->_tmp38_ = g_strdup_printf (_ ("• The SELinux context is default: %s\n"), _data_->_tmp37_);
	_data_->_tmp39_ = _data_->_tmp38_;
	fprintf (_data_->_tmp35_, "%s", _data_->_tmp39_);
	_g_free0 (_data_->_tmp39_);
	_g_free0 (_data_->_tmp37_);
	_data_->_tmp40_ = _data_->selinux_context_diagnosis;
	_data_->_tmp41_ = strlen (_data_->_tmp40_);
	_data_->_tmp42_ = _data_->_tmp41_;
	if (_data_->_tmp42_ != 0) {
		_data_->_tmp43_ = stdout;
		_data_->_tmp44_ = _data_->selinux_context_diagnosis;
		_data_->_tmp45_ = boxes_indent ("    ", _data_->_tmp44_);
		_data_->_tmp46_ = _data_->_tmp45_;
		_data_->_tmp47_ = g_strconcat (_data_->_tmp46_, "\n", NULL);
		_data_->_tmp48_ = _data_->_tmp47_;
		fprintf (_data_->_tmp43_, "%s", _data_->_tmp48_);
		_g_free0 (_data_->_tmp48_);
		_g_free0 (_data_->_tmp46_);
	}
	_data_->_tmp49_ = stdout;
	fprintf (_data_->_tmp49_, "\n");
	_data_->_tmp50_ = stdout;
	fprintf (_data_->_tmp50_, _ ("Report bugs to <%s>.\n"), PACKAGE_BUGREPORT);
	_data_->_tmp51_ = stdout;
	_data_->_tmp52_ = g_get_application_name ();
	fprintf (_data_->_tmp51_, _ ("%s home page: <%s>.\n"), _data_->_tmp52_, PACKAGE_URL);
	_g_free0 (_data_->storage_pool_diagnosis);
	_g_free0 (_data_->selinux_context_diagnosis);
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

static gint
_vala_main (gchar** args,
            gint args_length1)
{
	BoxesApp* app = NULL;
	BoxesApp* _tmp2_;
	gint exit_status = 0;
	GError* _inner_error0_ = NULL;
	gint result;
	setlocale (LC_ALL, "");
	bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
	textdomain (GETTEXT_PACKAGE);
	g_set_application_name (_ ("Boxes"));
	g_set_prgname (APPLICATION_ID);
	g_type_ensure (BOXES_TYPE_WELCOME_TUTORIAL);
	g_type_ensure (BOXES_TYPE_WELCOME_TUTORIAL_PAGE);
	parse_local_args (&args, (gint*) (&args_length1));
	{
		gvir_init_object_check ((gint*) (&args_length1), &args, &_inner_error0_);
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* err = NULL;
		const gchar* _tmp0_;
		err = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp0_ = err->message;
		g_error ("main.vala:84: %s", _tmp0_);
		_g_error_free0 (err);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		gint _tmp1_ = -1;
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
		g_clear_error (&_inner_error0_);
		return _tmp1_;
	}
	_tmp2_ = boxes_app_new ();
	app = _tmp2_;
	exit_status = g_application_run ((GApplication*) app, (gint) args_length1, args);
	result = exit_status;
	_g_object_unref0 (app);
	return result;
}

int
main (int argc,
      char ** argv)
{
	return _vala_main (argv, argc);
}

