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

#include <glib-object.h>
#include <gio/gio.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#include <glib/gstdio.h>
#include <json-glib/json-glib.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_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;
typedef struct _ProtonPlusModelsRunnerPrivate ProtonPlusModelsRunnerPrivate;

#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;

#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 enum  {
	PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR,
	PROTON_PLUS_RETURN_CODE_RELEASES_LOADED,
	PROTON_PLUS_RETURN_CODE_NOTHING_TO_UPDATE,
	PROTON_PLUS_RETURN_CODE_RUNNERS_UPDATED,
	PROTON_PLUS_RETURN_CODE_RUNNER_UPDATED,
	PROTON_PLUS_RETURN_CODE_VALID_REQUEST,
	PROTON_PLUS_RETURN_CODE_CONNECTION_ISSUE,
	PROTON_PLUS_RETURN_CODE_CONNECTION_REFUSED,
	PROTON_PLUS_RETURN_CODE_CONNECTION_UNKNOWN,
	PROTON_PLUS_RETURN_CODE_API_LIMIT_REACHED,
	PROTON_PLUS_RETURN_CODE_INVALID_ACCESS_TOKEN
} ProtonPlusReturnCode;

#define PROTON_PLUS_TYPE_RETURN_CODE (proton_plus_return_code_get_type ())

#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;
typedef enum  {
	PROTON_PLUS_UTILS_WEB_GET_TYPE_OTHER,
	PROTON_PLUS_UTILS_WEB_GET_TYPE_GITHUB,
	PROTON_PLUS_UTILS_WEB_GET_TYPE_GITLAB,
	PROTON_PLUS_UTILS_WEB_GET_TYPE_FORGEJO,
	PROTON_PLUS_UTILS_WEB_GET_TYPE_STEAMTINKERLAUNCH
} ProtonPlusUtilsWebGetType;

#define PROTON_PLUS_UTILS_WEB_TYPE_GET_TYPE (proton_plus_utils_web_get_type_get_type ())
enum  {
	PROTON_PLUS_MODELS_RUNNER_0_PROPERTY,
	PROTON_PLUS_MODELS_RUNNER_TITLE_PROPERTY,
	PROTON_PLUS_MODELS_RUNNER_DESCRIPTION_PROPERTY,
	PROTON_PLUS_MODELS_RUNNER_GROUP_PROPERTY,
	PROTON_PLUS_MODELS_RUNNER_HAS_MORE_PROPERTY,
	PROTON_PLUS_MODELS_RUNNER_HAS_LATEST_SUPPORT_PROPERTY,
	PROTON_PLUS_MODELS_RUNNER_ASSET_POSITION_HWCAPS_CONDITION_PROPERTY,
	PROTON_PLUS_MODELS_RUNNER_GET_TYPE_PROPERTY,
	PROTON_PLUS_MODELS_RUNNER_NUM_PROPERTIES
};
static GParamSpec* proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#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;

#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;
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 _ProtonPlusModelsGroupPrivate ProtonPlusModelsGroupPrivate;
typedef struct _ProtonPlusModelsRunnerCheckForUpdatesData ProtonPlusModelsRunnerCheckForUpdatesData;
#define __vala_JsonNode_free0(var) ((var == NULL) ? NULL : (var = (_vala_JsonNode_free (var), NULL)))
#define _json_array_unref0(var) ((var == NULL) ? NULL : (var = (json_array_unref (var), NULL)))
#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL)))

#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;

#define PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST (proton_plus_models_releases_latest_get_type ())
#define PROTON_PLUS_MODELS_RELEASES_LATEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST, ProtonPlusModelsReleasesLatest))
#define PROTON_PLUS_MODELS_RELEASES_LATEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST, ProtonPlusModelsReleasesLatestClass))
#define PROTON_PLUS_MODELS_RELEASES_IS_LATEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST))
#define PROTON_PLUS_MODELS_RELEASES_IS_LATEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST))
#define PROTON_PLUS_MODELS_RELEASES_LATEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST, ProtonPlusModelsReleasesLatestClass))

typedef struct _ProtonPlusModelsReleasesLatest ProtonPlusModelsReleasesLatest;
typedef struct _ProtonPlusModelsReleasesLatestClass ProtonPlusModelsReleasesLatestClass;
typedef enum  {
	PROTON_PLUS_MODELS_BASE_RELEASE_STATE_NOT_INSTALLED,
	PROTON_PLUS_MODELS_BASE_RELEASE_STATE_UPDATE_AVAILABLE,
	PROTON_PLUS_MODELS_BASE_RELEASE_STATE_UP_TO_DATE,
	PROTON_PLUS_MODELS_BASE_RELEASE_STATE_BUSY_INSTALLING,
	PROTON_PLUS_MODELS_BASE_RELEASE_STATE_BUSY_REMOVING,
	PROTON_PLUS_MODELS_BASE_RELEASE_STATE_BUSY_UPDATING
} ProtonPlusModelsBaseReleaseState;

#define PROTON_PLUS_MODELS_BASE_RELEASE_TYPE_STATE (proton_plus_models_base_release_state_get_type ())
typedef struct _ProtonPlusModelsRunnerUpdateSpecificRunnerData ProtonPlusModelsRunnerUpdateSpecificRunnerData;

struct _ProtonPlusModelsRunner {
	GObject parent_instance;
	ProtonPlusModelsRunnerPrivate * priv;
	GList* releases;
};

struct _ProtonPlusModelsRunnerClass {
	GObjectClass parent_class;
	void (*load) (ProtonPlusModelsRunner* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	ProtonPlusReturnCode (*load_finish) (ProtonPlusModelsRunner* self, GAsyncResult* _res_, GList** releases);
};

struct _ProtonPlusModelsRunnerPrivate {
	gchar* _title;
	gchar* _description;
	ProtonPlusModelsGroup* _group;
	gboolean _has_more;
	gboolean _has_latest_support;
	gboolean _asset_position_hwcaps_condition;
	ProtonPlusUtilsWebGetType _get_type;
};

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 _ProtonPlusModelsGroup {
	GObject parent_instance;
	ProtonPlusModelsGroupPrivate * priv;
	GList* runners;
};

struct _ProtonPlusModelsGroupClass {
	GObjectClass parent_class;
};

struct _ProtonPlusModelsRunnerCheckForUpdatesData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GList* launchers;
	ProtonPlusReturnCode result;
	GList* latest_runners;
	GList* launcher_collection;
	GList* launcher_it;
	ProtonPlusModelsLauncher* _tmp0_;
	ProtonPlusModelsLauncher* launcher;
	ProtonPlusModelsLauncher* _tmp1_;
	ProtonPlusModelsGroup** _tmp2_;
	gint _tmp2__length1;
	ProtonPlusModelsGroup** group_collection;
	gint group_collection_length1;
	gint _group_collection_size_;
	gint group_it;
	ProtonPlusModelsGroup* _tmp3_;
	ProtonPlusModelsGroup* group;
	GList* directories;
	ProtonPlusModelsGroup* _tmp4_;
	GList* _tmp5_;
	ProtonPlusModelsGroup* _tmp6_;
	GList* _tmp7_;
	GList* runner_collection;
	GList* runner_it;
	ProtonPlusModelsRunner* _tmp8_;
	ProtonPlusModelsRunner* runner;
	gboolean _tmp9_;
	ProtonPlusModelsRunner* _tmp10_;
	gboolean _tmp11_;
	ProtonPlusModelsRunner* _tmp12_;
	GList* _tmp13_;
	GList* directory_collection;
	GList* directory_it;
	gchar* _tmp14_;
	gchar* directory;
	const gchar* _tmp15_;
	ProtonPlusModelsRunner* _tmp16_;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	gboolean _tmp20_;
	ProtonPlusModelsRunner* _tmp21_;
	ProtonPlusModelsRunnersBasic* _tmp22_;
	const gchar* _tmp23_;
	ProtonPlusModelsRunner* _tmp24_;
	const gchar* _tmp25_;
	gchar* _tmp26_;
	gchar* _tmp27_;
	gboolean _tmp28_;
	gboolean deleted_old_backup;
	ProtonPlusModelsLauncher* _tmp29_;
	const gchar* _tmp30_;
	ProtonPlusModelsGroup* _tmp31_;
	const gchar* _tmp32_;
	const gchar* _tmp33_;
	ProtonPlusModelsRunner* _tmp34_;
	const gchar* _tmp35_;
	gchar* _tmp36_;
	gchar* _tmp37_;
	gboolean _tmp38_;
	GList* _tmp39_;
	gint updated_count;
	GList* _tmp40_;
	GList* _vala1_runner_collection;
	GList* _vala1_runner_it;
	ProtonPlusModelsRunnersBasic* _tmp41_;
	ProtonPlusModelsRunnersBasic* _vala1_runner;
	ProtonPlusReturnCode code;
	ProtonPlusModelsRunnersBasic* _tmp42_;
	gint _tmp43_;
	ProtonPlusReturnCode _tmp44_;
};

