/* dxvk-options-group.c generated by valac 0.56.19, the Vala compiler
 * generated from dxvk-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 <stdlib.h>
#include <string.h>
#include <float.h>
#include <math.h>
#include <gtk/gtk.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;

#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_SPIN_TILE (proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_get_type ())
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_SPIN_TILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_SPIN_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_SPIN_TILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_SPIN_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTileClass))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_SPIN_TILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_SPIN_TILE))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_SPIN_TILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_SPIN_TILE))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_SPIN_TILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_SPIN_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTileClass))

typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile;
typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTileClass ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTileClass;
enum  {
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_DXVK_OPTIONS_GROUP_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_DXVK_OPTIONS_GROUP_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_DXVK_OPTIONS_GROUP_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroupPrivate {
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _dxvk_async_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _dxvk_log_level_none_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _dxvk_frame_rate_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _cachyos_dxvk_low_latency_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _cachyos_vulkan_low_latency_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _cachyos_vulkan_reflex_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _cachyos_vulkan_reflex_layer_tile;
};

static gint ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup_private_offset;
static gpointer proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_parent_class = NULL;

VALA_EXTERN GType proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType proton_plus_widgets_games_launch_options_editor_launch_option_spin_tile_get_type (void) G_GNUC_CONST ;
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_dxvk_options_group_set_dxvk_async_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                    ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_dxvk_log_level_none_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                             ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_spin_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup* self,
                                                                                                                                                           const gchar* title,
                                                                                                                                                           const gchar* subtitle,
                                                                                                                                                           const gchar* value_label,
                                                                                                                                                           gdouble lower,
                                                                                                                                                           gdouble upper,
                                                                                                                                                           gint default_value,
                                                                                                                                                           const gchar* env_prefix,
                                                                                                                                                           gboolean is_advanced,
                                                                                                                                                           ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType type,
                                                                                                                                                           const gchar* id);
static void proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_dxvk_frame_rate_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_cachyos_dxvk_low_latency_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                                  ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_cachyos_vulkan_low_latency_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                                    ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_cachyos_vulkan_reflex_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                               ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_cachyos_vulkan_reflex_layer_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                                     ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_dxvk_log_level_none_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_dxvk_async_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_dxvk_frame_rate_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_cachyos_dxvk_low_latency_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_cachyos_vulkan_low_latency_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_cachyos_vulkan_reflex_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_cachyos_vulkan_reflex_layer_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self);
static void proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_finalize (GObject * obj);
static GType proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_type_once (void);
static void _vala_proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_property (GObject * object,
                                                                                                   guint property_id,
                                                                                                   GValue * value,
                                                                                                   GParamSpec * pspec);
static void _vala_proton_plus_widgets_games_launch_options_editor_groups_dxvk_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_dxvk_options_group_get_instance_private (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup_private_offset);
}

ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup*
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_construct (GType object_type,
                                                                                     ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                                     ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup * self = NULL;
	gchar* _tmp0_;
	gchar** _tmp1_;
	gchar** _tmp2_;
	gint _tmp2__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp3_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp4_;
	gchar* _tmp5_;
	gchar** _tmp6_;
	gchar** _tmp7_;
	gint _tmp7__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp8_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp9_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp10_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp11_;
	gchar* _tmp12_;
	gchar** _tmp13_;
	gchar** _tmp14_;
	gint _tmp14__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp15_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp16_;
	gchar* _tmp17_;
	gchar** _tmp18_;
	gchar** _tmp19_;
	gint _tmp19__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp20_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp21_;
	gchar* _tmp22_;
	gchar** _tmp23_;
	gchar** _tmp24_;
	gint _tmp24__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp25_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp26_;
	gchar* _tmp27_;
	gchar** _tmp28_;
	gchar** _tmp29_;
	gint _tmp29__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp30_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp31_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp32_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp33_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp34_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp35_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp36_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp37_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp38_;
	g_return_val_if_fail (launch_option_handlers != NULL, NULL);
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup*) 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, _ ("DXVK options"));
	adw_preferences_group_set_description ((AdwPreferencesGroup*) self, _ ("Extra graphics settings and launch behaviors."));
	_tmp0_ = g_strdup ("DXVK_ASYNC=1");
	_tmp1_ = g_new0 (gchar*, 1 + 1);
	_tmp1_[0] = _tmp0_;
	_tmp2_ = _tmp1_;
	_tmp2__length1 = 1;
	_tmp3_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("DXVK Async"), _ ("Enables DXVK's asynchronous pipeline compilation which can reduce stut" \
"tering."), _tmp2_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "dxvk-async");
	_tmp4_ = _tmp3_;
	proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_dxvk_async_tile (self, _tmp4_);
	_g_object_unref0 (_tmp4_);
	_tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_free), NULL);
	_tmp5_ = g_strdup ("DXVK_LOG_LEVEL=none");
	_tmp6_ = g_new0 (gchar*, 1 + 1);
	_tmp6_[0] = _tmp5_;
	_tmp7_ = _tmp6_;
	_tmp7__length1 = 1;
	_tmp8_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("Disable DXVK logging"), _ ("Sets DXVK's log level to none which can improve performance in some ga" \
"mes."), _tmp7_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "dxvk-log-level");
	_tmp9_ = _tmp8_;
	proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_dxvk_log_level_none_tile (self, _tmp9_);
	_g_object_unref0 (_tmp9_);
	_tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_free), NULL);
	_tmp10_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_spin_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("DXVK Frame Limit"), _ ("Caps the frame rate using DXVK's built-in frame limiter."), _ ("FPS"), (gdouble) 0, (gdouble) 360, 60, "DXVK_FRAME_RATE=", FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "dxvk-frame-limit");
	_tmp11_ = _tmp10_;
	proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_dxvk_frame_rate_tile (self, _tmp11_);
	_g_object_unref0 (_tmp11_);
	_tmp12_ = g_strdup ("PROTON_DXVK_LOWLATENCY=1");
	_tmp13_ = g_new0 (gchar*, 1 + 1);
	_tmp13_[0] = _tmp12_;
	_tmp14_ = _tmp13_;
	_tmp14__length1 = 1;
	_tmp15_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("Proton-CachyOS DX11 low latency"), _ ("Enables the custom DXVK low-latency path for Direct3D 9–11."), _tmp14_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "cachyos-dxvk-low-latency");
	_tmp16_ = _tmp15_;
	proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_cachyos_dxvk_low_latency_tile (self, _tmp16_);
	_g_object_unref0 (_tmp16_);
	_tmp14_ = (_vala_array_free (_tmp14_, _tmp14__length1, (GDestroyNotify) g_free), NULL);
	_tmp17_ = g_strdup ("LOW_LATENCY_LAYER=1");
	_tmp18_ = g_new0 (gchar*, 1 + 1);
	_tmp18_[0] = _tmp17_;
	_tmp19_ = _tmp18_;
	_tmp19__length1 = 1;
	_tmp20_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("Proton-CachyOS Vulkan Anti-Lag 2 layer"), _ ("Exposes VK_AMD_anti_lag to Vulkan games that already support Anti-Lag " \
"2."), _tmp19_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "cachyos-vulkan-low-latency");
	_tmp21_ = _tmp20_;
	proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_cachyos_vulkan_low_latency_tile (self, _tmp21_);
	_g_object_unref0 (_tmp21_);
	_tmp19_ = (_vala_array_free (_tmp19_, _tmp19__length1, (GDestroyNotify) g_free), NULL);
	_tmp22_ = g_strdup ("LOW_LATENCY_LAYER_REFLEX=1");
	_tmp23_ = g_new0 (gchar*, 1 + 1);
	_tmp23_[0] = _tmp22_;
	_tmp24_ = _tmp23_;
	_tmp24__length1 = 1;
	_tmp25_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("Expose Vulkan Reflex instead of Anti-Lag 2"), _ ("Switches the low-latency Vulkan layer to VK_NV_low_latency2 for games " \
"with Reflex support."), _tmp24_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "cachyos-vulkan-reflex");
	_tmp26_ = _tmp25_;
	proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_cachyos_vulkan_reflex_tile (self, _tmp26_);
	_g_object_unref0 (_tmp26_);
	_tmp24_ = (_vala_array_free (_tmp24_, _tmp24__length1, (GDestroyNotify) g_free), NULL);
	_tmp27_ = g_strdup ("DXVK_NVAPI_VKREFLEX=1");
	_tmp28_ = g_new0 (gchar*, 1 + 1);
	_tmp28_[0] = _tmp27_;
	_tmp29_ = _tmp28_;
	_tmp29__length1 = 1;
	_tmp30_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("Proton-CachyOS NVIDIA Reflex Vulkan layer"), _ ("Enables the NVIDIA Vulkan Reflex layer for games that support VK_NV_lo" \
"w_latency2."), _tmp29_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "cachyos-vulkan-reflex-layer");
	_tmp31_ = _tmp30_;
	proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_cachyos_vulkan_reflex_layer_tile (self, _tmp31_);
	_g_object_unref0 (_tmp31_);
	_tmp29_ = (_vala_array_free (_tmp29_, _tmp29__length1, (GDestroyNotify) g_free), NULL);
	_tmp32_ = self->priv->_dxvk_log_level_none_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp32_);
	_tmp33_ = self->priv->_dxvk_async_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp33_);
	_tmp34_ = self->priv->_dxvk_frame_rate_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp34_);
	_tmp35_ = self->priv->_cachyos_dxvk_low_latency_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp35_);
	_tmp36_ = self->priv->_cachyos_vulkan_low_latency_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp36_);
	_tmp37_ = self->priv->_cachyos_vulkan_reflex_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp37_);
	_tmp38_ = self->priv->_cachyos_vulkan_reflex_layer_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp38_);
	return self;
}

ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup*
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_new (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                               ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	return proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_construct (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_DXVK_OPTIONS_GROUP, launch_option_handlers, presentation_registry);
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_dxvk_async_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_dxvk_async_tile;
	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_dxvk_options_group_set_dxvk_async_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                               ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_dxvk_async_tile);
	self->priv->_dxvk_async_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_dxvk_log_level_none_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_dxvk_log_level_none_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_dxvk_log_level_none_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                        ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_dxvk_log_level_none_tile);
	self->priv->_dxvk_log_level_none_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile*
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_dxvk_frame_rate_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_dxvk_frame_rate_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_dxvk_frame_rate_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                    ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionSpinTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_dxvk_frame_rate_tile);
	self->priv->_dxvk_frame_rate_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_cachyos_dxvk_low_latency_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_cachyos_dxvk_low_latency_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_cachyos_dxvk_low_latency_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                             ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_cachyos_dxvk_low_latency_tile);
	self->priv->_cachyos_dxvk_low_latency_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_cachyos_vulkan_low_latency_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_cachyos_vulkan_low_latency_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_cachyos_vulkan_low_latency_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                               ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_cachyos_vulkan_low_latency_tile);
	self->priv->_cachyos_vulkan_low_latency_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_cachyos_vulkan_reflex_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_cachyos_vulkan_reflex_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_cachyos_vulkan_reflex_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                          ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_cachyos_vulkan_reflex_tile);
	self->priv->_cachyos_vulkan_reflex_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_cachyos_vulkan_reflex_layer_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_cachyos_vulkan_reflex_layer_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_cachyos_vulkan_reflex_layer_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup* self,
                                                                                                                ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_cachyos_vulkan_reflex_layer_tile);
	self->priv->_cachyos_vulkan_reflex_layer_tile = _tmp0_;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_class_init (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroupClass * klass,
                                                                                      gpointer klass_data)
{
	proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_finalize;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_instance_init (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup * self,
                                                                                         gpointer klass)
{
	self->priv = proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_instance_private (self);
}

static void
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_DXVK_OPTIONS_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup);
	_g_object_unref0 (self->priv->_dxvk_async_tile);
	_g_object_unref0 (self->priv->_dxvk_log_level_none_tile);
	_g_object_unref0 (self->priv->_dxvk_frame_rate_tile);
	_g_object_unref0 (self->priv->_cachyos_dxvk_low_latency_tile);
	_g_object_unref0 (self->priv->_cachyos_vulkan_low_latency_tile);
	_g_object_unref0 (self->priv->_cachyos_vulkan_reflex_tile);
	_g_object_unref0 (self->priv->_cachyos_vulkan_reflex_layer_tile);
	G_OBJECT_CLASS (proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroupClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup), 0, (GInstanceInitFunc) proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_instance_init, NULL };
	GType proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_type_id;
	proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_type_id = g_type_register_static (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_BASE_OPTIONS_GROUP, "ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup", &g_define_type_info, 0);
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup_private_offset = g_type_add_instance_private (proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_type_id, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroupPrivate));
	return proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_type_id;
}

GType
proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_type_id__once)) {
		GType proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_type_id;
		proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_type_id = proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_type_id__once, proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_type_id);
	}
	return proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_type_id__once;
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_get_property (GObject * object,
                                                                                              guint property_id,
                                                                                              GValue * value,
                                                                                              GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_DXVK_OPTIONS_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup);
	switch (property_id) {
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_groups_dxvk_options_group_set_property (GObject * object,
                                                                                              guint property_id,
                                                                                              const GValue * value,
                                                                                              GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_DXVK_OPTIONS_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsDxvkOptionsGroup);
	switch (property_id) {
		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;
}

