	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function NtfsLookupFile
_NtfsLookupFile:                        ## @NtfsLookupFile
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, -1112(%rbp)               ## 4-byte Spill
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_NTFS_FILE_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, -1108(%rbp)
	movq	%rbx, %rdi
	callq	_FsGetNumPathParts
	testq	%rax, %rax
	jle	LBB0_10
## %bb.1:
	movq	%rax, %r14
	movq	%r13, -1120(%rbp)               ## 8-byte Spill
	leaq	-1104(%rbp), %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_FsGetFirstNameFromPath
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rbx
	movzbl	-1(%rbx), %eax
	testb	%al, %al
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpb	$47, %al
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpb	$92, %al
	jne	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-1108(%rbp), %esi
	movl	%r12d, %edi
	movq	%r15, %rdx
	leaq	-1108(%rbp), %rcx
	callq	_NtfsFindMftRecord
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-1108(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	incq	%r13
	cmpq	%r14, %r13
	jne	LBB0_2
## %bb.9:
	movl	-1108(%rbp), %r15d
	movq	-1120(%rbp), %r13               ## 8-byte Reload
LBB0_10:
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	-1112(%rbp), %ebx               ## 4-byte Reload
	movl	%ebx, %edx
	callq	_NtfsReadMftRecord
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	_NTFS_ATTR_TYPE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	l_.str.5(%rip), %rcx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_NtfsFindAttribute
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_15
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str.6(%rip), %rdi
LBB0_15:
	xorl	%eax, %eax
	callq	_TRACE
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NtfsLookupFile() FileName = %s\n"

	.comm	_NTFS_FILE_ROOT,4,2             ## @NTFS_FILE_ROOT
L_.str.1:                               ## @.str.1
	.asciz	"- Lookup: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"- Failed\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.3:                               ## @.str.3
	.asciz	"- Lookup: %x\n"

L_.str.4:                               ## @.str.4
	.asciz	"NtfsLookupFile: Can't read MFT record\n"

	.comm	_NTFS_ATTR_TYPE_DATA,4,2        ## @NTFS_ATTR_TYPE_DATA
	.section	__TEXT,__const
	.p2align	2                               ## @.str.5
l_.str.5:
	.space	4

	.section	__TEXT,__cstring,cstring_literals
L_.str.6:                               ## @.str.6
	.asciz	"NtfsLookupFile: Can't find data attribute\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_NtfsLookupFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function NtfsLookupFile
_NtfsLookupFile:                        ; @NtfsLookupFile
	.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, #1072
	mov	x19, x3
	mov	x20, x2
	mov	x22, 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]
	str	x1, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh5:
	adrp	x8, _NTFS_FILE_ROOT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NTFS_FILE_ROOT@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	str	w23, [sp, #8]
	mov	x0, x22
	bl	_FsGetNumPathParts
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x24, x0
	mov	x27, #0
	add	x28, sp, #12
Lloh8:
	adrp	x25, l_.str.1@PAGE
Lloh9:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh12:
	adrp	x26, l_.str.3@PAGE
Lloh13:
	add	x26, x26, l_.str.3@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	add	x0, sp, #12
	mov	x1, x22
	bl	_FsGetFirstNameFromPath
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x22, x22, #1
	ldurb	w8, [x22, #-1]
	cbz	w8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	cmp	w8, #47
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	cmp	w8, #92
	b.ne	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x28, [sp]
	mov	x0, x25
	bl	_TRACE
	ldr	w1, [sp, #8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x21
	bl	_NtfsFindMftRecord
	cbz	w0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #8]
	str	x8, [sp]
	mov	x0, x26
	bl	_TRACE
	add	x27, x27, #1
	cmp	x27, x24
	b.ne	LBB0_2
; %bb.8:
	ldr	w23, [sp, #8]
LBB0_9:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_NtfsReadMftRecord
	cbz	w0, LBB0_12
; %bb.10:
Lloh14:
	adrp	x8, _NTFS_ATTR_TYPE_DATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NTFS_ATTR_TYPE_DATA@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x3, l_.str.5@PAGE
Lloh18:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_NtfsFindAttribute
	str	x0, [x19]
	cbz	x0, LBB0_13
; %bb.11:
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh21:
	adrp	x23, l_.str.4@PAGE
Lloh22:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh23:
	adrp	x23, l_.str.6@PAGE
Lloh24:
	add	x23, x23, l_.str.6@PAGEOFF
LBB0_14:
	mov	x0, x23
	bl	_TRACE
Lloh25:
	adrp	x8, _FALSE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldur	x8, [x29, #-96]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	add	sp, sp, #1072
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NtfsLookupFile() FileName = %s\n"

	.comm	_NTFS_FILE_ROOT,4,2             ; @NTFS_FILE_ROOT
l_.str.1:                               ; @.str.1
	.asciz	"- Lookup: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"- Failed\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.3:                               ; @.str.3
	.asciz	"- Lookup: %x\n"

l_.str.4:                               ; @.str.4
	.asciz	"NtfsLookupFile: Can't read MFT record\n"

	.comm	_NTFS_ATTR_TYPE_DATA,4,2        ; @NTFS_ATTR_TYPE_DATA
	.section	__TEXT,__const
	.p2align	2                               ; @.str.5
l_.str.5:
	.space	4

	.section	__TEXT,__cstring,cstring_literals
l_.str.6:                               ; @.str.6
	.asciz	"NtfsLookupFile: Can't find data attribute\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_NtfsLookupFile
.subsections_via_symbols
