/* launch-command-editor-projection.c generated by valac 0.56.19, the Vala compiler
 * generated from launch-command-editor-projection.vala, do not modify */

#include "protonplus_core.h"
#include <gee.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

enum  {
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_PARSED_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_ACTIVE_SELECTIONS_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_UNMANAGED_OPTION_IDS_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_ADAPTER_DIAGNOSTICS_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_COMPOSITION_DIAGNOSTICS_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_MANAGED_CANDIDATE_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_RETAIN_PLACEHOLDER_FOR_ARGUMENTS_ONLY_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_HAS_MANAGED_CANDIDATE_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionPrivate {
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCatalog* catalog;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParser* parser;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandComposer* composer;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* _parsed;
	GeeArrayList* _active_selections;
	GeeArrayList* _unmanaged_option_ids;
	GeeArrayList* _adapter_diagnostics;
	GeeArrayList* _composition_diagnostics;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionState _state;
	gchar* _managed_candidate;
	gboolean _retain_placeholder_for_arguments_only;
};

static gint ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection_private_offset;
static gpointer proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_parent_class = NULL;

static void proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_parsed (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                  ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* value);
static void proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_active_selections (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                             GeeArrayList* value);
static void proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_unmanaged_option_ids (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                                GeeArrayList* value);
static void proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_adapter_diagnostics (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                               GeeArrayList* value);
static void proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_composition_diagnostics (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                                   GeeArrayList* value);
static void proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_state (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                 ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionState value);
static void proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_managed_candidate (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                             const gchar* value);
static void proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_retain_placeholder_for_arguments_only (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                                                 gboolean value);
static gboolean proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_requires_capability_context (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self);
static void proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_finalize (GObject * obj);
static GType proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_type_once (void);
static void _vala_proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_property (GObject * object,
                                                                                                          guint property_id,
                                                                                                          GValue * value,
                                                                                                          GParamSpec * pspec);
static void _vala_proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_property (GObject * object,
                                                                                                          guint property_id,
                                                                                                          const GValue * value,
                                                                                                          GParamSpec * pspec);
static void _vala_array_destroy (gpointer array,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

static GType
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_get_type_once (void)
{
	static const GEnumValue values[] = {{PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_PRISTINE_SOURCE, "PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_PRISTINE_SOURCE", "pristine-source"}, {PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_MANAGED_CANDIDATE_READY, "PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_MANAGED_CANDIDATE_READY", "managed-candidate-ready"}, {PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_UNMANAGED_SOURCE_PRESERVED, "PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_UNMANAGED_SOURCE_PRESERVED", "unmanaged-source-preserved"}, {PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_INVALID_SEMANTIC_SELECTIONS, "PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_INVALID_SEMANTIC_SELECTIONS", "invalid-semantic-selections"}, {PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_INCOMPLETE_ADAPTER_COVERAGE, "PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_INCOMPLETE_ADAPTER_COVERAGE", "incomplete-adapter-coverage"}, {PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_CAPABILITY_CONTEXT_REQUIRED, "PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_CAPABILITY_CONTEXT_REQUIRED", "capability-context-required"}, {0, NULL, NULL}};
	GType proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_type_id;
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_type_id = g_enum_register_static ("ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionState", values);
	return proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_type_id;
}

GType
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_type_id__once)) {
		GType proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_type_id;
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_type_id = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_type_id__once, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_type_id);
	}
	return proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_state_type_id__once;
}