struct _ProtonPlusModelsRunnerUpdateSpecificRunnerData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsRunnersBasic* runner;
	ProtonPlusReturnCode result;
	gchar* response;
	gchar* query_param;
	ProtonPlusUtilsWebGetType _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* base_runner_directory;
	ProtonPlusModelsGroup* _tmp3_;
	ProtonPlusModelsLauncher* _tmp4_;
	ProtonPlusModelsLauncher* _tmp5_;
	const gchar* _tmp6_;
	ProtonPlusModelsGroup* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* runner_directory;
	const gchar* _tmp11_;
	const gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* tag_path;
	const gchar* _tmp14_;
	gchar* _tmp15_;
	ProtonPlusReturnCode code;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	const gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	ProtonPlusUtilsWebGetType _tmp21_;
	gchar* _tmp22_;
	ProtonPlusReturnCode _tmp23_;
	ProtonPlusReturnCode _tmp24_;
	const gchar* _tmp25_;
	JsonNode* root_node;
	const gchar* _tmp26_;
	JsonNode* _tmp27_;
	JsonNode* _tmp28_;
	JsonNode* _tmp29_;
	JsonArray* root_array;
	JsonNode* _tmp30_;
	JsonArray* _tmp31_;
	JsonArray* _tmp32_;
	JsonArray* _tmp33_;
	JsonArray* _tmp34_;
	JsonObject* object;
	JsonArray* _tmp35_;
	JsonObject* _tmp36_;
	JsonObject* _tmp37_;
	JsonArray* asset_array;
	JsonObject* _tmp38_;
	JsonArray* _tmp39_;
	JsonArray* _tmp40_;
	JsonArray* _tmp41_;
	gchar* title;
	JsonObject* _tmp42_;
	const gchar* _tmp43_;
	gchar* _tmp44_;
	gchar* description;
	JsonObject* _tmp45_;
	const gchar* _tmp46_;
	gchar* _tmp47_;
	gchar* page_url;
	JsonObject* _tmp48_;
	const gchar* _tmp49_;
	gchar* _tmp50_;
	gchar* release_date;
	JsonObject* _tmp51_;
	const gchar* _tmp52_;
	gchar** _tmp53_;
	gchar** _tmp54_;
	gchar** _tmp55_;
	gint _tmp55__length1;
	const gchar* _tmp56_;
	gchar* _tmp57_;
	gchar* _tmp58_;
	gchar* download_url;
	gchar* _tmp59_;
	gint real_asset_position;
	gint _tmp60_;
	gint _tmp61_;
	gboolean _tmp62_;
	gint y;
	gboolean _tmp63_;
	gint _tmp64_;
	JsonArray* _tmp65_;
	JsonObject* asset_object;
	JsonArray* _tmp66_;
	JsonObject* _tmp67_;
	JsonObject* _tmp68_;
	JsonObject* _tmp69_;
	const gchar* _tmp70_;
	GList* _tmp71_;
	gconstpointer _tmp72_;
	gchar* _tmp73_;
	gchar* _tmp74_;
	gboolean _tmp75_;
	JsonArray* _tmp76_;
	JsonObject* _vala1_asset_object;
	JsonArray* _tmp77_;
	JsonObject* _tmp78_;
	JsonObject* _tmp79_;
	JsonObject* _tmp80_;
	const gchar* _tmp81_;
	gchar* _tmp82_;
	gboolean _tmp83_;
	const gchar* _tmp84_;
	const gchar* _tmp85_;
	const gchar* _tmp86_;
	gchar* stored_tag;
	const gchar* _tmp87_;
	gchar* _tmp88_;
	gchar* _tmp89_;
	gchar* _tmp90_;
	gchar* _tmp91_;
	gboolean _tmp92_;
	const gchar* _tmp93_;
	const gchar* _tmp94_;
	const gchar* _tmp95_;
	gchar* version_content;
	const gchar* _tmp96_;
	gchar* _tmp97_;
	gchar* _tmp98_;
	gchar* _tmp99_;
	gchar* _tmp100_;
	const gchar* _tmp101_;
	gchar* version_title;
	const gchar* _tmp102_;
	gchar** _tmp103_;
	gchar** _tmp104_;
	gchar** _tmp105_;
	gint _tmp105__length1;
	const gchar* _tmp106_;
	gchar* _tmp107_;
	gchar* _tmp108_;
	gchar* proton_content;
	const gchar* _tmp109_;
	gchar* _tmp110_;
	gchar* _tmp111_;
	gchar* _tmp112_;
	gchar* _tmp113_;
	const gchar* _tmp114_;
	gchar* proton_start_word;
	gchar* _tmp115_;
	gint proton_start_index;
	const gchar* _tmp116_;
	const gchar* _tmp117_;
	const gchar* _tmp118_;
	gint _tmp119_;
	gint _tmp120_;
	gint proton_end_index;
	const gchar* _tmp121_;
	gchar* proton_title;
	const gchar* _tmp122_;
	gchar* _tmp123_;
	gboolean _tmp124_;
	const gchar* _tmp125_;
	const gchar* _tmp126_;
	const gchar* _tmp127_;
	const gchar* _tmp128_;
	const gchar* _tmp129_;
	const gchar* _tmp130_;
	gchar* backup_runner_directory;
	const gchar* _tmp131_;
	const gchar* _tmp132_;
	gchar* _tmp133_;
	gboolean moved;
	const gchar* _tmp134_;
	const gchar* _tmp135_;
	ProtonPlusModelsReleasesLatest* release;
	const gchar* _tmp136_;
	gchar* _tmp137_;
	gchar* _tmp138_;
	const gchar* _tmp139_;
	const gchar* _tmp140_;
	const gchar* _tmp141_;
	const gchar* _tmp142_;
	ProtonPlusModelsReleasesLatest* _tmp143_;
	ProtonPlusModelsReleasesLatest* _tmp144_;
	ProtonPlusModelsReleasesLatest* _tmp145_;
	gboolean installed;
	ProtonPlusModelsReleasesLatest* _tmp146_;
	gboolean deleted;
	const gchar* _tmp147_;
	const gchar* _tmp148_;
	const gchar* _tmp149_;
	gchar* backup_settings_path;
	const gchar* _tmp150_;
	gchar* _tmp151_;
	gboolean backup_settings_exists;
	const gchar* _tmp152_;
	gboolean _tmp153_;
	const gchar* _tmp154_;
	gboolean backup_settings_is_symlink;
	gchar* settings_path;
	const gchar* _tmp155_;
	gchar* _tmp156_;
	gboolean copied;
	const gchar* _tmp157_;
	const gchar* _tmp158_;
	const gchar* _tmp159_;
	const gchar* _tmp160_;
	gchar* _tmp161_;
	gchar* _tmp162_;
	const gchar* _tmp163_;
	const gchar* _tmp164_;
	gboolean _vala1_deleted;
	const gchar* _tmp165_;
};

static gint ProtonPlusModelsRunner_private_offset;
static gpointer proton_plus_models_runner_parent_class = NULL;
VALA_EXTERN GList* proton_plus_globals_HWCAPS;

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_base_release_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsBaseRelease, 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_return_code_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType proton_plus_models_group_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsGroup, g_object_unref)
VALA_EXTERN GType proton_plus_utils_web_get_type_get_type (void) G_GNUC_CONST ;
static void _g_object_unref0_ (gpointer var);
static inline void _g_list_free__g_object_unref0_ (GList* self);
VALA_EXTERN void proton_plus_models_runner_load (ProtonPlusModelsRunner* self,
                                     GAsyncReadyCallback _callback_,
                                     gpointer _user_data_);
VALA_EXTERN ProtonPlusReturnCode proton_plus_models_runner_load_finish (ProtonPlusModelsRunner* self,
                                                            GAsyncResult* _res_,
                                                            GList** releases);
static void proton_plus_models_runner_check_for_updates_data_free (gpointer _data);
VALA_EXTERN GType proton_plus_models_launcher_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsLauncher, g_object_unref)
VALA_EXTERN void proton_plus_models_runner_check_for_updates (GList* launchers,
                                                  GAsyncReadyCallback _callback_,
                                                  gpointer _user_data_);
VALA_EXTERN ProtonPlusReturnCode proton_plus_models_runner_check_for_updates_finish (GAsyncResult* _res_);
static gboolean proton_plus_models_runner_check_for_updates_co (ProtonPlusModelsRunnerCheckForUpdatesData* _data_);
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 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 GList* proton_plus_models_group_get_compatibility_tool_directories (ProtonPlusModelsGroup* self);
VALA_EXTERN gboolean proton_plus_models_runner_get_has_latest_support (ProtonPlusModelsRunner* self);
VALA_EXTERN const gchar* proton_plus_models_runner_get_title (ProtonPlusModelsRunner* self);
VALA_EXTERN void proton_plus_utils_filesystem_delete_directory (const gchar* path,
                                                    GAsyncReadyCallback _callback_,
                                                    gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_utils_filesystem_delete_directory_finish (GAsyncResult* _res_);
VALA_EXTERN const gchar* proton_plus_models_group_get_directory (ProtonPlusModelsGroup* self);
static void proton_plus_models_runner_check_for_updates_ready (GObject* source_object,
                                                        GAsyncResult* _res_,
                                                        gpointer _user_data_);
static void _g_free0_ (gpointer var);
static inline void _g_list_free__g_free0_ (GList* self);
VALA_EXTERN void proton_plus_models_runner_update_specific_runner (ProtonPlusModelsRunnersBasic* runner,
                                                       GAsyncReadyCallback _callback_,
                                                       gpointer _user_data_);
VALA_EXTERN ProtonPlusReturnCode proton_plus_models_runner_update_specific_runner_finish (GAsyncResult* _res_);
static void proton_plus_models_runner_update_specific_runner_data_free (gpointer _data);
static gboolean proton_plus_models_runner_update_specific_runner_co (ProtonPlusModelsRunnerUpdateSpecificRunnerData* _data_);
VALA_EXTERN ProtonPlusUtilsWebGetType proton_plus_models_runner_get_get_type (ProtonPlusModelsRunner* self);
VALA_EXTERN ProtonPlusModelsGroup* proton_plus_models_runner_get_group (ProtonPlusModelsRunner* self);
VALA_EXTERN ProtonPlusModelsLauncher* proton_plus_models_group_get_launcher (ProtonPlusModelsGroup* self);
VALA_EXTERN void proton_plus_utils_web_get_request (const gchar* uri,
                                        ProtonPlusUtilsWebGetType get_type,
                                        GAsyncReadyCallback _callback_,
                                        gpointer _user_data_);
VALA_EXTERN ProtonPlusReturnCode proton_plus_utils_web_get_request_finish (GAsyncResult* _res_,
                                                               gchar** response);
VALA_EXTERN const gchar* proton_plus_models_runners_basic_get_endpoint (ProtonPlusModelsRunnersBasic* self);
static void proton_plus_models_runner_update_specific_runner_ready (GObject* source_object,
                                                             GAsyncResult* _res_,
                                                             gpointer _user_data_);
VALA_EXTERN JsonNode* proton_plus_utils_parser_get_node_from_json (const gchar* json);
static void _vala_JsonNode_free (JsonNode* self);
VALA_EXTERN gint proton_plus_models_runners_basic_get_asset_position (ProtonPlusModelsRunnersBasic* self);
VALA_EXTERN gboolean proton_plus_models_runner_get_asset_position_hwcaps_condition (ProtonPlusModelsRunner* self);
VALA_EXTERN gchar* proton_plus_utils_filesystem_get_file_content (const gchar* path,
                                                      gboolean use_uri);
VALA_EXTERN void proton_plus_utils_filesystem_create_file (const gchar* path,
                                               const gchar* content,
                                               gboolean private_mode);
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 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_latest_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsReleasesLatest, g_object_unref)
VALA_EXTERN ProtonPlusModelsReleasesLatest* proton_plus_models_releases_latest_new (ProtonPlusModelsRunnersBasic* runner,
                                                                        const gchar* title,
                                                                        const gchar* description,
                                                                        const gchar* release_date,
                                                                        const gchar* download_url,
                                                                        const gchar* page_url);
