/* steam-session-service.c generated by valac 0.56.19, the Vala compiler
 * generated from steam-session-service.vala, do not modify */

#include "protonplus_core.h"
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <glib-object.h>
#include <gee.h>
#include <glib/gstdio.h>
#include <unistd.h>
#include <gio/gio.h>
#include <errno.h>

#define PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_STARTING_WINDOW_USEC ((gint64) ((30 * 1000) * 1000))
#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

enum  {
	PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_0_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_PID_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_START_TIME_TICKS_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_BOOT_ID_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_NUM_PROPERTIES
};
static GParamSpec* proton_plus_services_steam_process_generation_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))
enum  {
	PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_0_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_BLOCKER_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_CONFIDENCE_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_DETAIL_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_NUM_PROPERTIES
};
static GParamSpec* proton_plus_services_steam_session_blocker_evidence_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_NUM_PROPERTIES];
enum  {
	PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_0_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_DESKTOP_ENTRY_ID_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_DESKTOP_ENTRY_PATH_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_FLATPAK_APPLICATION_ID_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_STEAM_URI_HANDLER_CANDIDATE_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_LIMITATION_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_NUM_PROPERTIES
};
static GParamSpec* proton_plus_services_steam_relaunch_metadata_properties[PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_NUM_PROPERTIES];
enum  {
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_0_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_TARGET_ID_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_STATE_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MATCHING_PROCESS_FOUND_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MAIN_PROCESS_PID_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MAIN_PROCESS_PID_KNOWN_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_GENERATION_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_FLATPAK_INSTANCE_ID_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MATCHING_EXECUTABLE_PATH_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_RELAUNCH_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_BLOCKERS_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_STATE_CONFIDENCE_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_SESSION_MODE_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_DIAGNOSTICS_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_NUM_PROPERTIES
};
static GParamSpec* proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
enum  {
	PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_0_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_PID_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_EXECUTABLE_PATH_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_COMMAND_LINE_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_START_TIME_TICKS_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_NUM_PROPERTIES
};
static GParamSpec* proton_plus_services_steam_process_record_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_NUM_PROPERTIES];
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
enum  {
	PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_0_PROPERTY,
	PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_AVAILABLE_PROPERTY,
	PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_PROCESSES_PROPERTY,
	PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_DIAGNOSTIC_PROPERTY,
	PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_NUM_PROPERTIES
};
static GParamSpec* proton_plus_services_native_process_query_properties[PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_NUM_PROPERTIES];
enum  {
	PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_0_PROPERTY,
	PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_INSTANCE_ID_PROPERTY,
	PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_APPLICATION_ID_PROPERTY,
	PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_WRAPPER_PID_PROPERTY,
	PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_CHILD_PID_PROPERTY,
	PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_NUM_PROPERTIES
};
static GParamSpec* proton_plus_services_flatpak_process_record_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_NUM_PROPERTIES];
enum  {
	PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_0_PROPERTY,
	PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_AVAILABLE_PROPERTY,
	PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_PROCESSES_PROPERTY,
	PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_DIAGNOSTIC_PROPERTY,
	PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_NUM_PROPERTIES
};
static GParamSpec* proton_plus_services_flatpak_process_query_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_NUM_PROPERTIES];
enum  {
	PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_0_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_ID_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_PATH_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_SUPPORTS_STEAM_URI_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_NUM_PROPERTIES
};
static GParamSpec* proton_plus_services_steam_desktop_entry_properties[PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_NUM_PROPERTIES];

#define PROTON_PLUS_SERVICES_TYPE_HOST_STEAM_SESSION_BACKEND (proton_plus_services_host_steam_session_backend_get_type ())
#define PROTON_PLUS_SERVICES_HOST_STEAM_SESSION_BACKEND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_SERVICES_TYPE_HOST_STEAM_SESSION_BACKEND, ProtonPlusServicesHostSteamSessionBackend))
#define PROTON_PLUS_SERVICES_HOST_STEAM_SESSION_BACKEND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_SERVICES_TYPE_HOST_STEAM_SESSION_BACKEND, ProtonPlusServicesHostSteamSessionBackendClass))
#define PROTON_PLUS_SERVICES_IS_HOST_STEAM_SESSION_BACKEND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_SERVICES_TYPE_HOST_STEAM_SESSION_BACKEND))
#define PROTON_PLUS_SERVICES_IS_HOST_STEAM_SESSION_BACKEND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_SERVICES_TYPE_HOST_STEAM_SESSION_BACKEND))
#define PROTON_PLUS_SERVICES_HOST_STEAM_SESSION_BACKEND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_SERVICES_TYPE_HOST_STEAM_SESSION_BACKEND, ProtonPlusServicesHostSteamSessionBackendClass))

typedef struct _ProtonPlusServicesHostSteamSessionBackend ProtonPlusServicesHostSteamSessionBackend;
typedef struct _ProtonPlusServicesHostSteamSessionBackendClass ProtonPlusServicesHostSteamSessionBackendClass;
typedef struct _ProtonPlusServicesHostSteamSessionBackendPrivate ProtonPlusServicesHostSteamSessionBackendPrivate;
enum  {
	PROTON_PLUS_SERVICES_HOST_STEAM_SESSION_BACKEND_0_PROPERTY,
	PROTON_PLUS_SERVICES_HOST_STEAM_SESSION_BACKEND_NUM_PROPERTIES
};
static GParamSpec* proton_plus_services_host_steam_session_backend_properties[PROTON_PLUS_SERVICES_HOST_STEAM_SESSION_BACKEND_NUM_PROPERTIES];
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
enum  {
	PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_0_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_IS_MONITORING_PROPERTY,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_NUM_PROPERTIES
};
static GParamSpec* proton_plus_services_steam_session_service_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_NUM_PROPERTIES];
enum  {
	PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_STATE_CHANGED_SIGNAL,
	PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_NUM_SIGNALS
};
static guint proton_plus_services_steam_session_service_signals[PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_NUM_SIGNALS] = {0};

struct _ProtonPlusServicesSteamProcessGenerationPrivate {
	gint _pid;
	gint64 _start_time_ticks;
	gchar* _boot_id;
};

struct _ProtonPlusServicesSteamSessionBlockerEvidencePrivate {
	ProtonPlusServicesSteamSessionBlocker _blocker;
	ProtonPlusServicesSteamEvidenceLevel _confidence;
	gchar* _detail;
};

struct _ProtonPlusServicesSteamRelaunchMetadataPrivate {
	gchar* _desktop_entry_id;
	gchar* _desktop_entry_path;
	gchar* _flatpak_application_id;
	gboolean _steam_uri_handler_candidate;
	gchar* _limitation;
};

struct _ProtonPlusServicesSteamSessionSnapshotPrivate {
	gchar* _target_id;
	ProtonPlusServicesSteamSessionState _state;
	gboolean _matching_process_found;
	gint _main_process_pid;
	ProtonPlusServicesSteamProcessGeneration* _generation;
	gchar* _flatpak_instance_id;
	gchar* _matching_executable_path;
	ProtonPlusServicesSteamRelaunchMetadata* _relaunch;
	GeeList* _blockers;
	ProtonPlusServicesSteamEvidenceLevel _state_confidence;
	ProtonPlusServicesSteamSessionMode _session_mode;
	GeeList* _diagnostics;
};

struct _ProtonPlusServicesSteamProcessRecordPrivate {
	gint _pid;
	gchar* _executable_path;
	gchar* _command_line;
	gint64 _start_time_ticks;
};

struct _ProtonPlusServicesNativeProcessQueryPrivate {
	gboolean _available;
	GeeList* _processes;
	gchar* _diagnostic;
};

struct _ProtonPlusServicesFlatpakProcessRecordPrivate {
	gchar* _instance_id;
	gchar* _application_id;
	gint _wrapper_pid;
	gint _child_pid;
};

struct _ProtonPlusServicesFlatpakProcessQueryPrivate {
	gboolean _available;
	GeeList* _processes;
	gchar* _diagnostic;
};

struct _ProtonPlusServicesSteamDesktopEntryPrivate {
	gchar* _id;
	gchar* _path;
	gboolean _supports_steam_uri;
};

struct _ProtonPlusServicesHostSteamSessionBackend {
	GObject parent_instance;
	ProtonPlusServicesHostSteamSessionBackendPrivate * priv;
};

struct _ProtonPlusServicesHostSteamSessionBackendClass {
	GObjectClass parent_class;
};

struct _ProtonPlusServicesSteamSessionServicePrivate {
	ProtonPlusServicesSteamSessionBackend* backend;
	GeeArrayList* monitored_targets;
	GeeHashMap* previous_monitored_snapshots;
	guint monitoring_source_id;
};

static gint ProtonPlusServicesSteamProcessGeneration_private_offset;
static gpointer proton_plus_services_steam_process_generation_parent_class = NULL;
static gint ProtonPlusServicesSteamSessionBlockerEvidence_private_offset;
static gpointer proton_plus_services_steam_session_blocker_evidence_parent_class = NULL;
static gint ProtonPlusServicesSteamRelaunchMetadata_private_offset;
static gpointer proton_plus_services_steam_relaunch_metadata_parent_class = NULL;
static gint ProtonPlusServicesSteamSessionSnapshot_private_offset;
static gpointer proton_plus_services_steam_session_snapshot_parent_class = NULL;
static gint ProtonPlusServicesSteamProcessRecord_private_offset;
static gpointer proton_plus_services_steam_process_record_parent_class = NULL;
static gint ProtonPlusServicesNativeProcessQuery_private_offset;
static gpointer proton_plus_services_native_process_query_parent_class = NULL;
static gint ProtonPlusServicesFlatpakProcessRecord_private_offset;
static gpointer proton_plus_services_flatpak_process_record_parent_class = NULL;
static gint ProtonPlusServicesFlatpakProcessQuery_private_offset;
static gpointer proton_plus_services_flatpak_process_query_parent_class = NULL;
static gint ProtonPlusServicesSteamDesktopEntry_private_offset;
static gpointer proton_plus_services_steam_desktop_entry_parent_class = NULL;
static gpointer proton_plus_services_host_steam_session_backend_parent_class = NULL;
static ProtonPlusServicesSteamSessionBackendIface * proton_plus_services_host_steam_session_backend_proton_plus_services_steam_session_backend_parent_iface = NULL;
static gint ProtonPlusServicesSteamSessionService_private_offset;
static gpointer proton_plus_services_steam_session_service_parent_class = NULL;
static ProtonPlusServicesSteamSessionService* proton_plus_services_steam_session_service__instance;
static ProtonPlusServicesSteamSessionService* proton_plus_services_steam_session_service__instance = NULL;

static void proton_plus_services_steam_process_generation_set_pid (ProtonPlusServicesSteamProcessGeneration* self,
                                                            gint value);
static void proton_plus_services_steam_process_generation_set_start_time_ticks (ProtonPlusServicesSteamProcessGeneration* self,
                                                                         gint64 value);
static void proton_plus_services_steam_process_generation_set_boot_id (ProtonPlusServicesSteamProcessGeneration* self,
                                                                const gchar* value);
static void proton_plus_services_steam_process_generation_finalize (GObject * obj);
static GType proton_plus_services_steam_process_generation_get_type_once (void);
static void _vala_proton_plus_services_steam_process_generation_get_property (GObject * object,
                                                                       guint property_id,
                                                                       GValue * value,
                                                                       GParamSpec * pspec);
static void _vala_proton_plus_services_steam_process_generation_set_property (GObject * object,
                                                                       guint property_id,
                                                                       const GValue * value,
                                                                       GParamSpec * pspec);
static void proton_plus_services_steam_session_blocker_evidence_set_blocker (ProtonPlusServicesSteamSessionBlockerEvidence* self,
                                                                      ProtonPlusServicesSteamSessionBlocker value);
static void proton_plus_services_steam_session_blocker_evidence_set_confidence (ProtonPlusServicesSteamSessionBlockerEvidence* self,
                                                                         ProtonPlusServicesSteamEvidenceLevel value);
static void proton_plus_services_steam_session_blocker_evidence_set_detail (ProtonPlusServicesSteamSessionBlockerEvidence* self,
                                                                     const gchar* value);
static void proton_plus_services_steam_session_blocker_evidence_finalize (GObject * obj);
static GType proton_plus_services_steam_session_blocker_evidence_get_type_once (void);
static void _vala_proton_plus_services_steam_session_blocker_evidence_get_property (GObject * object,
                                                                             guint property_id,
                                                                             GValue * value,
                                                                             GParamSpec * pspec);
static void _vala_proton_plus_services_steam_session_blocker_evidence_set_property (GObject * object,
                                                                             guint property_id,
                                                                             const GValue * value,
                                                                             GParamSpec * pspec);
static void proton_plus_services_steam_relaunch_metadata_set_desktop_entry_id (ProtonPlusServicesSteamRelaunchMetadata* self,
                                                                        const gchar* value);
static void proton_plus_services_steam_relaunch_metadata_set_desktop_entry_path (ProtonPlusServicesSteamRelaunchMetadata* self,
                                                                          const gchar* value);
static void proton_plus_services_steam_relaunch_metadata_set_flatpak_application_id (ProtonPlusServicesSteamRelaunchMetadata* self,
                                                                              const gchar* value);
static void proton_plus_services_steam_relaunch_metadata_set_steam_uri_handler_candidate (ProtonPlusServicesSteamRelaunchMetadata* self,
                                                                                   gboolean value);
static void proton_plus_services_steam_relaunch_metadata_set_limitation (ProtonPlusServicesSteamRelaunchMetadata* self,
                                                                  const gchar* value);
static void proton_plus_services_steam_relaunch_metadata_finalize (GObject * obj);
static GType proton_plus_services_steam_relaunch_metadata_get_type_once (void);
static void _vala_proton_plus_services_steam_relaunch_metadata_get_property (GObject * object,
                                                                      guint property_id,
                                                                      GValue * value,
                                                                      GParamSpec * pspec);
static void _vala_proton_plus_services_steam_relaunch_metadata_set_property (GObject * object,
                                                                      guint property_id,
                                                                      const GValue * value,
                                                                      GParamSpec * pspec);
static void proton_plus_services_steam_session_snapshot_set_target_id (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                const gchar* value);
static void proton_plus_services_steam_session_snapshot_set_state (ProtonPlusServicesSteamSessionSnapshot* self,
                                                            ProtonPlusServicesSteamSessionState value);
static void proton_plus_services_steam_session_snapshot_set_matching_process_found (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                             gboolean value);
static void proton_plus_services_steam_session_snapshot_set_main_process_pid (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                       gint value);
static void proton_plus_services_steam_session_snapshot_set_generation (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                 ProtonPlusServicesSteamProcessGeneration* value);
static void proton_plus_services_steam_session_snapshot_set_flatpak_instance_id (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                          const gchar* value);
static void proton_plus_services_steam_session_snapshot_set_matching_executable_path (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                               const gchar* value);
static void proton_plus_services_steam_session_snapshot_set_relaunch (ProtonPlusServicesSteamSessionSnapshot* self,
                                                               ProtonPlusServicesSteamRelaunchMetadata* value);
static void proton_plus_services_steam_session_snapshot_set_blockers (ProtonPlusServicesSteamSessionSnapshot* self,
                                                               GeeList* value);
static void proton_plus_services_steam_session_snapshot_set_state_confidence (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                       ProtonPlusServicesSteamEvidenceLevel value);
static void proton_plus_services_steam_session_snapshot_set_session_mode (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                   ProtonPlusServicesSteamSessionMode value);
static void proton_plus_services_steam_session_snapshot_set_diagnostics (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                  GeeList* value);
static void proton_plus_services_steam_session_snapshot_finalize (GObject * obj);
static GType proton_plus_services_steam_session_snapshot_get_type_once (void);
static void _vala_proton_plus_services_steam_session_snapshot_get_property (GObject * object,
                                                                     guint property_id,
                                                                     GValue * value,
                                                                     GParamSpec * pspec);
static void _vala_proton_plus_services_steam_session_snapshot_set_property (GObject * object,
                                                                     guint property_id,
                                                                     const GValue * value,
                                                                     GParamSpec * pspec);
static void proton_plus_services_steam_process_record_set_pid (ProtonPlusServicesSteamProcessRecord* self,
                                                        gint value);
static void proton_plus_services_steam_process_record_set_executable_path (ProtonPlusServicesSteamProcessRecord* self,
                                                                    const gchar* value);
static void proton_plus_services_steam_process_record_set_command_line (ProtonPlusServicesSteamProcessRecord* self,
                                                                 const gchar* value);
static void proton_plus_services_steam_process_record_set_start_time_ticks (ProtonPlusServicesSteamProcessRecord* self,
                                                                     gint64 value);
static gchar* proton_plus_services_steam_process_record_decode_proc_command_line (guint8* contents,
                                                                           gint contents_length1);
static void proton_plus_services_steam_process_record_finalize (GObject * obj);
static GType proton_plus_services_steam_process_record_get_type_once (void);
static void _vala_proton_plus_services_steam_process_record_get_property (GObject * object,
                                                                   guint property_id,
                                                                   GValue * value,
                                                                   GParamSpec * pspec);
static void _vala_proton_plus_services_steam_process_record_set_property (GObject * object,
                                                                   guint property_id,
                                                                   const GValue * value,
                                                                   GParamSpec * pspec);
static void proton_plus_services_native_process_query_set_available (ProtonPlusServicesNativeProcessQuery* self,
                                                              gboolean value);
static void proton_plus_services_native_process_query_set_processes (ProtonPlusServicesNativeProcessQuery* self,
                                                              GeeList* value);
static void proton_plus_services_native_process_query_set_diagnostic (ProtonPlusServicesNativeProcessQuery* self,
                                                               const gchar* value);
static void proton_plus_services_native_process_query_finalize (GObject * obj);
static GType proton_plus_services_native_process_query_get_type_once (void);
static void _vala_proton_plus_services_native_process_query_get_property (GObject * object,
                                                                   guint property_id,
                                                                   GValue * value,
                                                                   GParamSpec * pspec);
static void _vala_proton_plus_services_native_process_query_set_property (GObject * object,
                                                                   guint property_id,
                                                                   const GValue * value,
                                                                   GParamSpec * pspec);
static void proton_plus_services_flatpak_process_record_set_instance_id (ProtonPlusServicesFlatpakProcessRecord* self,
                                                                  const gchar* value);
static void proton_plus_services_flatpak_process_record_set_application_id (ProtonPlusServicesFlatpakProcessRecord* self,
                                                                     const gchar* value);
static void proton_plus_services_flatpak_process_record_set_wrapper_pid (ProtonPlusServicesFlatpakProcessRecord* self,
                                                                  gint value);
static void proton_plus_services_flatpak_process_record_set_child_pid (ProtonPlusServicesFlatpakProcessRecord* self,
                                                                gint value);
static void proton_plus_services_flatpak_process_record_finalize (GObject * obj);
static GType proton_plus_services_flatpak_process_record_get_type_once (void);
static void _vala_proton_plus_services_flatpak_process_record_get_property (GObject * object,
                                                                     guint property_id,
                                                                     GValue * value,
                                                                     GParamSpec * pspec);
static void _vala_proton_plus_services_flatpak_process_record_set_property (GObject * object,
                                                                     guint property_id,
                                                                     const GValue * value,
                                                                     GParamSpec * pspec);
static void proton_plus_services_flatpak_process_query_set_available (ProtonPlusServicesFlatpakProcessQuery* self,
                                                               gboolean value);
static void proton_plus_services_flatpak_process_query_set_processes (ProtonPlusServicesFlatpakProcessQuery* self,
                                                               GeeList* value);
static void proton_plus_services_flatpak_process_query_set_diagnostic (ProtonPlusServicesFlatpakProcessQuery* self,
                                                                const gchar* value);
static void proton_plus_services_flatpak_process_query_finalize (GObject * obj);
static GType proton_plus_services_flatpak_process_query_get_type_once (void);
static void _vala_proton_plus_services_flatpak_process_query_get_property (GObject * object,
                                                                    guint property_id,
                                                                    GValue * value,
                                                                    GParamSpec * pspec);
static void _vala_proton_plus_services_flatpak_process_query_set_property (GObject * object,
                                                                    guint property_id,
                                                                    const GValue * value,
                                                                    GParamSpec * pspec);
static void proton_plus_services_steam_desktop_entry_set_id (ProtonPlusServicesSteamDesktopEntry* self,
                                                      const gchar* value);
static void proton_plus_services_steam_desktop_entry_set_path (ProtonPlusServicesSteamDesktopEntry* self,
                                                        const gchar* value);
static void proton_plus_services_steam_desktop_entry_set_supports_steam_uri (ProtonPlusServicesSteamDesktopEntry* self,
                                                                      gboolean value);
static void proton_plus_services_steam_desktop_entry_finalize (GObject * obj);
static GType proton_plus_services_steam_desktop_entry_get_type_once (void);
static void _vala_proton_plus_services_steam_desktop_entry_get_property (GObject * object,
                                                                  guint property_id,
                                                                  GValue * value,
                                                                  GParamSpec * pspec);
static void _vala_proton_plus_services_steam_desktop_entry_set_property (GObject * object,
                                                                  guint property_id,
                                                                  const GValue * value,
                                                                  GParamSpec * pspec);
static GType proton_plus_services_steam_session_backend_get_type_once (void);
VALA_EXTERN GType proton_plus_services_host_steam_session_backend_get_type (void) G_GNUC_CONST ;
static gchar* proton_plus_services_host_steam_session_backend_real_get_boot_id (ProtonPlusServicesSteamSessionBackend* base);
static gint64 proton_plus_services_host_steam_session_backend_real_get_monotonic_time_usec (ProtonPlusServicesSteamSessionBackend* base);
static gint64 proton_plus_services_host_steam_session_backend_real_get_clock_ticks_per_second (ProtonPlusServicesSteamSessionBackend* base);
static ProtonPlusServicesNativeProcessQuery* proton_plus_services_host_steam_session_backend_real_query_native_processes (ProtonPlusServicesSteamSessionBackend* base);
static gint64 proton_plus_services_host_steam_session_backend_read_start_time (ProtonPlusServicesHostSteamSessionBackend* self,
                                                                        const gchar* path);
static ProtonPlusServicesFlatpakProcessQuery* proton_plus_services_host_steam_session_backend_real_query_flatpak_processes (ProtonPlusServicesSteamSessionBackend* base);
static ProtonPlusServicesSteamDesktopEntry* proton_plus_services_host_steam_session_backend_real_find_desktop_entry (ProtonPlusServicesSteamSessionBackend* base,
                                                                                                              const gchar* id);
static gboolean proton_plus_services_host_steam_session_backend_real_is_steamos_gaming_mode (ProtonPlusServicesSteamSessionBackend* base);
static gboolean proton_plus_services_host_steam_session_backend_environment_identifies_gamescope (ProtonPlusServicesHostSteamSessionBackend* self,
                                                                                           const gchar* name);
VALA_EXTERN ProtonPlusServicesHostSteamSessionBackend* proton_plus_services_host_steam_session_backend_new (void);
VALA_EXTERN ProtonPlusServicesHostSteamSessionBackend* proton_plus_services_host_steam_session_backend_construct (GType object_type);
static GType proton_plus_services_host_steam_session_backend_get_type_once (void);
static ProtonPlusServicesSteamRelaunchMetadata* proton_plus_services_steam_session_service_get_relaunch_metadata (ProtonPlusServicesSteamSessionService* self,
                                                                                                           ProtonPlusModelsSteamRestartTarget* target);
static ProtonPlusServicesSteamSessionSnapshot* proton_plus_services_steam_session_service_inspect_flatpak (ProtonPlusServicesSteamSessionService* self,
                                                                                                    ProtonPlusModelsSteamRestartTarget* target,
                                                                                                    ProtonPlusServicesSteamRelaunchMetadata* relaunch,
                                                                                                    GeeList* blockers,
                                                                                                    GeeList* diagnostics,
                                                                                                    ProtonPlusServicesSteamSessionMode session_mode);
static ProtonPlusServicesSteamSessionSnapshot* proton_plus_services_steam_session_service_inspect_native (ProtonPlusServicesSteamSessionService* self,
                                                                                                   ProtonPlusModelsSteamRestartTarget* target,
                                                                                                   ProtonPlusServicesSteamRelaunchMetadata* relaunch,
                                                                                                   GeeList* blockers,
                                                                                                   GeeList* diagnostics,
                                                                                                   ProtonPlusServicesSteamSessionMode session_mode);
static ProtonPlusServicesSteamSessionSnapshot* proton_plus_services_steam_session_service_snapshot (ProtonPlusServicesSteamSessionService* self,
                                                                                             ProtonPlusModelsSteamRestartTarget* target,
                                                                                             ProtonPlusServicesSteamSessionState state,
                                                                                             gboolean found,
                                                                                             gint pid,
                                                                                             ProtonPlusServicesSteamProcessGeneration* generation,
                                                                                             const gchar* instance,
                                                                                             const gchar* executable,
                                                                                             ProtonPlusServicesSteamRelaunchMetadata* relaunch,
                                                                                             GeeList* blockers,
                                                                                             ProtonPlusServicesSteamEvidenceLevel confidence,
                                                                                             ProtonPlusServicesSteamSessionMode session_mode,
                                                                                             GeeList* diagnostics);
static gboolean __lambda11_ (ProtonPlusServicesSteamSessionService* self);
static gboolean ___lambda11__gsource_func (gpointer self);
static gboolean proton_plus_services_steam_session_service_is_associated (ProtonPlusServicesSteamSessionService* self,
                                                                   ProtonPlusModelsSteamRestartTarget* target,
                                                                   ProtonPlusServicesSteamProcessRecord* process);
static void proton_plus_services_steam_session_service_collect_blocker (ProtonPlusServicesSteamSessionService* self,
                                                                 ProtonPlusModelsSteamRestartTarget* target,
                                                                 ProtonPlusServicesSteamProcessRecord* process,
                                                                 GeeList* blockers);
static gboolean proton_plus_services_steam_session_service_is_anchor (ProtonPlusServicesSteamSessionService* self,
                                                               ProtonPlusModelsSteamRestartTarget* target,
                                                               ProtonPlusServicesSteamProcessRecord* process);
static ProtonPlusServicesSteamProcessRecord* proton_plus_services_steam_session_service_select_runtime_duplicate_anchor (ProtonPlusServicesSteamSessionService* self,
                                                                                                                  GeeList* candidates);
static ProtonPlusServicesSteamProcessRecord* proton_plus_services_steam_session_service_select_runtime_update_anchor (ProtonPlusServicesSteamSessionService* self,
                                                                                                               GeeList* candidates);
static gboolean proton_plus_services_steam_session_service_is_explicit_updater (ProtonPlusServicesSteamSessionService* self,
                                                                         ProtonPlusServicesSteamProcessRecord* process);
static gboolean proton_plus_services_steam_session_service_is_recent (ProtonPlusServicesSteamSessionService* self,
                                                               ProtonPlusServicesSteamProcessRecord* process);
static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
                                                  GValue * return_value,
                                                  guint n_param_values,
                                                  const GValue * param_values,
                                                  gpointer invocation_hint,
                                                  gpointer marshal_data);
static void proton_plus_services_steam_session_service_finalize (GObject * obj);
static GType proton_plus_services_steam_session_service_get_type_once (void);
static void _vala_proton_plus_services_steam_session_service_get_property (GObject * object,
                                                                    guint property_id,
                                                                    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 _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

static GType
proton_plus_services_steam_session_state_get_type_once (void)
{
	static const GEnumValue values[] = {{PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_STOPPED, "PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_STOPPED", "stopped"}, {PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_STARTING, "PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_STARTING", "starting"}, {PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_RUNNING, "PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_RUNNING", "running"}, {PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_UPDATING, "PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_UPDATING", "updating"}, {PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_SHUTTING_DOWN, "PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_SHUTTING_DOWN", "shutting-down"}, {PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_UNKNOWN, "PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_UNKNOWN", "unknown"}, {0, NULL, NULL}};
	GType proton_plus_services_steam_session_state_type_id;
	proton_plus_services_steam_session_state_type_id = g_enum_register_static ("ProtonPlusServicesSteamSessionState", values);
	return proton_plus_services_steam_session_state_type_id;
}

GType
proton_plus_services_steam_session_state_get_type (void)
{
	static volatile gsize proton_plus_services_steam_session_state_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_steam_session_state_type_id__once)) {
		GType proton_plus_services_steam_session_state_type_id;
		proton_plus_services_steam_session_state_type_id = proton_plus_services_steam_session_state_get_type_once ();
		g_once_init_leave (&proton_plus_services_steam_session_state_type_id__once, proton_plus_services_steam_session_state_type_id);
	}
	return proton_plus_services_steam_session_state_type_id__once;
}

static GType
proton_plus_services_steam_session_blocker_get_type_once (void)
{
	static const GEnumValue values[] = {{PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_NONE, "PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_NONE", "none"}, {PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_GAME_OR_COMPATIBILITY_PROCESS, "PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_GAME_OR_COMPATIBILITY_PROCESS", "game-or-compatibility-process"}, {PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_STEAM_UPDATE_PROCESS, "PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_STEAM_UPDATE_PROCESS", "steam-update-process"}, {PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_STARTUP_IN_PROGRESS, "PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_STARTUP_IN_PROGRESS", "startup-in-progress"}, {PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_UNKNOWN_PROCESS_STATE, "PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_UNKNOWN_PROCESS_STATE", "unknown-process-state"}, {0, NULL, NULL}};
	GType proton_plus_services_steam_session_blocker_type_id;
	proton_plus_services_steam_session_blocker_type_id = g_enum_register_static ("ProtonPlusServicesSteamSessionBlocker", values);
	return proton_plus_services_steam_session_blocker_type_id;
}

GType
proton_plus_services_steam_session_blocker_get_type (void)
{
	static volatile gsize proton_plus_services_steam_session_blocker_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_steam_session_blocker_type_id__once)) {
		GType proton_plus_services_steam_session_blocker_type_id;
		proton_plus_services_steam_session_blocker_type_id = proton_plus_services_steam_session_blocker_get_type_once ();
		g_once_init_leave (&proton_plus_services_steam_session_blocker_type_id__once, proton_plus_services_steam_session_blocker_type_id);
	}
	return proton_plus_services_steam_session_blocker_type_id__once;
}

static GType
proton_plus_services_steam_evidence_level_get_type_once (void)
{
	static const GEnumValue values[] = {{PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_NONE, "PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_NONE", "none"}, {PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_HEURISTIC, "PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_HEURISTIC", "heuristic"}, {PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_CONFIRMED, "PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_CONFIRMED", "confirmed"}, {0, NULL, NULL}};
	GType proton_plus_services_steam_evidence_level_type_id;
	proton_plus_services_steam_evidence_level_type_id = g_enum_register_static ("ProtonPlusServicesSteamEvidenceLevel", values);
	return proton_plus_services_steam_evidence_level_type_id;
}