static inline gpointer
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_instance_private (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection_private_offset);
}

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

ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection*
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_construct (GType object_type,
                                                                                            ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCatalog* catalog,
                                                                                            ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParser* parser,
                                                                                            ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandComposer* composer)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection * self = NULL;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCatalog* _tmp0_ = NULL;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCatalog* _tmp1_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCatalog* _tmp3_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParser* _tmp4_ = NULL;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParser* _tmp5_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParser* _tmp8_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandComposer* _tmp9_ = NULL;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandComposer* _tmp10_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandComposer* _tmp13_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParser* _tmp14_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* _tmp15_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* _tmp16_;
	GeeArrayList* _tmp17_;
	GeeArrayList* _tmp18_;
	GeeArrayList* _tmp19_;
	GeeArrayList* _tmp20_;
	GeeArrayList* _tmp21_;
	GeeArrayList* _tmp22_;
	GeeArrayList* _tmp23_;
	GeeArrayList* _tmp24_;
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection*) g_object_new (object_type, NULL);
	_tmp1_ = _g_object_ref0 (catalog);
	_tmp0_ = _tmp1_;
	if (_tmp0_ == NULL) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCatalog* _tmp2_;
		_tmp2_ = proton_plus_widgets_games_launch_options_editor_launch_option_catalog_new ();
		_g_object_unref0 (_tmp0_);
		_tmp0_ = _tmp2_;
	}
	_tmp3_ = _tmp0_;
	_tmp0_ = NULL;
	_g_object_unref0 (self->priv->catalog);
	self->priv->catalog = _tmp3_;
	_tmp5_ = _g_object_ref0 (parser);
	_tmp4_ = _tmp5_;
	if (_tmp4_ == NULL) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCatalog* _tmp6_;
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParser* _tmp7_;
		_tmp6_ = self->priv->catalog;
		_tmp7_ = proton_plus_widgets_games_launch_options_editor_launch_command_parser_new (_tmp6_);
		_g_object_unref0 (_tmp4_);
		_tmp4_ = _tmp7_;
	}
	_tmp8_ = _tmp4_;
	_tmp4_ = NULL;
	_g_object_unref0 (self->priv->parser);
	self->priv->parser = _tmp8_;
	_tmp10_ = _g_object_ref0 (composer);
	_tmp9_ = _tmp10_;
	if (_tmp9_ == NULL) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCatalog* _tmp11_;
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandComposer* _tmp12_;
		_tmp11_ = self->priv->catalog;
		_tmp12_ = proton_plus_widgets_games_launch_options_editor_launch_command_composer_new (_tmp11_, NULL);
		_g_object_unref0 (_tmp9_);
		_tmp9_ = _tmp12_;
	}
	_tmp13_ = _tmp9_;
	_tmp9_ = NULL;
	_g_object_unref0 (self->priv->composer);
	self->priv->composer = _tmp13_;
	_tmp14_ = self->priv->parser;
	_tmp15_ = proton_plus_widgets_games_launch_options_editor_launch_command_parser_parse (_tmp14_, "");
	_tmp16_ = _tmp15_;
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_parsed (self, _tmp16_);
	_g_object_unref0 (_tmp16_);
	_tmp17_ = gee_array_list_new (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_COMMAND_SELECTION, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
	_tmp18_ = _tmp17_;
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_active_selections (self, _tmp18_);
	_g_object_unref0 (_tmp18_);
	_tmp19_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
	_tmp20_ = _tmp19_;
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_unmanaged_option_ids (self, _tmp20_);
	_g_object_unref0 (_tmp20_);
	_tmp21_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
	_tmp22_ = _tmp21_;
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_adapter_diagnostics (self, _tmp22_);
	_g_object_unref0 (_tmp22_);
	_tmp23_ = gee_array_list_new (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_COMMAND_COMPOSITION_DIAGNOSTIC, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
	_tmp24_ = _tmp23_;
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_composition_diagnostics (self, _tmp24_);
	_g_object_unref0 (_tmp24_);
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_state (self, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_PRISTINE_SOURCE);
	_g_object_unref0 (_tmp9_);
	_g_object_unref0 (_tmp4_);
	_g_object_unref0 (_tmp0_);
	return self;
}

ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection*
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_new (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCatalog* catalog,
                                                                                      ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParser* parser,
                                                                                      ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandComposer* composer)
{
	return proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_construct (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_COMMAND_EDITOR_PROJECTION, catalog, parser, composer);
}

void
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_update (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                         const gchar* source,
                                                                                         GeeCollection* sources,
                                                                                         GeeCollection* coverage_diagnostics,
                                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCapabilityContext* capabilities)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParser* _tmp0_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* _tmp1_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* _tmp2_;
	GeeArrayList* _tmp3_;
	GeeArrayList* _tmp4_;
	GeeArrayList* _tmp5_;
	GeeArrayList* _tmp6_;
	gboolean _tmp7_ = FALSE;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* _tmp8_;
	GeeArrayList* _tmp9_;
	GeeArrayList* _tmp10_;
	gint _tmp11_;
	gint _tmp12_;
	GeeArrayList* _tmp104_;
	gint _tmp105_;
	gint _tmp106_;
	gboolean _tmp107_ = FALSE;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* _tmp108_;
	gboolean _tmp109_;
	gboolean _tmp110_;
	gboolean _tmp114_ = FALSE;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCapabilityContext* _tmp115_ = NULL;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCapabilityContext* _tmp116_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCompositionResult* _result_ = NULL;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandComposer* _tmp120_;
	GeeArrayList* _tmp121_;
	gint _tmp122_ = 0;
	gpointer* _tmp123_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection** _tmp124_;
	gint _tmp124__length1;
	gboolean _tmp125_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCompositionRequest* _tmp126_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCompositionRequest* _tmp127_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCompositionResult* _tmp128_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCompositionResult* _tmp129_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCompositionResult* _tmp142_;
	gboolean _tmp143_;
	gboolean _tmp144_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCompositionResult* _tmp145_;
	const gchar* _tmp146_;
	const gchar* _tmp147_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionState _tmp148_ = 0;
	const gchar* _tmp149_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (source != NULL);
	g_return_if_fail (sources != NULL);
	g_return_if_fail (coverage_diagnostics != NULL);
	_tmp0_ = self->priv->parser;
	_tmp1_ = proton_plus_widgets_games_launch_options_editor_launch_command_parser_parse (_tmp0_, source);
	_tmp2_ = _tmp1_;
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_parsed (self, _tmp2_);
	_g_object_unref0 (_tmp2_);
	_tmp3_ = self->priv->_active_selections;
	gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp3_);
	_tmp4_ = self->priv->_unmanaged_option_ids;
	gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp4_);
	_tmp5_ = self->priv->_adapter_diagnostics;
	gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp5_);
	_tmp6_ = self->priv->_composition_diagnostics;
	gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp6_);
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_managed_candidate (self, "");
	_tmp8_ = self->priv->_parsed;
	_tmp9_ = proton_plus_widgets_games_launch_options_editor_launch_command_parse_result_get_command_boundary_indexes (_tmp8_);
	_tmp10_ = _tmp9_;
	_tmp11_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp10_);
	_tmp12_ = _tmp11_;
	if (_tmp12_ == 1) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* _tmp13_;
		GeeArrayList* _tmp14_;
		GeeArrayList* _tmp15_;
		gpointer _tmp16_;
		_tmp13_ = self->priv->_parsed;
		_tmp14_ = proton_plus_widgets_games_launch_options_editor_launch_command_parse_result_get_command_boundary_indexes (_tmp13_);
		_tmp15_ = _tmp14_;
		_tmp16_ = gee_abstract_list_get ((GeeAbstractList*) _tmp15_, 0);
		_tmp7_ = ((gint) ((gintptr) _tmp16_)) == 0;
	} else {
		_tmp7_ = FALSE;
	}
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_retain_placeholder_for_arguments_only (self, _tmp7_);
	{
		GeeIterator* _diagnostic_it = NULL;
		GeeIterator* _tmp17_;
		_tmp17_ = gee_iterable_iterator ((GeeIterable*) coverage_diagnostics);
		_diagnostic_it = _tmp17_;
		while (TRUE) {
			GeeIterator* _tmp18_;
			gchar* diagnostic = NULL;
			GeeIterator* _tmp19_;
			gpointer _tmp20_;
			GeeArrayList* _tmp21_;
			const gchar* _tmp22_;
			_tmp18_ = _diagnostic_it;
			if (!gee_iterator_next (_tmp18_)) {
				break;
			}
			_tmp19_ = _diagnostic_it;
			_tmp20_ = gee_iterator_get (_tmp19_);
			diagnostic = (gchar*) _tmp20_;
			_tmp21_ = self->priv->_adapter_diagnostics;
			_tmp22_ = diagnostic;
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp21_, _tmp22_);
			_g_free0 (diagnostic);
		}
		_g_object_unref0 (_diagnostic_it);
	}
	{
		GeeIterator* _source_item_it = NULL;
		GeeIterator* _tmp23_;
		_tmp23_ = gee_iterable_iterator ((GeeIterable*) sources);
		_source_item_it = _tmp23_;
		while (TRUE) {
			GeeIterator* _tmp24_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchCommandSelectionSource* source_item = NULL;
			GeeIterator* _tmp25_;
			gpointer _tmp26_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection* selection = NULL;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchCommandSelectionSource* _tmp27_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection* _tmp28_;
			gchar* diagnostic = NULL;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchCommandSelectionSource* _tmp29_;
			gchar* _tmp30_;
			const gchar* _tmp31_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection* _tmp34_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection* _tmp35_;
			const gchar* _tmp36_;
			const gchar* _tmp37_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchCommandSelectionSource* _tmp38_;
			const gchar* _tmp39_;
			const gchar* _tmp40_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionMetadata* metadata = NULL;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCatalog* _tmp50_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection* _tmp51_;
			const gchar* _tmp52_;
			const gchar* _tmp53_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionMetadata* _tmp54_;
			gboolean _tmp55_ = FALSE;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionMetadata* _tmp56_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* semantics = NULL;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionMetadata* _tmp66_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp67_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp68_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp69_;
			gboolean _tmp70_ = FALSE;
			gboolean _tmp71_ = FALSE;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp72_;
			gboolean _tmp73_;
			gboolean _tmp74_;
			_tmp24_ = _source_item_it;
			if (!gee_iterator_next (_tmp24_)) {
				break;
			}
			_tmp25_ = _source_item_it;
			_tmp26_ = gee_iterator_get (_tmp25_);
			source_item = (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchCommandSelectionSource*) _tmp26_;
			_tmp27_ = source_item;
			_tmp28_ = proton_plus_widgets_games_launch_options_editor_ilaunch_command_selection_source_get_selection (_tmp27_);
			selection = _tmp28_;
			_tmp29_ = source_item;
			_tmp30_ = proton_plus_widgets_games_launch_options_editor_ilaunch_command_selection_source_get_diagnostic (_tmp29_);
			diagnostic = _tmp30_;
			_tmp31_ = diagnostic;
			if (_tmp31_ != NULL) {
				GeeArrayList* _tmp32_;
				const gchar* _tmp33_;
				_tmp32_ = self->priv->_adapter_diagnostics;
				_tmp33_ = diagnostic;
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp32_, _tmp33_);
			}
			_tmp34_ = selection;
			if (_tmp34_ == NULL) {
				_g_free0 (diagnostic);
				_g_object_unref0 (selection);
				_g_object_unref0 (source_item);
				continue;
			}
			_tmp35_ = selection;
			_tmp36_ = proton_plus_widgets_games_launch_options_editor_launch_command_selection_get_option_id (_tmp35_);
			_tmp37_ = _tmp36_;
			_tmp38_ = source_item;
			_tmp39_ = proton_plus_widgets_games_launch_options_editor_ilaunch_command_selection_source_get_option_id (_tmp38_);
			_tmp40_ = _tmp39_;
			if (g_strcmp0 (_tmp37_, _tmp40_) != 0) {
				GeeArrayList* _tmp41_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchCommandSelectionSource* _tmp42_;
				const gchar* _tmp43_;
				const gchar* _tmp44_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection* _tmp45_;
				const gchar* _tmp46_;
				const gchar* _tmp47_;
				gchar* _tmp48_;
				gchar* _tmp49_;
				_tmp41_ = self->priv->_adapter_diagnostics;
				_tmp42_ = source_item;
				_tmp43_ = proton_plus_widgets_games_launch_options_editor_ilaunch_command_selection_source_get_option_id (_tmp42_);
				_tmp44_ = _tmp43_;
				_tmp45_ = selection;
				_tmp46_ = proton_plus_widgets_games_launch_options_editor_launch_command_selection_get_option_id (_tmp45_);
				_tmp47_ = _tmp46_;
				_tmp48_ = g_strdup_printf ("Selection source '%s' returned '%s'.", _tmp44_, _tmp47_);
				_tmp49_ = _tmp48_;
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp41_, _tmp49_);
				_g_free0 (_tmp49_);
			}
			_tmp50_ = self->priv->catalog;
			_tmp51_ = selection;
			_tmp52_ = proton_plus_widgets_games_launch_options_editor_launch_command_selection_get_option_id (_tmp51_);
			_tmp53_ = _tmp52_;
			_tmp54_ = proton_plus_widgets_games_launch_options_editor_launch_option_catalog_lookup (_tmp50_, _tmp53_);
			metadata = _tmp54_;
			_tmp56_ = metadata;
			if (_tmp56_ == NULL) {
				_tmp55_ = TRUE;
			} else {
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionMetadata* _tmp57_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp58_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp59_;
				_tmp57_ = metadata;
				_tmp58_ = proton_plus_widgets_games_launch_options_editor_launch_option_metadata_get_semantics (_tmp57_);
				_tmp59_ = _tmp58_;
				_tmp55_ = _tmp59_ == NULL;
			}
			if (_tmp55_) {
				GeeArrayList* _tmp60_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection* _tmp61_;
				const gchar* _tmp62_;
				const gchar* _tmp63_;
				gchar* _tmp64_;
				gchar* _tmp65_;
				_tmp60_ = self->priv->_adapter_diagnostics;
				_tmp61_ = selection;
				_tmp62_ = proton_plus_widgets_games_launch_options_editor_launch_command_selection_get_option_id (_tmp61_);
				_tmp63_ = _tmp62_;
				_tmp64_ = g_strdup_printf ("Selection source '%s' returned an unknown option.", _tmp63_);
				_tmp65_ = _tmp64_;
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp60_, _tmp65_);
				_g_free0 (_tmp65_);
				_g_object_unref0 (metadata);
				_g_free0 (diagnostic);
				_g_object_unref0 (selection);
				_g_object_unref0 (source_item);
				continue;
			}
			_tmp66_ = metadata;
			_tmp67_ = proton_plus_widgets_games_launch_options_editor_launch_option_metadata_get_semantics (_tmp66_);
			_tmp68_ = _tmp67_;
			_tmp69_ = _g_object_ref0 (_tmp68_);
			semantics = _tmp69_;
			_tmp72_ = semantics;
			_tmp73_ = proton_plus_widgets_games_launch_options_editor_launch_option_semantics_get_managed_emission (_tmp72_);
			_tmp74_ = _tmp73_;
			if (_tmp74_) {
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp75_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemanticKind _tmp76_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemanticKind _tmp77_;
				_tmp75_ = semantics;
				_tmp76_ = proton_plus_widgets_games_launch_options_editor_launch_option_semantics_get_kind (_tmp75_);
				_tmp77_ = _tmp76_;
				_tmp71_ = _tmp77_ != PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_SEMANTIC_KIND_COMMAND_BOUNDARY;
			} else {
				_tmp71_ = FALSE;
			}
			if (_tmp71_) {
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp78_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemanticKind _tmp79_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemanticKind _tmp80_;
				_tmp78_ = semantics;
				_tmp79_ = proton_plus_widgets_games_launch_options_editor_launch_option_semantics_get_kind (_tmp78_);
				_tmp80_ = _tmp79_;
				_tmp70_ = _tmp80_ != PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_SEMANTIC_KIND_OPAQUE_CONTEXT_DEPENDENT;
			} else {
				_tmp70_ = FALSE;
			}
			if (_tmp70_) {
				GeeArrayList* _tmp81_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection* _tmp82_;
				_tmp81_ = self->priv->_active_selections;
				_tmp82_ = selection;
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp81_, _tmp82_);
			}
			_g_object_unref0 (semantics);
			_g_object_unref0 (metadata);
			_g_free0 (diagnostic);
			_g_object_unref0 (selection);
			_g_object_unref0 (source_item);
		}
		_g_object_unref0 (_source_item_it);
	}
	{
		GeeArrayList* _occurrence_list = NULL;
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* _tmp83_;
		GeeArrayList* _tmp84_;
		GeeArrayList* _tmp85_;
		gint _occurrence_size = 0;
		GeeArrayList* _tmp86_;
		gint _tmp87_;
		gint _tmp88_;
		gint _occurrence_index = 0;
		_tmp83_ = self->priv->_parsed;
		_tmp84_ = proton_plus_widgets_games_launch_options_editor_launch_command_parse_result_get_occurrences (_tmp83_);
		_tmp85_ = _tmp84_;
		_occurrence_list = _tmp85_;
		_tmp86_ = _occurrence_list;
		_tmp87_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp86_);
		_tmp88_ = _tmp87_;
		_occurrence_size = _tmp88_;
		_occurrence_index = -1;
		while (TRUE) {
			gint _tmp89_;
			gint _tmp90_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandOptionOccurrence* occurrence = NULL;
			GeeArrayList* _tmp91_;
			gpointer _tmp92_;
			gboolean _tmp93_ = FALSE;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandOptionOccurrence* _tmp94_;
			gboolean _tmp95_;
			gboolean _tmp96_;
			_occurrence_index = _occurrence_index + 1;
			_tmp89_ = _occurrence_index;
			_tmp90_ = _occurrence_size;
			if (!(_tmp89_ < _tmp90_)) {
				break;
			}
			_tmp91_ = _occurrence_list;
			_tmp92_ = gee_abstract_list_get ((GeeAbstractList*) _tmp91_, _occurrence_index);
			occurrence = (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandOptionOccurrence*) _tmp92_;
			_tmp94_ = occurrence;
			_tmp95_ = proton_plus_widgets_games_launch_options_editor_launch_command_option_occurrence_get_managed_emission (_tmp94_);
			_tmp96_ = _tmp95_;
			if (!_tmp96_) {
				_tmp93_ = TRUE;
			} else {
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandOptionOccurrence* _tmp97_;
				gboolean _tmp98_;
				gboolean _tmp99_;
				_tmp97_ = occurrence;
				_tmp98_ = proton_plus_widgets_games_launch_options_editor_launch_command_option_occurrence_get_is_legacy (_tmp97_);
				_tmp99_ = _tmp98_;
				_tmp93_ = _tmp99_;
			}
			if (_tmp93_) {
				GeeArrayList* _tmp100_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandOptionOccurrence* _tmp101_;
				const gchar* _tmp102_;
				const gchar* _tmp103_;
				_tmp100_ = self->priv->_unmanaged_option_ids;
				_tmp101_ = occurrence;
				_tmp102_ = proton_plus_widgets_games_launch_options_editor_launch_command_option_occurrence_get_option_id (_tmp101_);
				_tmp103_ = _tmp102_;
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp100_, _tmp103_);
			}
			_g_object_unref0 (occurrence);
		}
	}
	_tmp104_ = self->priv->_adapter_diagnostics;
	_tmp105_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp104_);
	_tmp106_ = _tmp105_;
	if (_tmp106_ > 0) {
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_state (self, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_INCOMPLETE_ADAPTER_COVERAGE);
		return;
	}
	_tmp108_ = self->priv->_parsed;
	_tmp109_ = proton_plus_widgets_games_launch_options_editor_launch_command_parse_result_get_is_structurally_safe (_tmp108_);
	_tmp110_ = _tmp109_;
	if (!_tmp110_) {
		_tmp107_ = TRUE;
	} else {
		GeeArrayList* _tmp111_;
		gint _tmp112_;
		gint _tmp113_;
		_tmp111_ = self->priv->_unmanaged_option_ids;
		_tmp112_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp111_);
		_tmp113_ = _tmp112_;
		_tmp107_ = _tmp113_ > 0;
	}
	if (_tmp107_) {
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_state (self, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_UNMANAGED_SOURCE_PRESERVED);
		return;
	}
	if (capabilities == NULL) {
		_tmp114_ = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_requires_capability_context (self);
	} else {
		_tmp114_ = FALSE;
	}
	if (_tmp114_) {
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_state (self, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_CAPABILITY_CONTEXT_REQUIRED);
		return;
	}
	_tmp116_ = _g_object_ref0 (capabilities);
	_tmp115_ = _tmp116_;
	if (_tmp115_ == NULL) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCapability* _tmp117_;
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCapability* _tmp118_;
		gint _tmp118__length1;
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCapabilityContext* _tmp119_;
		_tmp117_ = g_new0 (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCapability, 0);
		_tmp118_ = _tmp117_;
		_tmp118__length1 = 0;
		_tmp119_ = proton_plus_widgets_games_launch_options_editor_launch_command_capability_context_new (_tmp118_, 0);
		_g_object_unref0 (_tmp115_);
		_tmp115_ = _tmp119_;
		_tmp118_ = (g_free (_tmp118_), NULL);
	}
	_tmp120_ = self->priv->composer;
	_tmp121_ = self->priv->_active_selections;
	_tmp123_ = gee_collection_to_array ((GeeCollection*) _tmp121_, &_tmp122_);
	_tmp124_ = _tmp123_;
	_tmp124__length1 = _tmp122_;
	_tmp125_ = self->priv->_retain_placeholder_for_arguments_only;
	_tmp126_ = proton_plus_widgets_games_launch_options_editor_launch_command_composition_request_new (_tmp124_, _tmp122_, _tmp115_, _tmp125_);
	_tmp127_ = _tmp126_;
	_tmp128_ = proton_plus_widgets_games_launch_options_editor_launch_command_composer_compose (_tmp120_, _tmp127_);
	_tmp129_ = _tmp128_;
	_g_object_unref0 (_tmp127_);
	_tmp124_ = (_vala_array_free (_tmp124_, _tmp124__length1, (GDestroyNotify) g_object_unref), NULL);
	_result_ = _tmp129_;
	{
		GeeList* _diagnostic_list = NULL;
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCompositionResult* _tmp130_;
		GeeList* _tmp131_;
		GeeList* _tmp132_;
		gint _diagnostic_size = 0;
		GeeList* _tmp133_;
		gint _tmp134_;
		gint _tmp135_;
		gint _diagnostic_index = 0;
		_tmp130_ = _result_;
		_tmp131_ = proton_plus_widgets_games_launch_options_editor_launch_command_composition_result_get_diagnostics (_tmp130_);
		_tmp132_ = _tmp131_;
		_diagnostic_list = _tmp132_;
		_tmp133_ = _diagnostic_list;
		_tmp134_ = gee_collection_get_size ((GeeCollection*) _tmp133_);
		_tmp135_ = _tmp134_;
		_diagnostic_size = _tmp135_;
		_diagnostic_index = -1;
		while (TRUE) {
			gint _tmp136_;
			gint _tmp137_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCompositionDiagnostic* diagnostic = NULL;
			GeeList* _tmp138_;
			gpointer _tmp139_;
			GeeArrayList* _tmp140_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCompositionDiagnostic* _tmp141_;
			_diagnostic_index = _diagnostic_index + 1;
			_tmp136_ = _diagnostic_index;
			_tmp137_ = _diagnostic_size;
			if (!(_tmp136_ < _tmp137_)) {
				break;
			}
			_tmp138_ = _diagnostic_list;
			_tmp139_ = gee_list_get (_tmp138_, _diagnostic_index);
			diagnostic = (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandCompositionDiagnostic*) _tmp139_;
			_tmp140_ = self->priv->_composition_diagnostics;
			_tmp141_ = diagnostic;
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp140_, _tmp141_);
			_g_object_unref0 (diagnostic);
		}
	}
	_tmp142_ = _result_;
	_tmp143_ = proton_plus_widgets_games_launch_options_editor_launch_command_composition_result_get_is_valid (_tmp142_);
	_tmp144_ = _tmp143_;
	if (!_tmp144_) {
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_state (self, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_INVALID_SEMANTIC_SELECTIONS);
		_g_object_unref0 (_result_);
		_g_object_unref0 (_tmp115_);
		return;
	}
	_tmp145_ = _result_;
	_tmp146_ = proton_plus_widgets_games_launch_options_editor_launch_command_composition_result_get_launch_line (_tmp145_);
	_tmp147_ = _tmp146_;
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_managed_candidate (self, _tmp147_);
	_tmp149_ = self->priv->_managed_candidate;
	if (g_strcmp0 (source, _tmp149_) == 0) {
		_tmp148_ = PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_PRISTINE_SOURCE;
	} else {
		_tmp148_ = PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_MANAGED_CANDIDATE_READY;
	}
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_state (self, _tmp148_);
	_g_object_unref0 (_result_);
	_g_object_unref0 (_tmp115_);
}