VALA_EXTERN ProtonPlusModelsReleasesLatest* proton_plus_models_releases_latest_construct (GType object_type,
                                                                              ProtonPlusModelsRunnersBasic* runner,
                                                                              const gchar* title,
                                                                              const gchar* description,
                                                                              const gchar* release_date,
                                                                              const gchar* download_url,
                                                                              const gchar* page_url);
VALA_EXTERN GType proton_plus_models_base_release_state_get_type (void) G_GNUC_CONST ;
VALA_EXTERN void proton_plus_models_base_release_set_state (ProtonPlusModelsBaseRelease* self,
                                                ProtonPlusModelsBaseReleaseState value);
VALA_EXTERN void proton_plus_models_base_release_install (ProtonPlusModelsBaseRelease* self,
                                              GAsyncReadyCallback _callback_,
                                              gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_models_base_release_install_finish (ProtonPlusModelsBaseRelease* self,
                                                         GAsyncResult* _res_);
VALA_EXTERN gboolean proton_plus_utils_filesystem_copy_symlink (const gchar* src_path,
                                                    const gchar* dest_path);
VALA_EXTERN ProtonPlusModelsRunner* proton_plus_models_runner_construct (GType object_type);
VALA_EXTERN void proton_plus_models_runner_set_title (ProtonPlusModelsRunner* self,
                                          const gchar* value);
VALA_EXTERN const gchar* proton_plus_models_runner_get_description (ProtonPlusModelsRunner* self);
VALA_EXTERN void proton_plus_models_runner_set_description (ProtonPlusModelsRunner* self,
                                                const gchar* value);
VALA_EXTERN void proton_plus_models_runner_set_group (ProtonPlusModelsRunner* self,
                                          ProtonPlusModelsGroup* value);
VALA_EXTERN gboolean proton_plus_models_runner_get_has_more (ProtonPlusModelsRunner* self);
VALA_EXTERN void proton_plus_models_runner_set_has_more (ProtonPlusModelsRunner* self,
                                             gboolean value);
VALA_EXTERN void proton_plus_models_runner_set_has_latest_support (ProtonPlusModelsRunner* self,
                                                       gboolean value);
VALA_EXTERN void proton_plus_models_runner_set_asset_position_hwcaps_condition (ProtonPlusModelsRunner* self,
                                                                    gboolean value);
VALA_EXTERN void proton_plus_models_runner_set_get_type (ProtonPlusModelsRunner* self,
                                             ProtonPlusUtilsWebGetType value);
static void proton_plus_models_runner_finalize (GObject * obj);
static GType proton_plus_models_runner_get_type_once (void);
static void _vala_proton_plus_models_runner_get_property (GObject * object,
                                                   guint property_id,
                                                   GValue * value,
                                                   GParamSpec * pspec);
static void _vala_proton_plus_models_runner_set_property (GObject * object,
                                                   guint property_id,
                                                   const GValue * value,
                                                   GParamSpec * pspec);
static void _vala_array_destroy (gpointer array,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);
static gssize _vala_array_length (gpointer array);

static inline gpointer
proton_plus_models_runner_get_instance_private (ProtonPlusModelsRunner* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusModelsRunner_private_offset);
}

static void
_g_object_unref0_ (gpointer var)
{
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
}

static inline void
_g_list_free__g_object_unref0_ (GList* self)
{
	g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
}

void
proton_plus_models_runner_load (ProtonPlusModelsRunner* self,
                                GAsyncReadyCallback _callback_,
                                gpointer _user_data_)
{
	ProtonPlusModelsRunnerClass* _klass_;
	_klass_ = PROTON_PLUS_MODELS_RUNNER_GET_CLASS (self);
	if (_klass_->load) {
		_klass_->load (self, _callback_, _user_data_);
	}
}

ProtonPlusReturnCode
proton_plus_models_runner_load_finish (ProtonPlusModelsRunner* self,
                                       GAsyncResult* _res_,
                                       GList** releases)
{
	ProtonPlusModelsRunnerClass* _klass_;
	_klass_ = PROTON_PLUS_MODELS_RUNNER_GET_CLASS (self);
	if (_klass_->load_finish) {
		return _klass_->load_finish (self, _res_, releases);
	}
	return 0;
}

static void
proton_plus_models_runner_check_for_updates_data_free (gpointer _data)
{
	ProtonPlusModelsRunnerCheckForUpdatesData* _data_;
	_data_ = _data;
	g_slice_free (ProtonPlusModelsRunnerCheckForUpdatesData, _data_);
}

void
proton_plus_models_runner_check_for_updates (GList* launchers,
                                             GAsyncReadyCallback _callback_,
                                             gpointer _user_data_)
{
	ProtonPlusModelsRunnerCheckForUpdatesData* _data_;
	_data_ = g_slice_new0 (ProtonPlusModelsRunnerCheckForUpdatesData);
	_data_->_async_result = g_task_new (NULL, NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, proton_plus_models_runner_check_for_updates_data_free);
	_data_->launchers = launchers;
	proton_plus_models_runner_check_for_updates_co (_data_);
}

ProtonPlusReturnCode
proton_plus_models_runner_check_for_updates_finish (GAsyncResult* _res_)
{
	ProtonPlusReturnCode result;
	ProtonPlusModelsRunnerCheckForUpdatesData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
	result = _data_->result;
	return result;
}

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

static void
proton_plus_models_runner_check_for_updates_ready (GObject* source_object,
                                                   GAsyncResult* _res_,
                                                   gpointer _user_data_)
{
	ProtonPlusModelsRunnerCheckForUpdatesData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_models_runner_check_for_updates_co (_data_);
}

static void
_g_free0_ (gpointer var)
{
	var = (g_free (var), NULL);
}

static inline void
_g_list_free__g_free0_ (GList* self)
{
	g_list_free_full (self, (GDestroyNotify) _g_free0_);
}