GType
proton_plus_services_steam_evidence_level_get_type (void)
{
	static volatile gsize proton_plus_services_steam_evidence_level_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_steam_evidence_level_type_id__once)) {
		GType proton_plus_services_steam_evidence_level_type_id;
		proton_plus_services_steam_evidence_level_type_id = proton_plus_services_steam_evidence_level_get_type_once ();
		g_once_init_leave (&proton_plus_services_steam_evidence_level_type_id__once, proton_plus_services_steam_evidence_level_type_id);
	}
	return proton_plus_services_steam_evidence_level_type_id__once;
}

static GType
proton_plus_services_steam_session_mode_get_type_once (void)
{
	static const GEnumValue values[] = {{PROTON_PLUS_SERVICES_STEAM_SESSION_MODE_UNKNOWN, "PROTON_PLUS_SERVICES_STEAM_SESSION_MODE_UNKNOWN", "unknown"}, {PROTON_PLUS_SERVICES_STEAM_SESSION_MODE_STEAMOS_GAMING_MODE, "PROTON_PLUS_SERVICES_STEAM_SESSION_MODE_STEAMOS_GAMING_MODE", "steamos-gaming-mode"}, {0, NULL, NULL}};
	GType proton_plus_services_steam_session_mode_type_id;
	proton_plus_services_steam_session_mode_type_id = g_enum_register_static ("ProtonPlusServicesSteamSessionMode", values);
	return proton_plus_services_steam_session_mode_type_id;
}

GType
proton_plus_services_steam_session_mode_get_type (void)
{
	static volatile gsize proton_plus_services_steam_session_mode_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_steam_session_mode_type_id__once)) {
		GType proton_plus_services_steam_session_mode_type_id;
		proton_plus_services_steam_session_mode_type_id = proton_plus_services_steam_session_mode_get_type_once ();
		g_once_init_leave (&proton_plus_services_steam_session_mode_type_id__once, proton_plus_services_steam_session_mode_type_id);
	}
	return proton_plus_services_steam_session_mode_type_id__once;
}

static inline gpointer
proton_plus_services_steam_process_generation_get_instance_private (ProtonPlusServicesSteamProcessGeneration* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusServicesSteamProcessGeneration_private_offset);
}

ProtonPlusServicesSteamProcessGeneration*
proton_plus_services_steam_process_generation_construct (GType object_type,
                                                         gint pid,
                                                         gint64 start_time_ticks,
                                                         const gchar* boot_id)
{
	ProtonPlusServicesSteamProcessGeneration * self = NULL;
	self = (ProtonPlusServicesSteamProcessGeneration*) g_object_new (object_type, NULL);
	proton_plus_services_steam_process_generation_set_pid (self, pid);
	proton_plus_services_steam_process_generation_set_start_time_ticks (self, start_time_ticks);
	proton_plus_services_steam_process_generation_set_boot_id (self, boot_id);
	return self;
}

ProtonPlusServicesSteamProcessGeneration*
proton_plus_services_steam_process_generation_new (gint pid,
                                                   gint64 start_time_ticks,
                                                   const gchar* boot_id)
{
	return proton_plus_services_steam_process_generation_construct (PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_GENERATION, pid, start_time_ticks, boot_id);
}

gchar*
proton_plus_services_steam_process_generation_describe (ProtonPlusServicesSteamProcessGeneration* self)
{
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_;
	gint64 _tmp2_;
	gint _tmp3_;
	gchar* _tmp4_;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp1_ = self->priv->_boot_id;
	_tmp0_ = _tmp1_;
	if (_tmp0_ == NULL) {
		_tmp0_ = "unknown-boot";
	}
	_tmp2_ = self->priv->_start_time_ticks;
	_tmp3_ = self->priv->_pid;
	_tmp4_ = g_strdup_printf ("%s:%" G_GINT64_FORMAT ":%d", _tmp0_, _tmp2_, _tmp3_);
	result = _tmp4_;
	return result;
}

gint
proton_plus_services_steam_process_generation_get_pid (ProtonPlusServicesSteamProcessGeneration* self)
{
	gint result;
	g_return_val_if_fail (self != NULL, -1);
	result = self->priv->_pid;
	return result;
}

static void
proton_plus_services_steam_process_generation_set_pid (ProtonPlusServicesSteamProcessGeneration* self,
                                                       gint value)
{
	gint old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_process_generation_get_pid (self);
	if (old_value != value) {
		self->priv->_pid = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_process_generation_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_PID_PROPERTY]);
	}
}

gint64
proton_plus_services_steam_process_generation_get_start_time_ticks (ProtonPlusServicesSteamProcessGeneration* self)
{
	gint64 result;
	g_return_val_if_fail (self != NULL, -1LL);
	result = self->priv->_start_time_ticks;
	return result;
}

static void
proton_plus_services_steam_process_generation_set_start_time_ticks (ProtonPlusServicesSteamProcessGeneration* self,
                                                                    gint64 value)
{
	gint64 old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_process_generation_get_start_time_ticks (self);
	if (old_value != value) {
		self->priv->_start_time_ticks = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_process_generation_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_START_TIME_TICKS_PROPERTY]);
	}
}

const gchar*
proton_plus_services_steam_process_generation_get_boot_id (ProtonPlusServicesSteamProcessGeneration* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_boot_id;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_process_generation_set_boot_id (ProtonPlusServicesSteamProcessGeneration* self,
                                                           const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_process_generation_get_boot_id (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_boot_id);
		self->priv->_boot_id = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_process_generation_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_BOOT_ID_PROPERTY]);
	}
}

static void
proton_plus_services_steam_process_generation_class_init (ProtonPlusServicesSteamProcessGenerationClass * klass,
                                                          gpointer klass_data)
{
	proton_plus_services_steam_process_generation_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusServicesSteamProcessGeneration_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_services_steam_process_generation_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_services_steam_process_generation_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_services_steam_process_generation_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_PID_PROPERTY, proton_plus_services_steam_process_generation_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_PID_PROPERTY] = g_param_spec_int ("pid", "pid", "pid", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_START_TIME_TICKS_PROPERTY, proton_plus_services_steam_process_generation_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_START_TIME_TICKS_PROPERTY] = g_param_spec_int64 ("start-time-ticks", "start-time-ticks", "start-time-ticks", G_MININT64, G_MAXINT64, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_BOOT_ID_PROPERTY, proton_plus_services_steam_process_generation_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_BOOT_ID_PROPERTY] = g_param_spec_string ("boot-id", "boot-id", "boot-id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
proton_plus_services_steam_process_generation_instance_init (ProtonPlusServicesSteamProcessGeneration * self,
                                                             gpointer klass)
{
	self->priv = proton_plus_services_steam_process_generation_get_instance_private (self);
}

static void
proton_plus_services_steam_process_generation_finalize (GObject * obj)
{
	ProtonPlusServicesSteamProcessGeneration * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_GENERATION, ProtonPlusServicesSteamProcessGeneration);
	_g_free0 (self->priv->_boot_id);
	G_OBJECT_CLASS (proton_plus_services_steam_process_generation_parent_class)->finalize (obj);
}

static GType
proton_plus_services_steam_process_generation_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusServicesSteamProcessGenerationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_services_steam_process_generation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusServicesSteamProcessGeneration), 0, (GInstanceInitFunc) proton_plus_services_steam_process_generation_instance_init, NULL };
	GType proton_plus_services_steam_process_generation_type_id;
	proton_plus_services_steam_process_generation_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusServicesSteamProcessGeneration", &g_define_type_info, 0);
	ProtonPlusServicesSteamProcessGeneration_private_offset = g_type_add_instance_private (proton_plus_services_steam_process_generation_type_id, sizeof (ProtonPlusServicesSteamProcessGenerationPrivate));
	return proton_plus_services_steam_process_generation_type_id;
}

GType
proton_plus_services_steam_process_generation_get_type (void)
{
	static volatile gsize proton_plus_services_steam_process_generation_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_steam_process_generation_type_id__once)) {
		GType proton_plus_services_steam_process_generation_type_id;
		proton_plus_services_steam_process_generation_type_id = proton_plus_services_steam_process_generation_get_type_once ();
		g_once_init_leave (&proton_plus_services_steam_process_generation_type_id__once, proton_plus_services_steam_process_generation_type_id);
	}
	return proton_plus_services_steam_process_generation_type_id__once;
}

static void
_vala_proton_plus_services_steam_process_generation_get_property (GObject * object,
                                                                  guint property_id,
                                                                  GValue * value,
                                                                  GParamSpec * pspec)
{
	ProtonPlusServicesSteamProcessGeneration * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_GENERATION, ProtonPlusServicesSteamProcessGeneration);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_PID_PROPERTY:
		g_value_set_int (value, proton_plus_services_steam_process_generation_get_pid (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_START_TIME_TICKS_PROPERTY:
		g_value_set_int64 (value, proton_plus_services_steam_process_generation_get_start_time_ticks (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_BOOT_ID_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_process_generation_get_boot_id (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_services_steam_process_generation_set_property (GObject * object,
                                                                  guint property_id,
                                                                  const GValue * value,
                                                                  GParamSpec * pspec)
{
	ProtonPlusServicesSteamProcessGeneration * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_GENERATION, ProtonPlusServicesSteamProcessGeneration);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_PID_PROPERTY:
		proton_plus_services_steam_process_generation_set_pid (self, g_value_get_int (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_START_TIME_TICKS_PROPERTY:
		proton_plus_services_steam_process_generation_set_start_time_ticks (self, g_value_get_int64 (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_GENERATION_BOOT_ID_PROPERTY:
		proton_plus_services_steam_process_generation_set_boot_id (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static inline gpointer
proton_plus_services_steam_session_blocker_evidence_get_instance_private (ProtonPlusServicesSteamSessionBlockerEvidence* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusServicesSteamSessionBlockerEvidence_private_offset);
}

ProtonPlusServicesSteamSessionBlockerEvidence*
proton_plus_services_steam_session_blocker_evidence_construct (GType object_type,
                                                               ProtonPlusServicesSteamSessionBlocker blocker,
                                                               ProtonPlusServicesSteamEvidenceLevel confidence,
                                                               const gchar* detail)
{
	ProtonPlusServicesSteamSessionBlockerEvidence * self = NULL;
	g_return_val_if_fail (detail != NULL, NULL);
	self = (ProtonPlusServicesSteamSessionBlockerEvidence*) g_object_new (object_type, NULL);
	proton_plus_services_steam_session_blocker_evidence_set_blocker (self, blocker);
	proton_plus_services_steam_session_blocker_evidence_set_confidence (self, confidence);
	proton_plus_services_steam_session_blocker_evidence_set_detail (self, detail);
	return self;
}

ProtonPlusServicesSteamSessionBlockerEvidence*
proton_plus_services_steam_session_blocker_evidence_new (ProtonPlusServicesSteamSessionBlocker blocker,
                                                         ProtonPlusServicesSteamEvidenceLevel confidence,
                                                         const gchar* detail)
{
	return proton_plus_services_steam_session_blocker_evidence_construct (PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_BLOCKER_EVIDENCE, blocker, confidence, detail);
}

ProtonPlusServicesSteamSessionBlocker
proton_plus_services_steam_session_blocker_evidence_get_blocker (ProtonPlusServicesSteamSessionBlockerEvidence* self)
{
	ProtonPlusServicesSteamSessionBlocker result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_blocker;
	return result;
}

static void
proton_plus_services_steam_session_blocker_evidence_set_blocker (ProtonPlusServicesSteamSessionBlockerEvidence* self,
                                                                 ProtonPlusServicesSteamSessionBlocker value)
{
	ProtonPlusServicesSteamSessionBlocker old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_blocker_evidence_get_blocker (self);
	if (old_value != value) {
		self->priv->_blocker = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_blocker_evidence_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_BLOCKER_PROPERTY]);
	}
}

ProtonPlusServicesSteamEvidenceLevel
proton_plus_services_steam_session_blocker_evidence_get_confidence (ProtonPlusServicesSteamSessionBlockerEvidence* self)
{
	ProtonPlusServicesSteamEvidenceLevel result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_confidence;
	return result;
}

static void
proton_plus_services_steam_session_blocker_evidence_set_confidence (ProtonPlusServicesSteamSessionBlockerEvidence* self,
                                                                    ProtonPlusServicesSteamEvidenceLevel value)
{
	ProtonPlusServicesSteamEvidenceLevel old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_blocker_evidence_get_confidence (self);
	if (old_value != value) {
		self->priv->_confidence = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_blocker_evidence_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_CONFIDENCE_PROPERTY]);
	}
}

const gchar*
proton_plus_services_steam_session_blocker_evidence_get_detail (ProtonPlusServicesSteamSessionBlockerEvidence* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_detail;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_session_blocker_evidence_set_detail (ProtonPlusServicesSteamSessionBlockerEvidence* self,
                                                                const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_blocker_evidence_get_detail (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_detail);
		self->priv->_detail = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_blocker_evidence_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_DETAIL_PROPERTY]);
	}
}

static void
proton_plus_services_steam_session_blocker_evidence_class_init (ProtonPlusServicesSteamSessionBlockerEvidenceClass * klass,
                                                                gpointer klass_data)
{
	proton_plus_services_steam_session_blocker_evidence_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusServicesSteamSessionBlockerEvidence_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_services_steam_session_blocker_evidence_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_services_steam_session_blocker_evidence_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_services_steam_session_blocker_evidence_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_BLOCKER_PROPERTY, proton_plus_services_steam_session_blocker_evidence_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_BLOCKER_PROPERTY] = g_param_spec_enum ("blocker", "blocker", "blocker", PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_BLOCKER, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_CONFIDENCE_PROPERTY, proton_plus_services_steam_session_blocker_evidence_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_CONFIDENCE_PROPERTY] = g_param_spec_enum ("confidence", "confidence", "confidence", PROTON_PLUS_SERVICES_TYPE_STEAM_EVIDENCE_LEVEL, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_DETAIL_PROPERTY, proton_plus_services_steam_session_blocker_evidence_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_DETAIL_PROPERTY] = g_param_spec_string ("detail", "detail", "detail", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
proton_plus_services_steam_session_blocker_evidence_instance_init (ProtonPlusServicesSteamSessionBlockerEvidence * self,
                                                                   gpointer klass)
{
	self->priv = proton_plus_services_steam_session_blocker_evidence_get_instance_private (self);
}

static void
proton_plus_services_steam_session_blocker_evidence_finalize (GObject * obj)
{
	ProtonPlusServicesSteamSessionBlockerEvidence * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_BLOCKER_EVIDENCE, ProtonPlusServicesSteamSessionBlockerEvidence);
	_g_free0 (self->priv->_detail);
	G_OBJECT_CLASS (proton_plus_services_steam_session_blocker_evidence_parent_class)->finalize (obj);
}

static GType
proton_plus_services_steam_session_blocker_evidence_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusServicesSteamSessionBlockerEvidenceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_services_steam_session_blocker_evidence_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusServicesSteamSessionBlockerEvidence), 0, (GInstanceInitFunc) proton_plus_services_steam_session_blocker_evidence_instance_init, NULL };
	GType proton_plus_services_steam_session_blocker_evidence_type_id;
	proton_plus_services_steam_session_blocker_evidence_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusServicesSteamSessionBlockerEvidence", &g_define_type_info, 0);
	ProtonPlusServicesSteamSessionBlockerEvidence_private_offset = g_type_add_instance_private (proton_plus_services_steam_session_blocker_evidence_type_id, sizeof (ProtonPlusServicesSteamSessionBlockerEvidencePrivate));
	return proton_plus_services_steam_session_blocker_evidence_type_id;
}

GType
proton_plus_services_steam_session_blocker_evidence_get_type (void)
{
	static volatile gsize proton_plus_services_steam_session_blocker_evidence_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_steam_session_blocker_evidence_type_id__once)) {
		GType proton_plus_services_steam_session_blocker_evidence_type_id;
		proton_plus_services_steam_session_blocker_evidence_type_id = proton_plus_services_steam_session_blocker_evidence_get_type_once ();
		g_once_init_leave (&proton_plus_services_steam_session_blocker_evidence_type_id__once, proton_plus_services_steam_session_blocker_evidence_type_id);
	}
	return proton_plus_services_steam_session_blocker_evidence_type_id__once;
}

static void
_vala_proton_plus_services_steam_session_blocker_evidence_get_property (GObject * object,
                                                                        guint property_id,
                                                                        GValue * value,
                                                                        GParamSpec * pspec)
{
	ProtonPlusServicesSteamSessionBlockerEvidence * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_BLOCKER_EVIDENCE, ProtonPlusServicesSteamSessionBlockerEvidence);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_BLOCKER_PROPERTY:
		g_value_set_enum (value, proton_plus_services_steam_session_blocker_evidence_get_blocker (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_CONFIDENCE_PROPERTY:
		g_value_set_enum (value, proton_plus_services_steam_session_blocker_evidence_get_confidence (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_DETAIL_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_session_blocker_evidence_get_detail (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_services_steam_session_blocker_evidence_set_property (GObject * object,
                                                                        guint property_id,
                                                                        const GValue * value,
                                                                        GParamSpec * pspec)
{
	ProtonPlusServicesSteamSessionBlockerEvidence * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_BLOCKER_EVIDENCE, ProtonPlusServicesSteamSessionBlockerEvidence);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_BLOCKER_PROPERTY:
		proton_plus_services_steam_session_blocker_evidence_set_blocker (self, g_value_get_enum (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_CONFIDENCE_PROPERTY:
		proton_plus_services_steam_session_blocker_evidence_set_confidence (self, g_value_get_enum (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_EVIDENCE_DETAIL_PROPERTY:
		proton_plus_services_steam_session_blocker_evidence_set_detail (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static inline gpointer
proton_plus_services_steam_relaunch_metadata_get_instance_private (ProtonPlusServicesSteamRelaunchMetadata* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusServicesSteamRelaunchMetadata_private_offset);
}

ProtonPlusServicesSteamRelaunchMetadata*
proton_plus_services_steam_relaunch_metadata_construct (GType object_type,
                                                        const gchar* desktop_entry_id,
                                                        const gchar* desktop_entry_path,
                                                        const gchar* flatpak_application_id,
                                                        gboolean steam_uri_handler_candidate,
                                                        const gchar* limitation)
{
	ProtonPlusServicesSteamRelaunchMetadata * self = NULL;
	g_return_val_if_fail (limitation != NULL, NULL);
	self = (ProtonPlusServicesSteamRelaunchMetadata*) g_object_new (object_type, NULL);
	proton_plus_services_steam_relaunch_metadata_set_desktop_entry_id (self, desktop_entry_id);
	proton_plus_services_steam_relaunch_metadata_set_desktop_entry_path (self, desktop_entry_path);
	proton_plus_services_steam_relaunch_metadata_set_flatpak_application_id (self, flatpak_application_id);
	proton_plus_services_steam_relaunch_metadata_set_steam_uri_handler_candidate (self, steam_uri_handler_candidate);
	proton_plus_services_steam_relaunch_metadata_set_limitation (self, limitation);
	return self;
}

ProtonPlusServicesSteamRelaunchMetadata*
proton_plus_services_steam_relaunch_metadata_new (const gchar* desktop_entry_id,
                                                  const gchar* desktop_entry_path,
                                                  const gchar* flatpak_application_id,
                                                  gboolean steam_uri_handler_candidate,
                                                  const gchar* limitation)
{
	return proton_plus_services_steam_relaunch_metadata_construct (PROTON_PLUS_SERVICES_TYPE_STEAM_RELAUNCH_METADATA, desktop_entry_id, desktop_entry_path, flatpak_application_id, steam_uri_handler_candidate, limitation);
}

const gchar*
proton_plus_services_steam_relaunch_metadata_get_desktop_entry_id (ProtonPlusServicesSteamRelaunchMetadata* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_desktop_entry_id;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_relaunch_metadata_set_desktop_entry_id (ProtonPlusServicesSteamRelaunchMetadata* self,
                                                                   const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_relaunch_metadata_get_desktop_entry_id (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_desktop_entry_id);
		self->priv->_desktop_entry_id = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_relaunch_metadata_properties[PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_DESKTOP_ENTRY_ID_PROPERTY]);
	}
}

const gchar*
proton_plus_services_steam_relaunch_metadata_get_desktop_entry_path (ProtonPlusServicesSteamRelaunchMetadata* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_desktop_entry_path;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_relaunch_metadata_set_desktop_entry_path (ProtonPlusServicesSteamRelaunchMetadata* self,
                                                                     const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_relaunch_metadata_get_desktop_entry_path (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_desktop_entry_path);
		self->priv->_desktop_entry_path = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_relaunch_metadata_properties[PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_DESKTOP_ENTRY_PATH_PROPERTY]);
	}
}

const gchar*
proton_plus_services_steam_relaunch_metadata_get_flatpak_application_id (ProtonPlusServicesSteamRelaunchMetadata* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_flatpak_application_id;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_relaunch_metadata_set_flatpak_application_id (ProtonPlusServicesSteamRelaunchMetadata* self,
                                                                         const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_relaunch_metadata_get_flatpak_application_id (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_flatpak_application_id);
		self->priv->_flatpak_application_id = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_relaunch_metadata_properties[PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_FLATPAK_APPLICATION_ID_PROPERTY]);
	}
}

gboolean
proton_plus_services_steam_relaunch_metadata_get_steam_uri_handler_candidate (ProtonPlusServicesSteamRelaunchMetadata* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_steam_uri_handler_candidate;
	return result;
}

static void
proton_plus_services_steam_relaunch_metadata_set_steam_uri_handler_candidate (ProtonPlusServicesSteamRelaunchMetadata* self,
                                                                              gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_relaunch_metadata_get_steam_uri_handler_candidate (self);
	if (old_value != value) {
		self->priv->_steam_uri_handler_candidate = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_relaunch_metadata_properties[PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_STEAM_URI_HANDLER_CANDIDATE_PROPERTY]);
	}
}

const gchar*
proton_plus_services_steam_relaunch_metadata_get_limitation (ProtonPlusServicesSteamRelaunchMetadata* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_limitation;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_relaunch_metadata_set_limitation (ProtonPlusServicesSteamRelaunchMetadata* self,
                                                             const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_relaunch_metadata_get_limitation (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_limitation);
		self->priv->_limitation = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_relaunch_metadata_properties[PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_LIMITATION_PROPERTY]);
	}
}

static void
proton_plus_services_steam_relaunch_metadata_class_init (ProtonPlusServicesSteamRelaunchMetadataClass * klass,
                                                         gpointer klass_data)
{
	proton_plus_services_steam_relaunch_metadata_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusServicesSteamRelaunchMetadata_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_services_steam_relaunch_metadata_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_services_steam_relaunch_metadata_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_services_steam_relaunch_metadata_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_DESKTOP_ENTRY_ID_PROPERTY, proton_plus_services_steam_relaunch_metadata_properties[PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_DESKTOP_ENTRY_ID_PROPERTY] = g_param_spec_string ("desktop-entry-id", "desktop-entry-id", "desktop-entry-id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_DESKTOP_ENTRY_PATH_PROPERTY, proton_plus_services_steam_relaunch_metadata_properties[PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_DESKTOP_ENTRY_PATH_PROPERTY] = g_param_spec_string ("desktop-entry-path", "desktop-entry-path", "desktop-entry-path", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_FLATPAK_APPLICATION_ID_PROPERTY, proton_plus_services_steam_relaunch_metadata_properties[PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_FLATPAK_APPLICATION_ID_PROPERTY] = g_param_spec_string ("flatpak-application-id", "flatpak-application-id", "flatpak-application-id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_STEAM_URI_HANDLER_CANDIDATE_PROPERTY, proton_plus_services_steam_relaunch_metadata_properties[PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_STEAM_URI_HANDLER_CANDIDATE_PROPERTY] = g_param_spec_boolean ("steam-uri-handler-candidate", "steam-uri-handler-candidate", "steam-uri-handler-candidate", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_LIMITATION_PROPERTY, proton_plus_services_steam_relaunch_metadata_properties[PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_LIMITATION_PROPERTY] = g_param_spec_string ("limitation", "limitation", "limitation", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
proton_plus_services_steam_relaunch_metadata_instance_init (ProtonPlusServicesSteamRelaunchMetadata * self,
                                                            gpointer klass)
{
	self->priv = proton_plus_services_steam_relaunch_metadata_get_instance_private (self);
}

static void
proton_plus_services_steam_relaunch_metadata_finalize (GObject * obj)
{
	ProtonPlusServicesSteamRelaunchMetadata * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_SERVICES_TYPE_STEAM_RELAUNCH_METADATA, ProtonPlusServicesSteamRelaunchMetadata);
	_g_free0 (self->priv->_desktop_entry_id);
	_g_free0 (self->priv->_desktop_entry_path);
	_g_free0 (self->priv->_flatpak_application_id);
	_g_free0 (self->priv->_limitation);
	G_OBJECT_CLASS (proton_plus_services_steam_relaunch_metadata_parent_class)->finalize (obj);
}

static GType
proton_plus_services_steam_relaunch_metadata_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusServicesSteamRelaunchMetadataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_services_steam_relaunch_metadata_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusServicesSteamRelaunchMetadata), 0, (GInstanceInitFunc) proton_plus_services_steam_relaunch_metadata_instance_init, NULL };
	GType proton_plus_services_steam_relaunch_metadata_type_id;
	proton_plus_services_steam_relaunch_metadata_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusServicesSteamRelaunchMetadata", &g_define_type_info, 0);
	ProtonPlusServicesSteamRelaunchMetadata_private_offset = g_type_add_instance_private (proton_plus_services_steam_relaunch_metadata_type_id, sizeof (ProtonPlusServicesSteamRelaunchMetadataPrivate));
	return proton_plus_services_steam_relaunch_metadata_type_id;
}

GType
proton_plus_services_steam_relaunch_metadata_get_type (void)
{
	static volatile gsize proton_plus_services_steam_relaunch_metadata_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_steam_relaunch_metadata_type_id__once)) {
		GType proton_plus_services_steam_relaunch_metadata_type_id;
		proton_plus_services_steam_relaunch_metadata_type_id = proton_plus_services_steam_relaunch_metadata_get_type_once ();
		g_once_init_leave (&proton_plus_services_steam_relaunch_metadata_type_id__once, proton_plus_services_steam_relaunch_metadata_type_id);
	}
	return proton_plus_services_steam_relaunch_metadata_type_id__once;
}

static void
_vala_proton_plus_services_steam_relaunch_metadata_get_property (GObject * object,
                                                                 guint property_id,
                                                                 GValue * value,
                                                                 GParamSpec * pspec)
{
	ProtonPlusServicesSteamRelaunchMetadata * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_RELAUNCH_METADATA, ProtonPlusServicesSteamRelaunchMetadata);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_DESKTOP_ENTRY_ID_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_relaunch_metadata_get_desktop_entry_id (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_DESKTOP_ENTRY_PATH_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_relaunch_metadata_get_desktop_entry_path (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_FLATPAK_APPLICATION_ID_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_relaunch_metadata_get_flatpak_application_id (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_STEAM_URI_HANDLER_CANDIDATE_PROPERTY:
		g_value_set_boolean (value, proton_plus_services_steam_relaunch_metadata_get_steam_uri_handler_candidate (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_LIMITATION_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_relaunch_metadata_get_limitation (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_services_steam_relaunch_metadata_set_property (GObject * object,
                                                                 guint property_id,
                                                                 const GValue * value,
                                                                 GParamSpec * pspec)
{
	ProtonPlusServicesSteamRelaunchMetadata * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_RELAUNCH_METADATA, ProtonPlusServicesSteamRelaunchMetadata);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_DESKTOP_ENTRY_ID_PROPERTY:
		proton_plus_services_steam_relaunch_metadata_set_desktop_entry_id (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_DESKTOP_ENTRY_PATH_PROPERTY:
		proton_plus_services_steam_relaunch_metadata_set_desktop_entry_path (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_FLATPAK_APPLICATION_ID_PROPERTY:
		proton_plus_services_steam_relaunch_metadata_set_flatpak_application_id (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_STEAM_URI_HANDLER_CANDIDATE_PROPERTY:
		proton_plus_services_steam_relaunch_metadata_set_steam_uri_handler_candidate (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_RELAUNCH_METADATA_LIMITATION_PROPERTY:
		proton_plus_services_steam_relaunch_metadata_set_limitation (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static inline gpointer
proton_plus_services_steam_session_snapshot_get_instance_private (ProtonPlusServicesSteamSessionSnapshot* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusServicesSteamSessionSnapshot_private_offset);
}

ProtonPlusServicesSteamSessionSnapshot*
proton_plus_services_steam_session_snapshot_construct (GType object_type,
                                                       const gchar* target_id,
                                                       ProtonPlusServicesSteamSessionState state,
                                                       gboolean matching_process_found,
                                                       gint main_process_pid,
                                                       ProtonPlusServicesSteamProcessGeneration* generation,
                                                       const gchar* flatpak_instance_id,
                                                       const gchar* matching_executable_path,
                                                       ProtonPlusServicesSteamRelaunchMetadata* relaunch,
                                                       GeeList* blockers,
                                                       ProtonPlusServicesSteamEvidenceLevel state_confidence,
                                                       ProtonPlusServicesSteamSessionMode session_mode,
                                                       GeeList* diagnostics)
{
	ProtonPlusServicesSteamSessionSnapshot * self = NULL;
	g_return_val_if_fail (target_id != NULL, NULL);
	g_return_val_if_fail (relaunch != NULL, NULL);
	g_return_val_if_fail (blockers != NULL, NULL);
	g_return_val_if_fail (diagnostics != NULL, NULL);
	self = (ProtonPlusServicesSteamSessionSnapshot*) g_object_new (object_type, NULL);
	proton_plus_services_steam_session_snapshot_set_target_id (self, target_id);
	proton_plus_services_steam_session_snapshot_set_state (self, state);
	proton_plus_services_steam_session_snapshot_set_matching_process_found (self, matching_process_found);
	proton_plus_services_steam_session_snapshot_set_main_process_pid (self, main_process_pid);
	proton_plus_services_steam_session_snapshot_set_generation (self, generation);
	proton_plus_services_steam_session_snapshot_set_flatpak_instance_id (self, flatpak_instance_id);
	proton_plus_services_steam_session_snapshot_set_matching_executable_path (self, matching_executable_path);
	proton_plus_services_steam_session_snapshot_set_relaunch (self, relaunch);
	proton_plus_services_steam_session_snapshot_set_blockers (self, blockers);
	proton_plus_services_steam_session_snapshot_set_state_confidence (self, state_confidence);
	proton_plus_services_steam_session_snapshot_set_session_mode (self, session_mode);
	proton_plus_services_steam_session_snapshot_set_diagnostics (self, diagnostics);
	return self;
}

ProtonPlusServicesSteamSessionSnapshot*
proton_plus_services_steam_session_snapshot_new (const gchar* target_id,
                                                 ProtonPlusServicesSteamSessionState state,
                                                 gboolean matching_process_found,
                                                 gint main_process_pid,
                                                 ProtonPlusServicesSteamProcessGeneration* generation,
                                                 const gchar* flatpak_instance_id,
                                                 const gchar* matching_executable_path,
                                                 ProtonPlusServicesSteamRelaunchMetadata* relaunch,
                                                 GeeList* blockers,
                                                 ProtonPlusServicesSteamEvidenceLevel state_confidence,
                                                 ProtonPlusServicesSteamSessionMode session_mode,
                                                 GeeList* diagnostics)
{
	return proton_plus_services_steam_session_snapshot_construct (PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SNAPSHOT, target_id, state, matching_process_found, main_process_pid, generation, flatpak_instance_id, matching_executable_path, relaunch, blockers, state_confidence, session_mode, diagnostics);
}

const gchar*
proton_plus_services_steam_session_snapshot_get_target_id (ProtonPlusServicesSteamSessionSnapshot* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_target_id;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_session_snapshot_set_target_id (ProtonPlusServicesSteamSessionSnapshot* self,
                                                           const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_snapshot_get_target_id (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_target_id);
		self->priv->_target_id = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_TARGET_ID_PROPERTY]);
	}
}

ProtonPlusServicesSteamSessionState
proton_plus_services_steam_session_snapshot_get_state (ProtonPlusServicesSteamSessionSnapshot* self)
{
	ProtonPlusServicesSteamSessionState result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_state;
	return result;
}

static void
proton_plus_services_steam_session_snapshot_set_state (ProtonPlusServicesSteamSessionSnapshot* self,
                                                       ProtonPlusServicesSteamSessionState value)
{
	ProtonPlusServicesSteamSessionState old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_snapshot_get_state (self);
	if (old_value != value) {
		self->priv->_state = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_STATE_PROPERTY]);
	}
}

gboolean
proton_plus_services_steam_session_snapshot_get_matching_process_found (ProtonPlusServicesSteamSessionSnapshot* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_matching_process_found;
	return result;
}

static void
proton_plus_services_steam_session_snapshot_set_matching_process_found (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                        gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_snapshot_get_matching_process_found (self);
	if (old_value != value) {
		self->priv->_matching_process_found = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MATCHING_PROCESS_FOUND_PROPERTY]);
	}
}

gint
proton_plus_services_steam_session_snapshot_get_main_process_pid (ProtonPlusServicesSteamSessionSnapshot* self)
{
	gint result;
	g_return_val_if_fail (self != NULL, -1);
	result = self->priv->_main_process_pid;
	return result;
}

static void
proton_plus_services_steam_session_snapshot_set_main_process_pid (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                  gint value)
{
	gint old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_snapshot_get_main_process_pid (self);
	if (old_value != value) {
		self->priv->_main_process_pid = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MAIN_PROCESS_PID_PROPERTY]);
	}
}

gboolean
proton_plus_services_steam_session_snapshot_get_main_process_pid_known (ProtonPlusServicesSteamSessionSnapshot* self)
{
	gboolean result;
	gint _tmp0_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_main_process_pid;
	result = _tmp0_ > 0;
	return result;
}

ProtonPlusServicesSteamProcessGeneration*
proton_plus_services_steam_session_snapshot_get_generation (ProtonPlusServicesSteamSessionSnapshot* self)
{
	ProtonPlusServicesSteamProcessGeneration* result;
	ProtonPlusServicesSteamProcessGeneration* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_generation;
	result = _tmp0_;
	return result;
}

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

static void
proton_plus_services_steam_session_snapshot_set_generation (ProtonPlusServicesSteamSessionSnapshot* self,
                                                            ProtonPlusServicesSteamProcessGeneration* value)
{
	ProtonPlusServicesSteamProcessGeneration* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_snapshot_get_generation (self);
	if (old_value != value) {
		ProtonPlusServicesSteamProcessGeneration* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_generation);
		self->priv->_generation = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_GENERATION_PROPERTY]);
	}
}

const gchar*
proton_plus_services_steam_session_snapshot_get_flatpak_instance_id (ProtonPlusServicesSteamSessionSnapshot* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_flatpak_instance_id;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_session_snapshot_set_flatpak_instance_id (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                     const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_snapshot_get_flatpak_instance_id (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_flatpak_instance_id);
		self->priv->_flatpak_instance_id = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_FLATPAK_INSTANCE_ID_PROPERTY]);
	}
}

