	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ApplyChanges                   ## -- Begin function ApplyChanges
	.p2align	4, 0x90
_ApplyChanges:                          ## @ApplyChanges
	.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	$424, %rsp                      ## imm = 0x1A8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IDC_SOUND_SCHEME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %ebx
	movq	_CB_GETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessage
	movq	_CB_ERR@GOTPCREL(%rip), %r14
	movq	_FALSE@GOTPCREL(%rip), %r12
	cmpq	(%r14), %rax
	je	LBB0_10
## %bb.1:
	movq	_CB_GETITEMDATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_SendMessage
	cmpq	(%r14), %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r15
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	_KEY_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-452(%rbp), %r8
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_RegOpenKeyEx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_10
## %bb.3:
	movl	%r13d, -460(%rbp)               ## 4-byte Spill
	movl	-452(%rbp), %r13d
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -464(%rbp)                ## 4-byte Spill
	movq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	__tcslen
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r9d
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	-464(%rbp), %ecx                ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_RegSetValueEx
	movl	-452(%rbp), %edi
	callq	_RegCloseKey
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	movq	_KEY_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-452(%rbp), %r8
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_RegOpenKeyEx
	cmpq	(%r14), %rax
	jne	LBB0_10
## %bb.4:
	movq	(%r15), %r14
	testq	%r14, %r14
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r13
	je	LBB0_9
## %bb.5:
	leaq	L_.str.2(%rip), %r15
	leaq	-448(%rbp), %rbx
	leaq	-456(%rbp), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %r14
	testq	%r14, %r14
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	__T
	movq	16(%r14), %rcx
	movq	24(%r14), %rdx
	movl	(%rdx), %edx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	__stprintf
	movl	-452(%rbp), %edi
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_RegOpenKeyEx
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-456(%rbp), %r13d
	movq	_REG_EXPAND_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%r14), %r12
	movq	%r12, %rdi
	callq	__tcslen
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r9d
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	leaq	L_.str.2(%rip), %r15
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r13
	movl	%r12d, %r8d
	leaq	-456(%rbp), %r12
	leaq	-448(%rbp), %rbx
	callq	_RegSetValueEx
	movl	-456(%rbp), %edi
	callq	_RegCloseKey
	jmp	LBB0_8
LBB0_9:
	movl	-452(%rbp), %edi
	callq	_RegCloseKey
	movq	_DWLP_MSGRESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PSNRET_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-460(%rbp), %edi                ## 4-byte Reload
	callq	_SetWindowLongPtr
	movq	_TRUE@GOTPCREL(%rip), %r12
LBB0_10:
	movl	(%r12), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$424, %rsp                      ## imm = 0x1A8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_SOUND_SCHEME,4,2           ## @IDC_SOUND_SCHEME
	.comm	_CB_GETCURSEL,4,2               ## @CB_GETCURSEL
	.comm	_CB_ERR,8,3                     ## @CB_ERR
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CB_GETITEMDATA,4,2             ## @CB_GETITEMDATA
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AppEvents\\Schemes"

	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_REG_SZ,4,2                     ## @REG_SZ
L_.str.1:                               ## @.str.1
	.asciz	"AppEvents\\Schemes\\Apps"

L_.str.2:                               ## @.str.2
	.asciz	"%s\\%s\\.Current"

	.comm	_REG_EXPAND_SZ,4,2              ## @REG_EXPAND_SZ
	.comm	_DWLP_MSGRESULT,4,2             ## @DWLP_MSGRESULT
	.comm	_PSNRET_NOERROR,8,3             ## @PSNRET_NOERROR
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ApplyChanges                   ; -- Begin function ApplyChanges
	.p2align	2
_ApplyChanges:                          ; @ApplyChanges
	.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, #416
	mov	x19, x0
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	x8, _IDC_SOUND_SCHEME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDC_SOUND_SCHEME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x20, x0
Lloh6:
	adrp	x8, _CB_GETCURSEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CB_GETCURSEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessage
Lloh9:
	adrp	x21, _CB_ERR@GOTPAGE