static gboolean
proton_plus_models_runner_check_for_updates_co (ProtonPlusModelsRunnerCheckForUpdatesData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->latest_runners = NULL;
	{
		_data_->launcher_collection = _data_->launchers;
		for (_data_->launcher_it = _data_->launcher_collection; _data_->launcher_it != NULL; _data_->launcher_it = _data_->launcher_it->next) {
			_data_->_tmp0_ = _g_object_ref0 ((ProtonPlusModelsLauncher*) _data_->launcher_it->data);
			_data_->launcher = _data_->_tmp0_;
			{
				_data_->_tmp1_ = _data_->launcher;
				_data_->_tmp2_ = _data_->_tmp1_->groups;
				_data_->_tmp2__length1 = _data_->_tmp1_->groups_length1;
				{
					_data_->group_collection_length1 = 0;
					_data_->_group_collection_size_ = 0;
					_data_->group_collection = _data_->_tmp2_;
					_data_->group_collection_length1 = _data_->_tmp2__length1;
					for (_data_->group_it = 0; _data_->group_it < _data_->group_collection_length1; _data_->group_it = _data_->group_it + 1) {
						_data_->_tmp3_ = _g_object_ref0 (_data_->group_collection[_data_->group_it]);
						_data_->group = _data_->_tmp3_;
						{
							_data_->_tmp4_ = _data_->group;
							_data_->_tmp5_ = proton_plus_models_group_get_compatibility_tool_directories (_data_->_tmp4_);
							_data_->directories = _data_->_tmp5_;
							_data_->_tmp6_ = _data_->group;
							_data_->_tmp7_ = _data_->_tmp6_->runners;
							{
								_data_->runner_collection = _data_->_tmp7_;
								for (_data_->runner_it = _data_->runner_collection; _data_->runner_it != NULL; _data_->runner_it = _data_->runner_it->next) {
									_data_->_tmp8_ = _g_object_ref0 ((ProtonPlusModelsRunner*) _data_->runner_it->data);
									_data_->runner = _data_->_tmp8_;
									{
										_data_->_tmp10_ = _data_->runner;
										_data_->_tmp11_ = _data_->_tmp10_->priv->_has_latest_support;
										if (!_data_->_tmp11_) {
											_data_->_tmp9_ = TRUE;
										} else {
											_data_->_tmp12_ = _data_->runner;
											_data_->_tmp9_ = !PROTON_PLUS_MODELS_RUNNERS_IS_BASIC (_data_->_tmp12_);
										}
										if (_data_->_tmp9_) {
											_g_object_unref0 (_data_->runner);
											continue;
										}
										_data_->_tmp13_ = _data_->directories;
										{
											_data_->directory_collection = _data_->_tmp13_;
											for (_data_->directory_it = _data_->directory_collection; _data_->directory_it != NULL; _data_->directory_it = _data_->directory_it->next) {
												_data_->_tmp14_ = g_strdup ((const gchar*) _data_->directory_it->data);
												_data_->directory = _data_->_tmp14_;
												{
													_data_->_tmp15_ = _data_->directory;
													_data_->_tmp16_ = _data_->runner;
													_data_->_tmp17_ = _data_->_tmp16_->priv->_title;
													_data_->_tmp18_ = g_strdup_printf ("%s Latest", _data_->_tmp17_);
													_data_->_tmp19_ = _data_->_tmp18_;
													_data_->_tmp20_ = g_strcmp0 (_data_->_tmp15_, _data_->_tmp19_) == 0;
													_g_free0 (_data_->_tmp19_);
													if (_data_->_tmp20_) {
														_data_->_tmp21_ = _data_->runner;
														_data_->_tmp22_ = _g_object_ref0 (PROTON_PLUS_MODELS_RUNNERS_IS_BASIC (_data_->_tmp21_) ? ((ProtonPlusModelsRunnersBasic*) _data_->_tmp21_) : NULL);
														_data_->latest_runners = g_list_append (_data_->latest_runners, _data_->_tmp22_);
														_g_free0 (_data_->directory);
														continue;
													}
													_data_->_tmp23_ = _data_->directory;
													_data_->_tmp24_ = _data_->runner;
													_data_->_tmp25_ = _data_->_tmp24_->priv->_title;
													_data_->_tmp26_ = g_strdup_printf ("%s Latest Backup", _data_->_tmp25_);
													_data_->_tmp27_ = _data_->_tmp26_;
													_data_->_tmp28_ = g_strcmp0 (_data_->_tmp23_, _data_->_tmp27_) == 0;
													_g_free0 (_data_->_tmp27_);
													if (_data_->_tmp28_) {
														_data_->_tmp29_ = _data_->launcher;
														_data_->_tmp30_ = _data_->_tmp29_->directory;
														_data_->_tmp31_ = _data_->group;
														_data_->_tmp32_ = proton_plus_models_group_get_directory (_data_->_tmp31_);
														_data_->_tmp33_ = _data_->_tmp32_;
														_data_->_tmp34_ = _data_->runner;
														_data_->_tmp35_ = _data_->_tmp34_->priv->_title;
														_data_->_tmp36_ = g_strdup_printf ("%s/%s/%s Latest Backup", _data_->_tmp30_, _data_->_tmp33_, _data_->_tmp35_);
														_data_->_tmp37_ = _data_->_tmp36_;
														_data_->_state_ = 1;
														proton_plus_utils_filesystem_delete_directory (_data_->_tmp37_, proton_plus_models_runner_check_for_updates_ready, _data_);
														return FALSE;
														_state_1:
														_data_->_tmp38_ = proton_plus_utils_filesystem_delete_directory_finish (_data_->_res_);
														_g_free0 (_data_->_tmp37_);
														_data_->deleted_old_backup = _data_->_tmp38_;
														if (!_data_->deleted_old_backup) {
															_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
															_g_free0 (_data_->directory);
															_g_object_unref0 (_data_->runner);
															(_data_->directories == NULL) ? NULL : (_data_->directories = (_g_list_free__g_free0_ (_data_->directories), NULL));
															_g_object_unref0 (_data_->group);
															_g_object_unref0 (_data_->launcher);
															(_data_->latest_runners == NULL) ? NULL : (_data_->latest_runners = (_g_list_free__g_object_unref0_ (_data_->latest_runners), NULL));
															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_->directory);
														continue;
													}
													_g_free0 (_data_->directory);
												}
											}
										}
										_g_object_unref0 (_data_->runner);
									}
								}
							}
							(_data_->directories == NULL) ? NULL : (_data_->directories = (_g_list_free__g_free0_ (_data_->directories), NULL));
							_g_object_unref0 (_data_->group);
						}
					}
				}
				_g_object_unref0 (_data_->launcher);
			}
		}
	}
	_data_->_tmp39_ = _data_->latest_runners;
	if (g_list_length (_data_->_tmp39_) == ((guint) 0)) {
		_data_->result = PROTON_PLUS_RETURN_CODE_NOTHING_TO_UPDATE;
		(_data_->latest_runners == NULL) ? NULL : (_data_->latest_runners = (_g_list_free__g_object_unref0_ (_data_->latest_runners), NULL));
		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_->updated_count = 0;
	_data_->_tmp40_ = _data_->latest_runners;
	{
		_data_->_vala1_runner_collection = _data_->_tmp40_;
		for (_data_->_vala1_runner_it = _data_->_vala1_runner_collection; _data_->_vala1_runner_it != NULL; _data_->_vala1_runner_it = _data_->_vala1_runner_it->next) {
			_data_->_tmp41_ = _g_object_ref0 ((ProtonPlusModelsRunnersBasic*) _data_->_vala1_runner_it->data);
			_data_->_vala1_runner = _data_->_tmp41_;
			{
				_data_->_tmp42_ = _data_->_vala1_runner;
				_data_->_state_ = 2;
				proton_plus_models_runner_update_specific_runner (_data_->_tmp42_, proton_plus_models_runner_check_for_updates_ready, _data_);
				return FALSE;
				_state_2:
				_data_->code = proton_plus_models_runner_update_specific_runner_finish (_data_->_res_);
				if (_data_->code == PROTON_PLUS_RETURN_CODE_RUNNER_UPDATED) {
					_data_->_tmp43_ = _data_->updated_count;
					_data_->updated_count = _data_->_tmp43_ + 1;
				} else {
					if (_data_->code != PROTON_PLUS_RETURN_CODE_NOTHING_TO_UPDATE) {
						_data_->result = _data_->code;
						_g_object_unref0 (_data_->_vala1_runner);
						(_data_->latest_runners == NULL) ? NULL : (_data_->latest_runners = (_g_list_free__g_object_unref0_ (_data_->latest_runners), NULL));
						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_object_unref0 (_data_->_vala1_runner);
			}
		}
	}
	if (_data_->updated_count > 0) {
		_data_->_tmp44_ = PROTON_PLUS_RETURN_CODE_RUNNERS_UPDATED;
	} else {
		_data_->_tmp44_ = PROTON_PLUS_RETURN_CODE_NOTHING_TO_UPDATE;
	}
	_data_->result = _data_->_tmp44_;
	(_data_->latest_runners == NULL) ? NULL : (_data_->latest_runners = (_g_list_free__g_object_unref0_ (_data_->latest_runners), NULL));
	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 void
proton_plus_models_runner_update_specific_runner_data_free (gpointer _data)
{
	ProtonPlusModelsRunnerUpdateSpecificRunnerData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->runner);
	g_slice_free (ProtonPlusModelsRunnerUpdateSpecificRunnerData, _data_);
}

void
proton_plus_models_runner_update_specific_runner (ProtonPlusModelsRunnersBasic* runner,
                                                  GAsyncReadyCallback _callback_,
                                                  gpointer _user_data_)
{
	ProtonPlusModelsRunnerUpdateSpecificRunnerData* _data_;
	ProtonPlusModelsRunnersBasic* _tmp0_;
	g_return_if_fail (runner != NULL);
	_data_ = g_slice_new0 (ProtonPlusModelsRunnerUpdateSpecificRunnerData);
	_data_->_async_result = g_task_new (NULL, NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, proton_plus_models_runner_update_specific_runner_data_free);
	_tmp0_ = _g_object_ref0 (runner);
	_g_object_unref0 (_data_->runner);
	_data_->runner = _tmp0_;
	proton_plus_models_runner_update_specific_runner_co (_data_);
}

ProtonPlusReturnCode
proton_plus_models_runner_update_specific_runner_finish (GAsyncResult* _res_)
{
	ProtonPlusReturnCode result;
	ProtonPlusModelsRunnerUpdateSpecificRunnerData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
	result = _data_->result;
	return result;
}

static void
proton_plus_models_runner_update_specific_runner_ready (GObject* source_object,
                                                        GAsyncResult* _res_,
                                                        gpointer _user_data_)
{
	ProtonPlusModelsRunnerUpdateSpecificRunnerData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_models_runner_update_specific_runner_co (_data_);
}

static void
_vala_JsonNode_free (JsonNode* self)
{
	g_boxed_free (json_node_get_type (), self);
}

static gpointer
_json_array_ref0 (gpointer self)
{
	return self ? json_array_ref (self) : NULL;
}

static gpointer
_json_object_ref0 (gpointer self)
{
	return self ? json_object_ref (self) : NULL;
}

static gchar*
string_strip (const gchar* self)
{
	gchar* _result_ = NULL;
	gchar* _tmp0_;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = g_strdup (self);
	_result_ = _tmp0_;
	g_strstrip (_result_);
	result = _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 gint
string_index_of (const gchar* self,
                 const gchar* needle,
                 gint start_index)
{
	gchar* _result_ = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gint result;
	g_return_val_if_fail (self != NULL, -1);
	g_return_val_if_fail (needle != NULL, -1);
	_tmp0_ = strstr (((gchar*) self) + start_index, (gchar*) needle);
	_result_ = _tmp0_;
	_tmp1_ = _result_;
	if (_tmp1_ != NULL) {
		gchar* _tmp2_;
		_tmp2_ = _result_;
		result = (gint) (_tmp2_ - ((gchar*) self));
		return result;
	} else {
		result = -1;
		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 gboolean
proton_plus_models_runner_update_specific_runner_co (ProtonPlusModelsRunnerUpdateSpecificRunnerData* _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;
		case 6:
		goto _state_6;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = ((ProtonPlusModelsRunner*) _data_->runner)->priv->_get_type;
	switch (_data_->_tmp0_) {
		case PROTON_PLUS_UTILS_WEB_GET_TYPE_FORGEJO:
		{
			_data_->_tmp1_ = g_strdup ("limit=1");
			_g_free0 (_data_->query_param);
			_data_->query_param = _data_->_tmp1_;
			break;
		}
		default:
		case PROTON_PLUS_UTILS_WEB_GET_TYPE_GITHUB:
		case PROTON_PLUS_UTILS_WEB_GET_TYPE_GITLAB:
		{
			_data_->_tmp2_ = g_strdup ("per_page=1");
			_g_free0 (_data_->query_param);
			_data_->query_param = _data_->_tmp2_;
			break;
		}
	}
	_data_->_tmp3_ = ((ProtonPlusModelsRunner*) _data_->runner)->priv->_group;
	_data_->_tmp4_ = proton_plus_models_group_get_launcher (_data_->_tmp3_);
	_data_->_tmp5_ = _data_->_tmp4_;
	_data_->_tmp6_ = _data_->_tmp5_->directory;
	_data_->_tmp7_ = ((ProtonPlusModelsRunner*) _data_->runner)->priv->_group;
	_data_->_tmp8_ = proton_plus_models_group_get_directory (_data_->_tmp7_);
	_data_->_tmp9_ = _data_->_tmp8_;
	_data_->_tmp10_ = g_strdup_printf ("%s%s", _data_->_tmp6_, _data_->_tmp9_);
	_data_->base_runner_directory = _data_->_tmp10_;
	_data_->_tmp11_ = _data_->base_runner_directory;
	_data_->_tmp12_ = ((ProtonPlusModelsRunner*) _data_->runner)->priv->_title;
	_data_->_tmp13_ = g_strdup_printf ("%s/%s Latest", _data_->_tmp11_, _data_->_tmp12_);
	_data_->runner_directory = _data_->_tmp13_;
	_data_->_tmp14_ = _data_->runner_directory;
	_data_->_tmp15_ = g_strdup_printf ("%s/.protonplus_tag", _data_->_tmp14_);
	_data_->tag_path = _data_->_tmp15_;
	_data_->_tmp16_ = proton_plus_models_runners_basic_get_endpoint (_data_->runner);
	_data_->_tmp17_ = _data_->_tmp16_;
	_data_->_tmp18_ = _data_->query_param;
	_data_->_tmp19_ = g_strdup_printf ("%s?%s", _data_->_tmp17_, _data_->_tmp18_);
	_data_->_tmp20_ = _data_->_tmp19_;
	_data_->_tmp21_ = ((ProtonPlusModelsRunner*) _data_->runner)->priv->_get_type;
	_data_->_tmp22_ = NULL;
	_data_->_state_ = 1;
	proton_plus_utils_web_get_request (_data_->_tmp20_, _data_->_tmp21_, proton_plus_models_runner_update_specific_runner_ready, _data_);
	return FALSE;
	_state_1:
	_data_->_tmp23_ = proton_plus_utils_web_get_request_finish (_data_->_res_, &_data_->_tmp22_);
	_g_free0 (_data_->response);
	_data_->response = _data_->_tmp22_;
	_data_->_tmp24_ = _data_->_tmp23_;
	_g_free0 (_data_->_tmp20_);
	_data_->code = _data_->_tmp24_;
	if (_data_->code != PROTON_PLUS_RETURN_CODE_VALID_REQUEST) {
		_data_->_tmp25_ = _data_->tag_path;
		if (g_file_test (_data_->_tmp25_, G_FILE_TEST_IS_REGULAR)) {
			_data_->result = PROTON_PLUS_RETURN_CODE_NOTHING_TO_UPDATE;
			_g_free0 (_data_->tag_path);
			_g_free0 (_data_->runner_directory);
			_g_free0 (_data_->base_runner_directory);
			_g_free0 (_data_->query_param);
			_g_free0 (_data_->response);
			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_->result = _data_->code;
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp26_ = _data_->response;
	_data_->_tmp27_ = proton_plus_utils_parser_get_node_from_json (_data_->_tmp26_);
	_data_->root_node = _data_->_tmp27_;
	_data_->_tmp28_ = _data_->root_node;
	if (_data_->_tmp28_ == NULL) {
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp29_ = _data_->root_node;
	if (json_node_get_node_type (_data_->_tmp29_) != JSON_NODE_ARRAY) {
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp30_ = _data_->root_node;
	_data_->_tmp31_ = json_node_get_array (_data_->_tmp30_);
	_data_->_tmp32_ = _json_array_ref0 (_data_->_tmp31_);
	_data_->root_array = _data_->_tmp32_;
	_data_->_tmp33_ = _data_->root_array;
	if (_data_->_tmp33_ == NULL) {
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp34_ = _data_->root_array;
	if (json_array_get_length (_data_->_tmp34_) != ((guint) 1)) {
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp35_ = _data_->root_array;
	_data_->_tmp36_ = json_array_get_object_element (_data_->_tmp35_, (guint) 0);
	_data_->_tmp37_ = _json_object_ref0 (_data_->_tmp36_);
	_data_->object = _data_->_tmp37_;
	_data_->_tmp38_ = _data_->object;
	_data_->_tmp39_ = json_object_get_array_member (_data_->_tmp38_, "assets");
	_data_->_tmp40_ = _json_array_ref0 (_data_->_tmp39_);
	_data_->asset_array = _data_->_tmp40_;
	_data_->_tmp41_ = _data_->asset_array;
	if (_data_->_tmp41_ == NULL) {
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		_json_array_unref0 (_data_->asset_array);
		_json_object_unref0 (_data_->object);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp42_ = _data_->object;
	_data_->_tmp43_ = json_object_get_string_member (_data_->_tmp42_, "tag_name");
	_data_->_tmp44_ = g_strdup (_data_->_tmp43_);
	_data_->title = _data_->_tmp44_;
	_data_->_tmp45_ = _data_->object;
	_data_->_tmp46_ = json_object_get_string_member (_data_->_tmp45_, "body");
	_data_->_tmp47_ = string_strip (_data_->_tmp46_);
	_data_->description = _data_->_tmp47_;
	_data_->_tmp48_ = _data_->object;
	_data_->_tmp49_ = json_object_get_string_member (_data_->_tmp48_, "html_url");
	_data_->_tmp50_ = g_strdup (_data_->_tmp49_);
	_data_->page_url = _data_->_tmp50_;
	_data_->_tmp51_ = _data_->object;
	_data_->_tmp52_ = json_object_get_string_member (_data_->_tmp51_, "created_at");
	_data_->_tmp54_ = _data_->_tmp53_ = g_strsplit (_data_->_tmp52_, "T", 0);
	_data_->_tmp55_ = _data_->_tmp54_;
	_data_->_tmp55__length1 = _vala_array_length (_data_->_tmp53_);
	_data_->_tmp56_ = _data_->_tmp55_[0];
	_data_->_tmp57_ = g_strdup (_data_->_tmp56_);
	_data_->_tmp58_ = _data_->_tmp57_;
	_data_->_tmp55_ = (_vala_array_free (_data_->_tmp55_, _data_->_tmp55__length1, (GDestroyNotify) g_free), NULL);
	_data_->release_date = _data_->_tmp58_;
	_data_->_tmp59_ = g_strdup ("");
	_data_->download_url = _data_->_tmp59_;
	_data_->_tmp60_ = proton_plus_models_runners_basic_get_asset_position (_data_->runner);
	_data_->_tmp61_ = _data_->_tmp60_;
	_data_->real_asset_position = _data_->_tmp61_;
	_data_->_tmp62_ = ((ProtonPlusModelsRunner*) _data_->runner)->priv->_asset_position_hwcaps_condition;
	if (_data_->_tmp62_) {
		{
			_data_->y = 0;
			{
				_data_->_tmp63_ = TRUE;
				while (TRUE) {
					if (!_data_->_tmp63_) {
						_data_->_tmp64_ = _data_->y;
						_data_->y = _data_->_tmp64_ + 1;
					}
					_data_->_tmp63_ = FALSE;
					_data_->_tmp65_ = _data_->asset_array;
					if (!(((guint) _data_->y) < json_array_get_length (_data_->_tmp65_))) {
						break;
					}
					_data_->_tmp66_ = _data_->asset_array;
					_data_->_tmp67_ = json_array_get_object_element (_data_->_tmp66_, (guint) _data_->y);
					_data_->_tmp68_ = _json_object_ref0 (_data_->_tmp67_);
					_data_->asset_object = _data_->_tmp68_;
					_data_->_tmp69_ = _data_->asset_object;
					_data_->_tmp70_ = json_object_get_string_member (_data_->_tmp69_, "name");
					_data_->_tmp71_ = proton_plus_globals_HWCAPS;
					_data_->_tmp72_ = g_list_nth_data (_data_->_tmp71_, (guint) 0);
					_data_->_tmp73_ = g_strdup_printf ("%s.tar.xz", (const gchar*) _data_->_tmp72_);
					_data_->_tmp74_ = _data_->_tmp73_;
					_data_->_tmp75_ = string_contains (_data_->_tmp70_, _data_->_tmp74_);
					_g_free0 (_data_->_tmp74_);
					if (_data_->_tmp75_) {
						_data_->real_asset_position = _data_->y;
						_json_object_unref0 (_data_->asset_object);
						break;
					}
					_json_object_unref0 (_data_->asset_object);
				}
			}
		}
	}
	_data_->_tmp76_ = _data_->asset_array;
	if ((json_array_get_length (_data_->_tmp76_) - 1) >= ((guint) _data_->real_asset_position)) {
		_data_->_tmp77_ = _data_->asset_array;
		_data_->_tmp78_ = json_array_get_object_element (_data_->_tmp77_, (guint) _data_->real_asset_position);
		_data_->_tmp79_ = _json_object_ref0 (_data_->_tmp78_);
		_data_->_vala1_asset_object = _data_->_tmp79_;
		_data_->_tmp80_ = _data_->_vala1_asset_object;
		_data_->_tmp81_ = json_object_get_string_member (_data_->_tmp80_, "browser_download_url");
		_data_->_tmp82_ = g_strdup (_data_->_tmp81_);
		_g_free0 (_data_->download_url);
		_data_->download_url = _data_->_tmp82_;
		_json_object_unref0 (_data_->_vala1_asset_object);
	}
	_data_->_tmp84_ = _data_->download_url;
	if (g_strcmp0 (_data_->_tmp84_, "") == 0) {
		_data_->_tmp83_ = TRUE;
	} else {
		_data_->_tmp85_ = _data_->download_url;
		_data_->_tmp83_ = !string_contains (_data_->_tmp85_, ".tar");
	}
	if (_data_->_tmp83_) {
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		_g_free0 (_data_->download_url);
		_g_free0 (_data_->release_date);
		_g_free0 (_data_->page_url);
		_g_free0 (_data_->description);
		_g_free0 (_data_->title);
		_json_array_unref0 (_data_->asset_array);
		_json_object_unref0 (_data_->object);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp86_ = _data_->tag_path;
	if (g_file_test (_data_->_tmp86_, G_FILE_TEST_IS_REGULAR)) {
		_data_->_tmp87_ = _data_->tag_path;
		_data_->_tmp88_ = proton_plus_utils_filesystem_get_file_content (_data_->_tmp87_, FALSE);
		_data_->_tmp89_ = _data_->_tmp88_;
		_data_->_tmp90_ = string_strip (_data_->_tmp89_);
		_data_->_tmp91_ = _data_->_tmp90_;
		_g_free0 (_data_->_tmp89_);
		_data_->stored_tag = _data_->_tmp91_;
		_data_->_tmp93_ = _data_->stored_tag;
		if (g_strcmp0 (_data_->_tmp93_, "") != 0) {
			_data_->_tmp94_ = _data_->title;
			_data_->_tmp95_ = _data_->stored_tag;
			_data_->_tmp92_ = g_strcmp0 (_data_->_tmp94_, _data_->_tmp95_) == 0;
		} else {
			_data_->_tmp92_ = FALSE;
		}
		if (_data_->_tmp92_) {
			_data_->result = PROTON_PLUS_RETURN_CODE_NOTHING_TO_UPDATE;
			_g_free0 (_data_->stored_tag);
			_g_free0 (_data_->download_url);
			_g_free0 (_data_->release_date);
			_g_free0 (_data_->page_url);
			_g_free0 (_data_->description);
			_g_free0 (_data_->title);
			_json_array_unref0 (_data_->asset_array);
			_json_object_unref0 (_data_->object);
			_json_array_unref0 (_data_->root_array);
			__vala_JsonNode_free0 (_data_->root_node);
			_g_free0 (_data_->tag_path);
			_g_free0 (_data_->runner_directory);
			_g_free0 (_data_->base_runner_directory);
			_g_free0 (_data_->query_param);
			_g_free0 (_data_->response);
			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_->stored_tag);
	}
	_data_->_tmp96_ = _data_->runner_directory;
	_data_->_tmp97_ = g_strdup_printf ("%s/version", _data_->_tmp96_);
	_data_->_tmp98_ = _data_->_tmp97_;
	_data_->_tmp99_ = proton_plus_utils_filesystem_get_file_content (_data_->_tmp98_, FALSE);
	_data_->_tmp100_ = _data_->_tmp99_;
	_g_free0 (_data_->_tmp98_);
	_data_->version_content = _data_->_tmp100_;
	_data_->_tmp101_ = _data_->version_content;
	if (g_strcmp0 (_data_->_tmp101_, "") == 0) {
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		_g_free0 (_data_->version_content);
		_g_free0 (_data_->download_url);
		_g_free0 (_data_->release_date);
		_g_free0 (_data_->page_url);
		_g_free0 (_data_->description);
		_g_free0 (_data_->title);
		_json_array_unref0 (_data_->asset_array);
		_json_object_unref0 (_data_->object);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp102_ = _data_->version_content;
	_data_->_tmp104_ = _data_->_tmp103_ = g_strsplit (_data_->_tmp102_, " ", 0);
	_data_->_tmp105_ = _data_->_tmp104_;
	_data_->_tmp105__length1 = _vala_array_length (_data_->_tmp103_);
	_data_->_tmp106_ = _data_->_tmp105_[1];
	_data_->_tmp107_ = string_strip (_data_->_tmp106_);
	_data_->_tmp108_ = _data_->_tmp107_;
	_data_->_tmp105_ = (_vala_array_free (_data_->_tmp105_, _data_->_tmp105__length1, (GDestroyNotify) g_free), NULL);
	_data_->version_title = _data_->_tmp108_;
	_data_->_tmp109_ = _data_->runner_directory;
	_data_->_tmp110_ = g_strdup_printf ("%s/proton", _data_->_tmp109_);
	_data_->_tmp111_ = _data_->_tmp110_;
	_data_->_tmp112_ = proton_plus_utils_filesystem_get_file_content (_data_->_tmp111_, FALSE);
	_data_->_tmp113_ = _data_->_tmp112_;
	_g_free0 (_data_->_tmp111_);
	_data_->proton_content = _data_->_tmp113_;
	_data_->_tmp114_ = _data_->proton_content;
	if (g_strcmp0 (_data_->_tmp114_, "") == 0) {
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		_g_free0 (_data_->proton_content);
		_g_free0 (_data_->version_title);
		_g_free0 (_data_->version_content);
		_g_free0 (_data_->download_url);
		_g_free0 (_data_->release_date);
		_g_free0 (_data_->page_url);
		_g_free0 (_data_->description);
		_g_free0 (_data_->title);
		_json_array_unref0 (_data_->asset_array);
		_json_object_unref0 (_data_->object);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp115_ = g_strdup ("CURRENT_PREFIX_VERSION=\"");
	_data_->proton_start_word = _data_->_tmp115_;
	_data_->_tmp116_ = _data_->proton_content;
	_data_->_tmp117_ = _data_->proton_start_word;
	_data_->proton_start_index = string_index_of (_data_->_tmp116_, _data_->_tmp117_, 0);
	if (_data_->proton_start_index == -1) {
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		_g_free0 (_data_->proton_start_word);
		_g_free0 (_data_->proton_content);
		_g_free0 (_data_->version_title);
		_g_free0 (_data_->version_content);
		_g_free0 (_data_->download_url);
		_g_free0 (_data_->release_date);
		_g_free0 (_data_->page_url);
		_g_free0 (_data_->description);
		_g_free0 (_data_->title);
		_json_array_unref0 (_data_->asset_array);
		_json_object_unref0 (_data_->object);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp118_ = _data_->proton_start_word;
	_data_->_tmp119_ = strlen (_data_->_tmp118_);
	_data_->_tmp120_ = _data_->_tmp119_;
	_data_->proton_start_index += _data_->_tmp120_;
	_data_->_tmp121_ = _data_->proton_content;
	_data_->proton_end_index = string_index_of (_data_->_tmp121_, "\"", _data_->proton_start_index);
	if (_data_->proton_end_index == -1) {
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		_g_free0 (_data_->proton_start_word);
		_g_free0 (_data_->proton_content);
		_g_free0 (_data_->version_title);
		_g_free0 (_data_->version_content);
		_g_free0 (_data_->download_url);
		_g_free0 (_data_->release_date);
		_g_free0 (_data_->page_url);
		_g_free0 (_data_->description);
		_g_free0 (_data_->title);
		_json_array_unref0 (_data_->asset_array);
		_json_object_unref0 (_data_->object);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp122_ = _data_->proton_content;
	_data_->_tmp123_ = string_substring (_data_->_tmp122_, (glong) _data_->proton_start_index, (glong) (_data_->proton_end_index - _data_->proton_start_index));
	_data_->proton_title = _data_->_tmp123_;
	_data_->_tmp125_ = _data_->title;
	_data_->_tmp126_ = _data_->version_title;
	if (g_strcmp0 (_data_->_tmp125_, _data_->_tmp126_) == 0) {
		_data_->_tmp124_ = TRUE;
	} else {
		_data_->_tmp127_ = _data_->title;
		_data_->_tmp128_ = _data_->proton_title;
		_data_->_tmp124_ = g_strcmp0 (_data_->_tmp127_, _data_->_tmp128_) == 0;
	}
	if (_data_->_tmp124_) {
		_data_->_tmp129_ = _data_->tag_path;
		_data_->_tmp130_ = _data_->title;
		proton_plus_utils_filesystem_create_file (_data_->_tmp129_, _data_->_tmp130_, FALSE);
		_data_->result = PROTON_PLUS_RETURN_CODE_NOTHING_TO_UPDATE;
		_g_free0 (_data_->proton_title);
		_g_free0 (_data_->proton_start_word);
		_g_free0 (_data_->proton_content);
		_g_free0 (_data_->version_title);
		_g_free0 (_data_->version_content);
		_g_free0 (_data_->download_url);
		_g_free0 (_data_->release_date);
		_g_free0 (_data_->page_url);
		_g_free0 (_data_->description);
		_g_free0 (_data_->title);
		_json_array_unref0 (_data_->asset_array);
		_json_object_unref0 (_data_->object);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp131_ = _data_->base_runner_directory;
	_data_->_tmp132_ = ((ProtonPlusModelsRunner*) _data_->runner)->priv->_title;
	_data_->_tmp133_ = g_strdup_printf ("%s/%s Latest Backup", _data_->_tmp131_, _data_->_tmp132_);
	_data_->backup_runner_directory = _data_->_tmp133_;
	_data_->_tmp134_ = _data_->runner_directory;
	_data_->_tmp135_ = _data_->backup_runner_directory;
	_data_->_state_ = 2;
	proton_plus_utils_filesystem_move_directory (_data_->_tmp134_, _data_->_tmp135_, proton_plus_models_runner_update_specific_runner_ready, _data_);
	return FALSE;
	_state_2:
	_data_->moved = proton_plus_utils_filesystem_move_directory_finish (_data_->_res_);
	if (!_data_->moved) {
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		_g_free0 (_data_->backup_runner_directory);
		_g_free0 (_data_->proton_title);
		_g_free0 (_data_->proton_start_word);
		_g_free0 (_data_->proton_content);
		_g_free0 (_data_->version_title);
		_g_free0 (_data_->version_content);
		_g_free0 (_data_->download_url);
		_g_free0 (_data_->release_date);
		_g_free0 (_data_->page_url);
		_g_free0 (_data_->description);
		_g_free0 (_data_->title);
		_json_array_unref0 (_data_->asset_array);
		_json_object_unref0 (_data_->object);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp136_ = ((ProtonPlusModelsRunner*) _data_->runner)->priv->_title;
	_data_->_tmp137_ = g_strdup_printf ("%s Latest", _data_->_tmp136_);
	_data_->_tmp138_ = _data_->_tmp137_;
	_data_->_tmp139_ = _data_->description;
	_data_->_tmp140_ = _data_->release_date;
	_data_->_tmp141_ = _data_->download_url;
	_data_->_tmp142_ = _data_->page_url;
	_data_->_tmp143_ = proton_plus_models_releases_latest_new (PROTON_PLUS_MODELS_RUNNERS_IS_BASIC (_data_->runner) ? ((ProtonPlusModelsRunnersBasic*) _data_->runner) : NULL, _data_->_tmp138_, _data_->_tmp139_, _data_->_tmp140_, _data_->_tmp141_, _data_->_tmp142_);
	_data_->_tmp144_ = _data_->_tmp143_;
	_g_free0 (_data_->_tmp138_);
	_data_->release = _data_->_tmp144_;
	_data_->_tmp145_ = _data_->release;
	proton_plus_models_base_release_set_state ((ProtonPlusModelsBaseRelease*) _data_->_tmp145_, PROTON_PLUS_MODELS_BASE_RELEASE_STATE_BUSY_UPDATING);
	_data_->_tmp146_ = _data_->release;
	_data_->_state_ = 3;
	proton_plus_models_base_release_install ((ProtonPlusModelsBaseRelease*) _data_->_tmp146_, proton_plus_models_runner_update_specific_runner_ready, _data_);
	return FALSE;
	_state_3:
	_data_->installed = proton_plus_models_base_release_install_finish ((ProtonPlusModelsBaseRelease*) _data_->_tmp146_, _data_->_res_);
	if (!_data_->installed) {
		_data_->_tmp147_ = _data_->runner_directory;
		_data_->_state_ = 4;
		proton_plus_utils_filesystem_delete_directory (_data_->_tmp147_, proton_plus_models_runner_update_specific_runner_ready, _data_);
		return FALSE;
		_state_4:
		_data_->deleted = proton_plus_utils_filesystem_delete_directory_finish (_data_->_res_);
		if (_data_->deleted) {
			_data_->_tmp148_ = _data_->backup_runner_directory;
			_data_->_tmp149_ = _data_->runner_directory;
			_data_->_state_ = 5;
			proton_plus_utils_filesystem_move_directory (_data_->_tmp148_, _data_->_tmp149_, proton_plus_models_runner_update_specific_runner_ready, _data_);
			return FALSE;
			_state_5:
			proton_plus_utils_filesystem_move_directory_finish (_data_->_res_);
		}
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		_g_object_unref0 (_data_->release);
		_g_free0 (_data_->backup_runner_directory);
		_g_free0 (_data_->proton_title);
		_g_free0 (_data_->proton_start_word);
		_g_free0 (_data_->proton_content);
		_g_free0 (_data_->version_title);
		_g_free0 (_data_->version_content);
		_g_free0 (_data_->download_url);
		_g_free0 (_data_->release_date);
		_g_free0 (_data_->page_url);
		_g_free0 (_data_->description);
		_g_free0 (_data_->title);
		_json_array_unref0 (_data_->asset_array);
		_json_object_unref0 (_data_->object);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->_tmp150_ = _data_->backup_runner_directory;
	_data_->_tmp151_ = g_strdup_printf ("%s/user_settings.py", _data_->_tmp150_);
	_data_->backup_settings_path = _data_->_tmp151_;
	_data_->_tmp152_ = _data_->backup_settings_path;
	_data_->backup_settings_exists = g_file_test (_data_->_tmp152_, G_FILE_TEST_IS_REGULAR);
	if (_data_->backup_settings_exists) {
		_data_->_tmp154_ = _data_->backup_settings_path;
		_data_->_tmp153_ = g_file_test (_data_->_tmp154_, G_FILE_TEST_IS_SYMLINK);
	} else {
		_data_->_tmp153_ = FALSE;
	}
	_data_->backup_settings_is_symlink = _data_->_tmp153_;
	if (_data_->backup_settings_exists) {
		_data_->_tmp155_ = _data_->runner_directory;
		_data_->_tmp156_ = g_strdup_printf ("%s/user_settings.py", _data_->_tmp155_);
		_data_->settings_path = _data_->_tmp156_;
		if (_data_->backup_settings_is_symlink) {
			_data_->_tmp157_ = _data_->backup_settings_path;
			_data_->_tmp158_ = _data_->settings_path;
			_data_->copied = proton_plus_utils_filesystem_copy_symlink (_data_->_tmp157_, _data_->_tmp158_);
			if (!_data_->copied) {
				_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
				_g_free0 (_data_->settings_path);
				_g_free0 (_data_->backup_settings_path);
				_g_object_unref0 (_data_->release);
				_g_free0 (_data_->backup_runner_directory);
				_g_free0 (_data_->proton_title);
				_g_free0 (_data_->proton_start_word);
				_g_free0 (_data_->proton_content);
				_g_free0 (_data_->version_title);
				_g_free0 (_data_->version_content);
				_g_free0 (_data_->download_url);
				_g_free0 (_data_->release_date);
				_g_free0 (_data_->page_url);
				_g_free0 (_data_->description);
				_g_free0 (_data_->title);
				_json_array_unref0 (_data_->asset_array);
				_json_object_unref0 (_data_->object);
				_json_array_unref0 (_data_->root_array);
				__vala_JsonNode_free0 (_data_->root_node);
				_g_free0 (_data_->tag_path);
				_g_free0 (_data_->runner_directory);
				_g_free0 (_data_->base_runner_directory);
				_g_free0 (_data_->query_param);
				_g_free0 (_data_->response);
				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;
			}
		} else {
			_data_->_tmp159_ = _data_->settings_path;
			_data_->_tmp160_ = _data_->backup_settings_path;
			_data_->_tmp161_ = proton_plus_utils_filesystem_get_file_content (_data_->_tmp160_, FALSE);
			_data_->_tmp162_ = _data_->_tmp161_;
			proton_plus_utils_filesystem_create_file (_data_->_tmp159_, _data_->_tmp162_, FALSE);
			_g_free0 (_data_->_tmp162_);
		}
		_g_free0 (_data_->settings_path);
	}
	_data_->_tmp163_ = _data_->tag_path;
	_data_->_tmp164_ = _data_->title;
	proton_plus_utils_filesystem_create_file (_data_->_tmp163_, _data_->_tmp164_, FALSE);
	_data_->_tmp165_ = _data_->backup_runner_directory;
	_data_->_state_ = 6;
	proton_plus_utils_filesystem_delete_directory (_data_->_tmp165_, proton_plus_models_runner_update_specific_runner_ready, _data_);
	return FALSE;
	_state_6:
	_data_->_vala1_deleted = proton_plus_utils_filesystem_delete_directory_finish (_data_->_res_);
	if (!_data_->_vala1_deleted) {
		_data_->result = PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR;
		_g_free0 (_data_->backup_settings_path);
		_g_object_unref0 (_data_->release);
		_g_free0 (_data_->backup_runner_directory);
		_g_free0 (_data_->proton_title);
		_g_free0 (_data_->proton_start_word);
		_g_free0 (_data_->proton_content);
		_g_free0 (_data_->version_title);
		_g_free0 (_data_->version_content);
		_g_free0 (_data_->download_url);
		_g_free0 (_data_->release_date);
		_g_free0 (_data_->page_url);
		_g_free0 (_data_->description);
		_g_free0 (_data_->title);
		_json_array_unref0 (_data_->asset_array);
		_json_object_unref0 (_data_->object);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->tag_path);
		_g_free0 (_data_->runner_directory);
		_g_free0 (_data_->base_runner_directory);
		_g_free0 (_data_->query_param);
		_g_free0 (_data_->response);
		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_->result = PROTON_PLUS_RETURN_CODE_RUNNER_UPDATED;
	_g_free0 (_data_->backup_settings_path);
	_g_object_unref0 (_data_->release);
	_g_free0 (_data_->backup_runner_directory);
	_g_free0 (_data_->proton_title);
	_g_free0 (_data_->proton_start_word);
	_g_free0 (_data_->proton_content);
	_g_free0 (_data_->version_title);
	_g_free0 (_data_->version_content);
	_g_free0 (_data_->download_url);
	_g_free0 (_data_->release_date);
	_g_free0 (_data_->page_url);
	_g_free0 (_data_->description);
	_g_free0 (_data_->title);
	_json_array_unref0 (_data_->asset_array);
	_json_object_unref0 (_data_->object);
	_json_array_unref0 (_data_->root_array);
	__vala_JsonNode_free0 (_data_->root_node);
	_g_free0 (_data_->tag_path);
	_g_free0 (_data_->runner_directory);
	_g_free0 (_data_->base_runner_directory);
	_g_free0 (_data_->query_param);
	_g_free0 (_data_->response);
	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;
}

ProtonPlusModelsRunner*
proton_plus_models_runner_construct (GType object_type)
{
	ProtonPlusModelsRunner * self = NULL;
	self = (ProtonPlusModelsRunner*) g_object_new (object_type, NULL);
	return self;
}

const gchar*
proton_plus_models_runner_get_title (ProtonPlusModelsRunner* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_title;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_runner_set_title (ProtonPlusModelsRunner* self,
                                     const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_runner_get_title (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_title);
		self->priv->_title = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_TITLE_PROPERTY]);
	}
}

const gchar*
proton_plus_models_runner_get_description (ProtonPlusModelsRunner* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_description;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_runner_set_description (ProtonPlusModelsRunner* self,
                                           const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_runner_get_description (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_description);
		self->priv->_description = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_DESCRIPTION_PROPERTY]);
	}
}

ProtonPlusModelsGroup*
proton_plus_models_runner_get_group (ProtonPlusModelsRunner* self)
{
	ProtonPlusModelsGroup* result;
	ProtonPlusModelsGroup* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_group;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_runner_set_group (ProtonPlusModelsRunner* self,
                                     ProtonPlusModelsGroup* value)
{
	ProtonPlusModelsGroup* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_runner_get_group (self);
	if (old_value != value) {
		ProtonPlusModelsGroup* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_group);
		self->priv->_group = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_GROUP_PROPERTY]);
	}
}

gboolean
proton_plus_models_runner_get_has_more (ProtonPlusModelsRunner* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_has_more;
	return result;
}

void
proton_plus_models_runner_set_has_more (ProtonPlusModelsRunner* self,
                                        gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_runner_get_has_more (self);
	if (old_value != value) {
		self->priv->_has_more = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_HAS_MORE_PROPERTY]);
	}
}

gboolean
proton_plus_models_runner_get_has_latest_support (ProtonPlusModelsRunner* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_has_latest_support;
	return result;
}

void
proton_plus_models_runner_set_has_latest_support (ProtonPlusModelsRunner* self,
                                                  gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_runner_get_has_latest_support (self);
	if (old_value != value) {
		self->priv->_has_latest_support = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_HAS_LATEST_SUPPORT_PROPERTY]);
	}
}

gboolean
proton_plus_models_runner_get_asset_position_hwcaps_condition (ProtonPlusModelsRunner* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_asset_position_hwcaps_condition;
	return result;
}

void
proton_plus_models_runner_set_asset_position_hwcaps_condition (ProtonPlusModelsRunner* self,
                                                               gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_runner_get_asset_position_hwcaps_condition (self);
	if (old_value != value) {
		self->priv->_asset_position_hwcaps_condition = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_ASSET_POSITION_HWCAPS_CONDITION_PROPERTY]);
	}
}

ProtonPlusUtilsWebGetType
proton_plus_models_runner_get_get_type (ProtonPlusModelsRunner* self)
{
	ProtonPlusUtilsWebGetType result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_get_type;
	return result;
}

void
proton_plus_models_runner_set_get_type (ProtonPlusModelsRunner* self,
                                        ProtonPlusUtilsWebGetType value)
{
	ProtonPlusUtilsWebGetType old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_runner_get_get_type (self);
	if (old_value != value) {
		self->priv->_get_type = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_GET_TYPE_PROPERTY]);
	}
}

static void
proton_plus_models_runner_class_init (ProtonPlusModelsRunnerClass * klass,
                                      gpointer klass_data)
{
	proton_plus_models_runner_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusModelsRunner_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_models_runner_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_models_runner_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_models_runner_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RUNNER_TITLE_PROPERTY, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_TITLE_PROPERTY] = g_param_spec_string ("title", "title", "title", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RUNNER_DESCRIPTION_PROPERTY, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_DESCRIPTION_PROPERTY] = g_param_spec_string ("description", "description", "description", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RUNNER_GROUP_PROPERTY, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_GROUP_PROPERTY] = g_param_spec_object ("group", "group", "group", PROTON_PLUS_MODELS_TYPE_GROUP, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RUNNER_HAS_MORE_PROPERTY, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_HAS_MORE_PROPERTY] = g_param_spec_boolean ("has-more", "has-more", "has-more", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RUNNER_HAS_LATEST_SUPPORT_PROPERTY, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_HAS_LATEST_SUPPORT_PROPERTY] = g_param_spec_boolean ("has-latest-support", "has-latest-support", "has-latest-support", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RUNNER_ASSET_POSITION_HWCAPS_CONDITION_PROPERTY, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_ASSET_POSITION_HWCAPS_CONDITION_PROPERTY] = g_param_spec_boolean ("asset-position-hwcaps-condition", "asset-position-hwcaps-condition", "asset-position-hwcaps-condition", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RUNNER_GET_TYPE_PROPERTY, proton_plus_models_runner_properties[PROTON_PLUS_MODELS_RUNNER_GET_TYPE_PROPERTY] = g_param_spec_enum ("get-type", "get-type", "get-type", PROTON_PLUS_UTILS_WEB_TYPE_GET_TYPE, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
proton_plus_models_runner_instance_init (ProtonPlusModelsRunner * self,
                                         gpointer klass)
{
	self->priv = proton_plus_models_runner_get_instance_private (self);
}

static void
proton_plus_models_runner_finalize (GObject * obj)
{
	ProtonPlusModelsRunner * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_MODELS_TYPE_RUNNER, ProtonPlusModelsRunner);
	_g_free0 (self->priv->_title);
	_g_free0 (self->priv->_description);
	_g_object_unref0 (self->priv->_group);
	(self->releases == NULL) ? NULL : (self->releases = (_g_list_free__g_object_unref0_ (self->releases), NULL));
	G_OBJECT_CLASS (proton_plus_models_runner_parent_class)->finalize (obj);
}

static GType
proton_plus_models_runner_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsRunnerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_runner_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsRunner), 0, (GInstanceInitFunc) proton_plus_models_runner_instance_init, NULL };
	GType proton_plus_models_runner_type_id;
	proton_plus_models_runner_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusModelsRunner", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
	ProtonPlusModelsRunner_private_offset = g_type_add_instance_private (proton_plus_models_runner_type_id, sizeof (ProtonPlusModelsRunnerPrivate));
	return proton_plus_models_runner_type_id;
}

GType
proton_plus_models_runner_get_type (void)
{
	static volatile gsize proton_plus_models_runner_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_runner_type_id__once)) {
		GType proton_plus_models_runner_type_id;
		proton_plus_models_runner_type_id = proton_plus_models_runner_get_type_once ();
		g_once_init_leave (&proton_plus_models_runner_type_id__once, proton_plus_models_runner_type_id);
	}
	return proton_plus_models_runner_type_id__once;
}

static void
_vala_proton_plus_models_runner_get_property (GObject * object,
                                              guint property_id,
                                              GValue * value,
                                              GParamSpec * pspec)
{
	ProtonPlusModelsRunner * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_TYPE_RUNNER, ProtonPlusModelsRunner);
	switch (property_id) {
		case PROTON_PLUS_MODELS_RUNNER_TITLE_PROPERTY:
		g_value_set_string (value, proton_plus_models_runner_get_title (self));
		break;
		case PROTON_PLUS_MODELS_RUNNER_DESCRIPTION_PROPERTY:
		g_value_set_string (value, proton_plus_models_runner_get_description (self));
		break;
		case PROTON_PLUS_MODELS_RUNNER_GROUP_PROPERTY:
		g_value_set_object (value, proton_plus_models_runner_get_group (self));
		break;
		case PROTON_PLUS_MODELS_RUNNER_HAS_MORE_PROPERTY:
		g_value_set_boolean (value, proton_plus_models_runner_get_has_more (self));
		break;
		case PROTON_PLUS_MODELS_RUNNER_HAS_LATEST_SUPPORT_PROPERTY:
		g_value_set_boolean (value, proton_plus_models_runner_get_has_latest_support (self));
		break;
		case PROTON_PLUS_MODELS_RUNNER_ASSET_POSITION_HWCAPS_CONDITION_PROPERTY:
		g_value_set_boolean (value, proton_plus_models_runner_get_asset_position_hwcaps_condition (self));
		break;
		case PROTON_PLUS_MODELS_RUNNER_GET_TYPE_PROPERTY:
		g_value_set_enum (value, proton_plus_models_runner_get_get_type (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_models_runner_set_property (GObject * object,
                                              guint property_id,
                                              const GValue * value,
                                              GParamSpec * pspec)
{
	ProtonPlusModelsRunner * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_TYPE_RUNNER, ProtonPlusModelsRunner);
	switch (property_id) {
		case PROTON_PLUS_MODELS_RUNNER_TITLE_PROPERTY:
		proton_plus_models_runner_set_title (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_MODELS_RUNNER_DESCRIPTION_PROPERTY:
		proton_plus_models_runner_set_description (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_MODELS_RUNNER_GROUP_PROPERTY:
		proton_plus_models_runner_set_group (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_MODELS_RUNNER_HAS_MORE_PROPERTY:
		proton_plus_models_runner_set_has_more (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_MODELS_RUNNER_HAS_LATEST_SUPPORT_PROPERTY:
		proton_plus_models_runner_set_has_latest_support (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_MODELS_RUNNER_ASSET_POSITION_HWCAPS_CONDITION_PROPERTY:
		proton_plus_models_runner_set_asset_position_hwcaps_condition (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_MODELS_RUNNER_GET_TYPE_PROPERTY:
		proton_plus_models_runner_set_get_type (self, g_value_get_enum (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_array_destroy (gpointer array,
                     gssize array_length,
                     GDestroyNotify destroy_func)
{
	if ((array != NULL) && (destroy_func != NULL)) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}

static void
_vala_array_free (gpointer array,
                  gssize array_length,
                  GDestroyNotify destroy_func)
{
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}

static gssize
_vala_array_length (gpointer array)
{
	gssize length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}

