	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadConfig
_ReadConfig:                            ## @ReadConfig
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_l_ConfigAudio@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ConfigGetParamInt
	movq	_GameFreq@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_ConfigGetParamBool
	movq	_SwapChannels@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_ConfigGetParamInt
	movq	_PrimaryBufferSize@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_ConfigGetParamInt
	movq	_PrimaryBufferTarget@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_ConfigGetParamInt
	movq	_SecondaryBufferSize@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_ConfigGetParamString
	movq	%rax, %r14
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_ConfigGetParamInt
	movq	_VolumeControlType@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_ConfigGetParamInt
	movq	_VolDelta@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%rbx), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_ConfigGetParamInt
	movq	_VolPercent@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_M64MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_3:
	movq	_RESAMPLER_TRIVIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Resample@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_RESAMPLER_TRIVIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Resample@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_M64MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DebugMessage                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_l_ConfigAudio,4,2              ## @l_ConfigAudio
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DEFAULT_FREQUENCY"

	.comm	_GameFreq,8,3                   ## @GameFreq
L_.str.1:                               ## @.str.1
	.asciz	"SWAP_CHANNELS"

	.comm	_SwapChannels,4,2               ## @SwapChannels
L_.str.2:                               ## @.str.2
	.asciz	"PRIMARY_BUFFER_SIZE"

	.comm	_PrimaryBufferSize,8,3          ## @PrimaryBufferSize
L_.str.3:                               ## @.str.3
	.asciz	"PRIMARY_BUFFER_TARGET"

	.comm	_PrimaryBufferTarget,8,3        ## @PrimaryBufferTarget
L_.str.4:                               ## @.str.4
	.asciz	"SECONDARY_BUFFER_SIZE"

	.comm	_SecondaryBufferSize,8,3        ## @SecondaryBufferSize
L_.str.5:                               ## @.str.5
	.asciz	"RESAMPLE"

L_.str.6:                               ## @.str.6
	.asciz	"VOLUME_CONTROL_TYPE"

	.comm	_VolumeControlType,8,3          ## @VolumeControlType
L_.str.7:                               ## @.str.7
	.asciz	"VOLUME_ADJUST"

	.comm	_VolDelta,8,3                   ## @VolDelta
L_.str.8:                               ## @.str.8
	.asciz	"VOLUME_DEFAULT"

	.comm	_VolPercent,8,3                 ## @VolPercent
	.comm	_RESAMPLER_TRIVIAL,4,2          ## @RESAMPLER_TRIVIAL
	.comm	_Resample,4,2                   ## @Resample
	.comm	_M64MSG_WARNING,4,2             ## @M64MSG_WARNING
L_.str.9:                               ## @.str.9
	.asciz	"Could not find RESAMPLE configuration; use trivial resampler"

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

L_.str.11:                              ## @.str.11
	.asciz	"Unknown RESAMPLE configuration %s; use trivial resampler"

	.comm	_RESAMPLER_SPEEX,4,2            ## @RESAMPLER_SPEEX
	.comm	_RESAMPLER_SRC,4,2              ## @RESAMPLER_SRC
	.comm	_ResampleQuality,4,2            ## @ResampleQuality
	.comm	_SRC_LINEAR,4,2                 ## @SRC_LINEAR
	.comm	_SRC_SINC_BEST_QUALITY,4,2      ## @SRC_SINC_BEST_QUALITY
	.comm	_SRC_SINC_FASTEST,4,2           ## @SRC_SINC_FASTEST
	.comm	_SRC_SINC_MEDIUM_QUALITY,4,2    ## @SRC_SINC_MEDIUM_QUALITY
	.comm	_SRC_ZERO_ORDER_HOLD,4,2        ## @SRC_ZERO_ORDER_HOLD
	.no_dead_strip	_ReadConfig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadConfig
_ReadConfig:                            ; @ReadConfig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _l_ConfigAudio@GOTPAGE
Lloh1:
	ldr	x20, [x20, _l_ConfigAudio@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ConfigGetParamInt
Lloh4:
	adrp	x8, _GameFreq@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GameFreq@GOTPAGEOFF]
Lloh6:
	str	x0, [x8]
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ConfigGetParamBool
Lloh9:
	adrp	x8, _SwapChannels@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SwapChannels@GOTPAGEOFF]
Lloh11:
	str	w0, [x8]
	ldr	w0, [x20]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ConfigGetParamInt
Lloh14:
	adrp	x8, _PrimaryBufferSize@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PrimaryBufferSize@GOTPAGEOFF]
Lloh16:
	str	x0, [x8]
	ldr	w0, [x20]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ConfigGetParamInt
Lloh19:
	adrp	x8, _PrimaryBufferTarget@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PrimaryBufferTarget@GOTPAGEOFF]
Lloh21:
	str	x0, [x8]
	ldr	w0, [x20]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ConfigGetParamInt
Lloh24:
	adrp	x8, _SecondaryBufferSize@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SecondaryBufferSize@GOTPAGEOFF]
Lloh26:
	str	x0, [x8]
	ldr	w0, [x20]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_ConfigGetParamString
	mov	x19, x0
	ldr	w0, [x20]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_ConfigGetParamInt