const gchar*
proton_plus_services_steam_session_snapshot_get_matching_executable_path (ProtonPlusServicesSteamSessionSnapshot* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_matching_executable_path;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_session_snapshot_set_matching_executable_path (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                          const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_snapshot_get_matching_executable_path (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_matching_executable_path);
		self->priv->_matching_executable_path = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MATCHING_EXECUTABLE_PATH_PROPERTY]);
	}
}

ProtonPlusServicesSteamRelaunchMetadata*
proton_plus_services_steam_session_snapshot_get_relaunch (ProtonPlusServicesSteamSessionSnapshot* self)
{
	ProtonPlusServicesSteamRelaunchMetadata* result;
	ProtonPlusServicesSteamRelaunchMetadata* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_relaunch;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_session_snapshot_set_relaunch (ProtonPlusServicesSteamSessionSnapshot* self,
                                                          ProtonPlusServicesSteamRelaunchMetadata* value)
{
	ProtonPlusServicesSteamRelaunchMetadata* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_snapshot_get_relaunch (self);
	if (old_value != value) {
		ProtonPlusServicesSteamRelaunchMetadata* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_relaunch);
		self->priv->_relaunch = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_RELAUNCH_PROPERTY]);
	}
}

GeeList*
proton_plus_services_steam_session_snapshot_get_blockers (ProtonPlusServicesSteamSessionSnapshot* self)
{
	GeeList* result;
	GeeList* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_blockers;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_session_snapshot_set_blockers (ProtonPlusServicesSteamSessionSnapshot* self,
                                                          GeeList* value)
{
	GeeList* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_snapshot_get_blockers (self);
	if (old_value != value) {
		GeeList* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_blockers);
		self->priv->_blockers = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_BLOCKERS_PROPERTY]);
	}
}

ProtonPlusServicesSteamEvidenceLevel
proton_plus_services_steam_session_snapshot_get_state_confidence (ProtonPlusServicesSteamSessionSnapshot* self)
{
	ProtonPlusServicesSteamEvidenceLevel result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_state_confidence;
	return result;
}

static void
proton_plus_services_steam_session_snapshot_set_state_confidence (ProtonPlusServicesSteamSessionSnapshot* self,
                                                                  ProtonPlusServicesSteamEvidenceLevel value)
{
	ProtonPlusServicesSteamEvidenceLevel old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_snapshot_get_state_confidence (self);
	if (old_value != value) {
		self->priv->_state_confidence = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_STATE_CONFIDENCE_PROPERTY]);
	}
}

ProtonPlusServicesSteamSessionMode
proton_plus_services_steam_session_snapshot_get_session_mode (ProtonPlusServicesSteamSessionSnapshot* self)
{
	ProtonPlusServicesSteamSessionMode result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_session_mode;
	return result;
}

static void
proton_plus_services_steam_session_snapshot_set_session_mode (ProtonPlusServicesSteamSessionSnapshot* self,
                                                              ProtonPlusServicesSteamSessionMode value)
{
	ProtonPlusServicesSteamSessionMode old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_snapshot_get_session_mode (self);
	if (old_value != value) {
		self->priv->_session_mode = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_SESSION_MODE_PROPERTY]);
	}
}

GeeList*
proton_plus_services_steam_session_snapshot_get_diagnostics (ProtonPlusServicesSteamSessionSnapshot* self)
{
	GeeList* result;
	GeeList* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_diagnostics;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_session_snapshot_set_diagnostics (ProtonPlusServicesSteamSessionSnapshot* self,
                                                             GeeList* value)
{
	GeeList* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_session_snapshot_get_diagnostics (self);
	if (old_value != value) {
		GeeList* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_diagnostics);
		self->priv->_diagnostics = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_DIAGNOSTICS_PROPERTY]);
	}
}

static void
proton_plus_services_steam_session_snapshot_class_init (ProtonPlusServicesSteamSessionSnapshotClass * klass,
                                                        gpointer klass_data)
{
	proton_plus_services_steam_session_snapshot_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusServicesSteamSessionSnapshot_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_services_steam_session_snapshot_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_services_steam_session_snapshot_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_services_steam_session_snapshot_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_TARGET_ID_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_TARGET_ID_PROPERTY] = g_param_spec_string ("target-id", "target-id", "target-id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_STATE_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_STATE_PROPERTY] = g_param_spec_enum ("state", "state", "state", PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_STATE, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MATCHING_PROCESS_FOUND_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MATCHING_PROCESS_FOUND_PROPERTY] = g_param_spec_boolean ("matching-process-found", "matching-process-found", "matching-process-found", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MAIN_PROCESS_PID_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MAIN_PROCESS_PID_PROPERTY] = g_param_spec_int ("main-process-pid", "main-process-pid", "main-process-pid", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MAIN_PROCESS_PID_KNOWN_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MAIN_PROCESS_PID_KNOWN_PROPERTY] = g_param_spec_boolean ("main-process-pid-known", "main-process-pid-known", "main-process-pid-known", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_GENERATION_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_GENERATION_PROPERTY] = g_param_spec_object ("generation", "generation", "generation", PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_GENERATION, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_FLATPAK_INSTANCE_ID_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_FLATPAK_INSTANCE_ID_PROPERTY] = g_param_spec_string ("flatpak-instance-id", "flatpak-instance-id", "flatpak-instance-id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MATCHING_EXECUTABLE_PATH_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MATCHING_EXECUTABLE_PATH_PROPERTY] = g_param_spec_string ("matching-executable-path", "matching-executable-path", "matching-executable-path", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_RELAUNCH_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_RELAUNCH_PROPERTY] = g_param_spec_object ("relaunch", "relaunch", "relaunch", PROTON_PLUS_SERVICES_TYPE_STEAM_RELAUNCH_METADATA, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_BLOCKERS_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_BLOCKERS_PROPERTY] = g_param_spec_object ("blockers", "blockers", "blockers", GEE_TYPE_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_STATE_CONFIDENCE_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_STATE_CONFIDENCE_PROPERTY] = g_param_spec_enum ("state-confidence", "state-confidence", "state-confidence", PROTON_PLUS_SERVICES_TYPE_STEAM_EVIDENCE_LEVEL, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_SESSION_MODE_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_SESSION_MODE_PROPERTY] = g_param_spec_enum ("session-mode", "session-mode", "session-mode", PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_MODE, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_DIAGNOSTICS_PROPERTY, proton_plus_services_steam_session_snapshot_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_DIAGNOSTICS_PROPERTY] = g_param_spec_object ("diagnostics", "diagnostics", "diagnostics", GEE_TYPE_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
proton_plus_services_steam_session_snapshot_instance_init (ProtonPlusServicesSteamSessionSnapshot * self,
                                                           gpointer klass)
{
	self->priv = proton_plus_services_steam_session_snapshot_get_instance_private (self);
}

static void
proton_plus_services_steam_session_snapshot_finalize (GObject * obj)
{
	ProtonPlusServicesSteamSessionSnapshot * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SNAPSHOT, ProtonPlusServicesSteamSessionSnapshot);
	_g_free0 (self->priv->_target_id);
	_g_object_unref0 (self->priv->_generation);
	_g_free0 (self->priv->_flatpak_instance_id);
	_g_free0 (self->priv->_matching_executable_path);
	_g_object_unref0 (self->priv->_relaunch);
	_g_object_unref0 (self->priv->_blockers);
	_g_object_unref0 (self->priv->_diagnostics);
	G_OBJECT_CLASS (proton_plus_services_steam_session_snapshot_parent_class)->finalize (obj);
}

static GType
proton_plus_services_steam_session_snapshot_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusServicesSteamSessionSnapshotClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_services_steam_session_snapshot_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusServicesSteamSessionSnapshot), 0, (GInstanceInitFunc) proton_plus_services_steam_session_snapshot_instance_init, NULL };
	GType proton_plus_services_steam_session_snapshot_type_id;
	proton_plus_services_steam_session_snapshot_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusServicesSteamSessionSnapshot", &g_define_type_info, 0);
	ProtonPlusServicesSteamSessionSnapshot_private_offset = g_type_add_instance_private (proton_plus_services_steam_session_snapshot_type_id, sizeof (ProtonPlusServicesSteamSessionSnapshotPrivate));
	return proton_plus_services_steam_session_snapshot_type_id;
}

GType
proton_plus_services_steam_session_snapshot_get_type (void)
{
	static volatile gsize proton_plus_services_steam_session_snapshot_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_steam_session_snapshot_type_id__once)) {
		GType proton_plus_services_steam_session_snapshot_type_id;
		proton_plus_services_steam_session_snapshot_type_id = proton_plus_services_steam_session_snapshot_get_type_once ();
		g_once_init_leave (&proton_plus_services_steam_session_snapshot_type_id__once, proton_plus_services_steam_session_snapshot_type_id);
	}
	return proton_plus_services_steam_session_snapshot_type_id__once;
}

