	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetPathOfFile
_GetPathOfFile:                         ## @GetPathOfFile
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_lstrcpyn
	movl	$92, %edi
	callq	__T
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	__tcsrchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	$0, (%rax)
	movl	(%r13), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_GetFullPathName
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_lstrcpyn
	movq	%r12, %rdi
	callq	_GetFileAttributes
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:
	movq	_FILE_ATTRIBUTE_DIRECTORY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
LBB0_5:
	movq	_ERROR_DIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_6
LBB0_7:
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_GetCurrentDirectory
LBB0_8:
	movq	%r12, %rdi
	callq	_AddBackslash
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
LBB0_6:
	callq	_PrintError
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ## @FILE_ATTRIBUTE_DIRECTORY
	.comm	_ERROR_DIRECTORY,4,2            ## @ERROR_DIRECTORY
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_GetPathOfFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetPathOfFile
_GetPathOfFile:                         ; @GetPathOfFile
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	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, #-40]
Lloh3:
	adrp	x21, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_PATH@GOTPAGEOFF]
	ldr	w2, [x21]
	lsl	x8, x2, #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, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_lstrcpyn
	mov	w0, #92
	bl	__T
	mov	x1, x0
	mov	x0, x19
	bl	__tcsrchr
	cbz	x0, LBB0_5
; %bb.1:
	str	xzr, [x0]
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	mov	x3, #0
	bl	_GetFullPathName
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_lstrcpyn
	mov	x0, x19
	bl	_GetFileAttributes
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _FILE_ATTRIBUTE_DIRECTORY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FILE_ATTRIBUTE_DIRECTORY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _ERROR_DIRECTORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR_DIRECTORY@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_5:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_GetCurrentDirectory
LBB0_6:
	mov	x0, x19
	bl	_AddBackslash
Lloh13:
	adrp	x8, _TRUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	bl	_GetLastError
LBB0_8:
	bl	_PrintError
Lloh15:
	adrp	x8, _FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ; @FILE_ATTRIBUTE_DIRECTORY
	.comm	_ERROR_DIRECTORY,4,2            ; @ERROR_DIRECTORY
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_GetPathOfFile
.subsections_via_symbols
