/* github-action.c generated by valac 0.56.19, the Vala compiler
 * generated from github-action.vala, do not modify */

#include <glib-object.h>
#include <gio/gio.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gstdio.h>
#include <float.h>
#include <math.h>
#include <gee.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 PROTON_PLUS_MODELS_TYPE_BASE_RELEASE (proton_plus_models_base_release_get_type ())
#define PROTON_PLUS_MODELS_BASE_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, ProtonPlusModelsBaseRelease))
#define PROTON_PLUS_MODELS_BASE_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, ProtonPlusModelsBaseReleaseClass))
#define PROTON_PLUS_MODELS_IS_BASE_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE))
#define PROTON_PLUS_MODELS_IS_BASE_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE))
#define PROTON_PLUS_MODELS_BASE_RELEASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, ProtonPlusModelsBaseReleaseClass))

typedef struct _ProtonPlusModelsBaseRelease ProtonPlusModelsBaseRelease;
typedef struct _ProtonPlusModelsBaseReleaseClass ProtonPlusModelsBaseReleaseClass;
typedef struct _ProtonPlusModelsBaseReleasePrivate ProtonPlusModelsBaseReleasePrivate;

#define PROTON_PLUS_MODELS_TYPE_PARAMETERS (proton_plus_models_parameters_get_type ())
#define PROTON_PLUS_MODELS_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_PARAMETERS, ProtonPlusModelsParameters))
#define PROTON_PLUS_MODELS_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_PARAMETERS, ProtonPlusModelsParametersClass))
#define PROTON_PLUS_MODELS_IS_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_PARAMETERS))
#define PROTON_PLUS_MODELS_IS_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_PARAMETERS))
#define PROTON_PLUS_MODELS_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_PARAMETERS, ProtonPlusModelsParametersClass))

typedef struct _ProtonPlusModelsParameters ProtonPlusModelsParameters;
typedef struct _ProtonPlusModelsParametersClass ProtonPlusModelsParametersClass;

#define PROTON_PLUS_MODELS_TYPE_RELEASE (proton_plus_models_release_get_type ())
#define PROTON_PLUS_MODELS_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_RELEASE, ProtonPlusModelsRelease))
#define PROTON_PLUS_MODELS_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_RELEASE, ProtonPlusModelsReleaseClass))
#define PROTON_PLUS_MODELS_IS_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_RELEASE))
#define PROTON_PLUS_MODELS_IS_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_RELEASE))
#define PROTON_PLUS_MODELS_RELEASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_RELEASE, ProtonPlusModelsReleaseClass))

typedef struct _ProtonPlusModelsRelease ProtonPlusModelsRelease;
typedef struct _ProtonPlusModelsReleaseClass ProtonPlusModelsReleaseClass;
typedef struct _ProtonPlusModelsReleasePrivate ProtonPlusModelsReleasePrivate;

#define PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC (proton_plus_models_releases_basic_get_type ())
#define PROTON_PLUS_MODELS_RELEASES_BASIC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, ProtonPlusModelsReleasesBasic))
#define PROTON_PLUS_MODELS_RELEASES_BASIC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, ProtonPlusModelsReleasesBasicClass))
#define PROTON_PLUS_MODELS_RELEASES_IS_BASIC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC))
#define PROTON_PLUS_MODELS_RELEASES_IS_BASIC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC))
#define PROTON_PLUS_MODELS_RELEASES_BASIC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, ProtonPlusModelsReleasesBasicClass))

typedef struct _ProtonPlusModelsReleasesBasic ProtonPlusModelsReleasesBasic;
typedef struct _ProtonPlusModelsReleasesBasicClass ProtonPlusModelsReleasesBasicClass;
typedef struct _ProtonPlusModelsReleasesBasicPrivate ProtonPlusModelsReleasesBasicPrivate;

#define PROTON_PLUS_MODELS_RELEASES_TYPE_GIT_HUB_ACTION (proton_plus_models_releases_git_hub_action_get_type ())
#define PROTON_PLUS_MODELS_RELEASES_GIT_HUB_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_GIT_HUB_ACTION, ProtonPlusModelsReleasesGitHubAction))
#define PROTON_PLUS_MODELS_RELEASES_GIT_HUB_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_GIT_HUB_ACTION, ProtonPlusModelsReleasesGitHubActionClass))
#define PROTON_PLUS_MODELS_RELEASES_IS_GIT_HUB_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_GIT_HUB_ACTION))
#define PROTON_PLUS_MODELS_RELEASES_IS_GIT_HUB_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_GIT_HUB_ACTION))
#define PROTON_PLUS_MODELS_RELEASES_GIT_HUB_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_GIT_HUB_ACTION, ProtonPlusModelsReleasesGitHubActionClass))

typedef struct _ProtonPlusModelsReleasesGitHubAction ProtonPlusModelsReleasesGitHubAction;
typedef struct _ProtonPlusModelsReleasesGitHubActionClass ProtonPlusModelsReleasesGitHubActionClass;
typedef struct _ProtonPlusModelsReleasesGitHubActionPrivate ProtonPlusModelsReleasesGitHubActionPrivate;
enum  {
	PROTON_PLUS_MODELS_RELEASES_GIT_HUB_ACTION_0_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_GIT_HUB_ACTION_ARTIFACTS_URL_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_GIT_HUB_ACTION_NUM_PROPERTIES
};
static GParamSpec* proton_plus_models_releases_git_hub_action_properties[PROTON_PLUS_MODELS_RELEASES_GIT_HUB_ACTION_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))

#define PROTON_PLUS_MODELS_TYPE_RUNNER (proton_plus_models_runner_get_type ())
#define PROTON_PLUS_MODELS_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_RUNNER, ProtonPlusModelsRunner))
#define PROTON_PLUS_MODELS_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_RUNNER, ProtonPlusModelsRunnerClass))
#define PROTON_PLUS_MODELS_IS_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_RUNNER))
#define PROTON_PLUS_MODELS_IS_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_RUNNER))
#define PROTON_PLUS_MODELS_RUNNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_RUNNER, ProtonPlusModelsRunnerClass))

typedef struct _ProtonPlusModelsRunner ProtonPlusModelsRunner;
typedef struct _ProtonPlusModelsRunnerClass ProtonPlusModelsRunnerClass;

