	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadSettings
_ReadSettings:                          ## @ReadSettings
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	148(%rdi), %rdx
	movl	$4, 148(%rdi)
	movq	_SPI_GETSTICKYKEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	xorl	%ecx, %ecx
	callq	_SystemParametersInfo
	movq	_FALSE@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	leaq	136(%rbx), %rdx
	movl	$4, 136(%rbx)
	movq	_SPI_GETFILTERKEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	xorl	%ecx, %ecx
	callq	_SystemParametersInfo
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	leaq	124(%rbx), %rdx
	movl	$4, 124(%rbx)
	movq	_SPI_GETTOGGLEKEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	xorl	%ecx, %ecx
	callq	_SystemParametersInfo
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movq	_SPI_GETKEYBOARDPREF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	112(%rbx), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_SystemParametersInfo
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	leaq	100(%rbx), %rdx
	movl	$4, 100(%rbx)
	movq	_SPI_GETHIGHCONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	xorl	%ecx, %ecx
	callq	_SystemParametersInfo
	movq	_SPI_GETCARETWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	88(%rbx), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_SystemParametersInfo
	xorl	%eax, %eax
	callq	_GetCaretBlinkTime
	movl	%eax, 84(%rbx)
	leaq	72(%rbx), %rdx
	movl	$4, 72(%rbx)
	movq	_SPI_GETSOUNDSENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	xorl	%ecx, %ecx
	callq	_SystemParametersInfo
	movq	_SPI_GETSHOWSOUNDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	60(%rbx), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_SystemParametersInfo
	leaq	48(%rbx), %rdx
	movl	$4, 48(%rbx)
	movq	_SPI_GETMOUSEKEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	xorl	%ecx, %ecx
	callq	_SystemParametersInfo
	leaq	36(%rbx), %rdx
	movl	$4, 36(%rbx)
	movq	_SPI_GETACCESSTIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	xorl	%ecx, %ecx
	callq	_SystemParametersInfo
	leaq	16(%rbx), %rdx
	movl	$4, 16(%rbx)
	movq	28(%rbx), %rax
	movq	%rax, 20(%rbx)
	movq	_SPI_GETSERIALKEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	xorl	%ecx, %ecx
	callq	_SystemParametersInfo
	movq	_TRUE@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, 8(%rbx)
	movq	%rax, (%rbx)
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_KEY_EXECUTE@GOTPCREL(%rip), %rcx
	movq	_KEY_QUERY_VALUE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	orl	(%rcx), %r9d
	subq	$8, %rsp
	leaq	-52(%rbp), %r10
	leaq	-44(%rbp), %r11
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%r10
	pushq	%r11
	pushq	$0
	callq	_RegCreateKeyEx
	addq	$32, %rsp
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.5:
	leaq	8(%rbx), %r14
	movl	$8, -48(%rbp)
	movl	-44(%rbp), %r15d
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	leaq	-48(%rbp), %r9
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	callq	_RegQueryValueEx
	cmpq	(%r13), %rax
	je	LBB0_7
## %bb.6:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_7:
	movl	$8, -48(%rbp)
	movl	-44(%rbp), %r14d
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	leaq	-48(%rbp), %r9
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_RegQueryValueEx
	cmpq	(%r13), %rax
	je	LBB0_9
## %bb.8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_9:
	movl	-44(%rbp), %edi
	callq	_RegCloseKey