static gboolean
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_requires_capability_context (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	{
		GeeArrayList* _selection_list = NULL;
		GeeArrayList* _tmp0_;
		gint _selection_size = 0;
		GeeArrayList* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		gint _selection_index = 0;
		_tmp0_ = self->priv->_active_selections;
		_selection_list = _tmp0_;
		_tmp1_ = _selection_list;
		_tmp2_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp1_);
		_tmp3_ = _tmp2_;
		_selection_size = _tmp3_;
		_selection_index = -1;
		while (TRUE) {
			gint _tmp4_;
			gint _tmp5_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection* selection = NULL;
			GeeArrayList* _tmp6_;
			gpointer _tmp7_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionMetadata* metadata = NULL;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCatalog* _tmp8_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection* _tmp9_;
			const gchar* _tmp10_;
			const gchar* _tmp11_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionMetadata* _tmp12_;
			gboolean _tmp13_ = FALSE;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionMetadata* _tmp14_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionMetadata* _tmp18_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp19_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp20_;
			gint _tmp21_ = 0;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCapability* _tmp22_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionCapability* _tmp23_;
			gint _tmp23__length1;
			gboolean _tmp24_;
			gboolean _tmp25_ = FALSE;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionMetadata* _tmp26_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp27_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp28_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemanticKind _tmp29_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemanticKind _tmp30_;
			_selection_index = _selection_index + 1;
			_tmp4_ = _selection_index;
			_tmp5_ = _selection_size;
			if (!(_tmp4_ < _tmp5_)) {
				break;
			}
			_tmp6_ = _selection_list;
			_tmp7_ = gee_abstract_list_get ((GeeAbstractList*) _tmp6_, _selection_index);
			selection = (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection*) _tmp7_;
			_tmp8_ = self->priv->catalog;
			_tmp9_ = selection;
			_tmp10_ = proton_plus_widgets_games_launch_options_editor_launch_command_selection_get_option_id (_tmp9_);
			_tmp11_ = _tmp10_;
			_tmp12_ = proton_plus_widgets_games_launch_options_editor_launch_option_catalog_lookup (_tmp8_, _tmp11_);
			metadata = _tmp12_;
			_tmp14_ = metadata;
			if (_tmp14_ == NULL) {
				_tmp13_ = TRUE;
			} else {
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionMetadata* _tmp15_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp16_;
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSemantics* _tmp17_;
				_tmp15_ = metadata;
				_tmp16_ = proton_plus_widgets_games_launch_options_editor_launch_option_metadata_get_semantics (_tmp15_);
				_tmp17_ = _tmp16_;
				_tmp13_ = _tmp17_ == NULL;
			}
			if (_tmp13_) {
				_g_object_unref0 (metadata);
				_g_object_unref0 (selection);
				continue;
			}
			_tmp18_ = metadata;
			_tmp19_ = proton_plus_widgets_games_launch_options_editor_launch_option_metadata_get_semantics (_tmp18_);
			_tmp20_ = _tmp19_;
			_tmp22_ = proton_plus_widgets_games_launch_options_editor_launch_option_semantics_get_required_capabilities (_tmp20_, &_tmp21_);
			_tmp23_ = _tmp22_;
			_tmp23__length1 = _tmp21_;
			_tmp24_ = _tmp21_ > 0;
			_tmp23_ = (g_free (_tmp23_), NULL);
			if (_tmp24_) {
				result = TRUE;
				_g_object_unref0 (metadata);
				_g_object_unref0 (selection);
				return result;
			}
			_tmp26_ = metadata;
			_tmp27_ = proton_plus_widgets_games_launch_options_editor_launch_option_metadata_get_semantics (_tmp26_);
			_tmp28_ = _tmp27_;
			_tmp29_ = proton_plus_widgets_games_launch_options_editor_launch_option_semantics_get_kind (_tmp28_);
			_tmp30_ = _tmp29_;
			if (_tmp30_ == PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_SEMANTIC_KIND_WRAPPER_SELECTOR) {
				ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandSelection* _tmp31_;
				const gchar* _tmp32_;
				const gchar* _tmp33_;
				_tmp31_ = selection;
				_tmp32_ = proton_plus_widgets_games_launch_options_editor_launch_command_selection_get_wrapper_id (_tmp31_);
				_tmp33_ = _tmp32_;
				_tmp25_ = g_strcmp0 (_tmp33_, "") != 0;
			} else {
				_tmp25_ = FALSE;
			}
			if (_tmp25_) {
				result = TRUE;
				_g_object_unref0 (metadata);
				_g_object_unref0 (selection);
				return result;
			}
			_g_object_unref0 (metadata);
			_g_object_unref0 (selection);
		}
	}
	result = FALSE;
	return result;
}

ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult*
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_parsed (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_parsed;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_parsed (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                             ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_parsed (self);
	if (old_value != value) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandParseResult* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_parsed);
		self->priv->_parsed = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_PARSED_PROPERTY]);
	}
}