#define PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC (proton_plus_models_runners_basic_get_type ())
#define PROTON_PLUS_MODELS_RUNNERS_BASIC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC, ProtonPlusModelsRunnersBasic))
#define PROTON_PLUS_MODELS_RUNNERS_BASIC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC, ProtonPlusModelsRunnersBasicClass))
#define PROTON_PLUS_MODELS_RUNNERS_IS_BASIC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC))
#define PROTON_PLUS_MODELS_RUNNERS_IS_BASIC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC))
#define PROTON_PLUS_MODELS_RUNNERS_BASIC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC, ProtonPlusModelsRunnersBasicClass))

typedef struct _ProtonPlusModelsRunnersBasic ProtonPlusModelsRunnersBasic;
typedef struct _ProtonPlusModelsRunnersBasicClass ProtonPlusModelsRunnersBasicClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef enum  {
	PROTON_PLUS_MODELS_BASE_RELEASE_STEP_NOTHING,
	PROTON_PLUS_MODELS_BASE_RELEASE_STEP_DOWNLOADING,
	PROTON_PLUS_MODELS_BASE_RELEASE_STEP_EXTRACTING,
	PROTON_PLUS_MODELS_BASE_RELEASE_STEP_MOVING,
	PROTON_PLUS_MODELS_BASE_RELEASE_STEP_REMOVING
} ProtonPlusModelsBaseReleaseStep;

#define PROTON_PLUS_MODELS_BASE_RELEASE_TYPE_STEP (proton_plus_models_base_release_step_get_type ())
typedef gboolean (*ProtonPlusUtilsWebcancel_callback) (gpointer user_data);
typedef void (*ProtonPlusUtilsWebprogress_callback) (gboolean is_percent, gint64 progress_percentage, gdouble speed_kbps, gdouble* remaining_seconds, gpointer user_data);
typedef gboolean (*ProtonPlusUtilsFilesystemcancel_callback) (gpointer user_data);
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))

#define PROTON_PLUS_MODELS_TYPE_GROUP (proton_plus_models_group_get_type ())
#define PROTON_PLUS_MODELS_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_GROUP, ProtonPlusModelsGroup))
#define PROTON_PLUS_MODELS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_GROUP, ProtonPlusModelsGroupClass))
#define PROTON_PLUS_MODELS_IS_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_GROUP))
#define PROTON_PLUS_MODELS_IS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_GROUP))
#define PROTON_PLUS_MODELS_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_GROUP, ProtonPlusModelsGroupClass))

typedef struct _ProtonPlusModelsGroup ProtonPlusModelsGroup;
typedef struct _ProtonPlusModelsGroupClass ProtonPlusModelsGroupClass;

#define PROTON_PLUS_MODELS_TYPE_LAUNCHER (proton_plus_models_launcher_get_type ())
#define PROTON_PLUS_MODELS_LAUNCHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_LAUNCHER, ProtonPlusModelsLauncher))
#define PROTON_PLUS_MODELS_LAUNCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_LAUNCHER, ProtonPlusModelsLauncherClass))
#define PROTON_PLUS_MODELS_IS_LAUNCHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_LAUNCHER))
#define PROTON_PLUS_MODELS_IS_LAUNCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_LAUNCHER))
#define PROTON_PLUS_MODELS_LAUNCHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_LAUNCHER, ProtonPlusModelsLauncherClass))

typedef struct _ProtonPlusModelsLauncher ProtonPlusModelsLauncher;
typedef struct _ProtonPlusModelsLauncherClass ProtonPlusModelsLauncherClass;
typedef struct _ProtonPlusModelsLauncherPrivate ProtonPlusModelsLauncherPrivate;

#define PROTON_PLUS_MODELS_TYPE_GAME (proton_plus_models_game_get_type ())
#define PROTON_PLUS_MODELS_GAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_GAME, ProtonPlusModelsGame))
#define PROTON_PLUS_MODELS_GAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_GAME, ProtonPlusModelsGameClass))
#define PROTON_PLUS_MODELS_IS_GAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_GAME))
#define PROTON_PLUS_MODELS_IS_GAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_GAME))
#define PROTON_PLUS_MODELS_GAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_GAME, ProtonPlusModelsGameClass))

typedef struct _ProtonPlusModelsGame ProtonPlusModelsGame;
typedef struct _ProtonPlusModelsGameClass ProtonPlusModelsGameClass;

#define PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER (proton_plus_models_simple_runner_get_type ())
#define PROTON_PLUS_MODELS_SIMPLE_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, ProtonPlusModelsSimpleRunner))
#define PROTON_PLUS_MODELS_SIMPLE_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, ProtonPlusModelsSimpleRunnerClass))
#define PROTON_PLUS_MODELS_IS_SIMPLE_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER))
#define PROTON_PLUS_MODELS_IS_SIMPLE_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER))
#define PROTON_PLUS_MODELS_SIMPLE_RUNNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, ProtonPlusModelsSimpleRunnerClass))

typedef struct _ProtonPlusModelsSimpleRunner ProtonPlusModelsSimpleRunner;
typedef struct _ProtonPlusModelsSimpleRunnerClass ProtonPlusModelsSimpleRunnerClass;
typedef enum  {
	PROTON_PLUS_MODELS_LAUNCHER_INSTALLATION_TYPES_SYSTEM,
	PROTON_PLUS_MODELS_LAUNCHER_INSTALLATION_TYPES_FLATPAK,
	PROTON_PLUS_MODELS_LAUNCHER_INSTALLATION_TYPES_SNAP
} ProtonPlusModelsLauncherInstallationTypes;

#define PROTON_PLUS_MODELS_LAUNCHER_TYPE_INSTALLATION_TYPES (proton_plus_models_launcher_installation_types_get_type ())
typedef struct _ProtonPlusModelsReleasesGitHubActionStartInstallData ProtonPlusModelsReleasesGitHubActionStartInstallData;

struct _ProtonPlusModelsBaseRelease {
	GObject parent_instance;
	ProtonPlusModelsBaseReleasePrivate * priv;
};

struct _ProtonPlusModelsBaseReleaseClass {
	GObjectClass parent_class;
	void (*install) (ProtonPlusModelsBaseRelease* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*install_finish) (ProtonPlusModelsBaseRelease* self, GAsyncResult* _res_);
	void (*_start_install) (ProtonPlusModelsBaseRelease* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*_start_install_finish) (ProtonPlusModelsBaseRelease* self, GAsyncResult* _res_);
	void (*remove) (ProtonPlusModelsBaseRelease* self, ProtonPlusModelsParameters* parameters, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*remove_finish) (ProtonPlusModelsBaseRelease* self, GAsyncResult* _res_);
	void (*refresh_state) (ProtonPlusModelsBaseRelease* self);
};

