/* vkd3d-options-group.c generated by valac 0.56.19, the Vala compiler
 * generated from vkd3d-options-group.vala, do not modify */

#include "protonplus_core.h"
#include <adwaita.h>
#include <glib-object.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.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

#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE (proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_type ())
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_TILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_TILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTileClass))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_TILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_TILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_TILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTileClass))

typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile;
typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTileClass ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTileClass;
enum  {
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_VKD3D_CONFIG_EDITOR_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_VKD3D_LOG_LEVEL_EDITOR_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroupPrivate {
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* _vkd3d_config_editor;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* _vkd3d_log_level_editor;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _vkd3d_gpuva_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _vkd3d_shader_cache_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _cachyos_vkd3d_low_latency_tile;
};

static gint ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup_private_offset;
static gpointer proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_parent_class = NULL;

VALA_EXTERN GType proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_type (void) G_GNUC_CONST ;
static void proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_config_editor (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
                                                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* value);
static void __lambda121_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
                   ProtonPlusWidgetsGamesLaunchOptionsEditorCustomExpanderRow* row);
static void ___lambda121__proton_plus_widgets_games_launch_options_editor_custom_expander_row_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorCustomExpanderRow* _sender,
                                                                                                gpointer self);
static void proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_log_level_editor (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
                                                                                                            ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* value);
static void __lambda122_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
                   ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEnvCombo* row);
static void ___lambda122__proton_plus_widgets_games_launch_options_editor_launch_option_env_combo_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEnvCombo* _sender,
                                                                                                    gpointer self);
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup* self,
                                                                                                                                                  const gchar* title,
                                                                                                                                                  const gchar* subtitle,
                                                                                                                                                  gchar** tokens,
                                                                                                                                                  gint tokens_length1,
                                                                                                                                                  gboolean is_advanced,
                                                                                                                                                  ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType type,
                                                                                                                                                  const gchar* id);
static void proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_gpuva_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
                                                                                                      ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_shader_cache_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
                                                                                                             ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_cachyos_vkd3d_low_latency_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
                                                                                                                    ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_vkd3d_shader_cache_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_vkd3d_gpuva_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_cachyos_vkd3d_low_latency_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self);
static void proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_finalize (GObject * obj);
static GType proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_type_once (void);
static void _vala_proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_property (GObject * object,
                                                                                                    guint property_id,
                                                                                                    GValue * value,
                                                                                                    GParamSpec * pspec);
static void _vala_proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_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 inline gpointer
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_instance_private (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup_private_offset);
}

static void
__lambda121_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
              ProtonPlusWidgetsGamesLaunchOptionsEditorCustomExpanderRow* row)
{
	g_return_if_fail (row != NULL);
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, "changed");
}

static void
___lambda121__proton_plus_widgets_games_launch_options_editor_custom_expander_row_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorCustomExpanderRow* _sender,
                                                                                           gpointer self)
{
	__lambda121_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup*) self, _sender);
}

static void
__lambda122_ (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
              ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEnvCombo* row)
{
	g_return_if_fail (row != NULL);
	g_signal_emit_by_name ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, "changed");
}