GeeArrayList*
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_active_selections (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self)
{
	GeeArrayList* result;
	GeeArrayList* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_active_selections;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_active_selections (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                        GeeArrayList* value)
{
	GeeArrayList* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_active_selections (self);
	if (old_value != value) {
		GeeArrayList* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_active_selections);
		self->priv->_active_selections = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_ACTIVE_SELECTIONS_PROPERTY]);
	}
}

GeeArrayList*
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_unmanaged_option_ids (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self)
{
	GeeArrayList* result;
	GeeArrayList* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_unmanaged_option_ids;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_unmanaged_option_ids (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                           GeeArrayList* value)
{
	GeeArrayList* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_unmanaged_option_ids (self);
	if (old_value != value) {
		GeeArrayList* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_unmanaged_option_ids);
		self->priv->_unmanaged_option_ids = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_UNMANAGED_OPTION_IDS_PROPERTY]);
	}
}

GeeArrayList*
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_adapter_diagnostics (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self)
{
	GeeArrayList* result;
	GeeArrayList* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_adapter_diagnostics;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_adapter_diagnostics (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                          GeeArrayList* value)
{
	GeeArrayList* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_adapter_diagnostics (self);
	if (old_value != value) {
		GeeArrayList* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_adapter_diagnostics);
		self->priv->_adapter_diagnostics = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_ADAPTER_DIAGNOSTICS_PROPERTY]);
	}
}