struct _ProtonPlusModelsRelease {
	ProtonPlusModelsBaseRelease parent_instance;
	ProtonPlusModelsReleasePrivate * priv;
};

struct _ProtonPlusModelsReleaseClass {
	ProtonPlusModelsBaseReleaseClass parent_class;
	void (*_start_remove) (ProtonPlusModelsRelease* self, gconstpointer parameters, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*_start_remove_finish) (ProtonPlusModelsRelease* self, GAsyncResult* _res_);
};

struct _ProtonPlusModelsReleasesBasic {
	ProtonPlusModelsRelease parent_instance;
	ProtonPlusModelsReleasesBasicPrivate * priv;
};

struct _ProtonPlusModelsReleasesBasicClass {
	ProtonPlusModelsReleaseClass parent_class;
};

struct _ProtonPlusModelsReleasesGitHubAction {
	ProtonPlusModelsReleasesBasic parent_instance;
	ProtonPlusModelsReleasesGitHubActionPrivate * priv;
};

struct _ProtonPlusModelsReleasesGitHubActionClass {
	ProtonPlusModelsReleasesBasicClass parent_class;
};

struct _ProtonPlusModelsReleasesGitHubActionPrivate {
	gchar* _artifacts_url;
};

struct _ProtonPlusModelsLauncher {
	GObject parent_instance;
	ProtonPlusModelsLauncherPrivate * priv;
	gchar* title;
	gchar* icon_path;
	gchar* directory;
	gboolean installed;
	gboolean has_library_support;
	GList* games;
	GeeArrayList* compatibility_tools;
	ProtonPlusModelsGroup** groups;
	gint groups_length1;
	ProtonPlusModelsLauncherInstallationTypes installation_type;
};

struct _ProtonPlusModelsLauncherClass {
	GObjectClass parent_class;
	void (*load_game_library) (ProtonPlusModelsLauncher* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*load_game_library_finish) (ProtonPlusModelsLauncher* self, GAsyncResult* _res_);
	gint (*get_compatibility_tool_usage_count) (ProtonPlusModelsLauncher* self, const gchar* compatibility_tool_name);
};

struct _ProtonPlusModelsReleasesGitHubActionStartInstallData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesGitHubAction* self;
	gboolean result;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* download_path;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* download_error;
	gboolean download_valid;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	gchar* _tmp10_;
	gboolean _tmp11_;
	const gchar* _tmp12_;
	gchar* extract_path;
	const gchar* _tmp13_;
	gchar* _tmp14_;
	gchar* source_path;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	const gchar* _tmp19_;
	const gchar* _tmp20_;
	const gchar* _tmp21_;
	const gchar* _tmp22_;
	gint _tmp23_;
	gint _tmp24_;
	gchar* _tmp25_;
	gchar* _tmp26_;
	const gchar* _tmp27_;
	gchar* _tmp28_;
	gchar* _tmp29_;
	gchar* _tmp30_;
	const gchar* _tmp31_;
	ProtonPlusModelsRunnersBasic* runner;
	ProtonPlusModelsRunner* _tmp32_;
	ProtonPlusModelsRunner* _tmp33_;
	ProtonPlusModelsRunnersBasic* _tmp34_;
	ProtonPlusModelsRunnersBasic* _tmp35_;
	ProtonPlusModelsGroup* _tmp36_;
	ProtonPlusModelsGroup* _tmp37_;
	ProtonPlusModelsLauncher* _tmp38_;
	ProtonPlusModelsLauncher* _tmp39_;
	const gchar* _tmp40_;
	ProtonPlusModelsRunnersBasic* _tmp41_;
	ProtonPlusModelsGroup* _tmp42_;
	ProtonPlusModelsGroup* _tmp43_;
	const gchar* _tmp44_;
	const gchar* _tmp45_;
	ProtonPlusModelsRunnersBasic* _tmp46_;
	const gchar* _tmp47_;
	const gchar* _tmp48_;
	gchar* _tmp49_;
	gchar* _tmp50_;
	gchar* _tmp51_;
	gchar* _tmp52_;
	gboolean renaming_valid;
	const gchar* _tmp53_;
	const gchar* _tmp54_;
	const gchar* _tmp55_;
};

static gint ProtonPlusModelsReleasesGitHubAction_private_offset;
static gpointer proton_plus_models_releases_git_hub_action_parent_class = NULL;
VALA_EXTERN gchar* proton_plus_globals_CACHE_PATH;

VALA_EXTERN GType proton_plus_models_base_release_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsBaseRelease, g_object_unref)
VALA_EXTERN GType proton_plus_models_parameters_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsParameters, g_object_unref)
VALA_EXTERN GType proton_plus_models_release_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsRelease, g_object_unref)
VALA_EXTERN GType proton_plus_models_releases_basic_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsReleasesBasic, g_object_unref)
VALA_EXTERN GType proton_plus_models_releases_git_hub_action_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsReleasesGitHubAction, g_object_unref)
VALA_EXTERN void _proton_plus_models_base_release_start_install (ProtonPlusModelsBaseRelease* self,
                                                     GAsyncReadyCallback _callback_,
                                                     gpointer _user_data_);
VALA_EXTERN gboolean _proton_plus_models_base_release_start_install_finish (ProtonPlusModelsBaseRelease* self,
                                                                GAsyncResult* _res_);
VALA_EXTERN GType proton_plus_models_runner_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsRunner, g_object_unref)
VALA_EXTERN GType proton_plus_models_runners_basic_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsRunnersBasic, g_object_unref)
VALA_EXTERN ProtonPlusModelsReleasesGitHubAction* proton_plus_models_releases_git_hub_action_new (ProtonPlusModelsRunnersBasic* runner,
                                                                                      const gchar* title,
                                                                                      const gchar* release_date,
                                                                                      const gchar* download_url,
                                                                                      const gchar* page_url,
                                                                                      const gchar* artifacts_url);
VALA_EXTERN ProtonPlusModelsReleasesGitHubAction* proton_plus_models_releases_git_hub_action_construct (GType object_type,
                                                                                            ProtonPlusModelsRunnersBasic* runner,
                                                                                            const gchar* title,
                                                                                            const gchar* release_date,
                                                                                            const gchar* download_url,
                                                                                            const gchar* page_url,
                                                                                            const gchar* artifacts_url);
VALA_EXTERN ProtonPlusModelsReleasesBasic* proton_plus_models_releases_basic_new (void);
VALA_EXTERN ProtonPlusModelsReleasesBasic* proton_plus_models_releases_basic_construct (GType object_type);
VALA_EXTERN void proton_plus_models_releases_git_hub_action_set_artifacts_url (ProtonPlusModelsReleasesGitHubAction* self,
                                                                   const gchar* value);