static void
___lambda122__proton_plus_widgets_games_launch_options_editor_launch_option_env_combo_changed (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEnvCombo* _sender,
                                                                                               gpointer self)
{
	__lambda122_ ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup*) self, _sender);
}

ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup*
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_construct (GType object_type,
                                                                                      ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                                      ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup * self = NULL;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* _tmp0_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* _tmp1_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* _tmp2_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* _tmp3_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* _tmp4_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* _tmp5_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* _tmp6_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* _tmp7_;
	gchar* _tmp8_;
	gchar** _tmp9_;
	gchar** _tmp10_;
	gint _tmp10__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp11_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp12_;
	gchar* _tmp13_;
	gchar** _tmp14_;
	gchar** _tmp15_;
	gint _tmp15__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp16_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp17_;
	gchar* _tmp18_;
	gchar** _tmp19_;
	gchar** _tmp20_;
	gint _tmp20__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp21_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp22_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp23_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp24_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp25_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* _tmp26_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* _tmp27_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* _tmp28_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* _tmp29_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* _tmp30_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* _tmp31_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* _tmp32_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* _tmp33_;
	g_return_val_if_fail (launch_option_handlers != NULL, NULL);
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup*) proton_plus_widgets_games_launch_options_editor_groups_base_options_group_construct (object_type, launch_option_handlers, TRUE, presentation_registry, TRUE);
	adw_preferences_group_set_title ((AdwPreferencesGroup*) self, _ ("VKD3D options"));
	adw_preferences_group_set_description ((AdwPreferencesGroup*) self, _ ("Extra graphics settings and launch behaviors."));
	_tmp0_ = proton_plus_widgets_games_launch_options_editor_launch_option_vk_d3_dconfig_new ();
	g_object_ref_sink (_tmp0_);
	_tmp1_ = _tmp0_;
	proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_config_editor (self, _tmp1_);
	_g_object_unref0 (_tmp1_);
	_tmp2_ = self->priv->_vkd3d_config_editor;
	g_signal_connect_object ((ProtonPlusWidgetsGamesLaunchOptionsEditorCustomExpanderRow*) _tmp2_, "changed", (GCallback) ___lambda121__proton_plus_widgets_games_launch_options_editor_custom_expander_row_changed, self, 0);
	_tmp3_ = self->priv->_vkd3d_config_editor;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp3_, _ ("Configure Direct3D 12 to Vulkan translation behavior"));
	_tmp4_ = proton_plus_widgets_games_launch_options_editor_launch_option_vk_d3_dlog_level_new ();
	g_object_ref_sink (_tmp4_);
	_tmp5_ = _tmp4_;
	proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_log_level_editor (self, _tmp5_);
	_g_object_unref0 (_tmp5_);
	_tmp6_ = self->priv->_vkd3d_log_level_editor;
	g_signal_connect_object ((ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionEnvCombo*) _tmp6_, "changed", (GCallback) ___lambda122__proton_plus_widgets_games_launch_options_editor_launch_option_env_combo_changed, self, 0);
	_tmp7_ = self->priv->_vkd3d_log_level_editor;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp7_, _ ("VKD3D Logging Level"));
	_tmp8_ = g_strdup ("VKD3D_GPUVA=1");
	_tmp9_ = g_new0 (gchar*, 1 + 1);
	_tmp9_[0] = _tmp8_;
	_tmp10_ = _tmp9_;
	_tmp10__length1 = 1;
	_tmp11_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("Enable VKD3D GPUVA"), _ ("Enables GPU Virtual Addressing. Aligns Vulkan memory management with n" \
"ative DX12 behavior to improve texture streaming and stability in open" \
"-world games."), _tmp10_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "vkd3d-gpuva");
	_tmp12_ = _tmp11_;
	proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_gpuva_tile (self, _tmp12_);
	_g_object_unref0 (_tmp12_);
	_tmp10_ = (_vala_array_free (_tmp10_, _tmp10__length1, (GDestroyNotify) g_free), NULL);
	_tmp13_ = g_strdup ("VKD3D_SHADER_CACHE=1");
	_tmp14_ = g_new0 (gchar*, 1 + 1);
	_tmp14_[0] = _tmp13_;
	_tmp15_ = _tmp14_;
	_tmp15__length1 = 1;
	_tmp16_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("Enable VKD3D Shader Cache"), _ ("Enables VKD3D's internal shader caching mechanism to minimize in-game " \
"stutter."), _tmp15_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "vkd3d-shader-cache");
	_tmp17_ = _tmp16_;
	proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_shader_cache_tile (self, _tmp17_);
	_g_object_unref0 (_tmp17_);
	_tmp15_ = (_vala_array_free (_tmp15_, _tmp15__length1, (GDestroyNotify) g_free), NULL);
	_tmp18_ = g_strdup ("PROTON_VKD3D_LOWLATENCY=1");
	_tmp19_ = g_new0 (gchar*, 1 + 1);
	_tmp19_[0] = _tmp18_;
	_tmp20_ = _tmp19_;
	_tmp20__length1 = 1;
	_tmp21_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("Proton-CachyOS DX12 low latency"), _ ("Uses Reflex markers or waitable swapchains. Intel GPUs and frame gener" \
"ation are unsupported."), _tmp20_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "cachyos-vkd3d-low-latency");
	_tmp22_ = _tmp21_;
	proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_cachyos_vkd3d_low_latency_tile (self, _tmp22_);
	_g_object_unref0 (_tmp22_);
	_tmp20_ = (_vala_array_free (_tmp20_, _tmp20__length1, (GDestroyNotify) g_free), NULL);
	_tmp23_ = self->priv->_vkd3d_shader_cache_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp23_);
	_tmp24_ = self->priv->_vkd3d_gpuva_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp24_);
	_tmp25_ = self->priv->_cachyos_vkd3d_low_latency_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp25_);
	_tmp26_ = self->priv->_vkd3d_config_editor;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp26_);
	_tmp27_ = self->priv->_vkd3d_log_level_editor;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp27_);
	_tmp28_ = self->priv->_vkd3d_config_editor;
	proton_plus_widgets_games_launch_options_editor_launch_options_list_add (launch_option_handlers, (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp28_);
	_tmp29_ = self->priv->_vkd3d_log_level_editor;
	proton_plus_widgets_games_launch_options_editor_launch_options_list_add (launch_option_handlers, (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp29_);
	_tmp30_ = self->priv->_vkd3d_config_editor;
	_tmp31_ = self->priv->_vkd3d_config_editor;
	proton_plus_widgets_games_launch_options_editor_groups_base_options_group_register_option ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, "vkd3d-config", (GtkWidget*) _tmp30_, (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp31_);
	_tmp32_ = self->priv->_vkd3d_log_level_editor;
	_tmp33_ = self->priv->_vkd3d_log_level_editor;
	proton_plus_widgets_games_launch_options_editor_groups_base_options_group_register_option ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, "vkd3d-log-level", (GtkWidget*) _tmp32_, (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp33_);
	return self;
}

ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup*
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_new (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                                ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	return proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_construct (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_VKD3D_OPTIONS_GROUP, launch_option_handlers, presentation_registry);
}

ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig*
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_vkd3d_config_editor (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_vkd3d_config_editor;
	result = _tmp0_;
	return result;
}

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

static void
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_config_editor (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
                                                                                                    ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_vkd3d_config_editor (self);
	if (old_value != value) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DConfig* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_vkd3d_config_editor);
		self->priv->_vkd3d_config_editor = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_VKD3D_CONFIG_EDITOR_PROPERTY]);
	}
}

ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel*
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_vkd3d_log_level_editor (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_vkd3d_log_level_editor;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_log_level_editor (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
                                                                                                       ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_vkd3d_log_level_editor (self);
	if (old_value != value) {
		ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionVKD3DLogLevel* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_vkd3d_log_level_editor);
		self->priv->_vkd3d_log_level_editor = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_VKD3D_LOG_LEVEL_EDITOR_PROPERTY]);
	}
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_vkd3d_gpuva_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_vkd3d_gpuva_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_gpuva_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
                                                                                                 ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_vkd3d_gpuva_tile);
	self->priv->_vkd3d_gpuva_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_vkd3d_shader_cache_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_vkd3d_shader_cache_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_shader_cache_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
                                                                                                        ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_vkd3d_shader_cache_tile);
	self->priv->_vkd3d_shader_cache_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_cachyos_vkd3d_low_latency_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_cachyos_vkd3d_low_latency_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_cachyos_vkd3d_low_latency_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup* self,
                                                                                                               ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_cachyos_vkd3d_low_latency_tile);
	self->priv->_cachyos_vkd3d_low_latency_tile = _tmp0_;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_class_init (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroupClass * klass,
                                                                                       gpointer klass_data)
{
	proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_VKD3D_CONFIG_EDITOR_PROPERTY, proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_VKD3D_CONFIG_EDITOR_PROPERTY] = g_param_spec_object ("vkd3d-config-editor", "vkd3d-config-editor", "vkd3d-config-editor", PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_VK_D3_DCONFIG, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_VKD3D_LOG_LEVEL_EDITOR_PROPERTY, proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_VKD3D_LOG_LEVEL_EDITOR_PROPERTY] = g_param_spec_object ("vkd3d-log-level-editor", "vkd3d-log-level-editor", "vkd3d-log-level-editor", PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_VK_D3_DLOG_LEVEL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_instance_init (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup * self,
                                                                                          gpointer klass)
{
	self->priv = proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_instance_private (self);
}

static void
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_VKD3D_OPTIONS_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup);
	_g_object_unref0 (self->priv->_vkd3d_config_editor);
	_g_object_unref0 (self->priv->_vkd3d_log_level_editor);
	_g_object_unref0 (self->priv->_vkd3d_gpuva_tile);
	_g_object_unref0 (self->priv->_vkd3d_shader_cache_tile);
	_g_object_unref0 (self->priv->_cachyos_vkd3d_low_latency_tile);
	G_OBJECT_CLASS (proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroupClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup), 0, (GInstanceInitFunc) proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_instance_init, NULL };
	GType proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_type_id;
	proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_type_id = g_type_register_static (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_BASE_OPTIONS_GROUP, "ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup", &g_define_type_info, 0);
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup_private_offset = g_type_add_instance_private (proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_type_id, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroupPrivate));
	return proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_type_id;
}

GType
proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_type_id__once)) {
		GType proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_type_id;
		proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_type_id = proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_type_id__once, proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_type_id);
	}
	return proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_type_id__once;
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_property (GObject * object,
                                                                                               guint property_id,
                                                                                               GValue * value,
                                                                                               GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_VKD3D_OPTIONS_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_VKD3D_CONFIG_EDITOR_PROPERTY:
		g_value_set_object (value, proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_vkd3d_config_editor (self));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_VKD3D_LOG_LEVEL_EDITOR_PROPERTY:
		g_value_set_object (value, proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_get_vkd3d_log_level_editor (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_property (GObject * object,
                                                                                               guint property_id,
                                                                                               const GValue * value,
                                                                                               GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_VKD3D_OPTIONS_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsVkd3dOptionsGroup);
	switch (property_id) {
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_VKD3D_CONFIG_EDITOR_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_config_editor (self, g_value_get_object (value));
		break;
		case PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_VKD3D_OPTIONS_GROUP_VKD3D_LOG_LEVEL_EDITOR_PROPERTY:
		proton_plus_widgets_games_launch_options_editor_groups_vkd3d_options_group_set_vkd3d_log_level_editor (self, g_value_get_object (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;
}

