	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_dsound_options           ## -- Begin function setup_dsound_options
	.p2align	4, 0x90
_setup_dsound_options:                  ## @setup_dsound_options
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %r12
	movslq	(%r12), %rbx
	leal	16(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	$0, -56(%rbp)
	movb	$0, (%r13,%rbx)
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdx
	callq	_RegOpenKeyA
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	$0, -64(%rbp)
LBB0_2:
	movl	(%r12), %edx
	xorl	%edi, %edi
	movq	%r13, %rsi
	callq	_GetModuleFileNameA
	movl	(%r12), %r8d
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	cmpl	%r8d, %eax
	jge	LBB0_9
## %bb.4:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-72(%rbp), %rdx
	callq	_RegOpenKeyA
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %r14
	testq	%rax, %rax
	cmoveq	%r13, %r14
	movq	%r14, %rdi
	movl	$92, %esi
	callq	_strrchr
	leaq	1(%rax), %r15
	testq	%rax, %rax
	cmoveq	%r14, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcat
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	callq	_TRACE
	movq	-72(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_RegOpenKeyA
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	$0, -56(%rbp)
LBB0_7:
	movq	-72(%rbp), %rdi
	callq	_RegCloseKey
LBB0_8:
	movl	(%r12), %r8d
LBB0_9:
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rcx
	callq	_get_config_key
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	movq	_ds_emuldriver@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_11:
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movl	(%r12), %r8d
	leaq	L_.str.6(%rip), %rdx
	movq	%r13, %rcx
	callq	_get_config_key
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_atoi
	movq	_ds_hel_buflen@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_13:
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movl	(%r12), %r8d
	leaq	L_.str.7(%rip), %rdx
	movq	%r13, %rcx
	callq	_get_config_key
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_atoi
	movq	_ds_snd_queue_max@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_15:
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movl	(%r12), %r8d
	leaq	L_.str.8(%rip), %rdx
	movq	%r13, %rcx
	callq	_get_config_key
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	callq	_atoi
	movq	_ds_snd_queue_min@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_17:
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movl	(%r12), %r8d
	leaq	L_.str.9(%rip), %rdx
	movq	%r13, %rcx
	callq	_get_config_key
	testl	%eax, %eax
	jne	LBB0_27
## %bb.18:
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	leaq	L_.str.12(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	leaq	L_.str.13(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_27
## %bb.25:
	movq	_DS_HW_ACCEL_EMULATION@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_19:
	movq	_DS_HW_ACCEL_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_21:
	movq	_DS_HW_ACCEL_STANDARD@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_23:
	movq	_DS_HW_ACCEL_BASIC@GOTPCREL(%rip), %rax
LBB0_26:
	movq	(%rax), %rax
	movq	_ds_hw_accel@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_27:
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movl	(%r12), %r8d
	leaq	L_.str.14(%rip), %rdx
	movq	%r13, %rcx
	callq	_get_config_key
	testl	%eax, %eax
	jne	LBB0_29
## %bb.28:
	movq	%r13, %rdi
	callq	_atoi
	movq	_ds_default_playback@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_29:
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movl	(%r12), %r8d
	leaq	L_.str.15(%rip), %rdx
	movq	%r13, %rcx
	callq	_get_config_key
	testl	%eax, %eax
	jne	LBB0_31
## %bb.30:
	movq	%r13, %rdi
	callq	_atoi
	movq	_ds_snd_shadow_maxsize@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_31:
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movl	(%r12), %r8d
	leaq	L_.str.16(%rip), %rdx
	movq	%r13, %rcx
	callq	_get_config_key
	testl	%eax, %eax
	jne	LBB0_33
## %bb.32:
	movq	%r13, %rdi
	callq	_atoi
	movq	_ds_default_capture@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_33:
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movl	(%r12), %r8d
	leaq	L_.str.17(%rip), %rdx
	movq	%r13, %rcx
	callq	_get_config_key
	testl	%eax, %eax
	jne	LBB0_35
## %bb.34:
	movq	%r13, %rdi
	callq	_atoi
	movq	_ds_default_sample_rate@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_35:
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movl	(%r12), %r8d
	leaq	L_.str.18(%rip), %rdx
	movq	%r13, %rcx
	callq	_get_config_key
	testl	%eax, %eax
	jne	LBB0_37
## %bb.36:
	movq	%r13, %rdi
	callq	_atoi
	movq	_ds_default_bits_per_sample@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_37:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.38:
	callq	_RegCloseKey
LBB0_39:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_41
## %bb.40:
	callq	_RegCloseKey
LBB0_41:
	movq	_ds_emuldriver@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.19(%rip), %rdi
	callq	_TRACE
	movq	_ds_hel_buflen@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.20(%rip), %rdi
	callq	_TRACE
	movq	_ds_snd_queue_max@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.21(%rip), %rdi
	callq	_TRACE
	movq	_ds_snd_queue_min@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.22(%rip), %rdi
	callq	_TRACE
	movq	_ds_hw_accel@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DS_HW_ACCEL_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_43
## %bb.42:
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_48
LBB0_43:
	movq	_DS_HW_ACCEL_STANDARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_45
## %bb.44:
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_48
LBB0_45:
	movq	_DS_HW_ACCEL_BASIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_47
## %bb.46:
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_48
LBB0_47:
	movq	_DS_HW_ACCEL_EMULATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.13(%rip), %rax
	leaq	L_.str.24(%rip), %rsi
	cmoveq	%rax, %rsi
LBB0_48:
	leaq	L_.str.23(%rip), %rdi
	callq	_TRACE
	movq	_ds_default_playback@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	L_.str.25(%rip), %rdi
	callq	_TRACE
	movq	(%rbx), %rsi
	leaq	L_.str.26(%rip), %rdi
	callq	_TRACE
	movq	_ds_default_sample_rate@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.27(%rip), %rdi
	callq	_TRACE
	movq	_ds_default_bits_per_sample@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.28(%rip), %rdi
	callq	_TRACE
	movq	_ds_snd_shadow_maxsize@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.29(%rip), %rdi
	callq	_TRACE
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_50
## %bb.49:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_50:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_HKEY_CURRENT_USER,8,3          ## @HKEY_CURRENT_USER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Software\\Wine\\DirectSound"

L_.str.1:                               ## @.str.1
	.asciz	"Software\\Wine\\AppDefaults"

L_.str.2:                               ## @.str.2
	.asciz	"\\DirectSound"

L_.str.3:                               ## @.str.3
	.asciz	"appname = [%s]\n"

L_.str.4:                               ## @.str.4
	.asciz	"EmulDriver"

L_.str.5:                               ## @.str.5
	.asciz	"N"

	.comm	_ds_emuldriver,8,3              ## @ds_emuldriver
L_.str.6:                               ## @.str.6
	.asciz	"HelBuflen"

	.comm	_ds_hel_buflen,8,3              ## @ds_hel_buflen
L_.str.7:                               ## @.str.7
	.asciz	"SndQueueMax"

	.comm	_ds_snd_queue_max,8,3           ## @ds_snd_queue_max
L_.str.8:                               ## @.str.8
	.asciz	"SndQueueMin"

	.comm	_ds_snd_queue_min,8,3           ## @ds_snd_queue_min
L_.str.9:                               ## @.str.9
	.asciz	"HardwareAcceleration"

L_.str.10:                              ## @.str.10
	.asciz	"Full"

	.comm	_DS_HW_ACCEL_FULL,8,3           ## @DS_HW_ACCEL_FULL
	.comm	_ds_hw_accel,8,3                ## @ds_hw_accel
L_.str.11:                              ## @.str.11
	.asciz	"Standard"

	.comm	_DS_HW_ACCEL_STANDARD,8,3       ## @DS_HW_ACCEL_STANDARD
L_.str.12:                              ## @.str.12
	.asciz	"Basic"

	.comm	_DS_HW_ACCEL_BASIC,8,3          ## @DS_HW_ACCEL_BASIC
L_.str.13:                              ## @.str.13
	.asciz	"Emulation"

	.comm	_DS_HW_ACCEL_EMULATION,8,3      ## @DS_HW_ACCEL_EMULATION
L_.str.14:                              ## @.str.14
	.asciz	"DefaultPlayback"

	.comm	_ds_default_playback,8,3        ## @ds_default_playback
L_.str.15:                              ## @.str.15
	.asciz	"MaxShadowSize"

	.comm	_ds_snd_shadow_maxsize,8,3      ## @ds_snd_shadow_maxsize
L_.str.16:                              ## @.str.16
	.asciz	"DefaultCapture"

	.comm	_ds_default_capture,8,3         ## @ds_default_capture
L_.str.17:                              ## @.str.17
	.asciz	"DefaultSampleRate"

	.comm	_ds_default_sample_rate,8,3     ## @ds_default_sample_rate
L_.str.18:                              ## @.str.18
	.asciz	"DefaultBitsPerSample"

	.comm	_ds_default_bits_per_sample,8,3 ## @ds_default_bits_per_sample
L_.str.19:                              ## @.str.19
	.asciz	"ds_emuldriver = %d\n"

L_.str.20:                              ## @.str.20
	.asciz	"ds_hel_buflen = %d\n"

L_.str.21:                              ## @.str.21
	.asciz	"ds_snd_queue_max = %d\n"

L_.str.22:                              ## @.str.22
	.asciz	"ds_snd_queue_min = %d\n"

L_.str.23:                              ## @.str.23
	.asciz	"ds_hw_accel = %s\n"

L_.str.24:                              ## @.str.24
	.asciz	"Unknown"

L_.str.25:                              ## @.str.25
	.asciz	"ds_default_playback = %d\n"

L_.str.26:                              ## @.str.26
	.asciz	"ds_default_capture = %d\n"

L_.str.27:                              ## @.str.27
	.asciz	"ds_default_sample_rate = %d\n"

L_.str.28:                              ## @.str.28
	.asciz	"ds_default_bits_per_sample = %d\n"

L_.str.29:                              ## @.str.29
	.asciz	"ds_snd_shadow_maxsize = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_dsound_options           ; -- Begin function setup_dsound_options
	.p2align	2
_setup_dsound_options:                  ; @setup_dsound_options
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x21, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_PATH@GOTPAGEOFF]
	ldrsw	x12, [x21]
	add	w8, w12, #16
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	stur	xzr, [x29, #-104]
	strb	wzr, [x19, x12]
Lloh7:
	adrp	x20, _HKEY_CURRENT_USER@GOTPAGE
Lloh8:
	ldr	x20, [x20, _HKEY_CURRENT_USER@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #96
	bl	_RegOpenKeyA
	cbz	x0, LBB0_2
; %bb.1:
	stur	xzr, [x29, #-96]
LBB0_2:
	ldr	w2, [x21]
	mov	w0, #0
	mov	x1, x19
	bl	_GetModuleFileNameA
	ldr	w4, [x21]
	cmp	w0, #0
	ccmp	w0, w4, #0, ne
	b.ge	LBB0_8
; %bb.3:
	ldr	x0, [x20]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x2, x29, #112
	bl	_RegOpenKeyA
	cbnz	x0, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x20, x19, x0, eq
	mov	x0, x20
	mov	w1, #92
	bl	_strrchr
	cmp	x0, #0
	csinc	x20, x20, x0, eq
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcat
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	ldur	x0, [x29, #-112]
	sub	x2, x29, #104
	mov	x1, x20
	bl	_RegOpenKeyA
	cbz	x0, LBB0_6
; %bb.5:
	stur	xzr, [x29, #-104]
LBB0_6:
	ldur	x0, [x29, #-112]
	bl	_RegCloseKey
LBB0_7:
	ldr	w4, [x21]
LBB0_8:
	ldp	x1, x0, [x29, #-104]
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x3, x19
	bl	_get_config_key
Lloh19:
	adrp	x20, _ds_emuldriver@GOTPAGE
Lloh20:
	ldr	x20, [x20, _ds_emuldriver@GOTPAGEOFF]
	cbnz	w0, LBB0_10
; %bb.9:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	str	x0, [x20]
LBB0_10:
	ldp	x1, x0, [x29, #-104]
	ldr	w4, [x21]
Lloh23:
	adrp	x2, l_.str.6@PAGE
Lloh24:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x3, x19
	bl	_get_config_key
Lloh25:
	adrp	x22, _ds_hel_buflen@GOTPAGE
Lloh26:
	ldr	x22, [x22, _ds_hel_buflen@GOTPAGEOFF]
	cbnz	w0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_atoi
	str	x0, [x22]
LBB0_12:
	ldp	x1, x0, [x29, #-104]
	ldr	w4, [x21]
Lloh27:
	adrp	x2, l_.str.7@PAGE
Lloh28:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x3, x19
	bl	_get_config_key
Lloh29:
	adrp	x23, _ds_snd_queue_max@GOTPAGE
Lloh30:
	ldr	x23, [x23, _ds_snd_queue_max@GOTPAGEOFF]
	cbnz	w0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_atoi
	str	x0, [x23]
LBB0_14:
	ldp	x1, x0, [x29, #-104]
	ldr	w4, [x21]
Lloh31:
	adrp	x2, l_.str.8@PAGE
Lloh32:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x3, x19
	bl	_get_config_key
Lloh33:
	adrp	x24, _ds_snd_queue_min@GOTPAGE
Lloh34:
	ldr	x24, [x24, _ds_snd_queue_min@GOTPAGEOFF]
	cbnz	w0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_atoi
	str	x0, [x24]
LBB0_16:
	ldp	x1, x0, [x29, #-104]
	ldr	w4, [x21]
Lloh35:
	adrp	x2, l_.str.9@PAGE
Lloh36:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x3, x19
	bl	_get_config_key
Lloh37:
	adrp	x25, _ds_hw_accel@GOTPAGE
Lloh38:
	ldr	x25, [x25, _ds_hw_accel@GOTPAGEOFF]
	cbnz	w0, LBB0_26
; %bb.17:
Lloh39:
	adrp	x1, l_.str.10@PAGE
Lloh40:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_22
; %bb.18:
Lloh41:
	adrp	x1, l_.str.11@PAGE
Lloh42:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_23
; %bb.19:
Lloh43:
	adrp	x1, l_.str.12@PAGE
Lloh44:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_24
; %bb.20:
Lloh45:
	adrp	x1, l_.str.13@PAGE
Lloh46:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_26
; %bb.21:
Lloh47:
	adrp	x8, _DS_HW_ACCEL_EMULATION@GOTPAGE
Lloh48:
	ldr	x8, [x8, _DS_HW_ACCEL_EMULATION@GOTPAGEOFF]
	b	LBB0_25
LBB0_22:
Lloh49:
	adrp	x8, _DS_HW_ACCEL_FULL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DS_HW_ACCEL_FULL@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:
Lloh51:
	adrp	x8, _DS_HW_ACCEL_STANDARD@GOTPAGE
Lloh52:
	ldr	x8, [x8, _DS_HW_ACCEL_STANDARD@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh53:
	adrp	x8, _DS_HW_ACCEL_BASIC@GOTPAGE
Lloh54:
	ldr	x8, [x8, _DS_HW_ACCEL_BASIC@GOTPAGEOFF]
LBB0_25:
	ldr	x8, [x8]
	str	x8, [x25]
LBB0_26:
	ldp	x1, x0, [x29, #-104]
	ldr	w4, [x21]
Lloh55:
	adrp	x2, l_.str.14@PAGE
Lloh56:
	add	x2, x2, l_.str.14@PAGEOFF
	mov	x3, x19
	bl	_get_config_key
Lloh57:
	adrp	x26, _ds_default_playback@GOTPAGE
Lloh58:
	ldr	x26, [x26, _ds_default_playback@GOTPAGEOFF]
	cbnz	w0, LBB0_28
; %bb.27:
	mov	x0, x19
	bl	_atoi
	str	x0, [x26]
LBB0_28:
	ldp	x1, x0, [x29, #-104]
	ldr	w4, [x21]
Lloh59:
	adrp	x2, l_.str.15@PAGE
Lloh60:
	add	x2, x2, l_.str.15@PAGEOFF
	mov	x3, x19
	bl	_get_config_key
Lloh61:
	adrp	x27, _ds_snd_shadow_maxsize@GOTPAGE
Lloh62:
	ldr	x27, [x27, _ds_snd_shadow_maxsize@GOTPAGEOFF]
	cbnz	w0, LBB0_30
; %bb.29:
	mov	x0, x19
	bl	_atoi
	str	x0, [x27]
LBB0_30:
	ldp	x1, x0, [x29, #-104]
	ldr	w4, [x21]
Lloh63:
	adrp	x2, l_.str.16@PAGE
Lloh64:
	add	x2, x2, l_.str.16@PAGEOFF
	mov	x3, x19
	bl	_get_config_key
	cbnz	w0, LBB0_32
; %bb.31:
	mov	x0, x19
	bl	_atoi
Lloh65:
	adrp	x8, _ds_default_capture@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ds_default_capture@GOTPAGEOFF]
Lloh67:
	str	x0, [x8]
LBB0_32:
	ldp	x1, x0, [x29, #-104]
	ldr	w4, [x21]
Lloh68:
	adrp	x2, l_.str.17@PAGE
Lloh69:
	add	x2, x2, l_.str.17@PAGEOFF
	mov	x3, x19
	bl	_get_config_key
Lloh70:
	adrp	x28, _ds_default_sample_rate@GOTPAGE
Lloh71:
	ldr	x28, [x28, _ds_default_sample_rate@GOTPAGEOFF]
	cbnz	w0, LBB0_34
; %bb.33:
	mov	x0, x19
	bl	_atoi
	str	x0, [x28]
LBB0_34:
	ldp	x1, x0, [x29, #-104]
	ldr	w4, [x21]
Lloh72:
	adrp	x2, l_.str.18@PAGE
Lloh73:
	add	x2, x2, l_.str.18@PAGEOFF
	mov	x3, x19
	bl	_get_config_key
Lloh74:
	adrp	x21, _ds_default_bits_per_sample@GOTPAGE
Lloh75:
	ldr	x21, [x21, _ds_default_bits_per_sample@GOTPAGEOFF]
	cbnz	w0, LBB0_36
; %bb.35:
	mov	x0, x19
	bl	_atoi
	str	x0, [x21]
LBB0_36:
	ldur	x0, [x29, #-104]
	cbz	x0, LBB0_38
; %bb.37:
	bl	_RegCloseKey
LBB0_38:
	ldur	x0, [x29, #-96]
	cbz	x0, LBB0_40
; %bb.39:
	bl	_RegCloseKey
LBB0_40:
	ldr	x1, [x20]
Lloh76:
	adrp	x0, l_.str.19@PAGE
Lloh77:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_TRACE
	ldr	x1, [x22]
Lloh78:
	adrp	x0, l_.str.20@PAGE
Lloh79:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_TRACE
	ldr	x1, [x23]
Lloh80:
	adrp	x0, l_.str.21@PAGE
Lloh81:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_TRACE
	ldr	x1, [x24]
Lloh82:
	adrp	x0, l_.str.22@PAGE
Lloh83:
	add	x0, x0, l_.str.22@PAGEOFF
	bl	_TRACE
	ldr	x8, [x25]
Lloh84:
	adrp	x9, _DS_HW_ACCEL_FULL@GOTPAGE
Lloh85:
	ldr	x9, [x9, _DS_HW_ACCEL_FULL@GOTPAGEOFF]
Lloh86:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_42
; %bb.41:
Lloh87:
	adrp	x1, l_.str.10@PAGE
Lloh88:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_47
LBB0_42:
Lloh89:
	adrp	x9, _DS_HW_ACCEL_STANDARD@GOTPAGE
Lloh90:
	ldr	x9, [x9, _DS_HW_ACCEL_STANDARD@GOTPAGEOFF]
Lloh91:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_44
; %bb.43:
Lloh92:
	adrp	x1, l_.str.11@PAGE
Lloh93:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_47
LBB0_44:
Lloh94:
	adrp	x9, _DS_HW_ACCEL_BASIC@GOTPAGE
Lloh95:
	ldr	x9, [x9, _DS_HW_ACCEL_BASIC@GOTPAGEOFF]
Lloh96:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_46
; %bb.45:
Lloh97:
	adrp	x1, l_.str.12@PAGE
Lloh98:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_47
LBB0_46:
Lloh99:
	adrp	x9, _DS_HW_ACCEL_EMULATION@GOTPAGE
Lloh100:
	ldr	x9, [x9, _DS_HW_ACCEL_EMULATION@GOTPAGEOFF]
Lloh101:
	ldr	x9, [x9]
Lloh102:
	adrp	x10, l_.str.24@PAGE
Lloh103:
	add	x10, x10, l_.str.24@PAGEOFF
Lloh104:
	adrp	x11, l_.str.13@PAGE
Lloh105:
	add	x11, x11, l_.str.13@PAGEOFF
	cmp	x8, x9
	csel	x1, x11, x10, eq
LBB0_47:
Lloh106:
	adrp	x0, l_.str.23@PAGE
Lloh107:
	add	x0, x0, l_.str.23@PAGEOFF
	bl	_TRACE
	ldr	x1, [x26]
Lloh108:
	adrp	x0, l_.str.25@PAGE
Lloh109:
	add	x0, x0, l_.str.25@PAGEOFF
	bl	_TRACE
	ldr	x1, [x26]
Lloh110:
	adrp	x0, l_.str.26@PAGE
Lloh111:
	add	x0, x0, l_.str.26@PAGEOFF
	bl	_TRACE
	ldr	x1, [x28]
Lloh112:
	adrp	x0, l_.str.27@PAGE
Lloh113:
	add	x0, x0, l_.str.27@PAGEOFF
	bl	_TRACE
	ldr	x1, [x21]
Lloh114:
	adrp	x0, l_.str.28@PAGE
Lloh115:
	add	x0, x0, l_.str.28@PAGEOFF
	bl	_TRACE
	ldr	x1, [x27]
Lloh116:
	adrp	x0, l_.str.29@PAGE
Lloh117:
	add	x0, x0, l_.str.29@PAGEOFF
	bl	_TRACE
	ldur	x8, [x29, #-88]
Lloh118:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh119:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh120:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_49
; %bb.48:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_49:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotStr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpAdd	Lloh106, Lloh107
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_HKEY_CURRENT_USER,8,3          ; @HKEY_CURRENT_USER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Software\\Wine\\DirectSound"

l_.str.1:                               ; @.str.1
	.asciz	"Software\\Wine\\AppDefaults"

l_.str.2:                               ; @.str.2
	.asciz	"\\DirectSound"

l_.str.3:                               ; @.str.3
	.asciz	"appname = [%s]\n"

l_.str.4:                               ; @.str.4
	.asciz	"EmulDriver"

l_.str.5:                               ; @.str.5
	.asciz	"N"

	.comm	_ds_emuldriver,8,3              ; @ds_emuldriver
l_.str.6:                               ; @.str.6
	.asciz	"HelBuflen"

	.comm	_ds_hel_buflen,8,3              ; @ds_hel_buflen
l_.str.7:                               ; @.str.7
	.asciz	"SndQueueMax"

	.comm	_ds_snd_queue_max,8,3           ; @ds_snd_queue_max
l_.str.8:                               ; @.str.8
	.asciz	"SndQueueMin"

	.comm	_ds_snd_queue_min,8,3           ; @ds_snd_queue_min
l_.str.9:                               ; @.str.9
	.asciz	"HardwareAcceleration"

l_.str.10:                              ; @.str.10
	.asciz	"Full"

	.comm	_DS_HW_ACCEL_FULL,8,3           ; @DS_HW_ACCEL_FULL
	.comm	_ds_hw_accel,8,3                ; @ds_hw_accel
l_.str.11:                              ; @.str.11
	.asciz	"Standard"

	.comm	_DS_HW_ACCEL_STANDARD,8,3       ; @DS_HW_ACCEL_STANDARD
l_.str.12:                              ; @.str.12
	.asciz	"Basic"

	.comm	_DS_HW_ACCEL_BASIC,8,3          ; @DS_HW_ACCEL_BASIC
l_.str.13:                              ; @.str.13
	.asciz	"Emulation"

	.comm	_DS_HW_ACCEL_EMULATION,8,3      ; @DS_HW_ACCEL_EMULATION
l_.str.14:                              ; @.str.14
	.asciz	"DefaultPlayback"

	.comm	_ds_default_playback,8,3        ; @ds_default_playback
l_.str.15:                              ; @.str.15
	.asciz	"MaxShadowSize"

	.comm	_ds_snd_shadow_maxsize,8,3      ; @ds_snd_shadow_maxsize
l_.str.16:                              ; @.str.16
	.asciz	"DefaultCapture"

	.comm	_ds_default_capture,8,3         ; @ds_default_capture
l_.str.17:                              ; @.str.17
	.asciz	"DefaultSampleRate"

	.comm	_ds_default_sample_rate,8,3     ; @ds_default_sample_rate
l_.str.18:                              ; @.str.18
	.asciz	"DefaultBitsPerSample"

	.comm	_ds_default_bits_per_sample,8,3 ; @ds_default_bits_per_sample
l_.str.19:                              ; @.str.19
	.asciz	"ds_emuldriver = %d\n"

l_.str.20:                              ; @.str.20
	.asciz	"ds_hel_buflen = %d\n"

l_.str.21:                              ; @.str.21
	.asciz	"ds_snd_queue_max = %d\n"

l_.str.22:                              ; @.str.22
	.asciz	"ds_snd_queue_min = %d\n"

l_.str.23:                              ; @.str.23
	.asciz	"ds_hw_accel = %s\n"

l_.str.24:                              ; @.str.24
	.asciz	"Unknown"

l_.str.25:                              ; @.str.25
	.asciz	"ds_default_playback = %d\n"

l_.str.26:                              ; @.str.26
	.asciz	"ds_default_capture = %d\n"

l_.str.27:                              ; @.str.27
	.asciz	"ds_default_sample_rate = %d\n"

l_.str.28:                              ; @.str.28
	.asciz	"ds_default_bits_per_sample = %d\n"

l_.str.29:                              ; @.str.29
	.asciz	"ds_snd_shadow_maxsize = %d\n"

.subsections_via_symbols