Lloh31:
	adrp	x8, _VolumeControlType@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VolumeControlType@GOTPAGEOFF]
Lloh33:
	str	x0, [x8]
	ldr	w0, [x20]
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_ConfigGetParamInt
Lloh36:
	adrp	x8, _VolDelta@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VolDelta@GOTPAGEOFF]
Lloh38:
	str	x0, [x8]
	ldr	w0, [x20]
Lloh39:
	adrp	x1, l_.str.8@PAGE
Lloh40:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_ConfigGetParamInt
Lloh41:
	adrp	x8, _VolPercent@GOTPAGE
Lloh42:
	ldr	x8, [x8, _VolPercent@GOTPAGEOFF]
Lloh43:
	str	x0, [x8]
	cbz	x19, LBB0_4
; %bb.1:
Lloh44:
	adrp	x1, l_.str.10@PAGE
Lloh45:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.2:
Lloh46:
	adrp	x8, _M64MSG_WARNING@GOTPAGE
Lloh47:
	ldr	x8, [x8, _M64MSG_WARNING@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh49:
	adrp	x1, l_.str.11@PAGE
Lloh50:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_DebugMessage
LBB0_3:
Lloh51:
	adrp	x8, _RESAMPLER_TRIVIAL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _RESAMPLER_TRIVIAL@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _Resample@GOTPAGE
Lloh55:
	ldr	x9, [x9, _Resample@GOTPAGEOFF]
Lloh56:
	str	w8, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh57:
	adrp	x8, _RESAMPLER_TRIVIAL@GOTPAGE
Lloh58:
	ldr	x8, [x8, _RESAMPLER_TRIVIAL@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
Lloh60:
	adrp	x9, _Resample@GOTPAGE
Lloh61:
	ldr	x9, [x9, _Resample@GOTPAGEOFF]
Lloh62:
	adrp	x10, _M64MSG_WARNING@GOTPAGE
Lloh63:
	ldr	x10, [x10, _M64MSG_WARNING@GOTPAGEOFF]
Lloh64:
	str	w8, [x9]
Lloh65:
	ldr	w0, [x10]
Lloh66:
	adrp	x1, l_.str.9@PAGE
Lloh67:
	add	x1, x1, l_.str.9@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_DebugMessage
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh65
	.loh AdrpLdrGotStr	Lloh60, Lloh61, Lloh64
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_l_ConfigAudio,4,2              ; @l_ConfigAudio
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DEFAULT_FREQUENCY"

	.comm	_GameFreq,8,3                   ; @GameFreq
l_.str.1:                               ; @.str.1
	.asciz	"SWAP_CHANNELS"

	.comm	_SwapChannels,4,2               ; @SwapChannels
l_.str.2:                               ; @.str.2
	.asciz	"PRIMARY_BUFFER_SIZE"

	.comm	_PrimaryBufferSize,8,3          ; @PrimaryBufferSize
l_.str.3:                               ; @.str.3
	.asciz	"PRIMARY_BUFFER_TARGET"

	.comm	_PrimaryBufferTarget,8,3        ; @PrimaryBufferTarget
l_.str.4:                               ; @.str.4
	.asciz	"SECONDARY_BUFFER_SIZE"

	.comm	_SecondaryBufferSize,8,3        ; @SecondaryBufferSize
l_.str.5:                               ; @.str.5
	.asciz	"RESAMPLE"

l_.str.6:                               ; @.str.6
	.asciz	"VOLUME_CONTROL_TYPE"

	.comm	_VolumeControlType,8,3          ; @VolumeControlType
l_.str.7:                               ; @.str.7
	.asciz	"VOLUME_ADJUST"

	.comm	_VolDelta,8,3                   ; @VolDelta
l_.str.8:                               ; @.str.8
	.asciz	"VOLUME_DEFAULT"

	.comm	_VolPercent,8,3                 ; @VolPercent
	.comm	_RESAMPLER_TRIVIAL,4,2          ; @RESAMPLER_TRIVIAL
	.comm	_Resample,4,2                   ; @Resample
	.comm	_M64MSG_WARNING,4,2             ; @M64MSG_WARNING
l_.str.9:                               ; @.str.9
	.asciz	"Could not find RESAMPLE configuration; use trivial resampler"

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

l_.str.11:                              ; @.str.11
	.asciz	"Unknown RESAMPLE configuration %s; use trivial resampler"

	.comm	_RESAMPLER_SPEEX,4,2            ; @RESAMPLER_SPEEX
	.comm	_RESAMPLER_SRC,4,2              ; @RESAMPLER_SRC
	.comm	_ResampleQuality,4,2            ; @ResampleQuality
	.comm	_SRC_LINEAR,4,2                 ; @SRC_LINEAR
	.comm	_SRC_SINC_BEST_QUALITY,4,2      ; @SRC_SINC_BEST_QUALITY
	.comm	_SRC_SINC_FASTEST,4,2           ; @SRC_SINC_FASTEST
	.comm	_SRC_SINC_MEDIUM_QUALITY,4,2    ; @SRC_SINC_MEDIUM_QUALITY
	.comm	_SRC_ZERO_ORDER_HOLD,4,2        ; @SRC_ZERO_ORDER_HOLD
	.no_dead_strip	_ReadConfig
.subsections_via_symbols