Lloh10:
	ldr	x21, [x21, _CB_ERR@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.1:
	mov	x2, x0
Lloh11:
	adrp	x8, _CB_GETITEMDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CB_GETITEMDATA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #0
	bl	_SendMessage
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.2:
	mov	x20, x0
Lloh14:
	adrp	x26, _HKEY_CURRENT_USER@GOTPAGE
Lloh15:
	ldr	x26, [x26, _HKEY_CURRENT_USER@GOTPAGEOFF]
	ldr	w21, [x26]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
Lloh18:
	adrp	x24, _KEY_WRITE@GOTPAGE
Lloh19:
	ldr	x24, [x24, _KEY_WRITE@GOTPAGEOFF]
	ldr	w3, [x24]
	add	x4, sp, #4
	mov	x0, x21
	mov	w2, #0
	bl	_RegOpenKeyEx
Lloh20:
	adrp	x25, _ERROR_SUCCESS@GOTPAGE
Lloh21:
	ldr	x25, [x25, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.3:
	ldr	w21, [sp, #4]
Lloh22:
	adrp	x8, _REG_SZ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REG_SZ@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
	ldr	x23, [x20, #8]
	mov	x0, x23
	bl	__tcslen
	lsl	w8, w0, #2
	add	w5, w8, #4
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	mov	x3, x22
	mov	x4, x23
	bl	_RegSetValueEx
	ldr	w0, [sp, #4]
	bl	_RegCloseKey
	ldr	w21, [x26]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	mov	x1, x0
	ldr	w3, [x24]
	add	x4, sp, #4
	mov	x0, x21
	mov	w2, #0
	bl	_RegOpenKeyEx
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.4:
	ldr	x26, [x20]
	cbz	x26, LBB0_12
; %bb.5:
Lloh27:
	adrp	x20, l_.str.2@PAGE
Lloh28:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh29:
	adrp	x27, _REG_EXPAND_SZ@GOTPAGE
Lloh30:
	ldr	x27, [x27, _REG_EXPAND_SZ@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x26, [x26]
	cbz	x26, LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	__T
	mov	x1, x0
	ldp	x9, x8, [x26, #16]
	ldr	w2, [x8]
	ldr	w3, [x9]
	add	x0, sp, #8
	bl	__stprintf
	ldr	w0, [sp, #4]
	ldr	w3, [x24]
	add	x1, sp, #8
	mov	x4, sp
	mov	w2, #0
	bl	_RegOpenKeyEx
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w21, [sp]
	ldr	w22, [x27]
	ldr	x23, [x26, #8]
	mov	x0, x23
	bl	__tcslen
	lsl	w8, w0, #2
	add	w5, w8, #4
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	mov	x3, x22
	mov	x4, x23
	bl	_RegSetValueEx
	ldr	w0, [sp]
	bl	_RegCloseKey
	b	LBB0_6
LBB0_9:
Lloh31:
	adrp	x8, _FALSE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	add	sp, sp, #416
	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_12:
	ldr	w0, [sp, #4]
	bl	_RegCloseKey
Lloh36:
	adrp	x8, _DWLP_MSGRESULT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DWLP_MSGRESULT@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _PSNRET_NOERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PSNRET_NOERROR@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_SetWindowLongPtr
Lloh42:
	adrp	x8, _TRUE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_SOUND_SCHEME,4,2           ; @IDC_SOUND_SCHEME
	.comm	_CB_GETCURSEL,4,2               ; @CB_GETCURSEL
	.comm	_CB_ERR,8,3                     ; @CB_ERR
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CB_GETITEMDATA,4,2             ; @CB_GETITEMDATA
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AppEvents\\Schemes"

	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_REG_SZ,4,2                     ; @REG_SZ
l_.str.1:                               ; @.str.1
	.asciz	"AppEvents\\Schemes\\Apps"

l_.str.2:                               ; @.str.2
	.asciz	"%s\\%s\\.Current"

	.comm	_REG_EXPAND_SZ,4,2              ; @REG_EXPAND_SZ
	.comm	_DWLP_MSGRESULT,4,2             ; @DWLP_MSGRESULT
	.comm	_PSNRET_NOERROR,8,3             ; @PSNRET_NOERROR
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