GeeArrayList*
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_composition_diagnostics (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self)
{
	GeeArrayList* result;
	GeeArrayList* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_composition_diagnostics;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_composition_diagnostics (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                              GeeArrayList* value)
{
	GeeArrayList* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_composition_diagnostics (self);
	if (old_value != value) {
		GeeArrayList* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_composition_diagnostics);
		self->priv->_composition_diagnostics = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_COMPOSITION_DIAGNOSTICS_PROPERTY]);
	}
}

ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionState
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_state (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionState result;
	g_return_val_if_fail (self != NULL, 0);
	result = self->priv->_state;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_state (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                            ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionState value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionState old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_state (self);
	if (old_value != value) {
		self->priv->_state = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_PROPERTY]);
	}
}

const gchar*
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_managed_candidate (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_managed_candidate;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_managed_candidate (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                        const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_managed_candidate (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_managed_candidate);
		self->priv->_managed_candidate = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_MANAGED_CANDIDATE_PROPERTY]);
	}
}

gboolean
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_retain_placeholder_for_arguments_only (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_retain_placeholder_for_arguments_only;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_retain_placeholder_for_arguments_only (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self,
                                                                                                                            gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_retain_placeholder_for_arguments_only (self);
	if (old_value != value) {
		self->priv->_retain_placeholder_for_arguments_only = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_RETAIN_PLACEHOLDER_FOR_ARGUMENTS_ONLY_PROPERTY]);
	}
}

