	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FatXSearchDirectoryBufferForFile
_FatXSearchDirectoryBufferForFile:      ## @FatXSearchDirectoryBufferForFile
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	movslq	%edx, %rax
	movabsq	$3353953467947191203, %rcx      ## imm = 0x2E8BA2E8BA2E8BA3
	mulq	%rcx
	movq	%rdx, %r12
	shrq	$3, %r12
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_TRACE
	movl	%r15d, %edi
	callq	_strlen
	movl	%eax, %r13d
	movq	_FALSE@GOTPCREL(%rip), %rax
	testl	%r12d, %r12d
	jle	LBB0_9
## %bb.1:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	leaq	-96(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$44, %rbx
	decl	%r12d
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	28(%rbx), %xmm2
	movups	%xmm2, -68(%rbp)
	movaps	%xmm1, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	%r14, %rdi
	callq	_FatSwapFatXDirEntry
	movl	-96(%rbp), %eax
	cmpl	$229, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$255, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %r13d
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %esi
	movl	%r15d, %edi
	movl	%r13d, %edx
	callq	__strnicmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	-92(%rbp), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-88(%rbp), %eax
	movl	%eax, 4(%rcx)
	movq	$0, 16(%rcx)
	movl	-84(%rbp), %eax
	movl	%eax, 8(%rcx)
	movl	%eax, 12(%rcx)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-96(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-92(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-84(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-88(%rbp), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-80(%rbp), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-76(%rbp), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-72(%rbp), %esi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-68(%rbp), %esi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-64(%rbp), %esi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-60(%rbp), %esi
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FatXSearchDirectoryBufferForFile() DirectoryBuffer = 0x%x EntryCount = %d FileName = %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"FATX Directory Entry:\n"

L_.str.2:                               ## @.str.2
	.asciz	"FileNameSize = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Attr = 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"StartCluster = 0x%x\n"

L_.str.5:                               ## @.str.5
	.asciz	"Size = %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Time = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Date = %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"CreateTime = %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"CreateDate = %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"LastAccessTime = %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"LastAccessDate = %d\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_FatXSearchDirectoryBufferForFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FatXSearchDirectoryBufferForFile
_FatXSearchDirectoryBufferForFile:      ; @FatXSearchDirectoryBufferForFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x4
	mov	x20, x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x21, x1
	sxtw	x8, w2
	mov	x9, #35747
	movk	x9, #47662, lsl #16
	movk	x9, #41704, lsl #32
	movk	x9, #11915, lsl #48
	umulh	x8, x8, x9
	lsr	x23, x8, #3
	stp	x23, x20, [sp, #8]
	str	x1, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x20
	bl	_strlen
	cmp	w23, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x22, x0
Lloh2:
	adrp	x24, _FALSE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #44
	subs	w23, w23, #1
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x21]
	stp	q0, q1, [sp, #32]
	ldur	q0, [x21, #28]
	stur	q0, [sp, #60]
	add	x0, sp, #32
	bl	_FatSwapFatXDirEntry
	ldr	w8, [sp, #32]
	cmp	w8, #229
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #255
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, w8
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #72]
	mov	x0, x20
	mov	x2, x22
	bl	__strnicmp
	cbnz	x0, LBB0_2
; %bb.7:
	ldur	d0, [sp, #36]
	str	d0, [x19]
	str	xzr, [x19, #16]
	ldr	w8, [sp, #44]
	stp	w8, w8, [x19, #8]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #32]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #36]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #44]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #40]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #48]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #52]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.7@PAGE
Lloh17:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #56]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.8@PAGE
Lloh19:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #60]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.9@PAGE
Lloh21:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #64]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.10@PAGE
Lloh23:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #68]
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.11@PAGE
Lloh25:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_TRACE
Lloh26:
	adrp	x24, _TRUE@GOTPAGE
Lloh27:
	ldr	x24, [x24, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh28:
	adrp	x24, _FALSE@GOTPAGE
Lloh29:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x24]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FatXSearchDirectoryBufferForFile() DirectoryBuffer = 0x%x EntryCount = %d FileName = %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"FATX Directory Entry:\n"

l_.str.2:                               ; @.str.2
	.asciz	"FileNameSize = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Attr = 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"StartCluster = 0x%x\n"

l_.str.5:                               ; @.str.5
	.asciz	"Size = %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Time = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Date = %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"CreateTime = %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"CreateDate = %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"LastAccessTime = %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"LastAccessDate = %d\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_FatXSearchDirectoryBufferForFile
.subsections_via_symbols