static void
_vala_proton_plus_services_steam_session_snapshot_get_property (GObject * object,
                                                                guint property_id,
                                                                GValue * value,
                                                                GParamSpec * pspec)
{
	ProtonPlusServicesSteamSessionSnapshot * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SNAPSHOT, ProtonPlusServicesSteamSessionSnapshot);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_TARGET_ID_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_session_snapshot_get_target_id (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_STATE_PROPERTY:
		g_value_set_enum (value, proton_plus_services_steam_session_snapshot_get_state (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MATCHING_PROCESS_FOUND_PROPERTY:
		g_value_set_boolean (value, proton_plus_services_steam_session_snapshot_get_matching_process_found (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MAIN_PROCESS_PID_PROPERTY:
		g_value_set_int (value, proton_plus_services_steam_session_snapshot_get_main_process_pid (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MAIN_PROCESS_PID_KNOWN_PROPERTY:
		g_value_set_boolean (value, proton_plus_services_steam_session_snapshot_get_main_process_pid_known (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_GENERATION_PROPERTY:
		g_value_set_object (value, proton_plus_services_steam_session_snapshot_get_generation (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_FLATPAK_INSTANCE_ID_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_session_snapshot_get_flatpak_instance_id (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MATCHING_EXECUTABLE_PATH_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_session_snapshot_get_matching_executable_path (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_RELAUNCH_PROPERTY:
		g_value_set_object (value, proton_plus_services_steam_session_snapshot_get_relaunch (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_BLOCKERS_PROPERTY:
		g_value_set_object (value, proton_plus_services_steam_session_snapshot_get_blockers (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_STATE_CONFIDENCE_PROPERTY:
		g_value_set_enum (value, proton_plus_services_steam_session_snapshot_get_state_confidence (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_SESSION_MODE_PROPERTY:
		g_value_set_enum (value, proton_plus_services_steam_session_snapshot_get_session_mode (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_DIAGNOSTICS_PROPERTY:
		g_value_set_object (value, proton_plus_services_steam_session_snapshot_get_diagnostics (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_services_steam_session_snapshot_set_property (GObject * object,
                                                                guint property_id,
                                                                const GValue * value,
                                                                GParamSpec * pspec)
{
	ProtonPlusServicesSteamSessionSnapshot * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SNAPSHOT, ProtonPlusServicesSteamSessionSnapshot);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_TARGET_ID_PROPERTY:
		proton_plus_services_steam_session_snapshot_set_target_id (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_STATE_PROPERTY:
		proton_plus_services_steam_session_snapshot_set_state (self, g_value_get_enum (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MATCHING_PROCESS_FOUND_PROPERTY:
		proton_plus_services_steam_session_snapshot_set_matching_process_found (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MAIN_PROCESS_PID_PROPERTY:
		proton_plus_services_steam_session_snapshot_set_main_process_pid (self, g_value_get_int (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_GENERATION_PROPERTY:
		proton_plus_services_steam_session_snapshot_set_generation (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_FLATPAK_INSTANCE_ID_PROPERTY:
		proton_plus_services_steam_session_snapshot_set_flatpak_instance_id (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_MATCHING_EXECUTABLE_PATH_PROPERTY:
		proton_plus_services_steam_session_snapshot_set_matching_executable_path (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_RELAUNCH_PROPERTY:
		proton_plus_services_steam_session_snapshot_set_relaunch (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_BLOCKERS_PROPERTY:
		proton_plus_services_steam_session_snapshot_set_blockers (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_STATE_CONFIDENCE_PROPERTY:
		proton_plus_services_steam_session_snapshot_set_state_confidence (self, g_value_get_enum (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_SESSION_MODE_PROPERTY:
		proton_plus_services_steam_session_snapshot_set_session_mode (self, g_value_get_enum (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SNAPSHOT_DIAGNOSTICS_PROPERTY:
		proton_plus_services_steam_session_snapshot_set_diagnostics (self, g_value_get_object (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static inline gpointer
proton_plus_services_steam_process_record_get_instance_private (ProtonPlusServicesSteamProcessRecord* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusServicesSteamProcessRecord_private_offset);
}

ProtonPlusServicesSteamProcessRecord*
proton_plus_services_steam_process_record_construct (GType object_type,
                                                     gint pid,
                                                     const gchar* executable_path,
                                                     const gchar* command_line,
                                                     gint64 start_time_ticks)
{
	ProtonPlusServicesSteamProcessRecord * self = NULL;
	g_return_val_if_fail (executable_path != NULL, NULL);
	g_return_val_if_fail (command_line != NULL, NULL);
	self = (ProtonPlusServicesSteamProcessRecord*) g_object_new (object_type, NULL);
	proton_plus_services_steam_process_record_set_pid (self, pid);
	proton_plus_services_steam_process_record_set_executable_path (self, executable_path);
	proton_plus_services_steam_process_record_set_command_line (self, command_line);
	proton_plus_services_steam_process_record_set_start_time_ticks (self, start_time_ticks);
	return self;
}

ProtonPlusServicesSteamProcessRecord*
proton_plus_services_steam_process_record_new (gint pid,
                                               const gchar* executable_path,
                                               const gchar* command_line,
                                               gint64 start_time_ticks)
{
	return proton_plus_services_steam_process_record_construct (PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, pid, executable_path, command_line, start_time_ticks);
}

ProtonPlusServicesSteamProcessRecord*
proton_plus_services_steam_process_record_construct_from_proc (GType object_type,
                                                               gint pid,
                                                               const gchar* executable_path,
                                                               guint8* command_line_bytes,
                                                               gint command_line_bytes_length1,
                                                               gint64 start_time_ticks)
{
	ProtonPlusServicesSteamProcessRecord * self = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (executable_path != NULL, NULL);
	self = (ProtonPlusServicesSteamProcessRecord*) g_object_new (object_type, NULL);
	proton_plus_services_steam_process_record_set_pid (self, pid);
	proton_plus_services_steam_process_record_set_executable_path (self, executable_path);
	_tmp0_ = proton_plus_services_steam_process_record_decode_proc_command_line (command_line_bytes, (gint) command_line_bytes_length1);
	_tmp1_ = _tmp0_;
	proton_plus_services_steam_process_record_set_command_line (self, _tmp1_);
	_g_free0 (_tmp1_);
	proton_plus_services_steam_process_record_set_start_time_ticks (self, start_time_ticks);
	return self;
}

ProtonPlusServicesSteamProcessRecord*
proton_plus_services_steam_process_record_new_from_proc (gint pid,
                                                         const gchar* executable_path,
                                                         guint8* command_line_bytes,
                                                         gint command_line_bytes_length1,
                                                         gint64 start_time_ticks)
{
	return proton_plus_services_steam_process_record_construct_from_proc (PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, pid, executable_path, command_line_bytes, command_line_bytes_length1, start_time_ticks);
}

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 gchar*
proton_plus_services_steam_process_record_decode_proc_command_line (guint8* contents,
                                                                    gint contents_length1)
{
	GString* decoded = NULL;
	GString* _tmp0_;
	GString* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* result;
	_tmp0_ = g_string_sized_new ((gsize) contents_length1);
	decoded = _tmp0_;
	{
		guint8* byte_value_collection = NULL;
		gint byte_value_collection_length1 = 0;
		gint _byte_value_collection_size_ = 0;
		gint byte_value_it = 0;
		byte_value_collection = contents;
		byte_value_collection_length1 = contents_length1;
		for (byte_value_it = 0; byte_value_it < byte_value_collection_length1; byte_value_it = byte_value_it + 1) {
			guint8 byte_value = 0U;
			byte_value = byte_value_collection[byte_value_it];
			{
				gchar _tmp1_ = '\0';
				GString* _tmp2_;
				if (((gint) byte_value) == 0) {
					_tmp1_ = ' ';
				} else {
					_tmp1_ = (gchar) byte_value;
				}
				_tmp2_ = decoded;
				g_string_append_c (_tmp2_, _tmp1_);
			}
		}
	}
	_tmp3_ = decoded;
	_tmp4_ = _tmp3_->str;
	_tmp5_ = string_strip (_tmp4_);
	result = _tmp5_;
	_g_string_free0 (decoded);
	return result;
}

gint
proton_plus_services_steam_process_record_get_pid (ProtonPlusServicesSteamProcessRecord* self)
{
	gint result;
	g_return_val_if_fail (self != NULL, -1);
	result = self->priv->_pid;
	return result;
}

static void
proton_plus_services_steam_process_record_set_pid (ProtonPlusServicesSteamProcessRecord* self,
                                                   gint value)
{
	gint old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_process_record_get_pid (self);
	if (old_value != value) {
		self->priv->_pid = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_process_record_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_PID_PROPERTY]);
	}
}

const gchar*
proton_plus_services_steam_process_record_get_executable_path (ProtonPlusServicesSteamProcessRecord* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_executable_path;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_process_record_set_executable_path (ProtonPlusServicesSteamProcessRecord* self,
                                                               const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_process_record_get_executable_path (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_executable_path);
		self->priv->_executable_path = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_process_record_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_EXECUTABLE_PATH_PROPERTY]);
	}
}

const gchar*
proton_plus_services_steam_process_record_get_command_line (ProtonPlusServicesSteamProcessRecord* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_command_line;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_process_record_set_command_line (ProtonPlusServicesSteamProcessRecord* self,
                                                            const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_process_record_get_command_line (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_command_line);
		self->priv->_command_line = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_process_record_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_COMMAND_LINE_PROPERTY]);
	}
}

gint64
proton_plus_services_steam_process_record_get_start_time_ticks (ProtonPlusServicesSteamProcessRecord* self)
{
	gint64 result;
	g_return_val_if_fail (self != NULL, -1LL);
	result = self->priv->_start_time_ticks;
	return result;
}

static void
proton_plus_services_steam_process_record_set_start_time_ticks (ProtonPlusServicesSteamProcessRecord* self,
                                                                gint64 value)
{
	gint64 old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_process_record_get_start_time_ticks (self);
	if (old_value != value) {
		self->priv->_start_time_ticks = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_process_record_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_START_TIME_TICKS_PROPERTY]);
	}
}

static void
proton_plus_services_steam_process_record_class_init (ProtonPlusServicesSteamProcessRecordClass * klass,
                                                      gpointer klass_data)
{
	proton_plus_services_steam_process_record_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusServicesSteamProcessRecord_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_services_steam_process_record_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_services_steam_process_record_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_services_steam_process_record_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_PID_PROPERTY, proton_plus_services_steam_process_record_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_PID_PROPERTY] = g_param_spec_int ("pid", "pid", "pid", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_EXECUTABLE_PATH_PROPERTY, proton_plus_services_steam_process_record_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_EXECUTABLE_PATH_PROPERTY] = g_param_spec_string ("executable-path", "executable-path", "executable-path", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_COMMAND_LINE_PROPERTY, proton_plus_services_steam_process_record_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_COMMAND_LINE_PROPERTY] = g_param_spec_string ("command-line", "command-line", "command-line", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_START_TIME_TICKS_PROPERTY, proton_plus_services_steam_process_record_properties[PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_START_TIME_TICKS_PROPERTY] = g_param_spec_int64 ("start-time-ticks", "start-time-ticks", "start-time-ticks", G_MININT64, G_MAXINT64, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
proton_plus_services_steam_process_record_instance_init (ProtonPlusServicesSteamProcessRecord * self,
                                                         gpointer klass)
{
	self->priv = proton_plus_services_steam_process_record_get_instance_private (self);
}

static void
proton_plus_services_steam_process_record_finalize (GObject * obj)
{
	ProtonPlusServicesSteamProcessRecord * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, ProtonPlusServicesSteamProcessRecord);
	_g_free0 (self->priv->_executable_path);
	_g_free0 (self->priv->_command_line);
	G_OBJECT_CLASS (proton_plus_services_steam_process_record_parent_class)->finalize (obj);
}

static GType
proton_plus_services_steam_process_record_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusServicesSteamProcessRecordClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_services_steam_process_record_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusServicesSteamProcessRecord), 0, (GInstanceInitFunc) proton_plus_services_steam_process_record_instance_init, NULL };
	GType proton_plus_services_steam_process_record_type_id;
	proton_plus_services_steam_process_record_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusServicesSteamProcessRecord", &g_define_type_info, 0);
	ProtonPlusServicesSteamProcessRecord_private_offset = g_type_add_instance_private (proton_plus_services_steam_process_record_type_id, sizeof (ProtonPlusServicesSteamProcessRecordPrivate));
	return proton_plus_services_steam_process_record_type_id;
}

GType
proton_plus_services_steam_process_record_get_type (void)
{
	static volatile gsize proton_plus_services_steam_process_record_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_steam_process_record_type_id__once)) {
		GType proton_plus_services_steam_process_record_type_id;
		proton_plus_services_steam_process_record_type_id = proton_plus_services_steam_process_record_get_type_once ();
		g_once_init_leave (&proton_plus_services_steam_process_record_type_id__once, proton_plus_services_steam_process_record_type_id);
	}
	return proton_plus_services_steam_process_record_type_id__once;
}

static void
_vala_proton_plus_services_steam_process_record_get_property (GObject * object,
                                                              guint property_id,
                                                              GValue * value,
                                                              GParamSpec * pspec)
{
	ProtonPlusServicesSteamProcessRecord * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, ProtonPlusServicesSteamProcessRecord);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_PID_PROPERTY:
		g_value_set_int (value, proton_plus_services_steam_process_record_get_pid (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_EXECUTABLE_PATH_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_process_record_get_executable_path (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_COMMAND_LINE_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_process_record_get_command_line (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_START_TIME_TICKS_PROPERTY:
		g_value_set_int64 (value, proton_plus_services_steam_process_record_get_start_time_ticks (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_services_steam_process_record_set_property (GObject * object,
                                                              guint property_id,
                                                              const GValue * value,
                                                              GParamSpec * pspec)
{
	ProtonPlusServicesSteamProcessRecord * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, ProtonPlusServicesSteamProcessRecord);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_PID_PROPERTY:
		proton_plus_services_steam_process_record_set_pid (self, g_value_get_int (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_EXECUTABLE_PATH_PROPERTY:
		proton_plus_services_steam_process_record_set_executable_path (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_COMMAND_LINE_PROPERTY:
		proton_plus_services_steam_process_record_set_command_line (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_PROCESS_RECORD_START_TIME_TICKS_PROPERTY:
		proton_plus_services_steam_process_record_set_start_time_ticks (self, g_value_get_int64 (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static inline gpointer
proton_plus_services_native_process_query_get_instance_private (ProtonPlusServicesNativeProcessQuery* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusServicesNativeProcessQuery_private_offset);
}

ProtonPlusServicesNativeProcessQuery*
proton_plus_services_native_process_query_construct (GType object_type,
                                                     gboolean available,
                                                     GeeList* processes,
                                                     const gchar* diagnostic)
{
	ProtonPlusServicesNativeProcessQuery * self = NULL;
	GeeList* _tmp0_ = NULL;
	GeeList* _tmp1_;
	g_return_val_if_fail (diagnostic != NULL, NULL);
	self = (ProtonPlusServicesNativeProcessQuery*) g_object_new (object_type, NULL);
	proton_plus_services_native_process_query_set_available (self, available);
	_tmp1_ = _g_object_ref0 (processes);
	_tmp0_ = _tmp1_;
	if (_tmp0_ == NULL) {
		GeeArrayList* _tmp2_;
		_tmp2_ = gee_array_list_new (PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
		_g_object_unref0 (_tmp0_);
		_tmp0_ = (GeeList*) _tmp2_;
	}
	proton_plus_services_native_process_query_set_processes (self, _tmp0_);
	proton_plus_services_native_process_query_set_diagnostic (self, diagnostic);
	_g_object_unref0 (_tmp0_);
	return self;
}

ProtonPlusServicesNativeProcessQuery*
proton_plus_services_native_process_query_new (gboolean available,
                                               GeeList* processes,
                                               const gchar* diagnostic)
{
	return proton_plus_services_native_process_query_construct (PROTON_PLUS_SERVICES_TYPE_NATIVE_PROCESS_QUERY, available, processes, diagnostic);
}

gboolean
proton_plus_services_native_process_query_get_available (ProtonPlusServicesNativeProcessQuery* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_available;
	return result;
}

static void
proton_plus_services_native_process_query_set_available (ProtonPlusServicesNativeProcessQuery* self,
                                                         gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_native_process_query_get_available (self);
	if (old_value != value) {
		self->priv->_available = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_native_process_query_properties[PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_AVAILABLE_PROPERTY]);
	}
}

GeeList*
proton_plus_services_native_process_query_get_processes (ProtonPlusServicesNativeProcessQuery* self)
{
	GeeList* result;
	GeeList* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_processes;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_native_process_query_set_processes (ProtonPlusServicesNativeProcessQuery* self,
                                                         GeeList* value)
{
	GeeList* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_native_process_query_get_processes (self);
	if (old_value != value) {
		GeeList* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_processes);
		self->priv->_processes = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_native_process_query_properties[PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_PROCESSES_PROPERTY]);
	}
}

const gchar*
proton_plus_services_native_process_query_get_diagnostic (ProtonPlusServicesNativeProcessQuery* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_diagnostic;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_native_process_query_set_diagnostic (ProtonPlusServicesNativeProcessQuery* self,
                                                          const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_native_process_query_get_diagnostic (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_diagnostic);
		self->priv->_diagnostic = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_native_process_query_properties[PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_DIAGNOSTIC_PROPERTY]);
	}
}

static void
proton_plus_services_native_process_query_class_init (ProtonPlusServicesNativeProcessQueryClass * klass,
                                                      gpointer klass_data)
{
	proton_plus_services_native_process_query_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusServicesNativeProcessQuery_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_services_native_process_query_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_services_native_process_query_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_services_native_process_query_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_AVAILABLE_PROPERTY, proton_plus_services_native_process_query_properties[PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_AVAILABLE_PROPERTY] = g_param_spec_boolean ("available", "available", "available", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_PROCESSES_PROPERTY, proton_plus_services_native_process_query_properties[PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_PROCESSES_PROPERTY] = g_param_spec_object ("processes", "processes", "processes", GEE_TYPE_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_DIAGNOSTIC_PROPERTY, proton_plus_services_native_process_query_properties[PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_DIAGNOSTIC_PROPERTY] = g_param_spec_string ("diagnostic", "diagnostic", "diagnostic", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
proton_plus_services_native_process_query_instance_init (ProtonPlusServicesNativeProcessQuery * self,
                                                         gpointer klass)
{
	self->priv = proton_plus_services_native_process_query_get_instance_private (self);
}

static void
proton_plus_services_native_process_query_finalize (GObject * obj)
{
	ProtonPlusServicesNativeProcessQuery * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_SERVICES_TYPE_NATIVE_PROCESS_QUERY, ProtonPlusServicesNativeProcessQuery);
	_g_object_unref0 (self->priv->_processes);
	_g_free0 (self->priv->_diagnostic);
	G_OBJECT_CLASS (proton_plus_services_native_process_query_parent_class)->finalize (obj);
}

static GType
proton_plus_services_native_process_query_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusServicesNativeProcessQueryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_services_native_process_query_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusServicesNativeProcessQuery), 0, (GInstanceInitFunc) proton_plus_services_native_process_query_instance_init, NULL };
	GType proton_plus_services_native_process_query_type_id;
	proton_plus_services_native_process_query_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusServicesNativeProcessQuery", &g_define_type_info, 0);
	ProtonPlusServicesNativeProcessQuery_private_offset = g_type_add_instance_private (proton_plus_services_native_process_query_type_id, sizeof (ProtonPlusServicesNativeProcessQueryPrivate));
	return proton_plus_services_native_process_query_type_id;
}

GType
proton_plus_services_native_process_query_get_type (void)
{
	static volatile gsize proton_plus_services_native_process_query_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_native_process_query_type_id__once)) {
		GType proton_plus_services_native_process_query_type_id;
		proton_plus_services_native_process_query_type_id = proton_plus_services_native_process_query_get_type_once ();
		g_once_init_leave (&proton_plus_services_native_process_query_type_id__once, proton_plus_services_native_process_query_type_id);
	}
	return proton_plus_services_native_process_query_type_id__once;
}

static void
_vala_proton_plus_services_native_process_query_get_property (GObject * object,
                                                              guint property_id,
                                                              GValue * value,
                                                              GParamSpec * pspec)
{
	ProtonPlusServicesNativeProcessQuery * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_NATIVE_PROCESS_QUERY, ProtonPlusServicesNativeProcessQuery);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_AVAILABLE_PROPERTY:
		g_value_set_boolean (value, proton_plus_services_native_process_query_get_available (self));
		break;
		case PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_PROCESSES_PROPERTY:
		g_value_set_object (value, proton_plus_services_native_process_query_get_processes (self));
		break;
		case PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_DIAGNOSTIC_PROPERTY:
		g_value_set_string (value, proton_plus_services_native_process_query_get_diagnostic (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_services_native_process_query_set_property (GObject * object,
                                                              guint property_id,
                                                              const GValue * value,
                                                              GParamSpec * pspec)
{
	ProtonPlusServicesNativeProcessQuery * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_NATIVE_PROCESS_QUERY, ProtonPlusServicesNativeProcessQuery);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_AVAILABLE_PROPERTY:
		proton_plus_services_native_process_query_set_available (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_PROCESSES_PROPERTY:
		proton_plus_services_native_process_query_set_processes (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_SERVICES_NATIVE_PROCESS_QUERY_DIAGNOSTIC_PROPERTY:
		proton_plus_services_native_process_query_set_diagnostic (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static inline gpointer
proton_plus_services_flatpak_process_record_get_instance_private (ProtonPlusServicesFlatpakProcessRecord* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusServicesFlatpakProcessRecord_private_offset);
}

ProtonPlusServicesFlatpakProcessRecord*
proton_plus_services_flatpak_process_record_construct (GType object_type,
                                                       const gchar* instance_id,
                                                       const gchar* application_id,
                                                       gint wrapper_pid,
                                                       gint child_pid)
{
	ProtonPlusServicesFlatpakProcessRecord * self = NULL;
	g_return_val_if_fail (instance_id != NULL, NULL);
	g_return_val_if_fail (application_id != NULL, NULL);
	self = (ProtonPlusServicesFlatpakProcessRecord*) g_object_new (object_type, NULL);
	proton_plus_services_flatpak_process_record_set_instance_id (self, instance_id);
	proton_plus_services_flatpak_process_record_set_application_id (self, application_id);
	proton_plus_services_flatpak_process_record_set_wrapper_pid (self, wrapper_pid);
	proton_plus_services_flatpak_process_record_set_child_pid (self, child_pid);
	return self;
}

ProtonPlusServicesFlatpakProcessRecord*
proton_plus_services_flatpak_process_record_new (const gchar* instance_id,
                                                 const gchar* application_id,
                                                 gint wrapper_pid,
                                                 gint child_pid)
{
	return proton_plus_services_flatpak_process_record_construct (PROTON_PLUS_SERVICES_TYPE_FLATPAK_PROCESS_RECORD, instance_id, application_id, wrapper_pid, child_pid);
}

const gchar*
proton_plus_services_flatpak_process_record_get_instance_id (ProtonPlusServicesFlatpakProcessRecord* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_instance_id;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_flatpak_process_record_set_instance_id (ProtonPlusServicesFlatpakProcessRecord* self,
                                                             const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_flatpak_process_record_get_instance_id (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_instance_id);
		self->priv->_instance_id = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_flatpak_process_record_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_INSTANCE_ID_PROPERTY]);
	}
}

const gchar*
proton_plus_services_flatpak_process_record_get_application_id (ProtonPlusServicesFlatpakProcessRecord* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_application_id;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_flatpak_process_record_set_application_id (ProtonPlusServicesFlatpakProcessRecord* self,
                                                                const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_flatpak_process_record_get_application_id (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_application_id);
		self->priv->_application_id = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_flatpak_process_record_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_APPLICATION_ID_PROPERTY]);
	}
}

gint
proton_plus_services_flatpak_process_record_get_wrapper_pid (ProtonPlusServicesFlatpakProcessRecord* self)
{
	gint result;
	g_return_val_if_fail (self != NULL, -1);
	result = self->priv->_wrapper_pid;
	return result;
}

static void
proton_plus_services_flatpak_process_record_set_wrapper_pid (ProtonPlusServicesFlatpakProcessRecord* self,
                                                             gint value)
{
	gint old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_flatpak_process_record_get_wrapper_pid (self);
	if (old_value != value) {
		self->priv->_wrapper_pid = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_flatpak_process_record_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_WRAPPER_PID_PROPERTY]);
	}
}

gint
proton_plus_services_flatpak_process_record_get_child_pid (ProtonPlusServicesFlatpakProcessRecord* self)
{
	gint result;
	g_return_val_if_fail (self != NULL, -1);
	result = self->priv->_child_pid;
	return result;
}

static void
proton_plus_services_flatpak_process_record_set_child_pid (ProtonPlusServicesFlatpakProcessRecord* self,
                                                           gint value)
{
	gint old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_flatpak_process_record_get_child_pid (self);
	if (old_value != value) {
		self->priv->_child_pid = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_flatpak_process_record_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_CHILD_PID_PROPERTY]);
	}
}

static void
proton_plus_services_flatpak_process_record_class_init (ProtonPlusServicesFlatpakProcessRecordClass * klass,
                                                        gpointer klass_data)
{
	proton_plus_services_flatpak_process_record_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusServicesFlatpakProcessRecord_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_services_flatpak_process_record_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_services_flatpak_process_record_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_services_flatpak_process_record_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_INSTANCE_ID_PROPERTY, proton_plus_services_flatpak_process_record_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_INSTANCE_ID_PROPERTY] = g_param_spec_string ("instance-id", "instance-id", "instance-id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_APPLICATION_ID_PROPERTY, proton_plus_services_flatpak_process_record_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_APPLICATION_ID_PROPERTY] = g_param_spec_string ("application-id", "application-id", "application-id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_WRAPPER_PID_PROPERTY, proton_plus_services_flatpak_process_record_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_WRAPPER_PID_PROPERTY] = g_param_spec_int ("wrapper-pid", "wrapper-pid", "wrapper-pid", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_CHILD_PID_PROPERTY, proton_plus_services_flatpak_process_record_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_CHILD_PID_PROPERTY] = g_param_spec_int ("child-pid", "child-pid", "child-pid", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
proton_plus_services_flatpak_process_record_instance_init (ProtonPlusServicesFlatpakProcessRecord * self,
                                                           gpointer klass)
{
	self->priv = proton_plus_services_flatpak_process_record_get_instance_private (self);
}

static void
proton_plus_services_flatpak_process_record_finalize (GObject * obj)
{
	ProtonPlusServicesFlatpakProcessRecord * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_SERVICES_TYPE_FLATPAK_PROCESS_RECORD, ProtonPlusServicesFlatpakProcessRecord);
	_g_free0 (self->priv->_instance_id);
	_g_free0 (self->priv->_application_id);
	G_OBJECT_CLASS (proton_plus_services_flatpak_process_record_parent_class)->finalize (obj);
}

static GType
proton_plus_services_flatpak_process_record_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusServicesFlatpakProcessRecordClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_services_flatpak_process_record_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusServicesFlatpakProcessRecord), 0, (GInstanceInitFunc) proton_plus_services_flatpak_process_record_instance_init, NULL };
	GType proton_plus_services_flatpak_process_record_type_id;
	proton_plus_services_flatpak_process_record_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusServicesFlatpakProcessRecord", &g_define_type_info, 0);
	ProtonPlusServicesFlatpakProcessRecord_private_offset = g_type_add_instance_private (proton_plus_services_flatpak_process_record_type_id, sizeof (ProtonPlusServicesFlatpakProcessRecordPrivate));
	return proton_plus_services_flatpak_process_record_type_id;
}

GType
proton_plus_services_flatpak_process_record_get_type (void)
{
	static volatile gsize proton_plus_services_flatpak_process_record_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_flatpak_process_record_type_id__once)) {
		GType proton_plus_services_flatpak_process_record_type_id;
		proton_plus_services_flatpak_process_record_type_id = proton_plus_services_flatpak_process_record_get_type_once ();
		g_once_init_leave (&proton_plus_services_flatpak_process_record_type_id__once, proton_plus_services_flatpak_process_record_type_id);
	}
	return proton_plus_services_flatpak_process_record_type_id__once;
}

static void
_vala_proton_plus_services_flatpak_process_record_get_property (GObject * object,
                                                                guint property_id,
                                                                GValue * value,
                                                                GParamSpec * pspec)
{
	ProtonPlusServicesFlatpakProcessRecord * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_FLATPAK_PROCESS_RECORD, ProtonPlusServicesFlatpakProcessRecord);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_INSTANCE_ID_PROPERTY:
		g_value_set_string (value, proton_plus_services_flatpak_process_record_get_instance_id (self));
		break;
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_APPLICATION_ID_PROPERTY:
		g_value_set_string (value, proton_plus_services_flatpak_process_record_get_application_id (self));
		break;
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_WRAPPER_PID_PROPERTY:
		g_value_set_int (value, proton_plus_services_flatpak_process_record_get_wrapper_pid (self));
		break;
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_CHILD_PID_PROPERTY:
		g_value_set_int (value, proton_plus_services_flatpak_process_record_get_child_pid (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_services_flatpak_process_record_set_property (GObject * object,
                                                                guint property_id,
                                                                const GValue * value,
                                                                GParamSpec * pspec)
{
	ProtonPlusServicesFlatpakProcessRecord * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_FLATPAK_PROCESS_RECORD, ProtonPlusServicesFlatpakProcessRecord);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_INSTANCE_ID_PROPERTY:
		proton_plus_services_flatpak_process_record_set_instance_id (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_APPLICATION_ID_PROPERTY:
		proton_plus_services_flatpak_process_record_set_application_id (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_WRAPPER_PID_PROPERTY:
		proton_plus_services_flatpak_process_record_set_wrapper_pid (self, g_value_get_int (value));
		break;
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_RECORD_CHILD_PID_PROPERTY:
		proton_plus_services_flatpak_process_record_set_child_pid (self, g_value_get_int (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static inline gpointer
proton_plus_services_flatpak_process_query_get_instance_private (ProtonPlusServicesFlatpakProcessQuery* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusServicesFlatpakProcessQuery_private_offset);
}

ProtonPlusServicesFlatpakProcessQuery*
proton_plus_services_flatpak_process_query_construct (GType object_type,
                                                      gboolean available,
                                                      GeeList* processes,
                                                      const gchar* diagnostic)
{
	ProtonPlusServicesFlatpakProcessQuery * self = NULL;
	GeeList* _tmp0_ = NULL;
	GeeList* _tmp1_;
	g_return_val_if_fail (diagnostic != NULL, NULL);
	self = (ProtonPlusServicesFlatpakProcessQuery*) g_object_new (object_type, NULL);
	proton_plus_services_flatpak_process_query_set_available (self, available);
	_tmp1_ = _g_object_ref0 (processes);
	_tmp0_ = _tmp1_;
	if (_tmp0_ == NULL) {
		GeeArrayList* _tmp2_;
		_tmp2_ = gee_array_list_new (PROTON_PLUS_SERVICES_TYPE_FLATPAK_PROCESS_RECORD, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
		_g_object_unref0 (_tmp0_);
		_tmp0_ = (GeeList*) _tmp2_;
	}
	proton_plus_services_flatpak_process_query_set_processes (self, _tmp0_);
	proton_plus_services_flatpak_process_query_set_diagnostic (self, diagnostic);
	_g_object_unref0 (_tmp0_);
	return self;
}

ProtonPlusServicesFlatpakProcessQuery*
proton_plus_services_flatpak_process_query_new (gboolean available,
                                                GeeList* processes,
                                                const gchar* diagnostic)
{
	return proton_plus_services_flatpak_process_query_construct (PROTON_PLUS_SERVICES_TYPE_FLATPAK_PROCESS_QUERY, available, processes, diagnostic);
}

gboolean
proton_plus_services_flatpak_process_query_get_available (ProtonPlusServicesFlatpakProcessQuery* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_available;
	return result;
}

static void
proton_plus_services_flatpak_process_query_set_available (ProtonPlusServicesFlatpakProcessQuery* self,
                                                          gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_flatpak_process_query_get_available (self);
	if (old_value != value) {
		self->priv->_available = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_flatpak_process_query_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_AVAILABLE_PROPERTY]);
	}
}

GeeList*
proton_plus_services_flatpak_process_query_get_processes (ProtonPlusServicesFlatpakProcessQuery* self)
{
	GeeList* result;
	GeeList* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_processes;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_flatpak_process_query_set_processes (ProtonPlusServicesFlatpakProcessQuery* self,
                                                          GeeList* value)
{
	GeeList* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_flatpak_process_query_get_processes (self);
	if (old_value != value) {
		GeeList* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_processes);
		self->priv->_processes = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_flatpak_process_query_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_PROCESSES_PROPERTY]);
	}
}

const gchar*
proton_plus_services_flatpak_process_query_get_diagnostic (ProtonPlusServicesFlatpakProcessQuery* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_diagnostic;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_flatpak_process_query_set_diagnostic (ProtonPlusServicesFlatpakProcessQuery* self,
                                                           const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_flatpak_process_query_get_diagnostic (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_diagnostic);
		self->priv->_diagnostic = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_flatpak_process_query_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_DIAGNOSTIC_PROPERTY]);
	}
}

static void
proton_plus_services_flatpak_process_query_class_init (ProtonPlusServicesFlatpakProcessQueryClass * klass,
                                                       gpointer klass_data)
{
	proton_plus_services_flatpak_process_query_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusServicesFlatpakProcessQuery_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_services_flatpak_process_query_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_services_flatpak_process_query_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_services_flatpak_process_query_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_AVAILABLE_PROPERTY, proton_plus_services_flatpak_process_query_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_AVAILABLE_PROPERTY] = g_param_spec_boolean ("available", "available", "available", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_PROCESSES_PROPERTY, proton_plus_services_flatpak_process_query_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_PROCESSES_PROPERTY] = g_param_spec_object ("processes", "processes", "processes", GEE_TYPE_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_DIAGNOSTIC_PROPERTY, proton_plus_services_flatpak_process_query_properties[PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_DIAGNOSTIC_PROPERTY] = g_param_spec_string ("diagnostic", "diagnostic", "diagnostic", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
proton_plus_services_flatpak_process_query_instance_init (ProtonPlusServicesFlatpakProcessQuery * self,
                                                          gpointer klass)
{
	self->priv = proton_plus_services_flatpak_process_query_get_instance_private (self);
}

static void
proton_plus_services_flatpak_process_query_finalize (GObject * obj)
{
	ProtonPlusServicesFlatpakProcessQuery * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_SERVICES_TYPE_FLATPAK_PROCESS_QUERY, ProtonPlusServicesFlatpakProcessQuery);
	_g_object_unref0 (self->priv->_processes);
	_g_free0 (self->priv->_diagnostic);
	G_OBJECT_CLASS (proton_plus_services_flatpak_process_query_parent_class)->finalize (obj);
}

static GType
proton_plus_services_flatpak_process_query_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusServicesFlatpakProcessQueryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_services_flatpak_process_query_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusServicesFlatpakProcessQuery), 0, (GInstanceInitFunc) proton_plus_services_flatpak_process_query_instance_init, NULL };
	GType proton_plus_services_flatpak_process_query_type_id;
	proton_plus_services_flatpak_process_query_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusServicesFlatpakProcessQuery", &g_define_type_info, 0);
	ProtonPlusServicesFlatpakProcessQuery_private_offset = g_type_add_instance_private (proton_plus_services_flatpak_process_query_type_id, sizeof (ProtonPlusServicesFlatpakProcessQueryPrivate));
	return proton_plus_services_flatpak_process_query_type_id;
}

GType
proton_plus_services_flatpak_process_query_get_type (void)
{
	static volatile gsize proton_plus_services_flatpak_process_query_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_flatpak_process_query_type_id__once)) {
		GType proton_plus_services_flatpak_process_query_type_id;
		proton_plus_services_flatpak_process_query_type_id = proton_plus_services_flatpak_process_query_get_type_once ();
		g_once_init_leave (&proton_plus_services_flatpak_process_query_type_id__once, proton_plus_services_flatpak_process_query_type_id);
	}
	return proton_plus_services_flatpak_process_query_type_id__once;
}

static void
_vala_proton_plus_services_flatpak_process_query_get_property (GObject * object,
                                                               guint property_id,
                                                               GValue * value,
                                                               GParamSpec * pspec)
{
	ProtonPlusServicesFlatpakProcessQuery * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_FLATPAK_PROCESS_QUERY, ProtonPlusServicesFlatpakProcessQuery);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_AVAILABLE_PROPERTY:
		g_value_set_boolean (value, proton_plus_services_flatpak_process_query_get_available (self));
		break;
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_PROCESSES_PROPERTY:
		g_value_set_object (value, proton_plus_services_flatpak_process_query_get_processes (self));
		break;
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_DIAGNOSTIC_PROPERTY:
		g_value_set_string (value, proton_plus_services_flatpak_process_query_get_diagnostic (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_services_flatpak_process_query_set_property (GObject * object,
                                                               guint property_id,
                                                               const GValue * value,
                                                               GParamSpec * pspec)
{
	ProtonPlusServicesFlatpakProcessQuery * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_FLATPAK_PROCESS_QUERY, ProtonPlusServicesFlatpakProcessQuery);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_AVAILABLE_PROPERTY:
		proton_plus_services_flatpak_process_query_set_available (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_PROCESSES_PROPERTY:
		proton_plus_services_flatpak_process_query_set_processes (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_SERVICES_FLATPAK_PROCESS_QUERY_DIAGNOSTIC_PROPERTY:
		proton_plus_services_flatpak_process_query_set_diagnostic (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static inline gpointer
proton_plus_services_steam_desktop_entry_get_instance_private (ProtonPlusServicesSteamDesktopEntry* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusServicesSteamDesktopEntry_private_offset);
}

ProtonPlusServicesSteamDesktopEntry*
proton_plus_services_steam_desktop_entry_construct (GType object_type,
                                                    const gchar* id,
                                                    const gchar* path,
                                                    gboolean supports_steam_uri)
{
	ProtonPlusServicesSteamDesktopEntry * self = NULL;
	g_return_val_if_fail (id != NULL, NULL);
	g_return_val_if_fail (path != NULL, NULL);
	self = (ProtonPlusServicesSteamDesktopEntry*) g_object_new (object_type, NULL);
	proton_plus_services_steam_desktop_entry_set_id (self, id);
	proton_plus_services_steam_desktop_entry_set_path (self, path);
	proton_plus_services_steam_desktop_entry_set_supports_steam_uri (self, supports_steam_uri);
	return self;
}

ProtonPlusServicesSteamDesktopEntry*
proton_plus_services_steam_desktop_entry_new (const gchar* id,
                                              const gchar* path,
                                              gboolean supports_steam_uri)
{
	return proton_plus_services_steam_desktop_entry_construct (PROTON_PLUS_SERVICES_TYPE_STEAM_DESKTOP_ENTRY, id, path, supports_steam_uri);
}

const gchar*
proton_plus_services_steam_desktop_entry_get_id (ProtonPlusServicesSteamDesktopEntry* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_id;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_desktop_entry_set_id (ProtonPlusServicesSteamDesktopEntry* self,
                                                 const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_desktop_entry_get_id (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_id);
		self->priv->_id = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_desktop_entry_properties[PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_ID_PROPERTY]);
	}
}

const gchar*
proton_plus_services_steam_desktop_entry_get_path (ProtonPlusServicesSteamDesktopEntry* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_path;
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_desktop_entry_set_path (ProtonPlusServicesSteamDesktopEntry* self,
                                                   const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_desktop_entry_get_path (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_path);
		self->priv->_path = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_desktop_entry_properties[PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_PATH_PROPERTY]);
	}
}

gboolean
proton_plus_services_steam_desktop_entry_get_supports_steam_uri (ProtonPlusServicesSteamDesktopEntry* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_supports_steam_uri;
	return result;
}

static void
proton_plus_services_steam_desktop_entry_set_supports_steam_uri (ProtonPlusServicesSteamDesktopEntry* self,
                                                                 gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_services_steam_desktop_entry_get_supports_steam_uri (self);
	if (old_value != value) {
		self->priv->_supports_steam_uri = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_services_steam_desktop_entry_properties[PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_SUPPORTS_STEAM_URI_PROPERTY]);
	}
}

static void
proton_plus_services_steam_desktop_entry_class_init (ProtonPlusServicesSteamDesktopEntryClass * klass,
                                                     gpointer klass_data)
{
	proton_plus_services_steam_desktop_entry_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusServicesSteamDesktopEntry_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_services_steam_desktop_entry_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_services_steam_desktop_entry_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_services_steam_desktop_entry_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_ID_PROPERTY, proton_plus_services_steam_desktop_entry_properties[PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_ID_PROPERTY] = g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_PATH_PROPERTY, proton_plus_services_steam_desktop_entry_properties[PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_PATH_PROPERTY] = g_param_spec_string ("path", "path", "path", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_SUPPORTS_STEAM_URI_PROPERTY, proton_plus_services_steam_desktop_entry_properties[PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_SUPPORTS_STEAM_URI_PROPERTY] = g_param_spec_boolean ("supports-steam-uri", "supports-steam-uri", "supports-steam-uri", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
proton_plus_services_steam_desktop_entry_instance_init (ProtonPlusServicesSteamDesktopEntry * self,
                                                        gpointer klass)
{
	self->priv = proton_plus_services_steam_desktop_entry_get_instance_private (self);
}

static void
proton_plus_services_steam_desktop_entry_finalize (GObject * obj)
{
	ProtonPlusServicesSteamDesktopEntry * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_SERVICES_TYPE_STEAM_DESKTOP_ENTRY, ProtonPlusServicesSteamDesktopEntry);
	_g_free0 (self->priv->_id);
	_g_free0 (self->priv->_path);
	G_OBJECT_CLASS (proton_plus_services_steam_desktop_entry_parent_class)->finalize (obj);
}

static GType
proton_plus_services_steam_desktop_entry_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusServicesSteamDesktopEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_services_steam_desktop_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusServicesSteamDesktopEntry), 0, (GInstanceInitFunc) proton_plus_services_steam_desktop_entry_instance_init, NULL };
	GType proton_plus_services_steam_desktop_entry_type_id;
	proton_plus_services_steam_desktop_entry_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusServicesSteamDesktopEntry", &g_define_type_info, 0);
	ProtonPlusServicesSteamDesktopEntry_private_offset = g_type_add_instance_private (proton_plus_services_steam_desktop_entry_type_id, sizeof (ProtonPlusServicesSteamDesktopEntryPrivate));
	return proton_plus_services_steam_desktop_entry_type_id;
}

GType
proton_plus_services_steam_desktop_entry_get_type (void)
{
	static volatile gsize proton_plus_services_steam_desktop_entry_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_steam_desktop_entry_type_id__once)) {
		GType proton_plus_services_steam_desktop_entry_type_id;
		proton_plus_services_steam_desktop_entry_type_id = proton_plus_services_steam_desktop_entry_get_type_once ();
		g_once_init_leave (&proton_plus_services_steam_desktop_entry_type_id__once, proton_plus_services_steam_desktop_entry_type_id);
	}
	return proton_plus_services_steam_desktop_entry_type_id__once;
}

static void
_vala_proton_plus_services_steam_desktop_entry_get_property (GObject * object,
                                                             guint property_id,
                                                             GValue * value,
                                                             GParamSpec * pspec)
{
	ProtonPlusServicesSteamDesktopEntry * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_DESKTOP_ENTRY, ProtonPlusServicesSteamDesktopEntry);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_ID_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_desktop_entry_get_id (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_PATH_PROPERTY:
		g_value_set_string (value, proton_plus_services_steam_desktop_entry_get_path (self));
		break;
		case PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_SUPPORTS_STEAM_URI_PROPERTY:
		g_value_set_boolean (value, proton_plus_services_steam_desktop_entry_get_supports_steam_uri (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_services_steam_desktop_entry_set_property (GObject * object,
                                                             guint property_id,
                                                             const GValue * value,
                                                             GParamSpec * pspec)
{
	ProtonPlusServicesSteamDesktopEntry * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_DESKTOP_ENTRY, ProtonPlusServicesSteamDesktopEntry);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_ID_PROPERTY:
		proton_plus_services_steam_desktop_entry_set_id (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_PATH_PROPERTY:
		proton_plus_services_steam_desktop_entry_set_path (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_SERVICES_STEAM_DESKTOP_ENTRY_SUPPORTS_STEAM_URI_PROPERTY:
		proton_plus_services_steam_desktop_entry_set_supports_steam_uri (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

gchar*
proton_plus_services_steam_session_backend_get_boot_id (ProtonPlusServicesSteamSessionBackend* self)
{
	ProtonPlusServicesSteamSessionBackendIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = PROTON_PLUS_SERVICES_STEAM_SESSION_BACKEND_GET_INTERFACE (self);
	if (_iface_->get_boot_id) {
		return _iface_->get_boot_id (self);
	}
	return NULL;
}

gint64
proton_plus_services_steam_session_backend_get_monotonic_time_usec (ProtonPlusServicesSteamSessionBackend* self)
{
	ProtonPlusServicesSteamSessionBackendIface* _iface_;
	g_return_val_if_fail (self != NULL, -1LL);
	_iface_ = PROTON_PLUS_SERVICES_STEAM_SESSION_BACKEND_GET_INTERFACE (self);
	if (_iface_->get_monotonic_time_usec) {
		return _iface_->get_monotonic_time_usec (self);
	}
	return -1LL;
}

gint64
proton_plus_services_steam_session_backend_get_clock_ticks_per_second (ProtonPlusServicesSteamSessionBackend* self)
{
	ProtonPlusServicesSteamSessionBackendIface* _iface_;
	g_return_val_if_fail (self != NULL, -1LL);
	_iface_ = PROTON_PLUS_SERVICES_STEAM_SESSION_BACKEND_GET_INTERFACE (self);
	if (_iface_->get_clock_ticks_per_second) {
		return _iface_->get_clock_ticks_per_second (self);
	}
	return -1LL;
}

ProtonPlusServicesNativeProcessQuery*
proton_plus_services_steam_session_backend_query_native_processes (ProtonPlusServicesSteamSessionBackend* self)
{
	ProtonPlusServicesSteamSessionBackendIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = PROTON_PLUS_SERVICES_STEAM_SESSION_BACKEND_GET_INTERFACE (self);
	if (_iface_->query_native_processes) {
		return _iface_->query_native_processes (self);
	}
	return NULL;
}

ProtonPlusServicesFlatpakProcessQuery*
proton_plus_services_steam_session_backend_query_flatpak_processes (ProtonPlusServicesSteamSessionBackend* self)
{
	ProtonPlusServicesSteamSessionBackendIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = PROTON_PLUS_SERVICES_STEAM_SESSION_BACKEND_GET_INTERFACE (self);
	if (_iface_->query_flatpak_processes) {
		return _iface_->query_flatpak_processes (self);
	}
	return NULL;
}

ProtonPlusServicesSteamDesktopEntry*
proton_plus_services_steam_session_backend_find_desktop_entry (ProtonPlusServicesSteamSessionBackend* self,
                                                               const gchar* id)
{
	ProtonPlusServicesSteamSessionBackendIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = PROTON_PLUS_SERVICES_STEAM_SESSION_BACKEND_GET_INTERFACE (self);
	if (_iface_->find_desktop_entry) {
		return _iface_->find_desktop_entry (self, id);
	}
	return NULL;
}

gboolean
proton_plus_services_steam_session_backend_is_steamos_gaming_mode (ProtonPlusServicesSteamSessionBackend* self)
{
	ProtonPlusServicesSteamSessionBackendIface* _iface_;
	g_return_val_if_fail (self != NULL, FALSE);
	_iface_ = PROTON_PLUS_SERVICES_STEAM_SESSION_BACKEND_GET_INTERFACE (self);
	if (_iface_->is_steamos_gaming_mode) {
		return _iface_->is_steamos_gaming_mode (self);
	}
	return FALSE;
}

static void
proton_plus_services_steam_session_backend_default_init (ProtonPlusServicesSteamSessionBackendIface * iface,
                                                         gpointer iface_data)
{
}

static GType
proton_plus_services_steam_session_backend_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusServicesSteamSessionBackendIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_services_steam_session_backend_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType proton_plus_services_steam_session_backend_type_id;
	proton_plus_services_steam_session_backend_type_id = g_type_register_static (G_TYPE_INTERFACE, "ProtonPlusServicesSteamSessionBackend", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (proton_plus_services_steam_session_backend_type_id, G_TYPE_OBJECT);
	return proton_plus_services_steam_session_backend_type_id;
}

GType
proton_plus_services_steam_session_backend_get_type (void)
{
	static volatile gsize proton_plus_services_steam_session_backend_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_steam_session_backend_type_id__once)) {
		GType proton_plus_services_steam_session_backend_type_id;
		proton_plus_services_steam_session_backend_type_id = proton_plus_services_steam_session_backend_get_type_once ();
		g_once_init_leave (&proton_plus_services_steam_session_backend_type_id__once, proton_plus_services_steam_session_backend_type_id);
	}
	return proton_plus_services_steam_session_backend_type_id__once;
}

static gchar*
proton_plus_services_host_steam_session_backend_real_get_boot_id (ProtonPlusServicesSteamSessionBackend* base)
{
	ProtonPlusServicesHostSteamSessionBackend * self;
	gchar* content = NULL;
	GError* _inner_error0_ = NULL;
	gchar* result;
	self = (ProtonPlusServicesHostSteamSessionBackend*) base;
	{
		gchar* _tmp0_ = NULL;
		gchar* _tmp1_;
		g_file_get_contents ("/proc/sys/kernel/random/boot_id", &_tmp0_, NULL, &_inner_error0_);
		_g_free0 (content);
		content = _tmp0_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			if (_inner_error0_->domain == G_FILE_ERROR) {
				goto __catch0_g_file_error;
			}
			_g_free0 (content);
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return NULL;
		}
		_tmp1_ = string_strip (content);
		result = _tmp1_;
		_g_free0 (content);
		return result;
	}
	goto __finally0;
	__catch0_g_file_error:
	{
		g_clear_error (&_inner_error0_);
		result = NULL;
		_g_free0 (content);
		return result;
	}
	__finally0:
	_g_free0 (content);
	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
	g_clear_error (&_inner_error0_);
	return NULL;
}

static gint64
proton_plus_services_host_steam_session_backend_real_get_monotonic_time_usec (ProtonPlusServicesSteamSessionBackend* base)
{
	ProtonPlusServicesHostSteamSessionBackend * self;
	gint64 result;
	self = (ProtonPlusServicesHostSteamSessionBackend*) base;
	result = g_get_monotonic_time ();
	return result;
}

static gint64
proton_plus_services_host_steam_session_backend_real_get_clock_ticks_per_second (ProtonPlusServicesSteamSessionBackend* base)
{
	ProtonPlusServicesHostSteamSessionBackend * self;
	glong ticks = 0L;
	glong _tmp0_ = 0L;
	gint64 result;
	self = (ProtonPlusServicesHostSteamSessionBackend*) base;
	ticks = sysconf (_SC_CLK_TCK);
	if (ticks > ((glong) 0)) {
		_tmp0_ = ticks;
	} else {
		_tmp0_ = (glong) 0;
	}
	result = (gint64) _tmp0_;
	return result;
}

static gunichar
string_get_char (const gchar* self,
                 glong index)
{
	gunichar result;
	g_return_val_if_fail (self != NULL, 0U);
	result = g_utf8_get_char (((gchar*) self) + index);
	return result;
}

static ProtonPlusServicesNativeProcessQuery*
proton_plus_services_host_steam_session_backend_real_query_native_processes (ProtonPlusServicesSteamSessionBackend* base)
{
	ProtonPlusServicesHostSteamSessionBackend * self;
	GeeArrayList* processes = NULL;
	GeeArrayList* _tmp0_;
	GError* _inner_error0_ = NULL;
	ProtonPlusServicesNativeProcessQuery* result;
	self = (ProtonPlusServicesHostSteamSessionBackend*) base;
	_tmp0_ = gee_array_list_new (PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
	processes = _tmp0_;
	{
		GFileEnumerator* directory = NULL;
		GFile* _tmp1_;
		GFile* _tmp2_;
		GFileEnumerator* _tmp3_;
		GFileEnumerator* _tmp4_;
		GFileInfo* info = NULL;
		GeeArrayList* _tmp41_;
		ProtonPlusServicesNativeProcessQuery* _tmp42_;
		_tmp1_ = g_file_new_for_path ("/proc");
		_tmp2_ = _tmp1_;
		_tmp3_ = g_file_enumerate_children (_tmp2_, "standard::name", G_FILE_QUERY_INFO_NONE, NULL, &_inner_error0_);
		_tmp4_ = _tmp3_;
		_g_object_unref0 (_tmp2_);
		directory = _tmp4_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
		while (TRUE) {
			GFileInfo* _tmp5_ = NULL;
			GFileEnumerator* _tmp6_;
			GFileInfo* _tmp7_;
			GFileInfo* _tmp8_;
			GFileInfo* _tmp9_;
			gchar* name = NULL;
			GFileInfo* _tmp10_;
			const gchar* _tmp11_;
			gchar* _tmp12_;
			gboolean _tmp13_ = FALSE;
			const gchar* _tmp14_;
			gint _tmp15_;
			gint _tmp16_;
			gint pid = 0;
			const gchar* _tmp18_;
			gchar* root = NULL;
			gchar* _tmp19_;
			guint8* command = NULL;
			gint command_length1 = 0;
			gint _command_size_ = 0;
			gchar* executable = NULL;
			gint64 start_time = 0LL;
			const gchar* _tmp32_;
			gchar* _tmp33_;
			gchar* _tmp34_;
			gint64 _tmp35_;
			GeeArrayList* _tmp36_;
			const gchar* _tmp37_;
			guint8* _tmp38_;
			gint _tmp38__length1;
			ProtonPlusServicesSteamProcessRecord* _tmp39_;
			ProtonPlusServicesSteamProcessRecord* _tmp40_;
			_tmp6_ = directory;
			_tmp7_ = g_file_enumerator_next_file (_tmp6_, NULL, &_inner_error0_);
			_tmp5_ = _tmp7_;
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				_g_object_unref0 (info);
				_g_object_unref0 (directory);
				goto __catch0_g_error;
			}
			_tmp8_ = _tmp5_;
			_tmp5_ = NULL;
			_g_object_unref0 (info);
			info = _tmp8_;
			_tmp9_ = info;
			if (!(_tmp9_ != NULL)) {
				_g_object_unref0 (_tmp5_);
				break;
			}
			_tmp10_ = info;
			_tmp11_ = g_file_info_get_name (_tmp10_);
			_tmp12_ = g_strdup (_tmp11_);
			name = _tmp12_;
			_tmp14_ = name;
			_tmp15_ = strlen (_tmp14_);
			_tmp16_ = _tmp15_;
			if (_tmp16_ == 0) {
				_tmp13_ = TRUE;
			} else {
				const gchar* _tmp17_;
				_tmp17_ = name;
				_tmp13_ = !g_unichar_isdigit (string_get_char (_tmp17_, (glong) 0));
			}
			if (_tmp13_) {
				_g_free0 (name);
				_g_object_unref0 (_tmp5_);
				continue;
			}
			_tmp18_ = name;
			pid = atoi (_tmp18_);
			_tmp19_ = g_strdup_printf ("/proc/%d", pid);
			root = _tmp19_;
			{
				const gchar* _tmp20_;
				gchar* _tmp21_;
				gchar* _tmp22_;
				guint8* _tmp23_ = NULL;
				gsize _tmp24_ = 0;
				_tmp20_ = root;
				_tmp21_ = g_build_filename (_tmp20_, "cmdline", NULL);
				_tmp22_ = _tmp21_;
				g_file_get_contents (_tmp22_, (gchar**) (&_tmp23_), &_tmp24_, &_inner_error0_);
				command = (g_free (command), NULL);
				command = _tmp23_;
				command_length1 = _tmp24_;
				_command_size_ = command_length1;
				_g_free0 (_tmp22_);
				if (G_UNLIKELY (_inner_error0_ != NULL)) {
					if (_inner_error0_->domain == G_FILE_ERROR) {
						goto __catch1_g_file_error;
					}
					command = (g_free (command), NULL);
					_g_free0 (root);
					_g_free0 (name);
					_g_object_unref0 (_tmp5_);
					_g_object_unref0 (info);
					_g_object_unref0 (directory);
					_g_object_unref0 (processes);
					g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
					g_clear_error (&_inner_error0_);
					return NULL;
				}
			}
			goto __finally1;
			__catch1_g_file_error:
			{
				g_clear_error (&_inner_error0_);
				command = (g_free (command), NULL);
				_g_free0 (root);
				_g_free0 (name);
				_g_object_unref0 (_tmp5_);
				continue;
			}
			__finally1:
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				command = (g_free (command), NULL);
				_g_free0 (root);
				_g_free0 (name);
				_g_object_unref0 (_tmp5_);
				_g_object_unref0 (info);
				_g_object_unref0 (directory);
				goto __catch0_g_error;
			}
			{
				gchar* _tmp25_ = NULL;
				const gchar* _tmp26_;
				gchar* _tmp27_;
				gchar* _tmp28_;
				gchar* _tmp29_;
				gchar* _tmp30_;
				gchar* _tmp31_;
				_tmp26_ = root;
				_tmp27_ = g_build_filename (_tmp26_, "exe", NULL);
				_tmp28_ = _tmp27_;
				_tmp29_ = g_file_read_link (_tmp28_, &_inner_error0_);
				_tmp30_ = _tmp29_;
				_g_free0 (_tmp28_);
				_tmp25_ = _tmp30_;
				if (G_UNLIKELY (_inner_error0_ != NULL)) {
					if (_inner_error0_->domain == G_FILE_ERROR) {
						goto __catch2_g_file_error;
					}
					_g_free0 (executable);
					command = (g_free (command), NULL);
					_g_free0 (root);
					_g_free0 (name);
					_g_object_unref0 (_tmp5_);
					_g_object_unref0 (info);
					_g_object_unref0 (directory);
					_g_object_unref0 (processes);
					g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
					g_clear_error (&_inner_error0_);
					return NULL;
				}
				_tmp31_ = _tmp25_;
				_tmp25_ = NULL;
				_g_free0 (executable);
				executable = _tmp31_;
				_g_free0 (_tmp25_);
			}
			goto __finally2;
			__catch2_g_file_error:
			{
				g_clear_error (&_inner_error0_);
				_g_free0 (executable);
				command = (g_free (command), NULL);
				_g_free0 (root);
				_g_free0 (name);
				_g_object_unref0 (_tmp5_);
				continue;
			}
			__finally2:
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				_g_free0 (executable);
				command = (g_free (command), NULL);
				_g_free0 (root);
				_g_free0 (name);
				_g_object_unref0 (_tmp5_);
				_g_object_unref0 (info);
				_g_object_unref0 (directory);
				goto __catch0_g_error;
			}
			_tmp32_ = root;
			_tmp33_ = g_build_filename (_tmp32_, "stat", NULL);
			_tmp34_ = _tmp33_;
			_tmp35_ = proton_plus_services_host_steam_session_backend_read_start_time (self, _tmp34_);
			_g_free0 (_tmp34_);
			start_time = _tmp35_;
			_tmp36_ = processes;
			_tmp37_ = executable;
			_tmp38_ = command;
			_tmp38__length1 = command_length1;
			_tmp39_ = proton_plus_services_steam_process_record_new_from_proc (pid, _tmp37_, _tmp38_, _tmp38__length1, start_time);
			_tmp40_ = _tmp39_;
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp36_, _tmp40_);
			_g_object_unref0 (_tmp40_);
			_g_free0 (executable);
			command = (g_free (command), NULL);
			_g_free0 (root);
			_g_free0 (name);
			_g_object_unref0 (_tmp5_);
		}
		_tmp41_ = processes;
		_tmp42_ = proton_plus_services_native_process_query_new (TRUE, (GeeList*) _tmp41_, "");
		result = _tmp42_;
		_g_object_unref0 (info);
		_g_object_unref0 (directory);
		_g_object_unref0 (processes);
		return result;
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GeeArrayList* _tmp43_;
		GError* _tmp44_;
		const gchar* _tmp45_;
		gchar* _tmp46_;
		gchar* _tmp47_;
		ProtonPlusServicesNativeProcessQuery* _tmp48_;
		ProtonPlusServicesNativeProcessQuery* _tmp49_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp43_ = processes;
		_tmp44_ = e;
		_tmp45_ = _tmp44_->message;
		_tmp46_ = g_strdup_printf ("Unable to inspect /proc: %s", _tmp45_);
		_tmp47_ = _tmp46_;
		_tmp48_ = proton_plus_services_native_process_query_new (FALSE, (GeeList*) _tmp43_, _tmp47_);
		_tmp49_ = _tmp48_;
		_g_free0 (_tmp47_);
		result = _tmp49_;
		_g_error_free0 (e);
		_g_object_unref0 (processes);
		return result;
	}
	__finally0:
	_g_object_unref0 (processes);
	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
	g_clear_error (&_inner_error0_);
	return NULL;
}

static gint
string_last_index_of_char (const gchar* self,
                           gunichar c,
                           gint start_index)
{
	gchar* _result_ = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gint result;
	g_return_val_if_fail (self != NULL, -1);
	_tmp0_ = g_utf8_strrchr (((gchar*) self) + start_index, (gssize) -1, c);
	_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 gint64
int64_parse (const gchar* str,
             guint _base)
{
	gint64 result;
	g_return_val_if_fail (str != NULL, -1LL);
	result = g_ascii_strtoll (str, NULL, _base);
	return result;
}

static gint64
proton_plus_services_host_steam_session_backend_read_start_time (ProtonPlusServicesHostSteamSessionBackend* self,
                                                                 const gchar* path)
{
	gchar* stat = NULL;
	gint64 _tmp14_ = -1LL;
	GError* _inner_error0_ = NULL;
	gint64 result;
	g_return_val_if_fail (self != NULL, -1LL);
	g_return_val_if_fail (path != NULL, -1LL);
	{
		gchar* _tmp0_ = NULL;
		gint closing = 0;
		const gchar* _tmp2_;
		gchar** fields = NULL;
		const gchar* _tmp3_;
		gchar* _tmp4_;
		gchar* _tmp5_;
		gchar* _tmp6_;
		gchar* _tmp7_;
		gchar** _tmp8_;
		gchar** _tmp9_;
		gchar** _tmp10_;
		gint _tmp10__length1;
		gint fields_length1;
		gint _fields_size_;
		gchar** _tmp11_;
		gint _tmp11__length1;
		gchar** _tmp12_;
		gint _tmp12__length1;
		const gchar* _tmp13_;
		g_file_get_contents (path, &_tmp0_, NULL, &_inner_error0_);
		_g_free0 (stat);
		stat = _tmp0_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			gint64 _tmp1_ = -1LL;
			if (_inner_error0_->domain == G_FILE_ERROR) {
				goto __catch0_g_file_error;
			}
			_g_free0 (stat);
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return _tmp1_;
		}
		_tmp2_ = stat;
		closing = string_last_index_of_char (_tmp2_, (gunichar) ')', 0);
		if (closing < 0) {
			result = (gint64) 0;
			_g_free0 (stat);
			return result;
		}
		_tmp3_ = stat;
		_tmp4_ = string_substring (_tmp3_, (glong) (closing + 1), (glong) -1);
		_tmp5_ = _tmp4_;
		_tmp6_ = string_strip (_tmp5_);
		_tmp7_ = _tmp6_;
		_tmp9_ = _tmp8_ = g_strsplit (_tmp7_, " ", 0);
		_tmp10_ = _tmp9_;
		_tmp10__length1 = _vala_array_length (_tmp8_);
		_g_free0 (_tmp7_);
		_g_free0 (_tmp5_);
		fields = _tmp10_;
		fields_length1 = _tmp10__length1;
		_fields_size_ = fields_length1;
		_tmp11_ = fields;
		_tmp11__length1 = fields_length1;
		if (_tmp11__length1 <= 19) {
			result = (gint64) 0;
			fields = (_vala_array_free (fields, fields_length1, (GDestroyNotify) g_free), NULL);
			_g_free0 (stat);
			return result;
		}
		_tmp12_ = fields;
		_tmp12__length1 = fields_length1;
		_tmp13_ = _tmp12_[19];
		result = int64_parse (_tmp13_, (guint) 0);
		fields = (_vala_array_free (fields, fields_length1, (GDestroyNotify) g_free), NULL);
		_g_free0 (stat);
		return result;
	}
	goto __finally0;
	__catch0_g_file_error:
	{
		g_clear_error (&_inner_error0_);
		result = (gint64) 0;
		_g_free0 (stat);
		return result;
	}
	__finally0:
	_g_free0 (stat);
	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
	g_clear_error (&_inner_error0_);
	return _tmp14_;
}

static gboolean
int_try_parse (const gchar* str,
               gint* _result_,
               const gchar** unparsed,
               guint _base)
{
	gint _vala__result_ = 0;
	const gchar* _vala_unparsed = NULL;
	gchar* endptr = NULL;
	glong long_result = 0L;
	gchar* _tmp0_ = NULL;
	glong _tmp1_;
	gchar* _tmp2_;
	gint _tmp3_;
	gint _tmp4_;
	glong _tmp6_;
	gboolean result;
	g_return_val_if_fail (str != NULL, FALSE);
	errno = 0;
	_tmp1_ = strtol (str, &_tmp0_, (gint) _base);
	endptr = _tmp0_;
	long_result = _tmp1_;
	_tmp2_ = endptr;
	_tmp3_ = strlen (str);
	_tmp4_ = _tmp3_;
	if (_tmp2_ == (((gchar*) str) + _tmp4_)) {
		_vala_unparsed = "";
	} else {
		gchar* _tmp5_;
		_tmp5_ = endptr;
		_vala_unparsed = (const gchar*) _tmp5_;
	}
	_tmp6_ = long_result;
	if ((((glong) G_MININT) <= _tmp6_) && (_tmp6_ <= ((glong) G_MAXINT))) {
		gboolean _tmp7_ = FALSE;
		gboolean _tmp8_ = FALSE;
		_vala__result_ = (gint) long_result;
		if (errno != ERANGE) {
			_tmp8_ = errno != EINVAL;
		} else {
			_tmp8_ = FALSE;
		}
		if (_tmp8_) {
			const gchar* _tmp9_;
			gchar* _tmp10_;
			_tmp9_ = _vala_unparsed;
			_tmp10_ = endptr;
			_tmp7_ = _tmp9_ != _tmp10_;
		} else {
			_tmp7_ = FALSE;
		}
		result = _tmp7_;
		if (_result_) {
			*_result_ = _vala__result_;
		}
		if (unparsed) {
			*unparsed = _vala_unparsed;
		}
		return result;
	} else {
		_vala__result_ = G_MAXINT;
		result = FALSE;
		if (_result_) {
			*_result_ = _vala__result_;
		}
		if (unparsed) {
			*unparsed = _vala_unparsed;
		}
		return result;
	}
}

static ProtonPlusServicesFlatpakProcessQuery*
proton_plus_services_host_steam_session_backend_real_query_flatpak_processes (ProtonPlusServicesSteamSessionBackend* base)
{
	ProtonPlusServicesHostSteamSessionBackend * self;
	ProtonPlusUtilsCommandResult* _result_ = NULL;
	ProtonPlusUtilsCommandResult* _tmp0_;
	ProtonPlusUtilsCommandResult* _tmp1_;
	gint _tmp2_;
	gint _tmp3_;
	GeeArrayList* processes = NULL;
	GeeArrayList* _tmp11_;
	ProtonPlusUtilsCommandResult* _tmp12_;
	const gchar* _tmp13_;
	const gchar* _tmp14_;
	gchar** _tmp15_;
	gchar** _tmp16_;
	GeeArrayList* _tmp50_;
	ProtonPlusServicesFlatpakProcessQuery* _tmp51_;
	ProtonPlusServicesFlatpakProcessQuery* result;
	self = (ProtonPlusServicesHostSteamSessionBackend*) base;
	_tmp0_ = proton_plus_utils_system_run_command_sync_result ("flatpak ps --columns=instance,application,pid,child-pid");
	_result_ = _tmp0_;
	_tmp1_ = _result_;
	_tmp2_ = proton_plus_utils_command_result_get_exit_status (_tmp1_);
	_tmp3_ = _tmp2_;
	if (_tmp3_ != 0) {
		ProtonPlusUtilsCommandResult* _tmp4_;
		gint _tmp5_;
		gint _tmp6_;
		gchar* _tmp7_;
		gchar* _tmp8_;
		ProtonPlusServicesFlatpakProcessQuery* _tmp9_;
		ProtonPlusServicesFlatpakProcessQuery* _tmp10_;
		_tmp4_ = _result_;
		_tmp5_ = proton_plus_utils_command_result_get_exit_status (_tmp4_);
		_tmp6_ = _tmp5_;
		_tmp7_ = g_strdup_printf ("flatpak ps is unavailable (%d).", _tmp6_);
		_tmp8_ = _tmp7_;
		_tmp9_ = proton_plus_services_flatpak_process_query_new (FALSE, NULL, _tmp8_);
		_tmp10_ = _tmp9_;
		_g_free0 (_tmp8_);
		result = _tmp10_;
		_g_object_unref0 (_result_);
		return result;
	}
	_tmp11_ = gee_array_list_new (PROTON_PLUS_SERVICES_TYPE_FLATPAK_PROCESS_RECORD, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
	processes = _tmp11_;
	_tmp12_ = _result_;
	_tmp13_ = proton_plus_utils_command_result_get_stdout (_tmp12_);
	_tmp14_ = _tmp13_;
	_tmp16_ = _tmp15_ = g_strsplit (_tmp14_, "\n", 0);
	{
		gchar** line_collection = NULL;
		gint line_collection_length1 = 0;
		gint _line_collection_size_ = 0;
		gint line_it = 0;
		line_collection = _tmp16_;
		line_collection_length1 = _vala_array_length (_tmp15_);
		for (line_it = 0; line_it < line_collection_length1; line_it = line_it + 1) {
			gchar* _tmp17_;
			gchar* line = NULL;
			_tmp17_ = g_strdup (line_collection[line_it]);
			line = _tmp17_;
			{
				gchar* stripped = NULL;
				const gchar* _tmp18_;
				gchar* _tmp19_;
				const gchar* _tmp20_;
				gchar** fields = NULL;
				const gchar* _tmp21_;
				gchar** _tmp22_;
				gchar** _tmp23_;
				gint fields_length1;
				gint _fields_size_;
				gint wrapper_pid = 0;
				gint child_pid = 0;
				gboolean _tmp24_ = FALSE;
				gboolean _tmp25_ = FALSE;
				gboolean _tmp26_ = FALSE;
				gboolean _tmp27_ = FALSE;
				gchar** _tmp28_;
				gint _tmp28__length1;
				GeeArrayList* _tmp43_;
				gchar** _tmp44_;
				gint _tmp44__length1;
				const gchar* _tmp45_;
				gchar** _tmp46_;
				gint _tmp46__length1;
				const gchar* _tmp47_;
				ProtonPlusServicesFlatpakProcessRecord* _tmp48_;
				ProtonPlusServicesFlatpakProcessRecord* _tmp49_;
				_tmp18_ = line;
				_tmp19_ = string_strip (_tmp18_);
				stripped = _tmp19_;
				_tmp20_ = stripped;
				if (g_strcmp0 (_tmp20_, "") == 0) {
					_g_free0 (stripped);
					_g_free0 (line);
					continue;
				}
				_tmp21_ = stripped;
				_tmp23_ = _tmp22_ = g_strsplit (_tmp21_, "\t", 0);
				fields = _tmp23_;
				fields_length1 = _vala_array_length (_tmp22_);
				_fields_size_ = fields_length1;
				wrapper_pid = 0;
				child_pid = 0;
				_tmp28_ = fields;
				_tmp28__length1 = fields_length1;
				if (_tmp28__length1 != 4) {
					_tmp27_ = TRUE;
				} else {
					gchar** _tmp29_;
					gint _tmp29__length1;
					const gchar* _tmp30_;
					_tmp29_ = fields;
					_tmp29__length1 = fields_length1;
					_tmp30_ = _tmp29_[0];
					_tmp27_ = g_strcmp0 (_tmp30_, "") == 0;
				}
				if (_tmp27_) {
					_tmp26_ = TRUE;
				} else {
					gchar** _tmp31_;
					gint _tmp31__length1;
					const gchar* _tmp32_;
					_tmp31_ = fields;
					_tmp31__length1 = fields_length1;
					_tmp32_ = _tmp31_[1];
					_tmp26_ = g_strcmp0 (_tmp32_, "") == 0;
				}
				if (_tmp26_) {
					_tmp25_ = TRUE;
				} else {
					gchar** _tmp33_;
					gint _tmp33__length1;
					const gchar* _tmp34_;
					gint _tmp35_ = 0;
					gboolean _tmp36_;
					_tmp33_ = fields;
					_tmp33__length1 = fields_length1;
					_tmp34_ = _tmp33_[2];
					_tmp36_ = int_try_parse (_tmp34_, &_tmp35_, NULL, (guint) 0);
					wrapper_pid = _tmp35_;
					_tmp25_ = !_tmp36_;
				}
				if (_tmp25_) {
					_tmp24_ = TRUE;
				} else {
					gchar** _tmp37_;
					gint _tmp37__length1;
					const gchar* _tmp38_;
					gint _tmp39_ = 0;
					gboolean _tmp40_;
					_tmp37_ = fields;
					_tmp37__length1 = fields_length1;
					_tmp38_ = _tmp37_[3];
					_tmp40_ = int_try_parse (_tmp38_, &_tmp39_, NULL, (guint) 0);
					child_pid = _tmp39_;
					_tmp24_ = !_tmp40_;
				}
				if (_tmp24_) {
					GeeArrayList* _tmp41_;
					ProtonPlusServicesFlatpakProcessQuery* _tmp42_;
					_tmp41_ = processes;
					_tmp42_ = proton_plus_services_flatpak_process_query_new (FALSE, (GeeList*) _tmp41_, "flatpak ps returned incomplete process metadata.");
					result = _tmp42_;
					fields = (_vala_array_free (fields, fields_length1, (GDestroyNotify) g_free), NULL);
					_g_free0 (stripped);
					_g_free0 (line);
					line_collection = (_vala_array_free (line_collection, line_collection_length1, (GDestroyNotify) g_free), NULL);
					_g_object_unref0 (processes);
					_g_object_unref0 (_result_);
					return result;
				}
				_tmp43_ = processes;
				_tmp44_ = fields;
				_tmp44__length1 = fields_length1;
				_tmp45_ = _tmp44_[0];
				_tmp46_ = fields;
				_tmp46__length1 = fields_length1;
				_tmp47_ = _tmp46_[1];
				_tmp48_ = proton_plus_services_flatpak_process_record_new (_tmp45_, _tmp47_, wrapper_pid, child_pid);
				_tmp49_ = _tmp48_;
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp43_, _tmp49_);
				_g_object_unref0 (_tmp49_);
				fields = (_vala_array_free (fields, fields_length1, (GDestroyNotify) g_free), NULL);
				_g_free0 (stripped);
				_g_free0 (line);
			}
		}
		line_collection = (_vala_array_free (line_collection, line_collection_length1, (GDestroyNotify) g_free), NULL);
	}
	_tmp50_ = processes;
	_tmp51_ = proton_plus_services_flatpak_process_query_new (TRUE, (GeeList*) _tmp50_, "");
	result = _tmp51_;
	_g_object_unref0 (processes);
	_g_object_unref0 (_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 ProtonPlusServicesSteamDesktopEntry*
proton_plus_services_host_steam_session_backend_real_find_desktop_entry (ProtonPlusServicesSteamSessionBackend* base,
                                                                         const gchar* id)
{
	ProtonPlusServicesHostSteamSessionBackend * self;
	gboolean _tmp0_ = FALSE;
	gchar** paths = NULL;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar** _tmp4_;
	gint paths_length1;
	gint _paths_size_;
	gchar** _tmp5_;
	gint _tmp5__length1;
	GError* _inner_error0_ = NULL;
	ProtonPlusServicesSteamDesktopEntry* result;
	self = (ProtonPlusServicesHostSteamSessionBackend*) base;
	if (id == NULL) {
		_tmp0_ = TRUE;
	} else {
		_tmp0_ = g_strcmp0 (id, "") == 0;
	}
	if (_tmp0_) {
		result = NULL;
		return result;
	}
	_tmp1_ = g_get_user_data_dir ();
	_tmp2_ = g_build_filename (_tmp1_, "applications", id, NULL);
	_tmp3_ = g_build_filename ("/usr/share/applications", id, NULL);
	_tmp4_ = g_new0 (gchar*, 2 + 1);
	_tmp4_[0] = _tmp2_;
	_tmp4_[1] = _tmp3_;
	paths = _tmp4_;
	paths_length1 = 2;
	_paths_size_ = paths_length1;
	_tmp5_ = paths;
	_tmp5__length1 = paths_length1;
	{
		gchar** path_collection = NULL;
		gint path_collection_length1 = 0;
		gint _path_collection_size_ = 0;
		gint path_it = 0;
		path_collection = _tmp5_;
		path_collection_length1 = _tmp5__length1;
		for (path_it = 0; path_it < path_collection_length1; path_it = path_it + 1) {
			gchar* _tmp6_;
			gchar* path = NULL;
			_tmp6_ = g_strdup (path_collection[path_it]);
			path = _tmp6_;
			{
				const gchar* _tmp7_;
				gchar* content = NULL;
				_tmp7_ = path;
				if (!g_file_test (_tmp7_, G_FILE_TEST_IS_REGULAR)) {
					_g_free0 (path);
					continue;
				}
				{
					const gchar* _tmp8_;
					gchar* _tmp9_ = NULL;
					const gchar* _tmp10_;
					const gchar* _tmp11_;
					ProtonPlusServicesSteamDesktopEntry* _tmp12_;
					_tmp8_ = path;
					g_file_get_contents (_tmp8_, &_tmp9_, NULL, &_inner_error0_);
					_g_free0 (content);
					content = _tmp9_;
					if (G_UNLIKELY (_inner_error0_ != NULL)) {
						if (_inner_error0_->domain == G_FILE_ERROR) {
							goto __catch0_g_file_error;
						}
						_g_free0 (content);
						_g_free0 (path);
						paths = (_vala_array_free (paths, paths_length1, (GDestroyNotify) g_free), NULL);
						g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
						g_clear_error (&_inner_error0_);
						return NULL;
					}
					_tmp10_ = path;
					_tmp11_ = content;
					_tmp12_ = proton_plus_services_steam_desktop_entry_new (id, _tmp10_, string_contains (_tmp11_, "x-scheme-handler/steam"));
					result = _tmp12_;
					_g_free0 (content);
					_g_free0 (path);
					paths = (_vala_array_free (paths, paths_length1, (GDestroyNotify) g_free), NULL);
					return result;
				}
				goto __finally0;
				__catch0_g_file_error:
				{
					g_clear_error (&_inner_error0_);
					_g_free0 (content);
					_g_free0 (path);
					continue;
				}
				__finally0:
				_g_free0 (content);
				_g_free0 (path);
				paths = (_vala_array_free (paths, paths_length1, (GDestroyNotify) g_free), NULL);
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
				g_clear_error (&_inner_error0_);
				return NULL;
			}
		}
	}
	result = NULL;
	paths = (_vala_array_free (paths, paths_length1, (GDestroyNotify) g_free), NULL);
	return result;
}

static gboolean
proton_plus_services_host_steam_session_backend_real_is_steamos_gaming_mode (ProtonPlusServicesSteamSessionBackend* base)
{
	ProtonPlusServicesHostSteamSessionBackend * self;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean result;
	self = (ProtonPlusServicesHostSteamSessionBackend*) base;
	if (proton_plus_services_host_steam_session_backend_environment_identifies_gamescope (self, "XDG_CURRENT_DESKTOP")) {
		_tmp1_ = TRUE;
	} else {
		_tmp1_ = proton_plus_services_host_steam_session_backend_environment_identifies_gamescope (self, "XDG_SESSION_DESKTOP");
	}
	if (_tmp1_) {
		_tmp0_ = TRUE;
	} else {
		_tmp0_ = proton_plus_services_host_steam_session_backend_environment_identifies_gamescope (self, "DESKTOP_SESSION");
	}
	result = _tmp0_;
	return result;
}

static gboolean
proton_plus_services_host_steam_session_backend_environment_identifies_gamescope (ProtonPlusServicesHostSteamSessionBackend* self,
                                                                                  const gchar* name)
{
	gchar* value = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gboolean _tmp2_ = FALSE;
	const gchar* _tmp3_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (name != NULL, FALSE);
	_tmp0_ = g_getenv (name);
	_tmp1_ = g_strdup (_tmp0_);
	value = _tmp1_;
	_tmp3_ = value;
	if (_tmp3_ != NULL) {
		const gchar* _tmp4_;
		gchar* _tmp5_;
		gchar* _tmp6_;
		_tmp4_ = value;
		_tmp5_ = g_utf8_strdown ((const gchar*) _tmp4_, (gssize) -1);
		_tmp6_ = _tmp5_;
		_tmp2_ = string_contains (_tmp6_, "gamescope");
		_g_free0 (_tmp6_);
	} else {
		_tmp2_ = FALSE;
	}
	result = _tmp2_;
	_g_free0 (value);
	return result;
}

ProtonPlusServicesHostSteamSessionBackend*
proton_plus_services_host_steam_session_backend_construct (GType object_type)
{
	ProtonPlusServicesHostSteamSessionBackend * self = NULL;
	self = (ProtonPlusServicesHostSteamSessionBackend*) g_object_new (object_type, NULL);
	return self;
}

ProtonPlusServicesHostSteamSessionBackend*
proton_plus_services_host_steam_session_backend_new (void)
{
	return proton_plus_services_host_steam_session_backend_construct (PROTON_PLUS_SERVICES_TYPE_HOST_STEAM_SESSION_BACKEND);
}

static void
proton_plus_services_host_steam_session_backend_class_init (ProtonPlusServicesHostSteamSessionBackendClass * klass,
                                                            gpointer klass_data)
{
	proton_plus_services_host_steam_session_backend_parent_class = g_type_class_peek_parent (klass);
}

static void
proton_plus_services_host_steam_session_backend_proton_plus_services_steam_session_backend_interface_init (ProtonPlusServicesSteamSessionBackendIface * iface,
                                                                                                           gpointer iface_data)
{
	proton_plus_services_host_steam_session_backend_proton_plus_services_steam_session_backend_parent_iface = g_type_interface_peek_parent (iface);
	iface->get_boot_id = (gchar* (*) (ProtonPlusServicesSteamSessionBackend*)) proton_plus_services_host_steam_session_backend_real_get_boot_id;
	iface->get_monotonic_time_usec = (gint64 (*) (ProtonPlusServicesSteamSessionBackend*)) proton_plus_services_host_steam_session_backend_real_get_monotonic_time_usec;
	iface->get_clock_ticks_per_second = (gint64 (*) (ProtonPlusServicesSteamSessionBackend*)) proton_plus_services_host_steam_session_backend_real_get_clock_ticks_per_second;
	iface->query_native_processes = (ProtonPlusServicesNativeProcessQuery* (*) (ProtonPlusServicesSteamSessionBackend*)) proton_plus_services_host_steam_session_backend_real_query_native_processes;
	iface->query_flatpak_processes = (ProtonPlusServicesFlatpakProcessQuery* (*) (ProtonPlusServicesSteamSessionBackend*)) proton_plus_services_host_steam_session_backend_real_query_flatpak_processes;
	iface->find_desktop_entry = (ProtonPlusServicesSteamDesktopEntry* (*) (ProtonPlusServicesSteamSessionBackend*, const gchar*)) proton_plus_services_host_steam_session_backend_real_find_desktop_entry;
	iface->is_steamos_gaming_mode = (gboolean (*) (ProtonPlusServicesSteamSessionBackend*)) proton_plus_services_host_steam_session_backend_real_is_steamos_gaming_mode;
}

static void
proton_plus_services_host_steam_session_backend_instance_init (ProtonPlusServicesHostSteamSessionBackend * self,
                                                               gpointer klass)
{
}

static GType
proton_plus_services_host_steam_session_backend_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusServicesHostSteamSessionBackendClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_services_host_steam_session_backend_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusServicesHostSteamSessionBackend), 0, (GInstanceInitFunc) proton_plus_services_host_steam_session_backend_instance_init, NULL };
	static const GInterfaceInfo proton_plus_services_steam_session_backend_info = { (GInterfaceInitFunc) proton_plus_services_host_steam_session_backend_proton_plus_services_steam_session_backend_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	GType proton_plus_services_host_steam_session_backend_type_id;
	proton_plus_services_host_steam_session_backend_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusServicesHostSteamSessionBackend", &g_define_type_info, 0);
	g_type_add_interface_static (proton_plus_services_host_steam_session_backend_type_id, PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_BACKEND, &proton_plus_services_steam_session_backend_info);
	return proton_plus_services_host_steam_session_backend_type_id;
}

GType
proton_plus_services_host_steam_session_backend_get_type (void)
{
	static volatile gsize proton_plus_services_host_steam_session_backend_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_host_steam_session_backend_type_id__once)) {
		GType proton_plus_services_host_steam_session_backend_type_id;
		proton_plus_services_host_steam_session_backend_type_id = proton_plus_services_host_steam_session_backend_get_type_once ();
		g_once_init_leave (&proton_plus_services_host_steam_session_backend_type_id__once, proton_plus_services_host_steam_session_backend_type_id);
	}
	return proton_plus_services_host_steam_session_backend_type_id__once;
}

static inline gpointer
proton_plus_services_steam_session_service_get_instance_private (ProtonPlusServicesSteamSessionService* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusServicesSteamSessionService_private_offset);
}

ProtonPlusServicesSteamSessionService*
proton_plus_services_steam_session_service_construct (GType object_type,
                                                      ProtonPlusServicesSteamSessionBackend* backend)
{
	ProtonPlusServicesSteamSessionService * self = NULL;
	ProtonPlusServicesSteamSessionBackend* _tmp0_ = NULL;
	ProtonPlusServicesSteamSessionBackend* _tmp1_;
	ProtonPlusServicesSteamSessionBackend* _tmp3_;
	self = (ProtonPlusServicesSteamSessionService*) g_object_new (object_type, NULL);
	_tmp1_ = _g_object_ref0 (backend);
	_tmp0_ = _tmp1_;
	if (_tmp0_ == NULL) {
		ProtonPlusServicesHostSteamSessionBackend* _tmp2_;
		_tmp2_ = proton_plus_services_host_steam_session_backend_new ();
		_g_object_unref0 (_tmp0_);
		_tmp0_ = (ProtonPlusServicesSteamSessionBackend*) _tmp2_;
	}
	_tmp3_ = _tmp0_;
	_tmp0_ = NULL;
	_g_object_unref0 (self->priv->backend);
	self->priv->backend = _tmp3_;
	_g_object_unref0 (_tmp0_);
	return self;
}

ProtonPlusServicesSteamSessionService*
proton_plus_services_steam_session_service_new (ProtonPlusServicesSteamSessionBackend* backend)
{
	return proton_plus_services_steam_session_service_construct (PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SERVICE, backend);
}

void
proton_plus_services_steam_session_service_watch_target (ProtonPlusServicesSteamSessionService* self,
                                                         ProtonPlusModelsSteamRestartTarget* target)
{
	GeeArrayList* _tmp13_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (target != NULL);
	{
		GeeArrayList* _existing_list = NULL;
		GeeArrayList* _tmp0_;
		gint _existing_size = 0;
		GeeArrayList* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		gint _existing_index = 0;
		_tmp0_ = self->priv->monitored_targets;
		_existing_list = _tmp0_;
		_tmp1_ = _existing_list;
		_tmp2_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp1_);
		_tmp3_ = _tmp2_;
		_existing_size = _tmp3_;
		_existing_index = -1;
		while (TRUE) {
			gint _tmp4_;
			gint _tmp5_;
			ProtonPlusModelsSteamRestartTarget* existing = NULL;
			GeeArrayList* _tmp6_;
			gpointer _tmp7_;
			ProtonPlusModelsSteamRestartTarget* _tmp8_;
			const gchar* _tmp9_;
			const gchar* _tmp10_;
			const gchar* _tmp11_;
			const gchar* _tmp12_;
			_existing_index = _existing_index + 1;
			_tmp4_ = _existing_index;
			_tmp5_ = _existing_size;
			if (!(_tmp4_ < _tmp5_)) {
				break;
			}
			_tmp6_ = _existing_list;
			_tmp7_ = gee_abstract_list_get ((GeeAbstractList*) _tmp6_, _existing_index);
			existing = (ProtonPlusModelsSteamRestartTarget*) _tmp7_;
			_tmp8_ = existing;
			_tmp9_ = proton_plus_models_steam_restart_target_get_id (_tmp8_);
			_tmp10_ = _tmp9_;
			_tmp11_ = proton_plus_models_steam_restart_target_get_id (target);
			_tmp12_ = _tmp11_;
			if (g_strcmp0 (_tmp10_, _tmp12_) == 0) {
				_g_object_unref0 (existing);
				return;
			}
			_g_object_unref0 (existing);
		}
	}
	_tmp13_ = self->priv->monitored_targets;
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp13_, target);
}

ProtonPlusServicesSteamSessionSnapshot*
proton_plus_services_steam_session_service_inspect (ProtonPlusServicesSteamSessionService* self,
                                                    ProtonPlusModelsSteamRestartTarget* target)
{
	GeeArrayList* diagnostics = NULL;
	GeeArrayList* _tmp0_;
	GeeArrayList* blockers = NULL;
	GeeArrayList* _tmp1_;
	ProtonPlusServicesSteamRelaunchMetadata* relaunch = NULL;
	ProtonPlusServicesSteamRelaunchMetadata* _tmp2_;
	ProtonPlusServicesSteamSessionMode _tmp3_ = 0;
	ProtonPlusServicesSteamSessionBackend* _tmp4_;
	ProtonPlusServicesSteamSessionMode session_mode = 0;
	ProtonPlusModelsSteamInstallationKind _tmp5_;
	ProtonPlusModelsSteamInstallationKind _tmp6_;
	ProtonPlusServicesSteamSessionSnapshot* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (target != NULL, NULL);
	_tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
	diagnostics = _tmp0_;
	_tmp1_ = gee_array_list_new (PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_BLOCKER_EVIDENCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
	blockers = _tmp1_;
	_tmp2_ = proton_plus_services_steam_session_service_get_relaunch_metadata (self, target);
	relaunch = _tmp2_;
	_tmp4_ = self->priv->backend;
	if (proton_plus_services_steam_session_backend_is_steamos_gaming_mode (_tmp4_)) {
		_tmp3_ = PROTON_PLUS_SERVICES_STEAM_SESSION_MODE_STEAMOS_GAMING_MODE;
	} else {
		_tmp3_ = PROTON_PLUS_SERVICES_STEAM_SESSION_MODE_UNKNOWN;
	}
	session_mode = _tmp3_;
	_tmp5_ = proton_plus_models_steam_restart_target_get_installation_kind (target);
	_tmp6_ = _tmp5_;
	switch (_tmp6_) {
		case PROTON_PLUS_MODELS_STEAM_INSTALLATION_KIND_FLATPAK:
		{
			ProtonPlusServicesSteamRelaunchMetadata* _tmp7_;
			GeeArrayList* _tmp8_;
			GeeArrayList* _tmp9_;
			ProtonPlusServicesSteamSessionSnapshot* _tmp10_;
			_tmp7_ = relaunch;
			_tmp8_ = blockers;
			_tmp9_ = diagnostics;
			_tmp10_ = proton_plus_services_steam_session_service_inspect_flatpak (self, target, _tmp7_, (GeeList*) _tmp8_, (GeeList*) _tmp9_, session_mode);
			result = _tmp10_;
			_g_object_unref0 (relaunch);
			_g_object_unref0 (blockers);
			_g_object_unref0 (diagnostics);
			return result;
		}
		case PROTON_PLUS_MODELS_STEAM_INSTALLATION_KIND_NATIVE:
		case PROTON_PLUS_MODELS_STEAM_INSTALLATION_KIND_SNAP:
		{
			ProtonPlusServicesSteamRelaunchMetadata* _tmp11_;
			GeeArrayList* _tmp12_;
			GeeArrayList* _tmp13_;
			ProtonPlusServicesSteamSessionSnapshot* _tmp14_;
			_tmp11_ = relaunch;
			_tmp12_ = blockers;
			_tmp13_ = diagnostics;
			_tmp14_ = proton_plus_services_steam_session_service_inspect_native (self, target, _tmp11_, (GeeList*) _tmp12_, (GeeList*) _tmp13_, session_mode);
			result = _tmp14_;
			_g_object_unref0 (relaunch);
			_g_object_unref0 (blockers);
			_g_object_unref0 (diagnostics);
			return result;
		}
		default:
		{
			GeeArrayList* _tmp15_;
			GeeArrayList* _tmp16_;
			GeeArrayList* _tmp17_;
			gpointer _tmp18_;
			gchar* _tmp19_;
			ProtonPlusServicesSteamSessionBlockerEvidence* _tmp20_;
			ProtonPlusServicesSteamSessionBlockerEvidence* _tmp21_;
			ProtonPlusServicesSteamRelaunchMetadata* _tmp22_;
			GeeArrayList* _tmp23_;
			GeeArrayList* _tmp24_;
			ProtonPlusServicesSteamSessionSnapshot* _tmp25_;
			_tmp15_ = diagnostics;
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp15_, "This target has no reliable process observation strategy.");
			_tmp16_ = blockers;
			_tmp17_ = diagnostics;
			_tmp18_ = gee_abstract_list_get ((GeeAbstractList*) _tmp17_, 0);
			_tmp19_ = (gchar*) _tmp18_;
			_tmp20_ = proton_plus_services_steam_session_blocker_evidence_new (PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_UNKNOWN_PROCESS_STATE, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_CONFIRMED, _tmp19_);
			_tmp21_ = _tmp20_;
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp16_, _tmp21_);
			_g_object_unref0 (_tmp21_);
			_g_free0 (_tmp19_);
			_tmp22_ = relaunch;
			_tmp23_ = blockers;
			_tmp24_ = diagnostics;
			_tmp25_ = proton_plus_services_steam_session_service_snapshot (self, target, PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_UNKNOWN, FALSE, 0, NULL, NULL, NULL, _tmp22_, (GeeList*) _tmp23_, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_NONE, session_mode, (GeeList*) _tmp24_);
			result = _tmp25_;
			_g_object_unref0 (relaunch);
			_g_object_unref0 (blockers);
			_g_object_unref0 (diagnostics);
			return result;
		}
	}
}

GeeList*
proton_plus_services_steam_session_service_inspect_all (ProtonPlusServicesSteamSessionService* self,
                                                        GeeList* targets)
{
	GeeArrayList* snapshots = NULL;
	GeeArrayList* _tmp0_;
	GeeList* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (targets != NULL, NULL);
	_tmp0_ = gee_array_list_new (PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SNAPSHOT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
	snapshots = _tmp0_;
	{
		GeeList* _target_list = NULL;
		gint _target_size = 0;
		GeeList* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		gint _target_index = 0;
		_target_list = targets;
		_tmp1_ = _target_list;
		_tmp2_ = gee_collection_get_size ((GeeCollection*) _tmp1_);
		_tmp3_ = _tmp2_;
		_target_size = _tmp3_;
		_target_index = -1;
		while (TRUE) {
			gint _tmp4_;
			gint _tmp5_;
			ProtonPlusModelsSteamRestartTarget* target = NULL;
			GeeList* _tmp6_;
			gpointer _tmp7_;
			GeeArrayList* _tmp8_;
			ProtonPlusModelsSteamRestartTarget* _tmp9_;
			ProtonPlusServicesSteamSessionSnapshot* _tmp10_;
			ProtonPlusServicesSteamSessionSnapshot* _tmp11_;
			_target_index = _target_index + 1;
			_tmp4_ = _target_index;
			_tmp5_ = _target_size;
			if (!(_tmp4_ < _tmp5_)) {
				break;
			}
			_tmp6_ = _target_list;
			_tmp7_ = gee_list_get (_tmp6_, _target_index);
			target = (ProtonPlusModelsSteamRestartTarget*) _tmp7_;
			_tmp8_ = snapshots;
			_tmp9_ = target;
			_tmp10_ = proton_plus_services_steam_session_service_inspect (self, _tmp9_);
			_tmp11_ = _tmp10_;
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp8_, _tmp11_);
			_g_object_unref0 (_tmp11_);
			_g_object_unref0 (target);
		}
	}
	result = (GeeList*) snapshots;
	return result;
}

static gboolean
__lambda11_ (ProtonPlusServicesSteamSessionService* self)
{
	gboolean result;
	proton_plus_services_steam_session_service_poll_monitored (self);
	result = G_SOURCE_CONTINUE;
	return result;
}

static gboolean
___lambda11__gsource_func (gpointer self)
{
	gboolean result;
	result = __lambda11_ ((ProtonPlusServicesSteamSessionService*) self);
	return result;
}

void
proton_plus_services_steam_session_service_start_monitoring (ProtonPlusServicesSteamSessionService* self)
{
	g_return_if_fail (self != NULL);
	if (self->priv->monitoring_source_id != ((guint) 0)) {
		return;
	}
	self->priv->monitoring_source_id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda11__gsource_func, g_object_ref (self), g_object_unref);
}

void
proton_plus_services_steam_session_service_stop_monitoring (ProtonPlusServicesSteamSessionService* self)
{
	GeeHashMap* _tmp0_;
	g_return_if_fail (self != NULL);
	if (self->priv->monitoring_source_id != ((guint) 0)) {
		g_source_remove (self->priv->monitoring_source_id);
		self->priv->monitoring_source_id = (guint) 0;
	}
	_tmp0_ = self->priv->previous_monitored_snapshots;
	gee_abstract_map_clear ((GeeAbstractMap*) _tmp0_);
}

void
proton_plus_services_steam_session_service_poll_monitored (ProtonPlusServicesSteamSessionService* self)
{
	g_return_if_fail (self != NULL);
	{
		GeeArrayList* _target_list = NULL;
		GeeArrayList* _tmp0_;
		gint _target_size = 0;
		GeeArrayList* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		gint _target_index = 0;
		_tmp0_ = self->priv->monitored_targets;
		_target_list = _tmp0_;
		_tmp1_ = _target_list;
		_tmp2_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp1_);
		_tmp3_ = _tmp2_;
		_target_size = _tmp3_;
		_target_index = -1;
		while (TRUE) {
			gint _tmp4_;
			gint _tmp5_;
			ProtonPlusModelsSteamRestartTarget* target = NULL;
			GeeArrayList* _tmp6_;
			gpointer _tmp7_;
			ProtonPlusServicesSteamSessionSnapshot* observed = NULL;
			ProtonPlusModelsSteamRestartTarget* _tmp8_;
			ProtonPlusServicesSteamSessionSnapshot* _tmp9_;
			ProtonPlusServicesSteamSessionSnapshot* previous = NULL;
			GeeHashMap* _tmp10_;
			ProtonPlusModelsSteamRestartTarget* _tmp11_;
			const gchar* _tmp12_;
			const gchar* _tmp13_;
			gpointer _tmp14_;
			gboolean _tmp15_ = FALSE;
			gboolean _tmp16_ = FALSE;
			ProtonPlusServicesSteamSessionSnapshot* _tmp17_;
			GeeHashMap* _tmp49_;
			ProtonPlusModelsSteamRestartTarget* _tmp50_;
			const gchar* _tmp51_;
			const gchar* _tmp52_;
			ProtonPlusServicesSteamSessionSnapshot* _tmp53_;
			ProtonPlusModelsSteamRestartTarget* _tmp54_;
			ProtonPlusServicesSteamSessionSnapshot* _tmp55_;
			_target_index = _target_index + 1;
			_tmp4_ = _target_index;
			_tmp5_ = _target_size;
			if (!(_tmp4_ < _tmp5_)) {
				break;
			}
			_tmp6_ = _target_list;
			_tmp7_ = gee_abstract_list_get ((GeeAbstractList*) _tmp6_, _target_index);
			target = (ProtonPlusModelsSteamRestartTarget*) _tmp7_;
			_tmp8_ = target;
			_tmp9_ = proton_plus_services_steam_session_service_inspect (self, _tmp8_);
			observed = _tmp9_;
			_tmp10_ = self->priv->previous_monitored_snapshots;
			_tmp11_ = target;
			_tmp12_ = proton_plus_models_steam_restart_target_get_id (_tmp11_);
			_tmp13_ = _tmp12_;
			_tmp14_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp10_, _tmp13_);
			previous = (ProtonPlusServicesSteamSessionSnapshot*) _tmp14_;
			_tmp17_ = previous;
			if (_tmp17_ != NULL) {
				ProtonPlusServicesSteamSessionSnapshot* _tmp18_;
				gboolean _tmp19_;
				gboolean _tmp20_;
				_tmp18_ = previous;
				_tmp19_ = proton_plus_services_steam_session_snapshot_get_matching_process_found (_tmp18_);
				_tmp20_ = _tmp19_;
				_tmp16_ = _tmp20_;
			} else {
				_tmp16_ = FALSE;
			}
			if (_tmp16_) {
				ProtonPlusServicesSteamSessionSnapshot* _tmp21_;
				ProtonPlusServicesSteamSessionState _tmp22_;
				ProtonPlusServicesSteamSessionState _tmp23_;
				_tmp21_ = observed;
				_tmp22_ = proton_plus_services_steam_session_snapshot_get_state (_tmp21_);
				_tmp23_ = _tmp22_;
				_tmp15_ = _tmp23_ == PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_STOPPED;
			} else {
				_tmp15_ = FALSE;
			}
			if (_tmp15_) {
				ProtonPlusServicesSteamSessionSnapshot* _tmp24_;
				const gchar* _tmp25_;
				const gchar* _tmp26_;
				ProtonPlusServicesSteamSessionSnapshot* _tmp27_;
				const gchar* _tmp28_;
				const gchar* _tmp29_;
				ProtonPlusServicesSteamSessionSnapshot* _tmp30_;
				const gchar* _tmp31_;
				const gchar* _tmp32_;
				ProtonPlusServicesSteamSessionSnapshot* _tmp33_;
				ProtonPlusServicesSteamRelaunchMetadata* _tmp34_;
				ProtonPlusServicesSteamRelaunchMetadata* _tmp35_;
				ProtonPlusServicesSteamSessionSnapshot* _tmp36_;
				GeeList* _tmp37_;
				GeeList* _tmp38_;
				ProtonPlusServicesSteamSessionSnapshot* _tmp39_;
				ProtonPlusServicesSteamSessionMode _tmp40_;
				ProtonPlusServicesSteamSessionMode _tmp41_;
				ProtonPlusServicesSteamSessionSnapshot* _tmp42_;
				GeeList* _tmp43_;
				GeeList* _tmp44_;
				ProtonPlusServicesSteamSessionSnapshot* _tmp45_;
				ProtonPlusServicesSteamSessionSnapshot* _tmp46_;
				GeeList* _tmp47_;
				GeeList* _tmp48_;
				_tmp24_ = observed;
				_tmp25_ = proton_plus_services_steam_session_snapshot_get_target_id (_tmp24_);
				_tmp26_ = _tmp25_;
				_tmp27_ = observed;
				_tmp28_ = proton_plus_services_steam_session_snapshot_get_flatpak_instance_id (_tmp27_);
				_tmp29_ = _tmp28_;
				_tmp30_ = observed;
				_tmp31_ = proton_plus_services_steam_session_snapshot_get_matching_executable_path (_tmp30_);
				_tmp32_ = _tmp31_;
				_tmp33_ = observed;
				_tmp34_ = proton_plus_services_steam_session_snapshot_get_relaunch (_tmp33_);
				_tmp35_ = _tmp34_;
				_tmp36_ = observed;
				_tmp37_ = proton_plus_services_steam_session_snapshot_get_blockers (_tmp36_);
				_tmp38_ = _tmp37_;
				_tmp39_ = observed;
				_tmp40_ = proton_plus_services_steam_session_snapshot_get_session_mode (_tmp39_);
				_tmp41_ = _tmp40_;
				_tmp42_ = observed;
				_tmp43_ = proton_plus_services_steam_session_snapshot_get_diagnostics (_tmp42_);
				_tmp44_ = _tmp43_;
				_tmp45_ = proton_plus_services_steam_session_snapshot_new (_tmp26_, PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_SHUTTING_DOWN, FALSE, 0, NULL, _tmp29_, _tmp32_, _tmp35_, _tmp38_, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_HEURISTIC, _tmp41_, _tmp44_);
				_g_object_unref0 (observed);
				observed = _tmp45_;
				_tmp46_ = observed;
				_tmp47_ = proton_plus_services_steam_session_snapshot_get_diagnostics (_tmp46_);
				_tmp48_ = _tmp47_;
				gee_collection_add ((GeeCollection*) _tmp48_, "A previously observed Steam anchor disappeared during monitoring.");
			}
			_tmp49_ = self->priv->previous_monitored_snapshots;
			_tmp50_ = target;
			_tmp51_ = proton_plus_models_steam_restart_target_get_id (_tmp50_);
			_tmp52_ = _tmp51_;
			_tmp53_ = observed;
			gee_abstract_map_set ((GeeAbstractMap*) _tmp49_, _tmp52_, _tmp53_);
			_tmp54_ = target;
			_tmp55_ = observed;
			g_signal_emit (self, proton_plus_services_steam_session_service_signals[PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_STATE_CHANGED_SIGNAL], 0, _tmp54_, _tmp55_);
			_g_object_unref0 (previous);
			_g_object_unref0 (observed);
			_g_object_unref0 (target);
		}
	}
}

static ProtonPlusServicesSteamSessionSnapshot*
proton_plus_services_steam_session_service_inspect_native (ProtonPlusServicesSteamSessionService* self,
                                                           ProtonPlusModelsSteamRestartTarget* target,
                                                           ProtonPlusServicesSteamRelaunchMetadata* relaunch,
                                                           GeeList* blockers,
                                                           GeeList* diagnostics,
                                                           ProtonPlusServicesSteamSessionMode session_mode)
{
	ProtonPlusServicesNativeProcessQuery* query = NULL;
	ProtonPlusServicesSteamSessionBackend* _tmp0_;
	ProtonPlusServicesNativeProcessQuery* _tmp1_;
	ProtonPlusServicesNativeProcessQuery* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	GeeArrayList* anchors = NULL;
	GeeArrayList* _tmp14_;
	ProtonPlusServicesSteamProcessRecord* anchor = NULL;
	gboolean runtime_update_transition = FALSE;
	GeeArrayList* _tmp30_;
	gint _tmp31_;
	gint _tmp32_;
	ProtonPlusServicesSteamProcessRecord* _tmp53_;
	gboolean _tmp55_ = FALSE;
	ProtonPlusServicesSteamProcessRecord* _tmp56_;
	gint64 _tmp57_;
	gint64 _tmp58_;
	ProtonPlusServicesSteamProcessGeneration* generation = NULL;
	ProtonPlusServicesSteamProcessRecord* _tmp75_;
	gint _tmp76_;
	gint _tmp77_;
	ProtonPlusServicesSteamProcessRecord* _tmp78_;
	gint64 _tmp79_;
	gint64 _tmp80_;
	ProtonPlusServicesSteamSessionBackend* _tmp81_;
	gchar* _tmp82_;
	gchar* _tmp83_;
	ProtonPlusServicesSteamProcessGeneration* _tmp84_;
	ProtonPlusServicesSteamProcessGeneration* _tmp85_;
	ProtonPlusServicesSteamSessionState state = 0;
	gboolean _tmp86_ = FALSE;
	ProtonPlusServicesSteamProcessRecord* _tmp93_;
	gint _tmp94_;
	gint _tmp95_;
	ProtonPlusServicesSteamProcessGeneration* _tmp96_;
	ProtonPlusServicesSteamProcessRecord* _tmp97_;
	const gchar* _tmp98_;
	const gchar* _tmp99_;
	ProtonPlusServicesSteamSessionSnapshot* _tmp100_;
	ProtonPlusServicesSteamSessionSnapshot* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (target != NULL, NULL);
	g_return_val_if_fail (relaunch != NULL, NULL);
	g_return_val_if_fail (blockers != NULL, NULL);
	g_return_val_if_fail (diagnostics != NULL, NULL);
	_tmp0_ = self->priv->backend;
	_tmp1_ = proton_plus_services_steam_session_backend_query_native_processes (_tmp0_);
	query = _tmp1_;
	_tmp2_ = query;
	_tmp3_ = proton_plus_services_native_process_query_get_available (_tmp2_);
	_tmp4_ = _tmp3_;
	if (!_tmp4_) {
		ProtonPlusServicesNativeProcessQuery* _tmp5_;
		const gchar* _tmp6_;
		const gchar* _tmp7_;
		ProtonPlusServicesNativeProcessQuery* _tmp8_;
		const gchar* _tmp9_;
		const gchar* _tmp10_;
		ProtonPlusServicesSteamSessionBlockerEvidence* _tmp11_;
		ProtonPlusServicesSteamSessionBlockerEvidence* _tmp12_;
		ProtonPlusServicesSteamSessionSnapshot* _tmp13_;
		_tmp5_ = query;
		_tmp6_ = proton_plus_services_native_process_query_get_diagnostic (_tmp5_);
		_tmp7_ = _tmp6_;
		gee_collection_add ((GeeCollection*) diagnostics, _tmp7_);
		_tmp8_ = query;
		_tmp9_ = proton_plus_services_native_process_query_get_diagnostic (_tmp8_);
		_tmp10_ = _tmp9_;
		_tmp11_ = proton_plus_services_steam_session_blocker_evidence_new (PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_UNKNOWN_PROCESS_STATE, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_CONFIRMED, _tmp10_);
		_tmp12_ = _tmp11_;
		gee_collection_add ((GeeCollection*) blockers, _tmp12_);
		_g_object_unref0 (_tmp12_);
		_tmp13_ = proton_plus_services_steam_session_service_snapshot (self, target, PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_UNKNOWN, FALSE, 0, NULL, NULL, NULL, relaunch, blockers, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_NONE, session_mode, diagnostics);
		result = _tmp13_;
		_g_object_unref0 (query);
		return result;
	}
	_tmp14_ = gee_array_list_new (PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
	anchors = _tmp14_;
	{
		GeeList* _process_list = NULL;
		ProtonPlusServicesNativeProcessQuery* _tmp15_;
		GeeList* _tmp16_;
		GeeList* _tmp17_;
		gint _process_size = 0;
		GeeList* _tmp18_;
		gint _tmp19_;
		gint _tmp20_;
		gint _process_index = 0;
		_tmp15_ = query;
		_tmp16_ = proton_plus_services_native_process_query_get_processes (_tmp15_);
		_tmp17_ = _tmp16_;
		_process_list = _tmp17_;
		_tmp18_ = _process_list;
		_tmp19_ = gee_collection_get_size ((GeeCollection*) _tmp18_);
		_tmp20_ = _tmp19_;
		_process_size = _tmp20_;
		_process_index = -1;
		while (TRUE) {
			gint _tmp21_;
			gint _tmp22_;
			ProtonPlusServicesSteamProcessRecord* process = NULL;
			GeeList* _tmp23_;
			gpointer _tmp24_;
			ProtonPlusServicesSteamProcessRecord* _tmp25_;
			ProtonPlusServicesSteamProcessRecord* _tmp27_;
			GeeArrayList* _tmp28_;
			ProtonPlusServicesSteamProcessRecord* _tmp29_;
			_process_index = _process_index + 1;
			_tmp21_ = _process_index;
			_tmp22_ = _process_size;
			if (!(_tmp21_ < _tmp22_)) {
				break;
			}
			_tmp23_ = _process_list;
			_tmp24_ = gee_list_get (_tmp23_, _process_index);
			process = (ProtonPlusServicesSteamProcessRecord*) _tmp24_;
			_tmp25_ = process;
			if (proton_plus_services_steam_session_service_is_associated (self, target, _tmp25_)) {
				ProtonPlusServicesSteamProcessRecord* _tmp26_;
				_tmp26_ = process;
				proton_plus_services_steam_session_service_collect_blocker (self, target, _tmp26_, blockers);
			}
			_tmp27_ = process;
			if (!proton_plus_services_steam_session_service_is_anchor (self, target, _tmp27_)) {
				_g_object_unref0 (process);
				continue;
			}
			_tmp28_ = anchors;
			_tmp29_ = process;
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp28_, _tmp29_);
			_g_object_unref0 (process);
		}
	}
	anchor = NULL;
	runtime_update_transition = FALSE;
	_tmp30_ = anchors;
	_tmp31_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp30_);
	_tmp32_ = _tmp31_;
	if (_tmp32_ == 1) {
		GeeArrayList* _tmp33_;
		gpointer _tmp34_;
		_tmp33_ = anchors;
		_tmp34_ = gee_abstract_list_get ((GeeAbstractList*) _tmp33_, 0);
		_g_object_unref0 (anchor);
		anchor = (ProtonPlusServicesSteamProcessRecord*) _tmp34_;
	} else {
		GeeArrayList* _tmp35_;
		gint _tmp36_;
		gint _tmp37_;
		_tmp35_ = anchors;
		_tmp36_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp35_);
		_tmp37_ = _tmp36_;
		if (_tmp37_ > 1) {
			GeeArrayList* _tmp38_;
			ProtonPlusServicesSteamProcessRecord* _tmp39_;
			ProtonPlusServicesSteamProcessRecord* _tmp40_;
			ProtonPlusServicesSteamProcessRecord* _tmp44_;
			const gchar* _tmp52_ = NULL;
			_tmp38_ = anchors;
			_tmp39_ = proton_plus_services_steam_session_service_select_runtime_duplicate_anchor (self, (GeeList*) _tmp38_);
			_g_object_unref0 (anchor);
			anchor = _tmp39_;
			_tmp40_ = anchor;
			if (_tmp40_ == NULL) {
				GeeArrayList* _tmp41_;
				ProtonPlusServicesSteamProcessRecord* _tmp42_;
				ProtonPlusServicesSteamProcessRecord* _tmp43_;
				_tmp41_ = anchors;
				_tmp42_ = proton_plus_services_steam_session_service_select_runtime_update_anchor (self, (GeeList*) _tmp41_);
				_g_object_unref0 (anchor);
				anchor = _tmp42_;
				_tmp43_ = anchor;
				runtime_update_transition = _tmp43_ != NULL;
			}
			_tmp44_ = anchor;
			if (_tmp44_ == NULL) {
				gint _tmp45_;
				gint _tmp46_;
				gpointer _tmp47_;
				gchar* _tmp48_;
				ProtonPlusServicesSteamSessionBlockerEvidence* _tmp49_;
				ProtonPlusServicesSteamSessionBlockerEvidence* _tmp50_;
				ProtonPlusServicesSteamSessionSnapshot* _tmp51_;
				gee_collection_add ((GeeCollection*) diagnostics, "More than one native Steam anchor matched this physical target.");
				_tmp45_ = gee_collection_get_size ((GeeCollection*) diagnostics);
				_tmp46_ = _tmp45_;
				_tmp47_ = gee_list_get (diagnostics, _tmp46_ - 1);
				_tmp48_ = (gchar*) _tmp47_;
				_tmp49_ = proton_plus_services_steam_session_blocker_evidence_new (PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_UNKNOWN_PROCESS_STATE, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_CONFIRMED, _tmp48_);
				_tmp50_ = _tmp49_;
				gee_collection_add ((GeeCollection*) blockers, _tmp50_);
				_g_object_unref0 (_tmp50_);
				_g_free0 (_tmp48_);
				_tmp51_ = proton_plus_services_steam_session_service_snapshot (self, target, PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_UNKNOWN, TRUE, 0, NULL, NULL, NULL, relaunch, blockers, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_NONE, session_mode, diagnostics);
				result = _tmp51_;
				_g_object_unref0 (anchor);
				_g_object_unref0 (anchors);
				_g_object_unref0 (query);
				return result;
			}
			if (runtime_update_transition) {
				_tmp52_ = "Native Steam Runtime client and update UI anchors were identified duri" \
"ng an update handoff.";
			} else {
				_tmp52_ = "Multiple native Steam Runtime anchors shared the same executable and c" \
"ommand line; selected the earliest process generation.";
			}
			gee_collection_add ((GeeCollection*) diagnostics, _tmp52_);
		}
	}
	_tmp53_ = anchor;
	if (_tmp53_ == NULL) {
		ProtonPlusServicesSteamSessionSnapshot* _tmp54_;
		gee_collection_add ((GeeCollection*) diagnostics, "No native Steam anchor matched the target root.");
		_tmp54_ = proton_plus_services_steam_session_service_snapshot (self, target, PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_STOPPED, FALSE, 0, NULL, NULL, NULL, relaunch, blockers, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_CONFIRMED, session_mode, diagnostics);
		result = _tmp54_;
		_g_object_unref0 (anchor);
		_g_object_unref0 (anchors);
		_g_object_unref0 (query);
		return result;
	}
	_tmp56_ = anchor;
	_tmp57_ = proton_plus_services_steam_process_record_get_start_time_ticks (_tmp56_);
	_tmp58_ = _tmp57_;
	if (_tmp58_ <= ((gint64) 0)) {
		_tmp55_ = TRUE;
	} else {
		ProtonPlusServicesSteamSessionBackend* _tmp59_;
		gchar* _tmp60_;
		gchar* _tmp61_;
		_tmp59_ = self->priv->backend;
		_tmp60_ = proton_plus_services_steam_session_backend_get_boot_id (_tmp59_);
		_tmp61_ = _tmp60_;
		_tmp55_ = _tmp61_ == NULL;
		_g_free0 (_tmp61_);
	}
	if (_tmp55_) {
		gint _tmp62_;
		gint _tmp63_;
		gpointer _tmp64_;
		gchar* _tmp65_;
		ProtonPlusServicesSteamSessionBlockerEvidence* _tmp66_;
		ProtonPlusServicesSteamSessionBlockerEvidence* _tmp67_;
		ProtonPlusServicesSteamProcessRecord* _tmp68_;
		gint _tmp69_;
		gint _tmp70_;
		ProtonPlusServicesSteamProcessRecord* _tmp71_;
		const gchar* _tmp72_;
		const gchar* _tmp73_;
		ProtonPlusServicesSteamSessionSnapshot* _tmp74_;
		gee_collection_add ((GeeCollection*) diagnostics, "Steam anchor was found, but generation metadata is incomplete.");
		_tmp62_ = gee_collection_get_size ((GeeCollection*) diagnostics);
		_tmp63_ = _tmp62_;
		_tmp64_ = gee_list_get (diagnostics, _tmp63_ - 1);
		_tmp65_ = (gchar*) _tmp64_;
		_tmp66_ = proton_plus_services_steam_session_blocker_evidence_new (PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_UNKNOWN_PROCESS_STATE, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_CONFIRMED, _tmp65_);
		_tmp67_ = _tmp66_;
		gee_collection_add ((GeeCollection*) blockers, _tmp67_);
		_g_object_unref0 (_tmp67_);
		_g_free0 (_tmp65_);
		_tmp68_ = anchor;
		_tmp69_ = proton_plus_services_steam_process_record_get_pid (_tmp68_);
		_tmp70_ = _tmp69_;
		_tmp71_ = anchor;
		_tmp72_ = proton_plus_services_steam_process_record_get_executable_path (_tmp71_);
		_tmp73_ = _tmp72_;
		_tmp74_ = proton_plus_services_steam_session_service_snapshot (self, target, PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_UNKNOWN, TRUE, _tmp70_, NULL, NULL, _tmp73_, relaunch, blockers, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_HEURISTIC, session_mode, diagnostics);
		result = _tmp74_;
		_g_object_unref0 (anchor);
		_g_object_unref0 (anchors);
		_g_object_unref0 (query);
		return result;
	}
	_tmp75_ = anchor;
	_tmp76_ = proton_plus_services_steam_process_record_get_pid (_tmp75_);
	_tmp77_ = _tmp76_;
	_tmp78_ = anchor;
	_tmp79_ = proton_plus_services_steam_process_record_get_start_time_ticks (_tmp78_);
	_tmp80_ = _tmp79_;
	_tmp81_ = self->priv->backend;
	_tmp82_ = proton_plus_services_steam_session_backend_get_boot_id (_tmp81_);
	_tmp83_ = _tmp82_;
	_tmp84_ = proton_plus_services_steam_process_generation_new (_tmp77_, _tmp80_, _tmp83_);
	_tmp85_ = _tmp84_;
	_g_free0 (_tmp83_);
	generation = _tmp85_;
	state = PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_RUNNING;
	if (runtime_update_transition) {
		_tmp86_ = TRUE;
	} else {
		ProtonPlusServicesSteamProcessRecord* _tmp87_;
		_tmp87_ = anchor;
		_tmp86_ = proton_plus_services_steam_session_service_is_explicit_updater (self, _tmp87_);
	}
	if (_tmp86_) {
		ProtonPlusServicesSteamSessionBlockerEvidence* _tmp88_;
		ProtonPlusServicesSteamSessionBlockerEvidence* _tmp89_;
		state = PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_UPDATING;
		_tmp88_ = proton_plus_services_steam_session_blocker_evidence_new (PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_STEAM_UPDATE_PROCESS, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_HEURISTIC, "Steam anchor command identifies update/bootstrap activity.");
		_tmp89_ = _tmp88_;
		gee_collection_add ((GeeCollection*) blockers, _tmp89_);
		_g_object_unref0 (_tmp89_);
	} else {
		ProtonPlusServicesSteamProcessRecord* _tmp90_;
		_tmp90_ = anchor;
		if (proton_plus_services_steam_session_service_is_recent (self, _tmp90_)) {
			ProtonPlusServicesSteamSessionBlockerEvidence* _tmp91_;
			ProtonPlusServicesSteamSessionBlockerEvidence* _tmp92_;
			state = PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_STARTING;
			_tmp91_ = proton_plus_services_steam_session_blocker_evidence_new (PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_STARTUP_IN_PROGRESS, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_HEURISTIC, "Steam anchor has not passed the configured stabilization window.");
			_tmp92_ = _tmp91_;
			gee_collection_add ((GeeCollection*) blockers, _tmp92_);
			_g_object_unref0 (_tmp92_);
		}
	}
	gee_collection_add ((GeeCollection*) diagnostics, "Native Steam anchor identified from executable and target-root evidenc" \
"e.");
	_tmp93_ = anchor;
	_tmp94_ = proton_plus_services_steam_process_record_get_pid (_tmp93_);
	_tmp95_ = _tmp94_;
	_tmp96_ = generation;
	_tmp97_ = anchor;
	_tmp98_ = proton_plus_services_steam_process_record_get_executable_path (_tmp97_);
	_tmp99_ = _tmp98_;
	_tmp100_ = proton_plus_services_steam_session_service_snapshot (self, target, state, TRUE, _tmp95_, _tmp96_, NULL, _tmp99_, relaunch, blockers, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_CONFIRMED, session_mode, diagnostics);
	result = _tmp100_;
	_g_object_unref0 (generation);
	_g_object_unref0 (anchor);
	_g_object_unref0 (anchors);
	_g_object_unref0 (query);
	return result;
}

static ProtonPlusServicesSteamSessionSnapshot*
proton_plus_services_steam_session_service_inspect_flatpak (ProtonPlusServicesSteamSessionService* self,
                                                            ProtonPlusModelsSteamRestartTarget* target,
                                                            ProtonPlusServicesSteamRelaunchMetadata* relaunch,
                                                            GeeList* blockers,
                                                            GeeList* diagnostics,
                                                            ProtonPlusServicesSteamSessionMode session_mode)
{
	ProtonPlusServicesFlatpakProcessQuery* query = NULL;
	ProtonPlusServicesSteamSessionBackend* _tmp0_;
	ProtonPlusServicesFlatpakProcessQuery* _tmp1_;
	ProtonPlusServicesFlatpakProcessQuery* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	ProtonPlusServicesFlatpakProcessRecord* match = NULL;
	ProtonPlusServicesFlatpakProcessRecord* _tmp33_;
	gint _tmp35_ = 0;
	ProtonPlusServicesFlatpakProcessRecord* _tmp36_;
	gint _tmp37_;
	gint _tmp38_;
	gint pid = 0;
	ProtonPlusServicesSteamProcessGeneration* generation = NULL;
	ProtonPlusServicesSteamSessionBackend* _tmp45_;
	gchar* _tmp46_;
	gchar* _tmp47_;
	ProtonPlusServicesSteamProcessGeneration* _tmp48_;
	ProtonPlusServicesSteamProcessGeneration* _tmp49_;
	ProtonPlusServicesSteamProcessGeneration* _tmp50_;
	ProtonPlusServicesFlatpakProcessRecord* _tmp51_;
	const gchar* _tmp52_;
	const gchar* _tmp53_;
	ProtonPlusServicesSteamSessionSnapshot* _tmp54_;
	ProtonPlusServicesSteamSessionSnapshot* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (target != NULL, NULL);
	g_return_val_if_fail (relaunch != NULL, NULL);
	g_return_val_if_fail (blockers != NULL, NULL);
	g_return_val_if_fail (diagnostics != NULL, NULL);
	_tmp0_ = self->priv->backend;
	_tmp1_ = proton_plus_services_steam_session_backend_query_flatpak_processes (_tmp0_);
	query = _tmp1_;
	_tmp2_ = query;
	_tmp3_ = proton_plus_services_flatpak_process_query_get_available (_tmp2_);
	_tmp4_ = _tmp3_;
	if (!_tmp4_) {
		ProtonPlusServicesFlatpakProcessQuery* _tmp5_;
		const gchar* _tmp6_;
		const gchar* _tmp7_;
		ProtonPlusServicesFlatpakProcessQuery* _tmp8_;
		const gchar* _tmp9_;
		const gchar* _tmp10_;
		ProtonPlusServicesSteamSessionBlockerEvidence* _tmp11_;
		ProtonPlusServicesSteamSessionBlockerEvidence* _tmp12_;
		ProtonPlusServicesSteamSessionSnapshot* _tmp13_;
		_tmp5_ = query;
		_tmp6_ = proton_plus_services_flatpak_process_query_get_diagnostic (_tmp5_);
		_tmp7_ = _tmp6_;
		gee_collection_add ((GeeCollection*) diagnostics, _tmp7_);
		_tmp8_ = query;
		_tmp9_ = proton_plus_services_flatpak_process_query_get_diagnostic (_tmp8_);
		_tmp10_ = _tmp9_;
		_tmp11_ = proton_plus_services_steam_session_blocker_evidence_new (PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_UNKNOWN_PROCESS_STATE, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_CONFIRMED, _tmp10_);
		_tmp12_ = _tmp11_;
		gee_collection_add ((GeeCollection*) blockers, _tmp12_);
		_g_object_unref0 (_tmp12_);
		_tmp13_ = proton_plus_services_steam_session_service_snapshot (self, target, PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_UNKNOWN, FALSE, 0, NULL, NULL, NULL, relaunch, blockers, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_NONE, session_mode, diagnostics);
		result = _tmp13_;
		_g_object_unref0 (query);
		return result;
	}
	match = NULL;
	{
		GeeList* _process_list = NULL;
		ProtonPlusServicesFlatpakProcessQuery* _tmp14_;
		GeeList* _tmp15_;
		GeeList* _tmp16_;
		gint _process_size = 0;
		GeeList* _tmp17_;
		gint _tmp18_;
		gint _tmp19_;
		gint _process_index = 0;
		_tmp14_ = query;
		_tmp15_ = proton_plus_services_flatpak_process_query_get_processes (_tmp14_);
		_tmp16_ = _tmp15_;
		_process_list = _tmp16_;
		_tmp17_ = _process_list;
		_tmp18_ = gee_collection_get_size ((GeeCollection*) _tmp17_);
		_tmp19_ = _tmp18_;
		_process_size = _tmp19_;
		_process_index = -1;
		while (TRUE) {
			gint _tmp20_;
			gint _tmp21_;
			ProtonPlusServicesFlatpakProcessRecord* process = NULL;
			GeeList* _tmp22_;
			gpointer _tmp23_;
			ProtonPlusServicesFlatpakProcessRecord* _tmp24_;
			const gchar* _tmp25_;
			const gchar* _tmp26_;
			const gchar* _tmp27_;
			const gchar* _tmp28_;
			ProtonPlusServicesFlatpakProcessRecord* _tmp29_;
			ProtonPlusServicesFlatpakProcessRecord* _tmp31_;
			ProtonPlusServicesFlatpakProcessRecord* _tmp32_;
			_process_index = _process_index + 1;
			_tmp20_ = _process_index;
			_tmp21_ = _process_size;
			if (!(_tmp20_ < _tmp21_)) {
				break;
			}
			_tmp22_ = _process_list;
			_tmp23_ = gee_list_get (_tmp22_, _process_index);
			process = (ProtonPlusServicesFlatpakProcessRecord*) _tmp23_;
			_tmp24_ = process;
			_tmp25_ = proton_plus_services_flatpak_process_record_get_application_id (_tmp24_);
			_tmp26_ = _tmp25_;
			_tmp27_ = proton_plus_models_steam_restart_target_get_flatpak_application_id (target);
			_tmp28_ = _tmp27_;
			if (g_strcmp0 (_tmp26_, _tmp28_) != 0) {
				_g_object_unref0 (process);
				continue;
			}
			_tmp29_ = match;
			if (_tmp29_ != NULL) {
				ProtonPlusServicesSteamSessionSnapshot* _tmp30_;
				gee_collection_add ((GeeCollection*) diagnostics, "More than one Flatpak Steam instance matched the exact application ID.");
				_tmp30_ = proton_plus_services_steam_session_service_snapshot (self, target, PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_UNKNOWN, TRUE, 0, NULL, NULL, NULL, relaunch, blockers, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_NONE, session_mode, diagnostics);
				result = _tmp30_;
				_g_object_unref0 (process);
				_g_object_unref0 (match);
				_g_object_unref0 (query);
				return result;
			}
			_tmp31_ = process;
			_tmp32_ = _g_object_ref0 (_tmp31_);
			_g_object_unref0 (match);
			match = _tmp32_;
			_g_object_unref0 (process);
		}
	}
	_tmp33_ = match;
	if (_tmp33_ == NULL) {
		ProtonPlusServicesSteamSessionSnapshot* _tmp34_;
		gee_collection_add ((GeeCollection*) diagnostics, "No Flatpak Steam process matched the exact application ID.");
		_tmp34_ = proton_plus_services_steam_session_service_snapshot (self, target, PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_STOPPED, FALSE, 0, NULL, NULL, NULL, relaunch, blockers, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_CONFIRMED, session_mode, diagnostics);
		result = _tmp34_;
		_g_object_unref0 (match);
		_g_object_unref0 (query);
		return result;
	}
	_tmp36_ = match;
	_tmp37_ = proton_plus_services_flatpak_process_record_get_child_pid (_tmp36_);
	_tmp38_ = _tmp37_;
	if (_tmp38_ > 0) {
		ProtonPlusServicesFlatpakProcessRecord* _tmp39_;
		gint _tmp40_;
		gint _tmp41_;
		_tmp39_ = match;
		_tmp40_ = proton_plus_services_flatpak_process_record_get_child_pid (_tmp39_);
		_tmp41_ = _tmp40_;
		_tmp35_ = _tmp41_;
	} else {
		ProtonPlusServicesFlatpakProcessRecord* _tmp42_;
		gint _tmp43_;
		gint _tmp44_;
		_tmp42_ = match;
		_tmp43_ = proton_plus_services_flatpak_process_record_get_wrapper_pid (_tmp42_);
		_tmp44_ = _tmp43_;
		_tmp35_ = _tmp44_;
	}
	pid = _tmp35_;
	_tmp45_ = self->priv->backend;
	_tmp46_ = proton_plus_services_steam_session_backend_get_boot_id (_tmp45_);
	_tmp47_ = _tmp46_;
	_tmp48_ = proton_plus_services_steam_process_generation_new (pid, (gint64) 0, _tmp47_);
	_tmp49_ = _tmp48_;
	_g_free0 (_tmp47_);
	generation = _tmp49_;
	gee_collection_add ((GeeCollection*) diagnostics, "Flatpak Steam process matched the exact application ID; UI readiness i" \
"s not inferred.");
	_tmp50_ = generation;
	_tmp51_ = match;
	_tmp52_ = proton_plus_services_flatpak_process_record_get_instance_id (_tmp51_);
	_tmp53_ = _tmp52_;
	_tmp54_ = proton_plus_services_steam_session_service_snapshot (self, target, PROTON_PLUS_SERVICES_STEAM_SESSION_STATE_RUNNING, TRUE, pid, _tmp50_, _tmp53_, NULL, relaunch, blockers, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_CONFIRMED, session_mode, diagnostics);
	result = _tmp54_;
	_g_object_unref0 (generation);
	_g_object_unref0 (match);
	_g_object_unref0 (query);
	return result;
}

static ProtonPlusServicesSteamSessionSnapshot*
proton_plus_services_steam_session_service_snapshot (ProtonPlusServicesSteamSessionService* self,
                                                     ProtonPlusModelsSteamRestartTarget* target,
                                                     ProtonPlusServicesSteamSessionState state,
                                                     gboolean found,
                                                     gint pid,
                                                     ProtonPlusServicesSteamProcessGeneration* generation,
                                                     const gchar* instance,
                                                     const gchar* executable,
                                                     ProtonPlusServicesSteamRelaunchMetadata* relaunch,
                                                     GeeList* blockers,
                                                     ProtonPlusServicesSteamEvidenceLevel confidence,
                                                     ProtonPlusServicesSteamSessionMode session_mode,
                                                     GeeList* diagnostics)
{
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	ProtonPlusServicesSteamSessionSnapshot* _tmp2_;
	ProtonPlusServicesSteamSessionSnapshot* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (target != NULL, NULL);
	g_return_val_if_fail (relaunch != NULL, NULL);
	g_return_val_if_fail (blockers != NULL, NULL);
	g_return_val_if_fail (diagnostics != NULL, NULL);
	_tmp0_ = proton_plus_models_steam_restart_target_get_id (target);
	_tmp1_ = _tmp0_;
	_tmp2_ = proton_plus_services_steam_session_snapshot_new (_tmp1_, state, found, pid, generation, instance, executable, relaunch, blockers, confidence, session_mode, diagnostics);
	result = _tmp2_;
	return result;
}

static ProtonPlusServicesSteamRelaunchMetadata*
proton_plus_services_steam_session_service_get_relaunch_metadata (ProtonPlusServicesSteamSessionService* self,
                                                                  ProtonPlusModelsSteamRestartTarget* target)
{
	ProtonPlusServicesSteamDesktopEntry* entry = NULL;
	ProtonPlusServicesSteamSessionBackend* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	ProtonPlusServicesSteamDesktopEntry* _tmp3_;
	gchar* limitation = NULL;
	gchar* _tmp4_;
	gboolean _tmp5_ = FALSE;
	ProtonPlusModelsSteamInstallationKind _tmp6_;
	ProtonPlusModelsSteamInstallationKind _tmp7_;
	const gchar* _tmp11_ = NULL;
	ProtonPlusServicesSteamDesktopEntry* _tmp12_;
	const gchar* _tmp18_ = NULL;
	ProtonPlusServicesSteamDesktopEntry* _tmp19_;
	gboolean _tmp23_ = FALSE;
	ProtonPlusServicesSteamDesktopEntry* _tmp24_;
	const gchar* _tmp28_;
	const gchar* _tmp29_;
	const gchar* _tmp30_;
	ProtonPlusServicesSteamRelaunchMetadata* _tmp31_;
	ProtonPlusServicesSteamRelaunchMetadata* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (target != NULL, NULL);
	_tmp0_ = self->priv->backend;
	_tmp1_ = proton_plus_models_steam_restart_target_get_desktop_entry_id (target);
	_tmp2_ = _tmp1_;
	_tmp3_ = proton_plus_services_steam_session_backend_find_desktop_entry (_tmp0_, _tmp2_);
	entry = _tmp3_;
	_tmp4_ = g_strdup ("Candidate metadata only; this phase does not execute a relaunch strate" \
"gy.");
	limitation = _tmp4_;
	_tmp6_ = proton_plus_models_steam_restart_target_get_installation_kind (target);
	_tmp7_ = _tmp6_;
	if (_tmp7_ == PROTON_PLUS_MODELS_STEAM_INSTALLATION_KIND_CUSTOM) {
		_tmp5_ = TRUE;
	} else {
		ProtonPlusModelsSteamInstallationKind _tmp8_;
		ProtonPlusModelsSteamInstallationKind _tmp9_;
		_tmp8_ = proton_plus_models_steam_restart_target_get_installation_kind (target);
		_tmp9_ = _tmp8_;
		_tmp5_ = _tmp9_ == PROTON_PLUS_MODELS_STEAM_INSTALLATION_KIND_UNKNOWN;
	}
	if (_tmp5_) {
		gchar* _tmp10_;
		_tmp10_ = g_strdup ("Custom or unknown Steam environments have no supported relaunch infere" \
"nce.");
		_g_free0 (limitation);
		limitation = _tmp10_;
	}
	_tmp12_ = entry;
	if (_tmp12_ != NULL) {
		ProtonPlusServicesSteamDesktopEntry* _tmp13_;
		const gchar* _tmp14_;
		const gchar* _tmp15_;
		_tmp13_ = entry;
		_tmp14_ = proton_plus_services_steam_desktop_entry_get_id (_tmp13_);
		_tmp15_ = _tmp14_;
		_tmp11_ = _tmp15_;
	} else {
		const gchar* _tmp16_;
		const gchar* _tmp17_;
		_tmp16_ = proton_plus_models_steam_restart_target_get_desktop_entry_id (target);
		_tmp17_ = _tmp16_;
		_tmp11_ = _tmp17_;
	}
	_tmp19_ = entry;
	if (_tmp19_ != NULL) {
		ProtonPlusServicesSteamDesktopEntry* _tmp20_;
		const gchar* _tmp21_;
		const gchar* _tmp22_;
		_tmp20_ = entry;
		_tmp21_ = proton_plus_services_steam_desktop_entry_get_path (_tmp20_);
		_tmp22_ = _tmp21_;
		_tmp18_ = _tmp22_;
	} else {
		_tmp18_ = NULL;
	}
	_tmp24_ = entry;
	if (_tmp24_ != NULL) {
		ProtonPlusServicesSteamDesktopEntry* _tmp25_;
		gboolean _tmp26_;
		gboolean _tmp27_;
		_tmp25_ = entry;
		_tmp26_ = proton_plus_services_steam_desktop_entry_get_supports_steam_uri (_tmp25_);
		_tmp27_ = _tmp26_;
		_tmp23_ = _tmp27_;
	} else {
		_tmp23_ = FALSE;
	}
	_tmp28_ = proton_plus_models_steam_restart_target_get_flatpak_application_id (target);
	_tmp29_ = _tmp28_;
	_tmp30_ = limitation;
	_tmp31_ = proton_plus_services_steam_relaunch_metadata_new (_tmp11_, _tmp18_, _tmp29_, _tmp23_, _tmp30_);
	result = _tmp31_;
	_g_free0 (limitation);
	_g_object_unref0 (entry);
	return result;
}

static gboolean
proton_plus_services_steam_session_service_is_anchor (ProtonPlusServicesSteamSessionService* self,
                                                      ProtonPlusModelsSteamRestartTarget* target,
                                                      ProtonPlusServicesSteamProcessRecord* process)
{
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gboolean _tmp6_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (target != NULL, FALSE);
	g_return_val_if_fail (process != NULL, FALSE);
	if (!proton_plus_services_steam_session_service_is_associated (self, target, process)) {
		result = FALSE;
		return result;
	}
	_tmp0_ = proton_plus_services_steam_process_record_get_executable_path (process);
	_tmp1_ = _tmp0_;
	_tmp2_ = g_path_get_basename (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = g_utf8_strdown (_tmp3_, (gssize) -1);
	_tmp5_ = _tmp4_;
	_tmp6_ = g_strcmp0 (_tmp5_, "steam") == 0;
	_g_free0 (_tmp5_);
	_g_free0 (_tmp3_);
	result = _tmp6_;
	return result;
}

static ProtonPlusServicesSteamProcessRecord*
proton_plus_services_steam_session_service_select_runtime_duplicate_anchor (ProtonPlusServicesSteamSessionService* self,
                                                                            GeeList* candidates)
{
	ProtonPlusServicesSteamProcessRecord* selected = NULL;
	ProtonPlusServicesSteamProcessRecord* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (candidates != NULL, NULL);
	selected = NULL;
	{
		GeeList* _candidate_list = NULL;
		gint _candidate_size = 0;
		GeeList* _tmp0_;
		gint _tmp1_;
		gint _tmp2_;
		gint _candidate_index = 0;
		_candidate_list = candidates;
		_tmp0_ = _candidate_list;
		_tmp1_ = gee_collection_get_size ((GeeCollection*) _tmp0_);
		_tmp2_ = _tmp1_;
		_candidate_size = _tmp2_;
		_candidate_index = -1;
		while (TRUE) {
			gint _tmp3_;
			gint _tmp4_;
			ProtonPlusServicesSteamProcessRecord* candidate = NULL;
			GeeList* _tmp5_;
			gpointer _tmp6_;
			ProtonPlusServicesSteamProcessRecord* _tmp7_;
			const gchar* _tmp8_;
			const gchar* _tmp9_;
			ProtonPlusServicesSteamProcessRecord* _tmp10_;
			ProtonPlusServicesSteamProcessRecord* _tmp46_;
			ProtonPlusServicesSteamProcessRecord* _tmp47_;
			_candidate_index = _candidate_index + 1;
			_tmp3_ = _candidate_index;
			_tmp4_ = _candidate_size;
			if (!(_tmp3_ < _tmp4_)) {
				break;
			}
			_tmp5_ = _candidate_list;
			_tmp6_ = gee_list_get (_tmp5_, _candidate_index);
			candidate = (ProtonPlusServicesSteamProcessRecord*) _tmp6_;
			_tmp7_ = candidate;
			_tmp8_ = proton_plus_services_steam_process_record_get_command_line (_tmp7_);
			_tmp9_ = _tmp8_;
			if (!string_contains (_tmp9_, "-srt-logger-opened")) {
				result = NULL;
				_g_object_unref0 (candidate);
				_g_object_unref0 (selected);
				return result;
			}
			_tmp10_ = selected;
			if (_tmp10_ != NULL) {
				ProtonPlusServicesSteamProcessRecord* current = NULL;
				ProtonPlusServicesSteamProcessRecord* _tmp11_;
				ProtonPlusServicesSteamProcessRecord* _tmp12_;
				gboolean _tmp13_ = FALSE;
				ProtonPlusServicesSteamProcessRecord* _tmp14_;
				const gchar* _tmp15_;
				const gchar* _tmp16_;
				ProtonPlusServicesSteamProcessRecord* _tmp17_;
				const gchar* _tmp18_;
				const gchar* _tmp19_;
				gboolean _tmp26_ = FALSE;
				ProtonPlusServicesSteamProcessRecord* _tmp27_;
				gint64 _tmp28_;
				gint64 _tmp29_;
				ProtonPlusServicesSteamProcessRecord* _tmp30_;
				gint64 _tmp31_;
				gint64 _tmp32_;
				_tmp11_ = selected;
				_tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, ProtonPlusServicesSteamProcessRecord));
				current = _tmp12_;
				_tmp14_ = candidate;
				_tmp15_ = proton_plus_services_steam_process_record_get_executable_path (_tmp14_);
				_tmp16_ = _tmp15_;
				_tmp17_ = current;
				_tmp18_ = proton_plus_services_steam_process_record_get_executable_path (_tmp17_);
				_tmp19_ = _tmp18_;
				if (g_strcmp0 (_tmp16_, _tmp19_) != 0) {
					_tmp13_ = TRUE;
				} else {
					ProtonPlusServicesSteamProcessRecord* _tmp20_;
					const gchar* _tmp21_;
					const gchar* _tmp22_;
					ProtonPlusServicesSteamProcessRecord* _tmp23_;
					const gchar* _tmp24_;
					const gchar* _tmp25_;
					_tmp20_ = candidate;
					_tmp21_ = proton_plus_services_steam_process_record_get_command_line (_tmp20_);
					_tmp22_ = _tmp21_;
					_tmp23_ = current;
					_tmp24_ = proton_plus_services_steam_process_record_get_command_line (_tmp23_);
					_tmp25_ = _tmp24_;
					_tmp13_ = g_strcmp0 (_tmp22_, _tmp25_) != 0;
				}
				if (_tmp13_) {
					result = NULL;
					_g_object_unref0 (current);
					_g_object_unref0 (candidate);
					_g_object_unref0 (selected);
					return result;
				}
				_tmp27_ = candidate;
				_tmp28_ = proton_plus_services_steam_process_record_get_start_time_ticks (_tmp27_);
				_tmp29_ = _tmp28_;
				_tmp30_ = current;
				_tmp31_ = proton_plus_services_steam_process_record_get_start_time_ticks (_tmp30_);
				_tmp32_ = _tmp31_;
				if (_tmp29_ > _tmp32_) {
					_tmp26_ = TRUE;
				} else {
					gboolean _tmp33_ = FALSE;
					ProtonPlusServicesSteamProcessRecord* _tmp34_;
					gint64 _tmp35_;
					gint64 _tmp36_;
					ProtonPlusServicesSteamProcessRecord* _tmp37_;
					gint64 _tmp38_;
					gint64 _tmp39_;
					_tmp34_ = candidate;
					_tmp35_ = proton_plus_services_steam_process_record_get_start_time_ticks (_tmp34_);
					_tmp36_ = _tmp35_;
					_tmp37_ = current;
					_tmp38_ = proton_plus_services_steam_process_record_get_start_time_ticks (_tmp37_);
					_tmp39_ = _tmp38_;
					if (_tmp36_ == _tmp39_) {
						ProtonPlusServicesSteamProcessRecord* _tmp40_;
						gint _tmp41_;
						gint _tmp42_;
						ProtonPlusServicesSteamProcessRecord* _tmp43_;
						gint _tmp44_;
						gint _tmp45_;
						_tmp40_ = candidate;
						_tmp41_ = proton_plus_services_steam_process_record_get_pid (_tmp40_);
						_tmp42_ = _tmp41_;
						_tmp43_ = current;
						_tmp44_ = proton_plus_services_steam_process_record_get_pid (_tmp43_);
						_tmp45_ = _tmp44_;
						_tmp33_ = _tmp42_ > _tmp45_;
					} else {
						_tmp33_ = FALSE;
					}
					_tmp26_ = _tmp33_;
				}
				if (_tmp26_) {
					_g_object_unref0 (current);
					_g_object_unref0 (candidate);
					continue;
				}
				_g_object_unref0 (current);
			}
			_tmp46_ = candidate;
			_tmp47_ = _g_object_ref0 (_tmp46_);
			_g_object_unref0 (selected);
			selected = _tmp47_;
			_g_object_unref0 (candidate);
		}
	}
	result = selected;
	return result;
}

static ProtonPlusServicesSteamProcessRecord*
proton_plus_services_steam_session_service_select_runtime_update_anchor (ProtonPlusServicesSteamSessionService* self,
                                                                         GeeList* candidates)
{
	GeeArrayList* regular = NULL;
	GeeArrayList* _tmp0_;
	gchar* executable = NULL;
	gboolean updater_found = FALSE;
	GeeArrayList* _tmp24_;
	gint _tmp25_;
	gint _tmp26_;
	GeeArrayList* _tmp29_;
	gint _tmp30_;
	gint _tmp31_;
	ProtonPlusServicesSteamProcessRecord* selected = NULL;
	ProtonPlusServicesSteamProcessRecord* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (candidates != NULL, NULL);
	_tmp0_ = gee_array_list_new (PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
	regular = _tmp0_;
	executable = NULL;
	updater_found = FALSE;
	{
		GeeList* _candidate_list = NULL;
		gint _candidate_size = 0;
		GeeList* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		gint _candidate_index = 0;
		_candidate_list = candidates;
		_tmp1_ = _candidate_list;
		_tmp2_ = gee_collection_get_size ((GeeCollection*) _tmp1_);
		_tmp3_ = _tmp2_;
		_candidate_size = _tmp3_;
		_candidate_index = -1;
		while (TRUE) {
			gint _tmp4_;
			gint _tmp5_;
			ProtonPlusServicesSteamProcessRecord* candidate = NULL;
			GeeList* _tmp6_;
			gpointer _tmp7_;
			ProtonPlusServicesSteamProcessRecord* _tmp8_;
			const gchar* _tmp9_;
			const gchar* _tmp10_;
			gboolean _tmp11_ = FALSE;
			const gchar* _tmp12_;
			ProtonPlusServicesSteamProcessRecord* _tmp17_;
			const gchar* _tmp18_;
			const gchar* _tmp19_;
			gchar* _tmp20_;
			ProtonPlusServicesSteamProcessRecord* _tmp21_;
			_candidate_index = _candidate_index + 1;
			_tmp4_ = _candidate_index;
			_tmp5_ = _candidate_size;
			if (!(_tmp4_ < _tmp5_)) {
				break;
			}
			_tmp6_ = _candidate_list;
			_tmp7_ = gee_list_get (_tmp6_, _candidate_index);
			candidate = (ProtonPlusServicesSteamProcessRecord*) _tmp7_;
			_tmp8_ = candidate;
			_tmp9_ = proton_plus_services_steam_process_record_get_command_line (_tmp8_);
			_tmp10_ = _tmp9_;
			if (!string_contains (_tmp10_, "-srt-logger-opened")) {
				result = NULL;
				_g_object_unref0 (candidate);
				_g_free0 (executable);
				_g_object_unref0 (regular);
				return result;
			}
			_tmp12_ = executable;
			if (_tmp12_ != NULL) {
				ProtonPlusServicesSteamProcessRecord* _tmp13_;
				const gchar* _tmp14_;
				const gchar* _tmp15_;
				const gchar* _tmp16_;
				_tmp13_ = candidate;
				_tmp14_ = proton_plus_services_steam_process_record_get_executable_path (_tmp13_);
				_tmp15_ = _tmp14_;
				_tmp16_ = executable;
				_tmp11_ = g_strcmp0 (_tmp15_, (const gchar*) _tmp16_) != 0;
			} else {
				_tmp11_ = FALSE;
			}
			if (_tmp11_) {
				result = NULL;
				_g_object_unref0 (candidate);
				_g_free0 (executable);
				_g_object_unref0 (regular);
				return result;
			}
			_tmp17_ = candidate;
			_tmp18_ = proton_plus_services_steam_process_record_get_executable_path (_tmp17_);
			_tmp19_ = _tmp18_;
			_tmp20_ = g_strdup (_tmp19_);
			_g_free0 (executable);
			executable = _tmp20_;
			_tmp21_ = candidate;
			if (proton_plus_services_steam_session_service_is_explicit_updater (self, _tmp21_)) {
				updater_found = TRUE;
			} else {
				GeeArrayList* _tmp22_;
				ProtonPlusServicesSteamProcessRecord* _tmp23_;
				_tmp22_ = regular;
				_tmp23_ = candidate;
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp22_, _tmp23_);
			}
			_g_object_unref0 (candidate);
		}
	}
	if (!updater_found) {
		result = NULL;
		_g_free0 (executable);
		_g_object_unref0 (regular);
		return result;
	}
	_tmp24_ = regular;
	_tmp25_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp24_);
	_tmp26_ = _tmp25_;
	if (_tmp26_ == 1) {
		GeeArrayList* _tmp27_;
		gpointer _tmp28_;
		_tmp27_ = regular;
		_tmp28_ = gee_abstract_list_get ((GeeAbstractList*) _tmp27_, 0);
		result = (ProtonPlusServicesSteamProcessRecord*) _tmp28_;
		_g_free0 (executable);
		_g_object_unref0 (regular);
		return result;
	}
	_tmp29_ = regular;
	_tmp30_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp29_);
	_tmp31_ = _tmp30_;
	if (_tmp31_ > 1) {
		GeeArrayList* _tmp32_;
		ProtonPlusServicesSteamProcessRecord* _tmp33_;
		_tmp32_ = regular;
		_tmp33_ = proton_plus_services_steam_session_service_select_runtime_duplicate_anchor (self, (GeeList*) _tmp32_);
		result = _tmp33_;
		_g_free0 (executable);
		_g_object_unref0 (regular);
		return result;
	}
	selected = NULL;
	{
		GeeList* _candidate_list = NULL;
		gint _candidate_size = 0;
		GeeList* _tmp34_;
		gint _tmp35_;
		gint _tmp36_;
		gint _candidate_index = 0;
		_candidate_list = candidates;
		_tmp34_ = _candidate_list;
		_tmp35_ = gee_collection_get_size ((GeeCollection*) _tmp34_);
		_tmp36_ = _tmp35_;
		_candidate_size = _tmp36_;
		_candidate_index = -1;
		while (TRUE) {
			gint _tmp37_;
			gint _tmp38_;
			ProtonPlusServicesSteamProcessRecord* candidate = NULL;
			GeeList* _tmp39_;
			gpointer _tmp40_;
			gboolean _tmp41_ = FALSE;
			gboolean _tmp42_ = FALSE;
			ProtonPlusServicesSteamProcessRecord* _tmp43_;
			_candidate_index = _candidate_index + 1;
			_tmp37_ = _candidate_index;
			_tmp38_ = _candidate_size;
			if (!(_tmp37_ < _tmp38_)) {
				break;
			}
			_tmp39_ = _candidate_list;
			_tmp40_ = gee_list_get (_tmp39_, _candidate_index);
			candidate = (ProtonPlusServicesSteamProcessRecord*) _tmp40_;
			_tmp43_ = selected;
			if (_tmp43_ == NULL) {
				_tmp42_ = TRUE;
			} else {
				ProtonPlusServicesSteamProcessRecord* _tmp44_;
				gint64 _tmp45_;
				gint64 _tmp46_;
				ProtonPlusServicesSteamProcessRecord* _tmp47_;
				gint64 _tmp48_;
				gint64 _tmp49_;
				_tmp44_ = candidate;
				_tmp45_ = proton_plus_services_steam_process_record_get_start_time_ticks (_tmp44_);
				_tmp46_ = _tmp45_;
				_tmp47_ = selected;
				_tmp48_ = proton_plus_services_steam_process_record_get_start_time_ticks (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, ProtonPlusServicesSteamProcessRecord));
				_tmp49_ = _tmp48_;
				_tmp42_ = _tmp46_ < _tmp49_;
			}
			if (_tmp42_) {
				_tmp41_ = TRUE;
			} else {
				gboolean _tmp50_ = FALSE;
				ProtonPlusServicesSteamProcessRecord* _tmp51_;
				gint64 _tmp52_;
				gint64 _tmp53_;
				ProtonPlusServicesSteamProcessRecord* _tmp54_;
				gint64 _tmp55_;
				gint64 _tmp56_;
				_tmp51_ = candidate;
				_tmp52_ = proton_plus_services_steam_process_record_get_start_time_ticks (_tmp51_);
				_tmp53_ = _tmp52_;
				_tmp54_ = selected;
				_tmp55_ = proton_plus_services_steam_process_record_get_start_time_ticks (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, ProtonPlusServicesSteamProcessRecord));
				_tmp56_ = _tmp55_;
				if (_tmp53_ == _tmp56_) {
					ProtonPlusServicesSteamProcessRecord* _tmp57_;
					gint _tmp58_;
					gint _tmp59_;
					ProtonPlusServicesSteamProcessRecord* _tmp60_;
					gint _tmp61_;
					gint _tmp62_;
					_tmp57_ = candidate;
					_tmp58_ = proton_plus_services_steam_process_record_get_pid (_tmp57_);
					_tmp59_ = _tmp58_;
					_tmp60_ = selected;
					_tmp61_ = proton_plus_services_steam_process_record_get_pid (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, PROTON_PLUS_SERVICES_TYPE_STEAM_PROCESS_RECORD, ProtonPlusServicesSteamProcessRecord));
					_tmp62_ = _tmp61_;
					_tmp50_ = _tmp59_ < _tmp62_;
				} else {
					_tmp50_ = FALSE;
				}
				_tmp41_ = _tmp50_;
			}
			if (_tmp41_) {
				ProtonPlusServicesSteamProcessRecord* _tmp63_;
				ProtonPlusServicesSteamProcessRecord* _tmp64_;
				_tmp63_ = candidate;
				_tmp64_ = _g_object_ref0 (_tmp63_);
				_g_object_unref0 (selected);
				selected = _tmp64_;
			}
			_g_object_unref0 (candidate);
		}
	}
	result = selected;
	_g_free0 (executable);
	_g_object_unref0 (regular);
	return result;
}

static gboolean
proton_plus_services_steam_session_service_is_associated (ProtonPlusServicesSteamSessionService* self,
                                                          ProtonPlusModelsSteamRestartTarget* target,
                                                          ProtonPlusServicesSteamProcessRecord* process)
{
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	const gchar* _tmp5_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (target != NULL, FALSE);
	g_return_val_if_fail (process != NULL, FALSE);
	_tmp2_ = proton_plus_services_steam_process_record_get_executable_path (process);
	_tmp3_ = _tmp2_;
	_tmp4_ = proton_plus_models_steam_restart_target_get_data_root (target);
	_tmp5_ = _tmp4_;
	if (g_strcmp0 (_tmp3_, _tmp5_) == 0) {
		_tmp1_ = TRUE;
	} else {
		const gchar* _tmp6_;
		const gchar* _tmp7_;
		const gchar* _tmp8_;
		const gchar* _tmp9_;
		gchar* _tmp10_;
		gchar* _tmp11_;
		_tmp6_ = proton_plus_services_steam_process_record_get_executable_path (process);
		_tmp7_ = _tmp6_;
		_tmp8_ = proton_plus_models_steam_restart_target_get_data_root (target);
		_tmp9_ = _tmp8_;
		_tmp10_ = g_strconcat (_tmp9_, "/", NULL);
		_tmp11_ = _tmp10_;
		_tmp1_ = g_str_has_prefix (_tmp7_, _tmp11_);
		_g_free0 (_tmp11_);
	}
	if (_tmp1_) {
		_tmp0_ = TRUE;
	} else {
		const gchar* _tmp12_;
		const gchar* _tmp13_;
		const gchar* _tmp14_;
		const gchar* _tmp15_;
		_tmp12_ = proton_plus_services_steam_process_record_get_command_line (process);
		_tmp13_ = _tmp12_;
		_tmp14_ = proton_plus_models_steam_restart_target_get_data_root (target);
		_tmp15_ = _tmp14_;
		_tmp0_ = string_contains (_tmp13_, _tmp15_);
	}
	result = _tmp0_;
	return result;
}

static void
proton_plus_services_steam_session_service_collect_blocker (ProtonPlusServicesSteamSessionService* self,
                                                            ProtonPlusModelsSteamRestartTarget* target,
                                                            ProtonPlusServicesSteamProcessRecord* process,
                                                            GeeList* blockers)
{
	gchar* executable = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* command = NULL;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	gchar* _tmp8_;
	gboolean _tmp9_ = FALSE;
	gboolean _tmp10_ = FALSE;
	gboolean _tmp11_ = FALSE;
	const gchar* _tmp12_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (target != NULL);
	g_return_if_fail (process != NULL);
	g_return_if_fail (blockers != NULL);
	_tmp0_ = proton_plus_services_steam_process_record_get_executable_path (process);
	_tmp1_ = _tmp0_;
	_tmp2_ = g_path_get_basename (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = g_utf8_strdown (_tmp3_, (gssize) -1);
	_tmp5_ = _tmp4_;
	_g_free0 (_tmp3_);
	executable = _tmp5_;
	_tmp6_ = proton_plus_services_steam_process_record_get_command_line (process);
	_tmp7_ = _tmp6_;
	_tmp8_ = g_utf8_strdown (_tmp7_, (gssize) -1);
	command = _tmp8_;
	_tmp12_ = executable;
	if (g_strcmp0 (_tmp12_, "proton") == 0) {
		_tmp11_ = TRUE;
	} else {
		const gchar* _tmp13_;
		_tmp13_ = executable;
		_tmp11_ = g_strcmp0 (_tmp13_, "umu") == 0;
	}
	if (_tmp11_) {
		_tmp10_ = TRUE;
	} else {
		const gchar* _tmp14_;
		_tmp14_ = executable;
		_tmp10_ = g_strcmp0 (_tmp14_, "wine") == 0;
	}
	if (_tmp10_) {
		_tmp9_ = TRUE;
	} else {
		const gchar* _tmp15_;
		_tmp15_ = executable;
		_tmp9_ = g_strcmp0 (_tmp15_, "wine64") == 0;
	}
	if (_tmp9_) {
		ProtonPlusServicesSteamSessionBlockerEvidence* _tmp16_;
		ProtonPlusServicesSteamSessionBlockerEvidence* _tmp17_;
		_tmp16_ = proton_plus_services_steam_session_blocker_evidence_new (PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_GAME_OR_COMPATIBILITY_PROCESS, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_CONFIRMED, "A compatibility runner is associated with this Steam target.");
		_tmp17_ = _tmp16_;
		gee_collection_add ((GeeCollection*) blockers, _tmp17_);
		_g_object_unref0 (_tmp17_);
	} else {
		const gchar* _tmp18_;
		_tmp18_ = command;
		if (string_contains (_tmp18_, ".exe")) {
			ProtonPlusServicesSteamSessionBlockerEvidence* _tmp19_;
			ProtonPlusServicesSteamSessionBlockerEvidence* _tmp20_;
			_tmp19_ = proton_plus_services_steam_session_blocker_evidence_new (PROTON_PLUS_SERVICES_STEAM_SESSION_BLOCKER_GAME_OR_COMPATIBILITY_PROCESS, PROTON_PLUS_SERVICES_STEAM_EVIDENCE_LEVEL_HEURISTIC, "An associated command includes a Windows executable marker.");
			_tmp20_ = _tmp19_;
			gee_collection_add ((GeeCollection*) blockers, _tmp20_);
			_g_object_unref0 (_tmp20_);
		}
	}
	_g_free0 (command);
	_g_free0 (executable);
}

static gboolean
proton_plus_services_steam_session_service_is_explicit_updater (ProtonPlusServicesSteamSessionService* self,
                                                                ProtonPlusServicesSteamProcessRecord* process)
{
	gchar* command = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gboolean _tmp3_ = FALSE;
	const gchar* _tmp4_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (process != NULL, FALSE);
	_tmp0_ = proton_plus_services_steam_process_record_get_command_line (process);
	_tmp1_ = _tmp0_;
	_tmp2_ = g_utf8_strdown (_tmp1_, (gssize) -1);
	command = _tmp2_;
	_tmp4_ = command;
	if (string_contains (_tmp4_, "-update")) {
		_tmp3_ = TRUE;
	} else {
		const gchar* _tmp5_;
		_tmp5_ = command;
		_tmp3_ = string_contains (_tmp5_, "steambootstrapper");
	}
	result = _tmp3_;
	_g_free0 (command);
	return result;
}

static gboolean
proton_plus_services_steam_session_service_is_recent (ProtonPlusServicesSteamSessionService* self,
                                                      ProtonPlusServicesSteamProcessRecord* process)
{
	gint64 ticks_per_second = 0LL;
	ProtonPlusServicesSteamSessionBackend* _tmp0_;
	gint64 now = 0LL;
	ProtonPlusServicesSteamSessionBackend* _tmp1_;
	gint64 started_usec = 0LL;
	gint64 _tmp2_;
	gint64 _tmp3_;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
	gint64 _tmp6_;
	gint64 _tmp7_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (process != NULL, FALSE);
	_tmp0_ = self->priv->backend;
	ticks_per_second = proton_plus_services_steam_session_backend_get_clock_ticks_per_second (_tmp0_);
	if (ticks_per_second <= ((gint64) 0)) {
		result = FALSE;
		return result;
	}
	_tmp1_ = self->priv->backend;
	now = proton_plus_services_steam_session_backend_get_monotonic_time_usec (_tmp1_);
	_tmp2_ = proton_plus_services_steam_process_record_get_start_time_ticks (process);
	_tmp3_ = _tmp2_;
	started_usec = ((_tmp3_ * 1000) * 1000) / ticks_per_second;
	_tmp6_ = proton_plus_services_steam_process_record_get_start_time_ticks (process);
	_tmp7_ = _tmp6_;
	if (_tmp7_ > ((gint64) 0)) {
		_tmp5_ = now >= started_usec;
	} else {
		_tmp5_ = FALSE;
	}
	if (_tmp5_) {
		_tmp4_ = (now - started_usec) < PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_STARTING_WINDOW_USEC;
	} else {
		_tmp4_ = FALSE;
	}
	result = _tmp4_;
	return result;
}

ProtonPlusServicesSteamSessionService*
proton_plus_services_steam_session_service_get_instance (void)
{
	ProtonPlusServicesSteamSessionService* result;
	ProtonPlusServicesSteamSessionService* _tmp0_;
	ProtonPlusServicesSteamSessionService* _tmp2_;
	_tmp0_ = proton_plus_services_steam_session_service__instance;
	if (_tmp0_ == NULL) {
		ProtonPlusServicesSteamSessionService* _tmp1_;
		_tmp1_ = proton_plus_services_steam_session_service_new (NULL);
		_g_object_unref0 (proton_plus_services_steam_session_service__instance);
		proton_plus_services_steam_session_service__instance = _tmp1_;
	}
	_tmp2_ = proton_plus_services_steam_session_service__instance;
	result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SERVICE, ProtonPlusServicesSteamSessionService);
	return result;
}

gboolean
proton_plus_services_steam_session_service_get_is_monitoring (ProtonPlusServicesSteamSessionService* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->monitoring_source_id != ((guint) 0);
	return result;
}

static void
g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
                                             GValue * return_value,
                                             guint n_param_values,
                                             const GValue * param_values,
                                             gpointer invocation_hint,
                                             gpointer marshal_data)
{
	typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
	register GMarshalFunc_VOID__OBJECT_OBJECT callback;
	register GCClosure * cc;
	register gpointer data1;
	register gpointer data2;
	cc = (GCClosure *) closure;
	g_return_if_fail (n_param_values == 3);
	if (G_CCLOSURE_SWAP_DATA (closure)) {
		data1 = closure->data;
		data2 = param_values->data[0].v_pointer;
	} else {
		data1 = param_values->data[0].v_pointer;
		data2 = closure->data;
	}
	callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
	callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2);
}