gboolean
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_has_managed_candidate (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection* self)
{
	gboolean result;
	gboolean _tmp0_ = FALSE;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionState _tmp1_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp1_ = self->priv->_state;
	if (_tmp1_ == PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_PRISTINE_SOURCE) {
		_tmp0_ = TRUE;
	} else {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionState _tmp2_;
		_tmp2_ = self->priv->_state;
		_tmp0_ = _tmp2_ == PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_MANAGED_CANDIDATE_READY;
	}
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_class_init (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionClass * klass,
                                                                                             gpointer klass_data)
{
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_PARSED_PROPERTY, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_PARSED_PROPERTY] = g_param_spec_object ("parsed", "parsed", "parsed", PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_COMMAND_PARSE_RESULT, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_ACTIVE_SELECTIONS_PROPERTY, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_ACTIVE_SELECTIONS_PROPERTY] = g_param_spec_object ("active-selections", "active-selections", "active-selections", GEE_TYPE_ARRAY_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_UNMANAGED_OPTION_IDS_PROPERTY, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_UNMANAGED_OPTION_IDS_PROPERTY] = g_param_spec_object ("unmanaged-option-ids", "unmanaged-option-ids", "unmanaged-option-ids", GEE_TYPE_ARRAY_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_ADAPTER_DIAGNOSTICS_PROPERTY, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_ADAPTER_DIAGNOSTICS_PROPERTY] = g_param_spec_object ("adapter-diagnostics", "adapter-diagnostics", "adapter-diagnostics", GEE_TYPE_ARRAY_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_COMPOSITION_DIAGNOSTICS_PROPERTY, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_COMPOSITION_DIAGNOSTICS_PROPERTY] = g_param_spec_object ("composition-diagnostics", "composition-diagnostics", "composition-diagnostics", GEE_TYPE_ARRAY_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_PROPERTY, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_PROPERTY] = g_param_spec_enum ("state", "state", "state", PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_MANAGED_CANDIDATE_PROPERTY, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_MANAGED_CANDIDATE_PROPERTY] = g_param_spec_string ("managed-candidate", "managed-candidate", "managed-candidate", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_RETAIN_PLACEHOLDER_FOR_ARGUMENTS_ONLY_PROPERTY, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_RETAIN_PLACEHOLDER_FOR_ARGUMENTS_ONLY_PROPERTY] = g_param_spec_boolean ("retain-placeholder-for-arguments-only", "retain-placeholder-for-arguments-only", "retain-placeholder-for-arguments-only", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_HAS_MANAGED_CANDIDATE_PROPERTY, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_HAS_MANAGED_CANDIDATE_PROPERTY] = g_param_spec_boolean ("has-managed-candidate", "has-managed-candidate", "has-managed-candidate", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_instance_init (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection * self,
                                                                                                gpointer klass)
{
	gchar* _tmp0_;
	self->priv = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_instance_private (self);
	_tmp0_ = g_strdup ("");
	self->priv->_managed_candidate = _tmp0_;
	self->priv->_retain_placeholder_for_arguments_only = FALSE;
}

static void
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_COMMAND_EDITOR_PROJECTION, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection);
	_g_object_unref0 (self->priv->catalog);
	_g_object_unref0 (self->priv->parser);
	_g_object_unref0 (self->priv->composer);
	_g_object_unref0 (self->priv->_parsed);
	_g_object_unref0 (self->priv->_active_selections);
	_g_object_unref0 (self->priv->_unmanaged_option_ids);
	_g_object_unref0 (self->priv->_adapter_diagnostics);
	_g_object_unref0 (self->priv->_composition_diagnostics);
	_g_free0 (self->priv->_managed_candidate);
	G_OBJECT_CLASS (proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection), 0, (GInstanceInitFunc) proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_instance_init, NULL };
	GType proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_type_id;
	proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_type_id = g_type_register_static (G_TYPE_OBJECT, "ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection", &g_define_type_info, 0);
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection_private_offset = g_type_add_instance_private (proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_type_id, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjectionPrivate));
	return proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_type_id;
}