VALA_EXTERN void proton_plus_models_releases_basic_shared (ProtonPlusModelsReleasesBasic* self,
                                               ProtonPlusModelsRunnersBasic* runner,
                                               const gchar* title,
                                               const gchar* release_date,
                                               const gchar* download_url,
                                               const gchar* page_url);
static void proton_plus_models_releases_git_hub_action_real__start_install_data_free (gpointer _data);
static void proton_plus_models_releases_git_hub_action_real__start_install (ProtonPlusModelsBaseRelease* base,
                                                                     GAsyncReadyCallback _callback_,
                                                                     gpointer _user_data_);
static gboolean proton_plus_models_releases_git_hub_action_real__start_install_co (ProtonPlusModelsReleasesGitHubActionStartInstallData* _data_);
VALA_EXTERN GType proton_plus_models_base_release_step_get_type (void) G_GNUC_CONST ;
VALA_EXTERN void proton_plus_models_base_release_set_step (ProtonPlusModelsBaseRelease* self,
                                               ProtonPlusModelsBaseReleaseStep value);
VALA_EXTERN const gchar* proton_plus_models_base_release_get_download_url (ProtonPlusModelsBaseRelease* self);
VALA_EXTERN const gchar* proton_plus_models_base_release_get_title (ProtonPlusModelsBaseRelease* self);
VALA_EXTERN void proton_plus_utils_web_Download (const gchar* url,
                                     const gchar* path,
                                     ProtonPlusUtilsWebcancel_callback cancel_callback,
                                     gpointer cancel_callback_target,
                                     ProtonPlusUtilsWebprogress_callback progress_callback,
                                     gpointer progress_callback_target,
                                     GAsyncReadyCallback _callback_,
                                     gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_utils_web_Download_finish (GAsyncResult* _res_,
                                                gchar** error_message);
static gboolean ___lambda24_ (ProtonPlusModelsReleasesGitHubAction* self);
VALA_EXTERN gboolean proton_plus_models_base_release_get_canceled (ProtonPlusModelsBaseRelease* self);
static gboolean ____lambda24__protonplusutilswebcancel_callback (gpointer self);
static void ___lambda25_ (ProtonPlusModelsReleasesGitHubAction* self,
                   gboolean is_percent,
                   gint64 progress,
                   gdouble speed_kbps,
                   gdouble* seconds_remaining);
VALA_EXTERN void proton_plus_models_base_release_set_is_percent (ProtonPlusModelsBaseRelease* self,
                                                     gboolean value);
VALA_EXTERN gchar* proton_plus_utils_filesystem_convert_bytes_to_string (gint64 size);
VALA_EXTERN void proton_plus_models_base_release_set_progress (ProtonPlusModelsBaseRelease* self,
                                                   const gchar* value);
VALA_EXTERN void proton_plus_models_base_release_set_speed_kbps (ProtonPlusModelsBaseRelease* self,
                                                     gdouble value);
VALA_EXTERN void proton_plus_models_base_release_set_seconds_remaining (ProtonPlusModelsBaseRelease* self,
                                                            gdouble* value);
static void ____lambda25__protonplusutilswebprogress_callback (gboolean is_percent,
                                                        gint64 progress_percentage,
                                                        gdouble speed_kbps,
                                                        gdouble* remaining_seconds,
                                                        gpointer self);
static void _proton_plus_models_releases_git_hub_action_start_install_ready (GObject* source_object,
                                                                      GAsyncResult* _res_,
                                                                      gpointer _user_data_);
VALA_EXTERN void proton_plus_models_base_release_set_error_message (ProtonPlusModelsBaseRelease* self,
                                                        const gchar* value);
VALA_EXTERN void proton_plus_utils_filesystem_extract (const gchar* install_location,
                                           const gchar* tool_name,
                                           const gchar* extension,
                                           ProtonPlusUtilsFilesystemcancel_callback cancel_callback,
                                           gpointer cancel_callback_target,
                                           GAsyncReadyCallback _callback_,
                                           gpointer _user_data_);
VALA_EXTERN gchar* proton_plus_utils_filesystem_extract_finish (GAsyncResult* _res_);
static gboolean __lambda26_ (ProtonPlusModelsReleasesGitHubAction* self);
static gboolean ___lambda26__protonplusutilsfilesystemcancel_callback (gpointer self);
static gboolean __lambda27_ (ProtonPlusModelsReleasesGitHubAction* self);
static gboolean ___lambda27__protonplusutilsfilesystemcancel_callback (gpointer self);
VALA_EXTERN ProtonPlusModelsRunner* proton_plus_models_base_release_get_runner (ProtonPlusModelsBaseRelease* self);
VALA_EXTERN GType proton_plus_models_group_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsGroup, g_object_unref)
VALA_EXTERN ProtonPlusModelsGroup* proton_plus_models_runner_get_group (ProtonPlusModelsRunner* self);
VALA_EXTERN GType proton_plus_models_launcher_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsLauncher, g_object_unref)
VALA_EXTERN ProtonPlusModelsLauncher* proton_plus_models_group_get_launcher (ProtonPlusModelsGroup* self);
VALA_EXTERN GType proton_plus_models_game_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsGame, g_object_unref)
VALA_EXTERN GType proton_plus_models_simple_runner_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsSimpleRunner, g_object_unref)
VALA_EXTERN GType proton_plus_models_launcher_installation_types_get_type (void) G_GNUC_CONST ;
VALA_EXTERN const gchar* proton_plus_models_group_get_directory (ProtonPlusModelsGroup* self);
VALA_EXTERN gchar* proton_plus_models_runners_basic_get_directory_name (ProtonPlusModelsRunnersBasic* self,
                                                            const gchar* release_name);
VALA_EXTERN void proton_plus_models_releases_basic_set_destination_path (ProtonPlusModelsReleasesBasic* self,
                                                             const gchar* value);