static void
proton_plus_services_steam_session_service_class_init (ProtonPlusServicesSteamSessionServiceClass * klass,
                                                       gpointer klass_data)
{
	proton_plus_services_steam_session_service_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusServicesSteamSessionService_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_services_steam_session_service_get_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_services_steam_session_service_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_IS_MONITORING_PROPERTY, proton_plus_services_steam_session_service_properties[PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_IS_MONITORING_PROPERTY] = g_param_spec_boolean ("is-monitoring", "is-monitoring", "is-monitoring", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	proton_plus_services_steam_session_service_signals[PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_STATE_CHANGED_SIGNAL] = g_signal_new ("state-changed", PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SERVICE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, PROTON_PLUS_MODELS_TYPE_STEAM_RESTART_TARGET, PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SNAPSHOT);
}

static void
proton_plus_services_steam_session_service_instance_init (ProtonPlusServicesSteamSessionService * self,
                                                          gpointer klass)
{
	GeeArrayList* _tmp0_;
	GeeHashMap* _tmp1_;
	self->priv = proton_plus_services_steam_session_service_get_instance_private (self);
	_tmp0_ = gee_array_list_new (PROTON_PLUS_MODELS_TYPE_STEAM_RESTART_TARGET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
	self->priv->monitored_targets = _tmp0_;
	_tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SNAPSHOT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
	self->priv->previous_monitored_snapshots = _tmp1_;
	self->priv->monitoring_source_id = (guint) 0;
}

static void
proton_plus_services_steam_session_service_finalize (GObject * obj)
{
	ProtonPlusServicesSteamSessionService * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SERVICE, ProtonPlusServicesSteamSessionService);
	_g_object_unref0 (self->priv->backend);
	_g_object_unref0 (self->priv->monitored_targets);
	_g_object_unref0 (self->priv->previous_monitored_snapshots);
	G_OBJECT_CLASS (proton_plus_services_steam_session_service_parent_class)->finalize (obj);
}

static GType
proton_plus_services_steam_session_service_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusServicesSteamSessionServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_services_steam_session_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusServicesSteamSessionService), 0, (GInstanceInitFunc) proton_plus_services_steam_session_service_instance_init, NULL };
	GType proton_plus_services_steam_session_service_type_id;
	proton_plus_services_steam_session_service_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusServicesSteamSessionService", &g_define_type_info, 0);
	ProtonPlusServicesSteamSessionService_private_offset = g_type_add_instance_private (proton_plus_services_steam_session_service_type_id, sizeof (ProtonPlusServicesSteamSessionServicePrivate));
	return proton_plus_services_steam_session_service_type_id;
}