GType
proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_type_id__once)) {
		GType proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_type_id;
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_type_id = proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_type_id__once, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_type_id);
	}
	return proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_type_id__once;
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_property (GObject * object,
                                                                                                     guint property_id,
                                                                                                     GValue * value,
                                                                                                     GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_COMMAND_EDITOR_PROJECTION, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_PARSED_PROPERTY:
		g_value_set_object (value, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_parsed (self));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_ACTIVE_SELECTIONS_PROPERTY:
		g_value_set_object (value, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_active_selections (self));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_UNMANAGED_OPTION_IDS_PROPERTY:
		g_value_set_object (value, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_unmanaged_option_ids (self));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_ADAPTER_DIAGNOSTICS_PROPERTY:
		g_value_set_object (value, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_adapter_diagnostics (self));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_COMPOSITION_DIAGNOSTICS_PROPERTY:
		g_value_set_object (value, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_composition_diagnostics (self));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_PROPERTY:
		g_value_set_enum (value, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_state (self));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_MANAGED_CANDIDATE_PROPERTY:
		g_value_set_string (value, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_managed_candidate (self));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_RETAIN_PLACEHOLDER_FOR_ARGUMENTS_ONLY_PROPERTY:
		g_value_set_boolean (value, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_retain_placeholder_for_arguments_only (self));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_HAS_MANAGED_CANDIDATE_PROPERTY:
		g_value_set_boolean (value, proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_get_has_managed_candidate (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_property (GObject * object,
                                                                                                     guint property_id,
                                                                                                     const GValue * value,
                                                                                                     GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_COMMAND_EDITOR_PROJECTION, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchCommandEditorProjection);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_PARSED_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_parsed (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_ACTIVE_SELECTIONS_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_active_selections (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_UNMANAGED_OPTION_IDS_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_unmanaged_option_ids (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_ADAPTER_DIAGNOSTICS_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_adapter_diagnostics (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_COMPOSITION_DIAGNOSTICS_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_composition_diagnostics (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_STATE_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_state (self, g_value_get_enum (value));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_MANAGED_CANDIDATE_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_managed_candidate (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_COMMAND_EDITOR_PROJECTION_RETAIN_PLACEHOLDER_FOR_ARGUMENTS_ONLY_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_launch_command_editor_projection_set_retain_placeholder_for_arguments_only (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

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

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

static 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;
}

