	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_ldids                      ## -- Begin function set_ldids
	.p2align	4, 0x90
_set_ldids:                             ## @set_ldids
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_FIELD_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	subq	$8, %rsp
	leaq	-52(%rbp), %rax
	leaq	_set_ldids.custDestW(%rip), %rcx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %r8
	movl	%r13d, %r9d
	pushq	%rax
	callq	_SetupGetLineTextW
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_20
## %bb.1:
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_SetupFindFirstLineW
	testl	%eax, %eax
	je	LBB0_20
## %bb.2:
	leaq	-56(%rbp), %r15
	movq	_FALSE@GOTPCREL(%rip), %r13
	leaq	-88(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movq	_MAX_FIELD_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %r8
	leaq	-52(%rbp), %rax
	pushq	%rax
	callq	_SetupGetLineTextW
	addq	$16, %rsp
	movq	%r15, %rdi
	movl	$61, %esi
	callq	_wcschr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, -88(%rbp)
	movq	%rax, %r15
	incq	%r15
	movb	$0, (%rax)
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-52(%rbp), %r8
	callq	_SetupGetStringFieldW
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	-52(%rbp), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, -88(%rbp)
	movl	-52(%rbp), %ecx
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	-52(%rbp), %r8
	callq	_SetupGetStringFieldW
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	decq	%r15
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$32, 1(%r15)
	leaq	1(%r15), %r15
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	$44, %esi
	callq	_wcschr
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%rax)
	incq	%rax
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_wcstol
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	_set_ldids.source_dir(%rip), %rsi
	callq	_lstrcmpiW
	testl	%eax, %eax
	je	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_get_dest_dir
	testb	$4, -60(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_18
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_lstrcpynW
	testb	$4, -60(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_wcstol
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_SetupSetDirectoryIdW
LBB0_18:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$44, %esi
	callq	_get_parameter
	testq	%rax, %rax
	jne	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_HeapFree
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_SetupFindNextLine
	testq	%rax, %rax
	jne	LBB0_3
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FIELD_LENGTH,4,2           ## @MAX_FIELD_LENGTH
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.section	__TEXT,__const
_set_ldids.source_dir:                  ## @set_ldids.source_dir
	.asciz	"SourceDir"

	.p2align	4                               ## @set_ldids.custDestW
_set_ldids.custDestW:
	.asciz	"CustomDestination"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Need to support changing paths - default will be used\n"

	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_ldids                      ; -- Begin function set_ldids
	.p2align	2
_set_ldids:                             ; @set_ldids
	.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, #32
	mov	x19, x2
	mov	x2, x1
	mov	x20, 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	x28, _MAX_FIELD_LENGTH@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MAX_FIELD_LENGTH@GOTPAGEOFF]
	ldr	w5, [x28]
	mov	x9, x5
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x5, #15
	and	x12, x9, #0x1fffffff0
	sub	x23, x8, x12
	mov	sp, x23
	mov	x9, x5
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
Lloh9:
	adrp	x24, _MAX_PATH@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x24]
	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	x22, x9, x8
	mov	sp, x22
Lloh13:
	adrp	x3, _set_ldids.custDestW@PAGE
Lloh14:
	add	x3, x3, _set_ldids.custDestW@PAGEOFF
	sub	x6, x29, #96
	mov	x0, #0
	mov	x1, x20
	mov	x4, x23
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_SetupGetLineTextW
	cbz	w0, LBB0_18
; %bb.1:
	sub	x3, x29, #92
	mov	x0, x20
	mov	x1, x23
	mov	x2, #0
	bl	_SetupFindFirstLineW
	cbz	w0, LBB0_18
; %bb.2:
Lloh15:
	adrp	x23, _FALSE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	ldr	w5, [x28]
	sub	x0, x29, #92
	sub	x6, x29, #96
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, x21
	bl	_SetupGetLineTextW
	mov	x0, x21
	mov	w1, #61
	bl	_wcschr
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
	stur	x21, [x29, #-104]
	strb	wzr, [x0], #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x29, #92
	sub	x4, x29, #96
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	bl	_SetupGetStringFieldW
	bl	_GetProcessHeap
	ldur	w2, [x29, #-96]
	mov	w1, #0
	bl	_HeapAlloc
	mov	x25, x0
	stur	x0, [x29, #-104]
	ldur	w3, [x29, #-96]
	sub	x0, x29, #92
	sub	x4, x29, #96
	mov	w1, #0
	mov	x2, x25
	bl	_SetupGetStringFieldW
	mov	x0, x21
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x26, x0, #1
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x26, #1]!
	cmp	w8, #32
	b.eq	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	mov	w1, #44
	bl	_wcschr
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x0], #1
	mov	x1, #0
	mov	w2, #10
	bl	_wcstol
	mov	x27, x0
	cbnz	x19, LBB0_11
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #0
	cbz	x19, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
Lloh17:
	adrp	x1, _set_ldids.source_dir@PAGE
Lloh18:
	add	x1, x1, _set_ldids.source_dir@PAGEOFF
	bl	_lstrcmpiW
	cbz	w0, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x26
	mov	x2, x22
	bl	_get_dest_dir
	tbz	w27, #2, LBB0_16
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x24]
	mov	x0, x22
	mov	x1, x19
	bl	_lstrcpynW
	tbz	w27, #2, LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x1, #0
	mov	w2, #10
	bl	_wcstol
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	bl	_SetupSetDirectoryIdW
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x23]
	sub	x0, x29, #104
	mov	w1, #44
	bl	_get_parameter
	cbnz	x0, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x25
	bl	_HeapFree
	sub	x0, x29, #92
	sub	x1, x29, #92
	bl	_SetupFindNextLine
	cbnz	x0, LBB0_3
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #80
	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_20:
	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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FIELD_LENGTH,4,2           ; @MAX_FIELD_LENGTH
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.section	__TEXT,__const
_set_ldids.source_dir:                  ; @set_ldids.source_dir
	.asciz	"SourceDir"

_set_ldids.custDestW:                   ; @set_ldids.custDestW
	.asciz	"CustomDestination"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Need to support changing paths - default will be used\n"

	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