VALA_EXTERN void proton_plus_utils_filesystem_move_directory (const gchar* source,
                                                  const gchar* destination,
                                                  GAsyncReadyCallback _callback_,
                                                  gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_utils_filesystem_move_directory_finish (GAsyncResult* _res_);
VALA_EXTERN const gchar* proton_plus_models_releases_basic_get_destination_path (ProtonPlusModelsReleasesBasic* self);
VALA_EXTERN void proton_plus_models_releases_basic_add_to_games_tab (ProtonPlusModelsReleasesBasic* self);
VALA_EXTERN const gchar* proton_plus_models_releases_git_hub_action_get_artifacts_url (ProtonPlusModelsReleasesGitHubAction* self);
static void proton_plus_models_releases_git_hub_action_finalize (GObject * obj);
static GType proton_plus_models_releases_git_hub_action_get_type_once (void);
static void _vala_proton_plus_models_releases_git_hub_action_get_property (GObject * object,
                                                                    guint property_id,
                                                                    GValue * value,
                                                                    GParamSpec * pspec);
static void _vala_proton_plus_models_releases_git_hub_action_set_property (GObject * object,
                                                                    guint property_id,
                                                                    const GValue * value,
                                                                    GParamSpec * pspec);

static inline gpointer
proton_plus_models_releases_git_hub_action_get_instance_private (ProtonPlusModelsReleasesGitHubAction* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusModelsReleasesGitHubAction_private_offset);
}

ProtonPlusModelsReleasesGitHubAction*
proton_plus_models_releases_git_hub_action_construct (GType object_type,
                                                      ProtonPlusModelsRunnersBasic* runner,
                                                      const gchar* title,
                                                      const gchar* release_date,
                                                      const gchar* download_url,
                                                      const gchar* page_url,
                                                      const gchar* artifacts_url)
{
	ProtonPlusModelsReleasesGitHubAction * self = NULL;
	g_return_val_if_fail (runner != NULL, NULL);
	g_return_val_if_fail (title != NULL, NULL);
	g_return_val_if_fail (release_date != NULL, NULL);
	g_return_val_if_fail (download_url != NULL, NULL);
	g_return_val_if_fail (page_url != NULL, NULL);
	g_return_val_if_fail (artifacts_url != NULL, NULL);
	self = (ProtonPlusModelsReleasesGitHubAction*) proton_plus_models_releases_basic_construct (object_type);
	proton_plus_models_releases_git_hub_action_set_artifacts_url (self, artifacts_url);
	proton_plus_models_releases_basic_shared ((ProtonPlusModelsReleasesBasic*) self, runner, title, release_date, download_url, page_url);
	return self;
}

ProtonPlusModelsReleasesGitHubAction*
proton_plus_models_releases_git_hub_action_new (ProtonPlusModelsRunnersBasic* runner,
                                                const gchar* title,
                                                const gchar* release_date,
                                                const gchar* download_url,
                                                const gchar* page_url,
                                                const gchar* artifacts_url)
{
	return proton_plus_models_releases_git_hub_action_construct (PROTON_PLUS_MODELS_RELEASES_TYPE_GIT_HUB_ACTION, runner, title, release_date, download_url, page_url, artifacts_url);
}

static void
proton_plus_models_releases_git_hub_action_real__start_install_data_free (gpointer _data)
{
	ProtonPlusModelsReleasesGitHubActionStartInstallData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (ProtonPlusModelsReleasesGitHubActionStartInstallData, _data_);
}

static gpointer
_g_object_ref0 (gpointer self)
{
	return self ? g_object_ref (self) : NULL;
}

static void
proton_plus_models_releases_git_hub_action_real__start_install (ProtonPlusModelsBaseRelease* base,
                                                                GAsyncReadyCallback _callback_,
                                                                gpointer _user_data_)
{
	ProtonPlusModelsReleasesGitHubAction * self;
	ProtonPlusModelsReleasesGitHubActionStartInstallData* _data_;
	ProtonPlusModelsReleasesGitHubAction* _tmp0_;
	self = (ProtonPlusModelsReleasesGitHubAction*) base;
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesGitHubActionStartInstallData);
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, proton_plus_models_releases_git_hub_action_real__start_install_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	proton_plus_models_releases_git_hub_action_real__start_install_co (_data_);
}

static gboolean
_proton_plus_models_releases_git_hub_action_start_install_finish (ProtonPlusModelsBaseRelease* base,
                                                                  GAsyncResult* _res_)
{
	gboolean result;
	ProtonPlusModelsReleasesGitHubActionStartInstallData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
	result = _data_->result;
	return result;
}

static gboolean
string_contains (const gchar* self,
                 const gchar* needle)
{
	gchar* _tmp0_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (needle != NULL, FALSE);
	_tmp0_ = strstr ((gchar*) self, (gchar*) needle);
	result = _tmp0_ != NULL;
	return result;
}

static gboolean
___lambda24_ (ProtonPlusModelsReleasesGitHubAction* self)
{
	gboolean _tmp0_;
	gboolean _tmp1_;
	gboolean result;
	_tmp0_ = proton_plus_models_base_release_get_canceled ((ProtonPlusModelsBaseRelease*) self);
	_tmp1_ = _tmp0_;
	result = _tmp1_;
	return result;
}

static gboolean
____lambda24__protonplusutilswebcancel_callback (gpointer self)
{
	gboolean result;
	result = ___lambda24_ ((ProtonPlusModelsReleasesGitHubAction*) self);
	return result;
}

static void
___lambda25_ (ProtonPlusModelsReleasesGitHubAction* self,
              gboolean is_percent,
              gint64 progress,
              gdouble speed_kbps,
              gdouble* seconds_remaining)
{
	gchar* _tmp0_ = NULL;
	proton_plus_models_base_release_set_is_percent ((ProtonPlusModelsBaseRelease*) self, is_percent);
	if (is_percent) {
		gchar* _tmp1_;
		gchar* _tmp2_;
		gchar* _tmp3_;
		_tmp1_ = g_strdup_printf ("%" G_GINT64_FORMAT, progress);
		_tmp2_ = _tmp1_;
		_tmp3_ = g_strconcat (_tmp2_, "%", NULL);
		_g_free0 (_tmp0_);
		_tmp0_ = _tmp3_;
		_g_free0 (_tmp2_);
	} else {
		gchar* _tmp4_;
		_tmp4_ = proton_plus_utils_filesystem_convert_bytes_to_string (progress);
		_g_free0 (_tmp0_);
		_tmp0_ = _tmp4_;
	}
	proton_plus_models_base_release_set_progress ((ProtonPlusModelsBaseRelease*) self, _tmp0_);
	proton_plus_models_base_release_set_speed_kbps ((ProtonPlusModelsBaseRelease*) self, speed_kbps);
	proton_plus_models_base_release_set_seconds_remaining ((ProtonPlusModelsBaseRelease*) self, seconds_remaining);
	_g_free0 (_tmp0_);
}

