	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_dest_dir
_get_dest_dir:                          ## @get_dest_dir
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movl	%edi, -92(%rbp)                 ## 4-byte Spill
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	addl	$2, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%rbx), %eax
	addl	$2, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_PREFIX_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	addl	$2, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	$0, -88(%rbp)
	leaq	-60(%rbp), %r12
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_SetupFindFirstLineW
	movl	(%rbx), %ecx
	addl	$2, %ecx
	leaq	-56(%rbp), %rbx
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movq	%rbx, %r8
	callq	_SetupGetStringFieldW
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_strip_quotes
	movq	_MAX_PATH@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	addl	$2, %ecx
	leaq	-60(%rbp), %rdi
	movl	$2, %esi
	movq	%r15, %rdx
	movq	%rbx, %r8
	callq	_SetupGetStringFieldW
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strip_quotes
	movl	(%r12), %ecx
	addl	$2, %ecx
	leaq	-60(%rbp), %rdi
	movl	$3, %esi
	movq	%r14, %rdx
	movq	%rbx, %r8
	callq	_SetupGetStringFieldW
	movq	%r14, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strip_quotes
	leaq	_get_dest_dir.hklm(%rip), %rsi
	movq	%r13, %rdi
	callq	_lstrcmpW
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	_get_dest_dir.hkcu(%rip), %rsi
	movq	%r13, %rdi
	callq	_lstrcmpW
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rdi
	jmp	LBB0_6
LBB0_3:
	xorl	%edi, %edi
LBB0_6:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, -56(%rbp)
	leaq	-88(%rbp), %rdx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_RegOpenKeyW
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	-88(%rbp), %rdi
	leaq	-56(%rbp), %r9
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_RegQueryValueExW
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	leaq	-60(%rbp), %rdi
	leaq	-56(%rbp), %r14
	movl	$5, %esi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movq	%r14, %r8
	callq	_SetupGetStringFieldW
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strip_quotes
LBB0_9:
	movq	-88(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_RegCloseKey
LBB0_11:
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_PREFIX_LEN,4,2                 ## @PREFIX_LEN
	.section	__TEXT,__const
_get_dest_dir.hklm:                     ## @get_dest_dir.hklm
	.asciz	"HKLM"

_get_dest_dir.hkcu:                     ## @get_dest_dir.hkcu
	.asciz	"HKCU"

	.comm	_HKEY_LOCAL_MACHINE,8,3         ## @HKEY_LOCAL_MACHINE
	.comm	_HKEY_CURRENT_USER,8,3          ## @HKEY_CURRENT_USER
	.no_dead_strip	_get_dest_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_dest_dir
_get_dest_dir:                          ; @get_dest_dir
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #32
	mov	x20, x3
	mov	x19, x2
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w8, w8, #2
	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	x22, x9, x8
	mov	sp, x22
	ldr	w8, [x25]
	add	w8, w8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh9:
	adrp	x26, _PREFIX_LEN@GOTPAGE
Lloh10:
	ldr	x26, [x26, _PREFIX_LEN@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w8, w8, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	stur	xzr, [x29, #-88]
	sub	x3, x29, #76
	mov	x2, #0
	bl	_SetupFindFirstLineW
	ldr	w8, [x26]
	add	w3, w8, #2
	sub	x0, x29, #76
	sub	x4, x29, #92
	mov	w1, #1
	mov	x2, x23
	bl	_SetupGetStringFieldW
	sub	x1, x29, #92
	mov	x0, x23
	bl	_strip_quotes
	ldr	w8, [x25]
	add	w3, w8, #2
	sub	x0, x29, #76
	sub	x4, x29, #92
	mov	w1, #2
	mov	x2, x22
	bl	_SetupGetStringFieldW
	sub	x1, x29, #92
	mov	x0, x22
	bl	_strip_quotes
	ldr	w8, [x25]
	add	w3, w8, #2
	sub	x0, x29, #76
	sub	x4, x29, #92
	mov	w1, #3
	mov	x2, x21
	bl	_SetupGetStringFieldW
	sub	x1, x29, #92
	mov	x0, x21
	bl	_strip_quotes
Lloh13:
	adrp	x1, _get_dest_dir.hklm@PAGE
Lloh14:
	add	x1, x1, _get_dest_dir.hklm@PAGEOFF
	mov	x0, x23
	bl	_lstrcmpW
	cbz	w0, LBB0_2
; %bb.1:
Lloh15:
	adrp	x1, _get_dest_dir.hkcu@PAGE
Lloh16:
	add	x1, x1, _get_dest_dir.hkcu@PAGEOFF
	mov	x0, x23
	bl	_lstrcmpW
Lloh17:
	adrp	x8, _HKEY_CURRENT_USER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HKEY_CURRENT_USER@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	w0, #0
	csel	x0, x8, xzr, eq
	b	LBB0_3
LBB0_2:
Lloh20:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
LBB0_3:
	stur	w20, [x29, #-92]
	sub	x2, x29, #88
	mov	x1, x22
	bl	_RegOpenKeyW
	cbnz	x0, LBB0_5
; %bb.4:
	ldur	x0, [x29, #-88]
	sub	x5, x29, #92
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_RegQueryValueExW
	cbz	x0, LBB0_6
LBB0_5:
	sub	x0, x29, #76
	sub	x4, x29, #92
	mov	w1, #5
	mov	x2, x19
	mov	x3, x20
	bl	_SetupGetStringFieldW
	sub	x1, x29, #92
	mov	x0, x19
	bl	_strip_quotes
LBB0_6:
	ldur	x0, [x29, #-88]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_RegCloseKey
LBB0_8:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_PREFIX_LEN,4,2                 ; @PREFIX_LEN
	.section	__TEXT,__const
_get_dest_dir.hklm:                     ; @get_dest_dir.hklm
	.asciz	"HKLM"

_get_dest_dir.hkcu:                     ; @get_dest_dir.hkcu
	.asciz	"HKCU"

	.comm	_HKEY_LOCAL_MACHINE,8,3         ; @HKEY_LOCAL_MACHINE
	.comm	_HKEY_CURRENT_USER,8,3          ; @HKEY_CURRENT_USER
	.no_dead_strip	_get_dest_dir
.subsections_via_symbols
