	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FatLookupFile                  ## -- Begin function FatLookupFile
	.p2align	4, 0x90
_FatLookupFile:                         ## @FatLookupFile
	.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	$1112, %rsp                     ## imm = 0x458
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movl	%r14d, -1108(%rbp)              ## 4-byte Spill
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_FsGetNumPathParts
	testq	%rax, %rax
	jle	LBB0_14
## %bb.1:
	xorl	%ecx, %ecx
	movq	%rcx, -1120(%rbp)               ## 8-byte Spill
	leaq	-1104(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%rax, -1144(%rbp)               ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, %r14
	je	LBB0_14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_FsGetFirstNameFromPath
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rbx
	movzbl	-1(%rbx), %eax
	testb	%al, %al
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$47, %al
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$92, %al
	jne	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	testq	%r14, %r14
	sete	%cl
	movq	%r15, %rdi
	movq	-1120(%rbp), %rsi               ## 8-byte Reload
	leaq	-1152(%rbp), %rdx
	callq	_FatBufferDirectory
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movl	(%r15), %edi
	callq	_ISFATX
	movq	-1152(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rcx
	leaq	-1136(%rbp), %r8
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_FatXSearchDirectoryBufferForFile
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_FatSearchDirectoryBufferForFile
	testl	%eax, %eax
	je	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	cmpq	%rax, %r14
	jge	LBB0_2
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_ATTR_DIRECTORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -1136(%rbp)
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-1128(%rbp), %rcx
	movq	%rcx, -1120(%rbp)               ## 8-byte Spill
	jmp	LBB0_2
LBB0_14:
	leaq	-1136(%rbp), %rsi
	movl	-1108(%rbp), %edi               ## 4-byte Reload
	movl	$16, %edx
	callq	_memcpy
	movq	_ESUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$1112, %rsp                     ## imm = 0x458
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FatLookupFile() FileName = %s\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ATTR_DIRECTORY,4,2             ## @ATTR_DIRECTORY
	.comm	_ENOTDIR,4,2                    ## @ENOTDIR
	.comm	_ESUCCESS,4,2                   ## @ESUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FatLookupFile                  ; -- Begin function FatLookupFile
	.p2align	2
_FatLookupFile:                         ; @FatLookupFile
	.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, #1088
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, x20
	bl	_FsGetNumPathParts
	cmp	x0, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x22, x0
	mov	x23, #0
	mov	x26, #0
Lloh5:
	adrp	x25, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ENOMEM@GOTPAGEOFF]
Lloh7:
	adrp	x27, _ENOENT@GOTPAGE
Lloh8:
	ldr	x27, [x27, _ENOENT@GOTPAGEOFF]
Lloh9:
	adrp	x28, _ATTR_DIRECTORY@GOTPAGE
Lloh10:
	ldr	x28, [x28, _ATTR_DIRECTORY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x26, x22
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	add	x0, sp, #28
	mov	x1, x20
	bl	_FsGetFirstNameFromPath
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x20, x20, #1
	ldurb	w8, [x20, #-1]
	cbz	w8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	cmp	w8, #47
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	cmp	w8, #92
	b.ne	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x26, #0
	cset	w3, eq
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x23
	bl	_FatBufferDirectory
	cbz	x0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	ldr	w0, [x21]
	bl	_ISFATX
	ldr	x2, [sp, #16]
	add	x3, sp, #28
	mov	x4, sp
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_FatXSearchDirectoryBufferForFile
	cbnz	w0, LBB0_11
	b	LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_FatSearchDirectoryBufferForFile
	cbz	w0, LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	cmp	x26, x22
	b.ge	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [sp, #8]
	b	LBB0_2
LBB0_14:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #16
	bl	_memcpy
Lloh11:
	adrp	x25, _ESUCCESS@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ESUCCESS@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
	mov	x25, x27
	b	LBB0_17
LBB0_16:
Lloh13:
	adrp	x25, _ENOTDIR@GOTPAGE
Lloh14:
	ldr	x25, [x25, _ENOTDIR@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x25]
	ldur	x8, [x29, #-96]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	add	sp, sp, #1088
	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_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FatLookupFile() FileName = %s\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ATTR_DIRECTORY,4,2             ; @ATTR_DIRECTORY
	.comm	_ENOTDIR,4,2                    ; @ENOTDIR
	.comm	_ESUCCESS,4,2                   ; @ESUCCESS
.subsections_via_symbols