static void
____lambda25__protonplusutilswebprogress_callback (gboolean is_percent,
                                                   gint64 progress_percentage,
                                                   gdouble speed_kbps,
                                                   gdouble* remaining_seconds,
                                                   gpointer self)
{
	___lambda25_ ((ProtonPlusModelsReleasesGitHubAction*) self, is_percent, progress_percentage, speed_kbps, remaining_seconds);
}

static void
_proton_plus_models_releases_git_hub_action_start_install_ready (GObject* source_object,
                                                                 GAsyncResult* _res_,
                                                                 gpointer _user_data_)
{
	ProtonPlusModelsReleasesGitHubActionStartInstallData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_models_releases_git_hub_action_real__start_install_co (_data_);
}

static gboolean
__lambda26_ (ProtonPlusModelsReleasesGitHubAction* self)
{
	gboolean _tmp0_;
	gboolean _tmp1_;
	gboolean result;
	_tmp0_ = proton_plus_models_base_release_get_canceled ((ProtonPlusModelsBaseRelease*) self);
	_tmp1_ = _tmp0_;
	result = _tmp1_;
	return result;
}

static gboolean
___lambda26__protonplusutilsfilesystemcancel_callback (gpointer self)
{
	gboolean result;
	result = __lambda26_ ((ProtonPlusModelsReleasesGitHubAction*) self);
	return result;
}

static glong
string_strnlen (gchar* str,
                glong maxlen)
{
	gchar* end = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	glong result;
	_tmp0_ = memchr (str, 0, (gsize) maxlen);
	end = _tmp0_;
	_tmp1_ = end;
	if (_tmp1_ == NULL) {
		result = maxlen;
		return result;
	} else {
		gchar* _tmp2_;
		_tmp2_ = end;
		result = (glong) (_tmp2_ - str);
		return result;
	}
}

static gchar*
string_substring (const gchar* self,
                  glong offset,
                  glong len)
{
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	gchar* _tmp3_;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	if (offset >= ((glong) 0)) {
		_tmp0_ = len >= ((glong) 0);
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		string_length = string_strnlen ((gchar*) self, offset + len);
	} else {
		gint _tmp1_;
		gint _tmp2_;
		_tmp1_ = strlen (self);
		_tmp2_ = _tmp1_;
		string_length = (glong) _tmp2_;
	}
	if (offset < ((glong) 0)) {
		offset = string_length + offset;
		g_return_val_if_fail (offset >= ((glong) 0), NULL);
	} else {
		g_return_val_if_fail (offset <= string_length, NULL);
	}
	if (len < ((glong) 0)) {
		len = string_length - offset;
	}
	g_return_val_if_fail ((offset + len) <= string_length, NULL);
	_tmp3_ = g_strndup (((gchar*) self) + offset, (gsize) len);
	result = _tmp3_;
	return result;
}

static gchar*
string_replace (const gchar* self,
                const gchar* old,
                const gchar* replacement)
{
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GError* _inner_error0_ = NULL;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (old != NULL, NULL);
	g_return_val_if_fail (replacement != NULL, NULL);
	if ((*((gchar*) self)) == '\0') {
		_tmp1_ = TRUE;
	} else {
		_tmp1_ = (*((gchar*) old)) == '\0';
	}
	if (_tmp1_) {
		_tmp0_ = TRUE;
	} else {
		_tmp0_ = g_strcmp0 (old, replacement) == 0;
	}
	if (_tmp0_) {
		gchar* _tmp2_;
		_tmp2_ = g_strdup (self);
		result = _tmp2_;
		return result;
	}
	{
		GRegex* regex = NULL;
		gchar* _tmp3_;
		gchar* _tmp4_;
		GRegex* _tmp5_;
		GRegex* _tmp6_;
		gchar* _tmp7_ = NULL;
		GRegex* _tmp8_;
		gchar* _tmp9_;
		gchar* _tmp10_;
		_tmp3_ = g_regex_escape_string (old, -1);
		_tmp4_ = _tmp3_;
		_tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error0_);
		_tmp6_ = _tmp5_;
		_g_free0 (_tmp4_);
		regex = _tmp6_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			if (_inner_error0_->domain == G_REGEX_ERROR) {
				goto __catch0_g_regex_error;
			}
			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 NULL;
		}
		_tmp8_ = regex;
		_tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error0_);
		_tmp7_ = _tmp9_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			_g_regex_unref0 (regex);
			if (_inner_error0_->domain == G_REGEX_ERROR) {
				goto __catch0_g_regex_error;
			}
			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 NULL;
		}
		_tmp10_ = _tmp7_;
		_tmp7_ = NULL;
		result = _tmp10_;
		_g_free0 (_tmp7_);
		_g_regex_unref0 (regex);
		return result;
	}
	goto __finally0;
	__catch0_g_regex_error:
	{
		g_clear_error (&_inner_error0_);
		g_assert_not_reached ();
	}
	__finally0:
	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 NULL;
}

static gboolean
__lambda27_ (ProtonPlusModelsReleasesGitHubAction* self)
{
	gboolean _tmp0_;
	gboolean _tmp1_;
	gboolean result;
	_tmp0_ = proton_plus_models_base_release_get_canceled ((ProtonPlusModelsBaseRelease*) self);
	_tmp1_ = _tmp0_;
	result = _tmp1_;
	return result;
}

static gboolean
___lambda27__protonplusutilsfilesystemcancel_callback (gpointer self)
{
	gboolean result;
	result = __lambda27_ ((ProtonPlusModelsReleasesGitHubAction*) self);
	return result;
}