LBB0_10:
	movq	(%r12), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_GETSTICKYKEYS,4,2          ## @SPI_GETSTICKYKEYS
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_SPI_GETFILTERKEYS,4,2          ## @SPI_GETFILTERKEYS
	.comm	_SPI_GETTOGGLEKEYS,4,2          ## @SPI_GETTOGGLEKEYS
	.comm	_SPI_GETKEYBOARDPREF,4,2        ## @SPI_GETKEYBOARDPREF
	.comm	_SPI_GETHIGHCONTRAST,4,2        ## @SPI_GETHIGHCONTRAST
	.comm	_SPI_GETCARETWIDTH,4,2          ## @SPI_GETCARETWIDTH
	.comm	_SPI_GETSOUNDSENTRY,4,2         ## @SPI_GETSOUNDSENTRY
	.comm	_SPI_GETSHOWSOUNDS,4,2          ## @SPI_GETSHOWSOUNDS
	.comm	_SPI_GETMOUSEKEYS,4,2           ## @SPI_GETMOUSEKEYS
	.comm	_SPI_GETACCESSTIMEOUT,4,2       ## @SPI_GETACCESSTIMEOUT
	.comm	_SPI_GETSERIALKEYS,4,2          ## @SPI_GETSERIALKEYS
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Control Panel\\Accessibility"

	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_KEY_EXECUTE,4,2                ## @KEY_EXECUTE
	.comm	_KEY_QUERY_VALUE,4,2            ## @KEY_QUERY_VALUE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"Warning Sounds"

L_.str.2:                               ## @.str.2
	.asciz	"Sound On Activation"

	.no_dead_strip	_ReadSettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadSettings
_ReadSettings:                          ; @ReadSettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	mov	w20, #4
	mov	x2, x0
	str	w20, [x2, #148]!
Lloh0:
	adrp	x8, _SPI_GETSTICKYKEYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_GETSTICKYKEYS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #4
	mov	w3, #0
	bl	_SystemParametersInfo
	cbz	w0, LBB0_10
; %bb.1:
	mov	x2, x19
	str	w20, [x2, #136]!
Lloh3:
	adrp	x8, _SPI_GETFILTERKEYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_GETFILTERKEYS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #4
	mov	w3, #0
	bl	_SystemParametersInfo
	cbz	w0, LBB0_10
; %bb.2:
	mov	w8, #4
	mov	x2, x19
	str	w8, [x2, #124]!
Lloh6:
	adrp	x8, _SPI_GETTOGGLEKEYS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPI_GETTOGGLEKEYS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #4
	mov	w3, #0
	bl	_SystemParametersInfo
	cbz	w0, LBB0_10
; %bb.3:
Lloh9:
	adrp	x8, _SPI_GETKEYBOARDPREF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SPI_GETKEYBOARDPREF@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x2, x19, #112
	mov	w1, #0
	mov	w3, #0
	bl	_SystemParametersInfo
	cbz	w0, LBB0_10
; %bb.4:
	mov	w20, #4
	mov	x2, x19
	str	w20, [x2, #100]!
Lloh12:
	adrp	x8, _SPI_GETHIGHCONTRAST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPI_GETHIGHCONTRAST@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #4
	mov	w3, #0
	bl	_SystemParametersInfo
Lloh15:
	adrp	x8, _SPI_GETCARETWIDTH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SPI_GETCARETWIDTH@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x2, x19, #88
	mov	w1, #0
	mov	w3, #0
	bl	_SystemParametersInfo
	bl	_GetCaretBlinkTime
	str	w0, [x19, #84]
	mov	x2, x19
	str	w20, [x2, #72]!
Lloh18:
	adrp	x8, _SPI_GETSOUNDSENTRY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPI_GETSOUNDSENTRY@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	w1, #4
	mov	w3, #0
	bl	_SystemParametersInfo
Lloh21:
	adrp	x8, _SPI_GETSHOWSOUNDS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SPI_GETSHOWSOUNDS@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	add	x2, x19, #60
	mov	w1, #0
	mov	w3, #0
	bl	_SystemParametersInfo
	mov	x2, x19
	str	w20, [x2, #48]!
Lloh24:
	adrp	x8, _SPI_GETMOUSEKEYS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SPI_GETMOUSEKEYS@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	w1, #4
	mov	w3, #0
	bl	_SystemParametersInfo
	mov	x2, x19
	str	w20, [x2, #36]!
Lloh27:
	adrp	x8, _SPI_GETACCESSTIMEOUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SPI_GETACCESSTIMEOUT@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	w1, #4
	mov	w3, #0
	bl	_SystemParametersInfo
	mov	x2, x19
	str	w20, [x2, #16]!
	ldur	d0, [x19, #28]
	stur	d0, [x19, #20]
Lloh30:
	adrp	x8, _SPI_GETSERIALKEYS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SPI_GETSERIALKEYS@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	w1, #4
	mov	w3, #0
	bl	_SystemParametersInfo
Lloh33:
	adrp	x22, _TRUE@GOTPAGE
Lloh34:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	ldr	x8, [x22]
	mov	x20, x19
	str	x8, [x20, #8]!
	str	x8, [x19]
Lloh35:
	adrp	x8, _HKEY_CURRENT_USER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HKEY_CURRENT_USER@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
Lloh38:
	adrp	x0, l_.str@PAGE
Lloh39:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
Lloh40:
	adrp	x8, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
Lloh42:
	adrp	x9, _KEY_EXECUTE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _KEY_EXECUTE@GOTPAGEOFF]
Lloh44:
	ldr	w4, [x8]
Lloh45:
	ldr	w8, [x9]
Lloh46:
	adrp	x9, _KEY_QUERY_VALUE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _KEY_QUERY_VALUE@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w5, w9, w8
	add	x8, sp, #28
	str	x8, [sp]
	add	x7, sp, #20
	mov	x0, x21
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_RegCreateKeyEx
Lloh49:
	adrp	x23, _ERROR_SUCCESS@GOTPAGE
Lloh50:
	ldr	x23, [x23, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.5:
	mov	w24, #8
	str	w24, [sp, #24]
	ldr	w21, [sp, #20]
Lloh51:
	adrp	x0, l_.str.1@PAGE
Lloh52:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	mov	x1, x0
	add	x5, sp, #24
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	mov	x4, x20
	bl	_RegQueryValueEx
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x22]
	str	x8, [x20]
LBB0_7:
	str	w24, [sp, #24]
	ldr	w20, [sp, #20]
Lloh53:
	adrp	x0, l_.str.2@PAGE
Lloh54:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__T
	mov	x1, x0
	add	x5, sp, #24
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_RegQueryValueEx
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x22]
	str	x8, [x19]
LBB0_9:
	ldr	w0, [sp, #20]
	bl	_RegCloseKey
Lloh55:
	adrp	x22, _TRUE@GOTPAGE
Lloh56:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh57:
	adrp	x22, _FALSE@GOTPAGE
Lloh58:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
LBB0_11:
	ldr	x0, [x22]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh44
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_GETSTICKYKEYS,4,2          ; @SPI_GETSTICKYKEYS
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_SPI_GETFILTERKEYS,4,2          ; @SPI_GETFILTERKEYS
	.comm	_SPI_GETTOGGLEKEYS,4,2          ; @SPI_GETTOGGLEKEYS
	.comm	_SPI_GETKEYBOARDPREF,4,2        ; @SPI_GETKEYBOARDPREF
	.comm	_SPI_GETHIGHCONTRAST,4,2        ; @SPI_GETHIGHCONTRAST
	.comm	_SPI_GETCARETWIDTH,4,2          ; @SPI_GETCARETWIDTH
	.comm	_SPI_GETSOUNDSENTRY,4,2         ; @SPI_GETSOUNDSENTRY
	.comm	_SPI_GETSHOWSOUNDS,4,2          ; @SPI_GETSHOWSOUNDS
	.comm	_SPI_GETMOUSEKEYS,4,2           ; @SPI_GETMOUSEKEYS
	.comm	_SPI_GETACCESSTIMEOUT,4,2       ; @SPI_GETACCESSTIMEOUT
	.comm	_SPI_GETSERIALKEYS,4,2          ; @SPI_GETSERIALKEYS
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Control Panel\\Accessibility"

	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_KEY_EXECUTE,4,2                ; @KEY_EXECUTE
	.comm	_KEY_QUERY_VALUE,4,2            ; @KEY_QUERY_VALUE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"Warning Sounds"

l_.str.2:                               ; @.str.2
	.asciz	"Sound On Activation"

	.no_dead_strip	_ReadSettings
.subsections_via_symbols
