	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MRU_SaveChanged
_MRU_SaveChanged:                       ## @MRU_SaveChanged
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	36(%rdi), %edi
	movq	24(%r13), %rsi
	movq	_KEY_WRITE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-48(%rbp), %r14
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_RegOpenKeyExW
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_ERR
	movl	36(%r13), %edi
	movq	24(%r13), %rsi
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rbx), %r9d
	orl	(%rax), %r9d
	subq	$8, %rsp
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	$0
	pushq	%r14
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r14
	movq	24(%r13), %rdi
	callq	_debugstr_w
	movslq	%eax, %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_17
LBB0_3:
	movl	(%r13), %eax
	movq	_WMRUF_CHANGED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_7
## %bb.4:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r13)
	movl	-48(%rbp), %r14d
	movq	_strMRUList@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_strlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %r9d
	movl	%r14d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movq	%rbx, %r8
	callq	_RegSetValueExW
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_ERR
LBB0_6:
	movq	8(%r13), %rdi
	callq	_debugstr_w
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_7:
	movb	$0, -41(%rbp)
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	leaq	-42(%rbp), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_debugstr_w
	movl	4(%r12), %edx
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	16(%r13), %rax
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	cmpq	%rax, %r15
	jae	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rcx
	movq	(%rcx,%r15,8), %r12
	movl	(%r12), %ecx
	movq	_WMRUIF_CHANGED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%r12)
	leal	97(%r15), %eax
	movb	%al, -42(%rbp)
	movq	_MRU_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_REG_BINARY@GOTPCREL(%rip), %rax
	andl	32(%r13), %ecx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_REG_SZ@GOTPCREL(%rip), %rax
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-48(%rbp), %edi
	movl	(%rax), %ecx
	leaq	8(%r12), %r8
	movl	4(%r12), %r9d
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_RegSetValueExW
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_debugstr_w
	movslq	%eax, %rsi
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_14
LBB0_16:
	movl	-48(%rbp), %edi
	callq	_RegCloseKey
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not open key, error=%d, attempting to create\n"

	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_KEY_READ,4,2                   ## @KEY_READ
L_.str.1:                               ## @.str.1
	.asciz	"failed to create key /%s/, err=%d\n"

	.comm	_WMRUF_CHANGED,4,2              ## @WMRUF_CHANGED
	.comm	_strMRUList,8,3                 ## @strMRUList
	.comm	_REG_SZ,4,2                     ## @REG_SZ
L_.str.2:                               ## @.str.2
	.asciz	"error saving MRUList, err=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"saving MRUList=/%s/\n"

	.comm	_WMRUIF_CHANGED,4,2             ## @WMRUIF_CHANGED
	.comm	_MRU_BINARY,4,2                 ## @MRU_BINARY
	.comm	_REG_BINARY,4,2                 ## @REG_BINARY
L_.str.4:                               ## @.str.4
	.asciz	"error saving /%s/, err=%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"saving value for name /%s/ size=%d\n"

	.no_dead_strip	_MRU_SaveChanged
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MRU_SaveChanged
_MRU_SaveChanged:                       ; @MRU_SaveChanged
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldr	w0, [x0, #36]
	ldr	x1, [x19, #24]
Lloh0:
	adrp	x20, _KEY_WRITE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _KEY_WRITE@GOTPAGEOFF]
	ldr	w3, [x20]
	add	x4, sp, #12
	mov	w2, #0
	bl	_RegOpenKeyExW
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
	ldr	w0, [x19, #36]
	ldr	x1, [x19, #24]
Lloh4:
	adrp	x8, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
Lloh7:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w5, w9, w8
	str	wzr, [sp]
	add	x7, sp, #12
	mov	w2, #0
	mov	x3, #0
	mov	w6, #0
	bl	_RegCreateKeyExW
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
	ldr	x0, [x19, #24]
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x20, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
	b	LBB0_15
LBB0_3:
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _WMRUF_CHANGED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WMRUF_CHANGED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x24, _REG_SZ@GOTPAGE
Lloh16:
	ldr	x24, [x24, _REG_SZ@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	w20, [sp, #12]
Lloh17:
	adrp	x8, _strMRUList@GOTPAGE
Lloh18:
	ldr	x8, [x8, _strMRUList@GOTPAGEOFF]
Lloh19:
	ldr	x21, [x8]
	ldr	w22, [x24]
	ldr	x23, [x19, #8]
	mov	x0, x23
	bl	_strlenW
	add	w5, w0, #1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	mov	x4, x23
	bl	_RegSetValueExW
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_debugstr_w
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
LBB0_7:
	strb	wzr, [sp, #11]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.8:
	mov	x23, #0
Lloh24:
	adrp	x25, _WMRUIF_CHANGED@GOTPAGE
Lloh25:
	ldr	x25, [x25, _WMRUIF_CHANGED@GOTPAGEOFF]
Lloh26:
	adrp	x26, _MRU_BINARY@GOTPAGE
Lloh27:
	ldr	x26, [x26, _MRU_BINARY@GOTPAGEOFF]
Lloh28:
	adrp	x27, _REG_BINARY@GOTPAGE
Lloh29:
	ldr	x27, [x27, _REG_BINARY@GOTPAGEOFF]
Lloh30:
	adrp	x20, l_.str.5@PAGE
Lloh31:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh32:
	adrp	x21, l_.str.4@PAGE
Lloh33:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #10
	bl	_debugstr_w
	mov	x1, x0
	ldr	w8, [x28, #4]
	str	x8, [sp]
	mov	x0, x20
	bl	_TRACE
	ldr	x8, [x19, #16]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	cmp	x23, x8
	b.hs	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #40]
	ldr	x28, [x9, x23, lsl #3]
	ldr	w9, [x28]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	bic	w8, w9, w10
	str	w8, [x28]
	add	w8, w23, #97
	strb	w8, [sp, #10]
	ldr	w0, [sp, #12]
	ldr	w8, [x19, #32]
	ldr	w9, [x26]
	tst	w9, w8
	csel	x8, x24, x27, eq
	ldr	w3, [x8]
	add	x4, x28, #8
	ldr	w5, [x28, #4]
	add	x1, sp, #10
	mov	w2, #0
	bl	_RegSetValueExW
	cbz	x0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, x0
	add	x0, sp, #10
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x22, [sp]
	mov	x0, x21
	bl	_ERR
	b	LBB0_9
LBB0_14:
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not open key, error=%d, attempting to create\n"

	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_KEY_READ,4,2                   ; @KEY_READ
l_.str.1:                               ; @.str.1
	.asciz	"failed to create key /%s/, err=%d\n"

	.comm	_WMRUF_CHANGED,4,2              ; @WMRUF_CHANGED
	.comm	_strMRUList,8,3                 ; @strMRUList
	.comm	_REG_SZ,4,2                     ; @REG_SZ
l_.str.2:                               ; @.str.2
	.asciz	"error saving MRUList, err=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"saving MRUList=/%s/\n"

	.comm	_WMRUIF_CHANGED,4,2             ; @WMRUIF_CHANGED
	.comm	_MRU_BINARY,4,2                 ; @MRU_BINARY
	.comm	_REG_BINARY,4,2                 ; @REG_BINARY
l_.str.4:                               ; @.str.4
	.asciz	"error saving /%s/, err=%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"saving value for name /%s/ size=%d\n"

	.no_dead_strip	_MRU_SaveChanged
.subsections_via_symbols
