	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_directory_entryFromPosition ## -- Begin function _FAT_directory_entryFromPosition
	.p2align	4, 0x90
__FAT_directory_entryFromPosition:      ## @_FAT_directory_entryFromPosition
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	8(%rsi), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	24(%rsi), %rax
	movq	%rax, -64(%rbp)
	movups	8(%rsi), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	32(%rsi), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	40(%rsi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	48(%rsi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_MAX_LFN_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	_DIR_ENTRY_DATA_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movq	%r14, %rbx
	movq	_NAME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	(%r12), %r14d
	movq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	__FAT_fat_clusterToSector
	addq	-72(%rbp), %rax
	movl	(%rbx), %r8d
	movl	-64(%rbp), %ecx
	imull	%r8d, %ecx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	__FAT_cache_readPartialSector
	movq	-80(%rbp), %rax
	xorq	-120(%rbp), %rax                ## 8-byte Folded Reload
	movq	-72(%rbp), %rcx
	xorq	-112(%rbp), %rcx                ## 8-byte Folded Reload
	orq	%rax, %rcx
	sete	%al
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, -64(%rbp)
	sete	%r14b
	andb	%al, %r14b
	cmpb	$1, %r14b
	jne	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movl	(%rbx), %edx
	movq	%r15, %rsi
	callq	_memcpy
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	leaq	-80(%rbp), %rsi
	xorl	%edx, %edx
	callq	__FAT_directory_incrementDirEntryPosition
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorb	$1, %r14b
	jne	LBB0_1
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_LFN_offset_ordinal@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_LFN_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	(%r15,%rax,4), %ecx
	leal	(%rcx,%rcx,2), %eax
	leal	(%rcx,%rax,4), %edx
	addl	$-13, %edx
	movq	_MAX_LFN_LENGTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	movq	_LFN_offset_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movslq	%edx, %rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rsi
	movl	$2, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=2
	addq	$4, %rdi
	addq	$2, %rdx
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rax, %rdx
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	-8(%r8,%rdi,4), %rbx
	movl	4(%r15,%rbx,4), %ecx
	shll	$8, %ecx
	orl	(%r15,%rbx,4), %ecx
	movq	%r13, %rbx
	movl	%ecx, -4(%rsi,%rdi,2)
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpq	$26, %rdi
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	leaq	1(%rdx), %rcx
	cmpq	%rax, %rcx
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	(%r8,%rdi,4), %rcx
	movl	4(%r15,%rcx,4), %ebx
	shll	$8, %ebx
	orl	(%r15,%rcx,4), %ebx
	movl	%ebx, (%rsi,%rdi,2)
	movq	%r13, %rbx
	jmp	LBB0_13
LBB0_5:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.14:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movups	(%rax), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	16(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	cmpq	%rcx, -80(%rbp)
	jne	LBB0_18
## %bb.15:
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	cmpq	%rcx, -72(%rbp)
	jne	LBB0_18
## %bb.16:
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_18
## %bb.17:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	__FAT_directory_entryGetAlias
	testl	%eax, %eax
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_20
	jmp	LBB0_21
LBB0_6:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_18:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_NAME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	__FAT_directory_ucs2tombs
	cmpq	$-1, %rax
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_21
LBB0_20:
	movl	$1, %ebx
LBB0_21:
	movq	%rax, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_LFN_LENGTH,4,2             ## @MAX_LFN_LENGTH
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ## @DIR_ENTRY_DATA_SIZE
	.comm	_NAME_MAX,4,2                   ## @NAME_MAX
	.comm	_LFN_offset_ordinal,8,3         ## @LFN_offset_ordinal
	.comm	_LFN_END,4,2                    ## @LFN_END
	.comm	_LFN_offset_table,8,3           ## @LFN_offset_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_directory_entryFromPosition ; -- Begin function _FAT_directory_entryFromPosition
	.p2align	2
__FAT_directory_entryFromPosition:      ; @_FAT_directory_entryFromPosition
	.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, #48
	mov	x19, x1
	mov	x21, x0
	mov	x8, sp
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x8, x1, #8
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
	ldur	q0, [x1, #8]
	stur	q0, [x29, #-112]
	ldp	x8, x28, [x1, #24]
	stur	x8, [x29, #-96]
	ldr	x26, [x1, #40]
	ldr	w25, [x1, #48]
Lloh3:
	adrp	x8, _MAX_LFN_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_LFN_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	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
Lloh8:
	adrp	x27, _DIR_ENTRY_DATA_SIZE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _DIR_ENTRY_DATA_SIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w0, [x1]
Lloh12:
	adrp	x8, _NAME_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NAME_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
Lloh15:
	adrp	x24, _LFN_offset_table@GOTPAGE
Lloh16:
	ldr	x24, [x24, _LFN_offset_table@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w23, [x21]
	ldur	x1, [x29, #-112]
	mov	x0, x21
	bl	__FAT_fat_clusterToSector
	ldur	x8, [x29, #-104]
	add	x2, x8, x0
	ldur	w8, [x29, #-96]
	ldr	w4, [x27]
	mul	w3, w4, w8
	mov	x0, x23
	mov	x1, x22
	bl	__FAT_cache_readPartialSector
	ldp	x8, x9, [x29, #-112]
	cmp	x8, x28
	ccmp	x9, x26, #0, eq
	ldur	w8, [x29, #-96]
	ccmp	w8, w25, #0, eq
	cset	w23, eq
	b.ne	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x19, #4]
	ldr	w2, [x27]
	mov	x1, x22
	bl	_memcpy
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	sub	x1, x29, #112
	mov	x0, x21
	mov	w2, #0
	bl	__FAT_directory_incrementDirEntryPosition
	cbz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	eor	w8, w23, #0x1
	tbnz	w8, #0, LBB0_1
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, #0
Lloh17:
	adrp	x9, _LFN_offset_ordinal@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LFN_offset_ordinal@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	w9, [x22, x9, lsl #2]
Lloh20:
	adrp	x10, _LFN_END@GOTPAGE
Lloh21:
	ldr	x10, [x10, _LFN_END@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	bic	w9, w9, w10
	mov	w10, #13
	mul	w9, w9, w10
	sub	w12, w9, #13
Lloh23:
	adrp	x9, _MAX_LFN_LENGTH@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MAX_LFN_LENGTH@GOTPAGEOFF]
Lloh25:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	ldr	x10, [x24]
	sxtw	x11, w12
	add	x12, x20, w12, sxtw #2
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x8, x8, #1
	cmp	x8, #13
	b.eq	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x13, x11, x8
	cmp	x13, x9
	b.ge	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x13, [x10, x8, lsl #3]
	add	x13, x22, x13, lsl #2
	ldp	w14, w13, [x13]
	orr	w13, w14, w13, lsl #8
	str	w13, [x12, x8, lsl #2]
	b	LBB0_6
LBB0_9:
	cbz	w0, LBB0_17
; %bb.10:
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	ldr	q0, [x8]
	stur	q0, [x29, #-112]
	ldr	x8, [x8, #16]
	stur	x8, [x29, #-96]
	ldur	x9, [x29, #-112]
	cmp	x9, x28
	b.ne	LBB0_14
; %bb.11:
	ldur	x9, [x29, #-104]
	cmp	x9, x26
	b.ne	LBB0_14
; %bb.12:
	cmp	w8, w25
	b.ne	LBB0_14
; %bb.13:
	ldp	w1, w0, [x19]
	bl	__FAT_directory_entryGetAlias
	cbnz	w0, LBB0_15
	b	LBB0_17
LBB0_14:
	ldr	w0, [x19]
Lloh26:
	adrp	x8, _NAME_MAX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NAME_MAX@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x1, x20
	bl	__FAT_directory_ucs2tombs
	cmn	x0, #1
	b.eq	LBB0_16
LBB0_15:
	mov	w0, #1
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #80
	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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_LFN_LENGTH,4,2             ; @MAX_LFN_LENGTH
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ; @DIR_ENTRY_DATA_SIZE
	.comm	_NAME_MAX,4,2                   ; @NAME_MAX
	.comm	_LFN_offset_ordinal,8,3         ; @LFN_offset_ordinal
	.comm	_LFN_END,4,2                    ; @LFN_END
	.comm	_LFN_offset_table,8,3           ; @LFN_offset_table
.subsections_via_symbols