static gboolean
proton_plus_models_releases_git_hub_action_real__start_install_co (ProtonPlusModelsReleasesGitHubActionStartInstallData* _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;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	proton_plus_models_base_release_set_step ((ProtonPlusModelsBaseRelease*) _data_->self, PROTON_PLUS_MODELS_BASE_RELEASE_STEP_DOWNLOADING);
	_data_->_tmp0_ = proton_plus_models_base_release_get_download_url ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp1_ = _data_->_tmp0_;
	if (!string_contains (_data_->_tmp1_, ".zip")) {
		_data_->result = FALSE;
		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;
	}
	_data_->_tmp2_ = proton_plus_globals_CACHE_PATH;
	_data_->_tmp3_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp4_ = _data_->_tmp3_;
	_data_->_tmp5_ = g_strdup_printf ("%s/%s.zip", _data_->_tmp2_, _data_->_tmp4_);
	_data_->download_path = _data_->_tmp5_;
	_data_->_tmp6_ = _data_->download_path;
	if (!g_file_test (_data_->_tmp6_, G_FILE_TEST_EXISTS)) {
		_data_->_tmp7_ = proton_plus_models_base_release_get_download_url ((ProtonPlusModelsBaseRelease*) _data_->self);
		_data_->_tmp8_ = _data_->_tmp7_;
		_data_->_tmp9_ = _data_->download_path;
		_data_->_tmp10_ = NULL;
		_data_->_state_ = 1;
		proton_plus_utils_web_Download (_data_->_tmp8_, _data_->_tmp9_, ____lambda24__protonplusutilswebcancel_callback, _data_->self, ____lambda25__protonplusutilswebprogress_callback, _data_->self, _proton_plus_models_releases_git_hub_action_start_install_ready, _data_);
		return FALSE;
		_state_1:
		_data_->_tmp11_ = proton_plus_utils_web_Download_finish (_data_->_res_, &_data_->_tmp10_);
		_g_free0 (_data_->download_error);
		_data_->download_error = _data_->_tmp10_;
		_data_->download_valid = _data_->_tmp11_;
		if (!_data_->download_valid) {
			_data_->_tmp12_ = _data_->download_error;
			proton_plus_models_base_release_set_error_message ((ProtonPlusModelsBaseRelease*) _data_->self, _data_->_tmp12_);
			_data_->result = FALSE;
			_g_free0 (_data_->download_error);
			_g_free0 (_data_->download_path);
			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;
		}
		_g_free0 (_data_->download_error);
	}
	proton_plus_models_base_release_set_step ((ProtonPlusModelsBaseRelease*) _data_->self, PROTON_PLUS_MODELS_BASE_RELEASE_STEP_EXTRACTING);
	_data_->_tmp13_ = proton_plus_globals_CACHE_PATH;
	_data_->_tmp14_ = g_strdup_printf ("%s/", _data_->_tmp13_);
	_data_->extract_path = _data_->_tmp14_;
	_data_->_tmp15_ = _data_->extract_path;
	_data_->_tmp16_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp17_ = _data_->_tmp16_;
	_data_->_state_ = 2;
	proton_plus_utils_filesystem_extract (_data_->_tmp15_, _data_->_tmp17_, ".zip", ___lambda26__protonplusutilsfilesystemcancel_callback, _data_->self, _proton_plus_models_releases_git_hub_action_start_install_ready, _data_);
	return FALSE;
	_state_2:
	_data_->_tmp18_ = proton_plus_utils_filesystem_extract_finish (_data_->_res_);
	_data_->source_path = _data_->_tmp18_;
	_data_->_tmp19_ = _data_->source_path;
	if (g_strcmp0 (_data_->_tmp19_, "") == 0) {
		_data_->result = FALSE;
		_g_free0 (_data_->source_path);
		_g_free0 (_data_->extract_path);
		_g_free0 (_data_->download_path);
		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;
	}
	_data_->_tmp20_ = _data_->extract_path;
	_data_->_tmp21_ = _data_->source_path;
	_data_->_tmp22_ = _data_->source_path;
	_data_->_tmp23_ = strlen (_data_->_tmp22_);
	_data_->_tmp24_ = _data_->_tmp23_;
	_data_->_tmp25_ = string_substring (_data_->_tmp21_, (glong) 0, (glong) (_data_->_tmp24_ - 4));
	_data_->_tmp26_ = _data_->_tmp25_;
	_data_->_tmp27_ = _data_->extract_path;
	_data_->_tmp28_ = string_replace (_data_->_tmp26_, _data_->_tmp27_, "");
	_data_->_tmp29_ = _data_->_tmp28_;
	_data_->_state_ = 3;
	proton_plus_utils_filesystem_extract (_data_->_tmp20_, _data_->_tmp29_, ".tar", ___lambda27__protonplusutilsfilesystemcancel_callback, _data_->self, _proton_plus_models_releases_git_hub_action_start_install_ready, _data_);
	return FALSE;
	_state_3:
	_data_->_tmp30_ = proton_plus_utils_filesystem_extract_finish (_data_->_res_);
	_g_free0 (_data_->source_path);
	_data_->source_path = _data_->_tmp30_;
	_g_free0 (_data_->_tmp29_);
	_g_free0 (_data_->_tmp26_);
	_data_->_tmp31_ = _data_->source_path;
	if (g_strcmp0 (_data_->_tmp31_, "") == 0) {
		_data_->result = FALSE;
		_g_free0 (_data_->source_path);
		_g_free0 (_data_->extract_path);
		_g_free0 (_data_->download_path);
		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;
	}
	proton_plus_models_base_release_set_step ((ProtonPlusModelsBaseRelease*) _data_->self, PROTON_PLUS_MODELS_BASE_RELEASE_STEP_MOVING);
	_data_->_tmp32_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp33_ = _data_->_tmp32_;
	_data_->_tmp34_ = _g_object_ref0 (PROTON_PLUS_MODELS_RUNNERS_IS_BASIC (_data_->_tmp33_) ? ((ProtonPlusModelsRunnersBasic*) _data_->_tmp33_) : NULL);
	_data_->runner = _data_->_tmp34_;
	_data_->_tmp35_ = _data_->runner;
	_data_->_tmp36_ = proton_plus_models_runner_get_group ((ProtonPlusModelsRunner*) _data_->_tmp35_);
	_data_->_tmp37_ = _data_->_tmp36_;
	_data_->_tmp38_ = proton_plus_models_group_get_launcher (_data_->_tmp37_);
	_data_->_tmp39_ = _data_->_tmp38_;
	_data_->_tmp40_ = _data_->_tmp39_->directory;
	_data_->_tmp41_ = _data_->runner;
	_data_->_tmp42_ = proton_plus_models_runner_get_group ((ProtonPlusModelsRunner*) _data_->_tmp41_);
	_data_->_tmp43_ = _data_->_tmp42_;
	_data_->_tmp44_ = proton_plus_models_group_get_directory (_data_->_tmp43_);
	_data_->_tmp45_ = _data_->_tmp44_;
	_data_->_tmp46_ = _data_->runner;
	_data_->_tmp47_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp48_ = _data_->_tmp47_;
	_data_->_tmp49_ = proton_plus_models_runners_basic_get_directory_name (_data_->_tmp46_, _data_->_tmp48_);
	_data_->_tmp50_ = _data_->_tmp49_;
	_data_->_tmp51_ = g_strdup_printf ("%s%s/%s/", _data_->_tmp40_, _data_->_tmp45_, _data_->_tmp50_);
	_data_->_tmp52_ = _data_->_tmp51_;
	proton_plus_models_releases_basic_set_destination_path ((ProtonPlusModelsReleasesBasic*) _data_->self, _data_->_tmp52_);
	_g_free0 (_data_->_tmp52_);
	_g_free0 (_data_->_tmp50_);
	_data_->_tmp53_ = _data_->source_path;
	_data_->_tmp54_ = proton_plus_models_releases_basic_get_destination_path ((ProtonPlusModelsReleasesBasic*) _data_->self);
	_data_->_tmp55_ = _data_->_tmp54_;
	_data_->_state_ = 4;
	proton_plus_utils_filesystem_move_directory (_data_->_tmp53_, _data_->_tmp55_, _proton_plus_models_releases_git_hub_action_start_install_ready, _data_);
	return FALSE;
	_state_4:
	_data_->renaming_valid = proton_plus_utils_filesystem_move_directory_finish (_data_->_res_);
	if (!_data_->renaming_valid) {
		_data_->result = FALSE;
		_g_object_unref0 (_data_->runner);
		_g_free0 (_data_->source_path);
		_g_free0 (_data_->extract_path);
		_g_free0 (_data_->download_path);
		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;
	}
	proton_plus_models_releases_basic_add_to_games_tab ((ProtonPlusModelsReleasesBasic*) _data_->self);
	_data_->result = TRUE;
	_g_object_unref0 (_data_->runner);
	_g_free0 (_data_->source_path);
	_g_free0 (_data_->extract_path);
	_g_free0 (_data_->download_path);
	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;
}

