	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_working_dir
_get_working_dir:                       ## @get_working_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r12, %rdi
	movl	$92, %esi
	callq	_wcsrchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	subl	%r12d, %ebx
	movq	%r12, %r15
	jmp	LBB0_9
LBB0_2:
	testq	%r13, %r13
	je	LBB0_5
## %bb.3:
	cmpb	$0, (%r13)
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_lstrlenW
	movl	%eax, %ebx
	movq	%r13, %r15
	jmp	LBB0_9
LBB0_5:
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_GetCurrentDirectoryW
	leaq	_get_working_dir.backslash(%rip), %rsi
	movq	%r15, %rdi
	callq	_lstrcatW
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_lstrcatW
	movq	%r15, %rdi
	callq	_GetFileAttributesW
	movq	_INVALID_FILE_ATTRIBUTES@GOTPCREL(%rip), %rcx
	movl	(%r14), %esi
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_GetWindowsDirectoryW
	leaq	_get_working_dir.inf_dir(%rip), %rsi
	movq	%r15, %rdi
	callq	_lstrcatW
	jmp	LBB0_8
LBB0_6:
	movl	%esi, %edi
	movq	%r15, %rsi
	callq	_GetCurrentDirectoryW
LBB0_8:
	movq	%r15, %rdi
	callq	_lstrlenW
	movl	%eax, %ebx
LBB0_9:
	incl	%ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_HeapAlloc
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_lstrcpynW
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.section	__TEXT,__const
_get_working_dir.backslash:             ## @get_working_dir.backslash
	.asciz	"\\"

_get_working_dir.inf_dir:               ## @get_working_dir.inf_dir
	.asciz	"\\INF"

	.comm	_INVALID_FILE_ATTRIBUTES,8,3    ## @INVALID_FILE_ATTRIBUTES
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_get_working_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_working_dir
_get_working_dir:                       ; @get_working_dir
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x22, x2
	mov	x21, x1
	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, #-56]
Lloh3:
	adrp	x23, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x23]
	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	x20, x9, x8
	mov	sp, x20
	mov	x0, x1
	mov	w1, #92
	bl	_wcsrchr
	cbz	x0, LBB0_2
; %bb.1:
	sub	w0, w0, w21
	mov	x20, x21
	b	LBB0_9
LBB0_2:
	cbz	x22, LBB0_5
; %bb.3:
	ldrb	w8, [x22]
	cbz	w8, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_lstrlenW
	mov	x20, x22
	b	LBB0_9
LBB0_5:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_GetCurrentDirectoryW
Lloh7:
	adrp	x1, _get_working_dir.backslash@PAGE
Lloh8:
	add	x1, x1, _get_working_dir.backslash@PAGEOFF
	mov	x0, x20
	bl	_lstrcatW
	mov	x0, x20
	mov	x1, x21
	bl	_lstrcatW
	mov	x0, x20
	bl	_GetFileAttributesW
Lloh9:
	adrp	x8, _INVALID_FILE_ATTRIBUTES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INVALID_FILE_ATTRIBUTES@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w1, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_GetWindowsDirectoryW
Lloh12:
	adrp	x1, _get_working_dir.inf_dir@PAGE
Lloh13:
	add	x1, x1, _get_working_dir.inf_dir@PAGEOFF
	mov	x0, x20
	bl	_lstrcatW
	b	LBB0_8
LBB0_7:
	mov	x0, x1
	mov	x1, x20
	bl	_GetCurrentDirectoryW
LBB0_8:
	mov	x0, x20
	bl	_lstrlenW
LBB0_9:
	add	w21, w0, #1
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapAlloc
	str	w0, [x19]
	cbz	w0, LBB0_11
; %bb.10:
	mov	x1, x20
	mov	x2, x21
	bl	_lstrcpynW
Lloh14:
	adrp	x8, _S_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh16:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.section	__TEXT,__const
_get_working_dir.backslash:             ; @get_working_dir.backslash
	.asciz	"\\"

_get_working_dir.inf_dir:               ; @get_working_dir.inf_dir
	.asciz	"\\INF"

	.comm	_INVALID_FILE_ATTRIBUTES,8,3    ; @INVALID_FILE_ATTRIBUTES
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_get_working_dir
.subsections_via_symbols