GType
proton_plus_services_steam_session_service_get_type (void)
{
	static volatile gsize proton_plus_services_steam_session_service_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_services_steam_session_service_type_id__once)) {
		GType proton_plus_services_steam_session_service_type_id;
		proton_plus_services_steam_session_service_type_id = proton_plus_services_steam_session_service_get_type_once ();
		g_once_init_leave (&proton_plus_services_steam_session_service_type_id__once, proton_plus_services_steam_session_service_type_id);
	}
	return proton_plus_services_steam_session_service_type_id__once;
}

static void
_vala_proton_plus_services_steam_session_service_get_property (GObject * object,
                                                               guint property_id,
                                                               GValue * value,
                                                               GParamSpec * pspec)
{
	ProtonPlusServicesSteamSessionService * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_SERVICES_TYPE_STEAM_SESSION_SERVICE, ProtonPlusServicesSteamSessionService);
	switch (property_id) {
		case PROTON_PLUS_SERVICES_STEAM_SESSION_SERVICE_IS_MONITORING_PROPERTY:
		g_value_set_boolean (value, proton_plus_services_steam_session_service_get_is_monitoring (self));
		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;
}

static inline gpointer
_vala_memdup2 (gconstpointer mem,
               gsize byte_size)
{
	gpointer new_mem;
	if (mem && byte_size != 0) {
		new_mem = g_malloc (byte_size);
		memcpy (new_mem, mem, byte_size);
	} else {
		new_mem = NULL;
	}
	return new_mem;
}