const gchar*
proton_plus_models_releases_git_hub_action_get_artifacts_url (ProtonPlusModelsReleasesGitHubAction* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_artifacts_url;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_releases_git_hub_action_set_artifacts_url (ProtonPlusModelsReleasesGitHubAction* self,
                                                              const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_releases_git_hub_action_get_artifacts_url (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_artifacts_url);
		self->priv->_artifacts_url = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_releases_git_hub_action_properties[PROTON_PLUS_MODELS_RELEASES_GIT_HUB_ACTION_ARTIFACTS_URL_PROPERTY]);
	}
}

static void
proton_plus_models_releases_git_hub_action_class_init (ProtonPlusModelsReleasesGitHubActionClass * klass,
                                                       gpointer klass_data)
{
	proton_plus_models_releases_git_hub_action_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusModelsReleasesGitHubAction_private_offset);
	((ProtonPlusModelsBaseReleaseClass *) klass)->_start_install = (void (*) (ProtonPlusModelsBaseRelease*, GAsyncReadyCallback, gpointer)) proton_plus_models_releases_git_hub_action_real__start_install;
	((ProtonPlusModelsBaseReleaseClass *) klass)->_start_install_finish = (gboolean (*) (ProtonPlusModelsBaseRelease*, GAsyncResult*)) _proton_plus_models_releases_git_hub_action_start_install_finish;
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_models_releases_git_hub_action_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_models_releases_git_hub_action_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_models_releases_git_hub_action_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RELEASES_GIT_HUB_ACTION_ARTIFACTS_URL_PROPERTY, proton_plus_models_releases_git_hub_action_properties[PROTON_PLUS_MODELS_RELEASES_GIT_HUB_ACTION_ARTIFACTS_URL_PROPERTY] = g_param_spec_string ("artifacts-url", "artifacts-url", "artifacts-url", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
proton_plus_models_releases_git_hub_action_instance_init (ProtonPlusModelsReleasesGitHubAction * self,
                                                          gpointer klass)
{
	self->priv = proton_plus_models_releases_git_hub_action_get_instance_private (self);
}

static void
proton_plus_models_releases_git_hub_action_finalize (GObject * obj)
{
	ProtonPlusModelsReleasesGitHubAction * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_MODELS_RELEASES_TYPE_GIT_HUB_ACTION, ProtonPlusModelsReleasesGitHubAction);
	_g_free0 (self->priv->_artifacts_url);
	G_OBJECT_CLASS (proton_plus_models_releases_git_hub_action_parent_class)->finalize (obj);
}

static GType
proton_plus_models_releases_git_hub_action_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsReleasesGitHubActionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_releases_git_hub_action_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsReleasesGitHubAction), 0, (GInstanceInitFunc) proton_plus_models_releases_git_hub_action_instance_init, NULL };
	GType proton_plus_models_releases_git_hub_action_type_id;
	proton_plus_models_releases_git_hub_action_type_id = g_type_register_static (PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, "ProtonPlusModelsReleasesGitHubAction", &g_define_type_info, 0);
	ProtonPlusModelsReleasesGitHubAction_private_offset = g_type_add_instance_private (proton_plus_models_releases_git_hub_action_type_id, sizeof (ProtonPlusModelsReleasesGitHubActionPrivate));
	return proton_plus_models_releases_git_hub_action_type_id;
}

GType
proton_plus_models_releases_git_hub_action_get_type (void)
{
	static volatile gsize proton_plus_models_releases_git_hub_action_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_releases_git_hub_action_type_id__once)) {
		GType proton_plus_models_releases_git_hub_action_type_id;
		proton_plus_models_releases_git_hub_action_type_id = proton_plus_models_releases_git_hub_action_get_type_once ();
		g_once_init_leave (&proton_plus_models_releases_git_hub_action_type_id__once, proton_plus_models_releases_git_hub_action_type_id);
	}
	return proton_plus_models_releases_git_hub_action_type_id__once;
}

static void
_vala_proton_plus_models_releases_git_hub_action_get_property (GObject * object,
                                                               guint property_id,
                                                               GValue * value,
                                                               GParamSpec * pspec)
{
	ProtonPlusModelsReleasesGitHubAction * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_RELEASES_TYPE_GIT_HUB_ACTION, ProtonPlusModelsReleasesGitHubAction);
	switch (property_id) {
		case PROTON_PLUS_MODELS_RELEASES_GIT_HUB_ACTION_ARTIFACTS_URL_PROPERTY:
		g_value_set_string (value, proton_plus_models_releases_git_hub_action_get_artifacts_url (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_models_releases_git_hub_action_set_property (GObject * object,
                                                               guint property_id,
                                                               const GValue * value,
                                                               GParamSpec * pspec)
{
	ProtonPlusModelsReleasesGitHubAction * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_RELEASES_TYPE_GIT_HUB_ACTION, ProtonPlusModelsReleasesGitHubAction);
	switch (property_id) {
		case PROTON_PLUS_MODELS_RELEASES_GIT_HUB_ACTION_ARTIFACTS_URL_PROPERTY:
		proton_plus_models_releases_git_hub_action_set_artifacts_url (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

