	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FatGetFatEntry
_FatGetFatEntry:                        ## @FatGetFatEntry
	.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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movl	(%r15), %esi
	leal	-128(%rsi), %eax
	cmpl	$4, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	shll	$2, %ebx
	movl	%ebx, %eax
	cltd
	idivl	4(%r15)
	movl	%edx, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_FatGetFatSector
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	movslq	%ebx, %rcx
	cltq
	movl	$268435455, %edi                ## imm = 0xFFFFFFF
	andl	(%rcx,%rax), %edi
	callq	_SWAPD
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_4:
	addl	%ebx, %ebx
	movl	%ebx, %eax
	cltd
	idivl	4(%r15)
	movl	%edx, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_FatGetFatSector
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movslq	%ebx, %rcx
	cltq
	movl	(%rcx,%rax), %edi
	callq	_SWAPW
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.4(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	movl	%ebx, %esi
	shrl	$31, %esi
	addl	%ebx, %esi
	sarl	%esi
	addl	%ebx, %esi
	movl	%esi, %eax
	cltd
	idivl	4(%r15)
	movl	%edx, %r12d
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	callq	_TRACE
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %esi
	callq	_TRACE
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_FatGetFatSector
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	cltq
	movslq	%r12d, %rcx
	movl	(%rax,%rcx), %edi
	callq	_SWAPW
	movl	%eax, %r15d
	testb	$1, %bl
	jne	LBB0_13
## %bb.9:
	andl	$4095, %r15d                    ## imm = 0xFFF
	jmp	LBB0_14
LBB0_12:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	sarl	$4, %r15d
LBB0_14:
	leaq	L_.str.5(%rip), %rdi
	movl	%r15d, %esi
	callq	_TRACE
	movl	%r15d, (%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FatGetFatEntry() Retrieving FAT entry for cluster %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"FatOffset: %d\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"ThisFatEntOffset: %d\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.4:                               ## @.str.4
	.asciz	"Unknown FAT type %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"FAT entry is 0x%x.\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FatGetFatEntry
_FatGetFatEntry:                        ; @FatGetFatEntry
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	w1, [x21]
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_6
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	lsl	w22, w20, #2
	ldr	w23, [x21, #4]
	sdiv	w20, w22, w23
	mov	x0, x21
	mov	x1, x20
	bl	_FatGetFatSector
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_10
; %bb.3:
	msub	w8, w20, w23, w22
	sxtw	x9, w0
	ldr	w8, [x9, w8, sxtw]
	and	w0, w8, #0xfffffff
	bl	_SWAPD
	mov	x20, x0
	b	LBB0_9
LBB0_4:
	lsl	w22, w20, #1
	ldr	w23, [x21, #4]
	sdiv	w20, w22, w23
	mov	x0, x21
	mov	x1, x20
	bl	_FatGetFatSector
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_10
; %bb.5:
	msub	w8, w20, w23, w22
	sxtw	x9, w0
	ldr	w0, [x9, w8, sxtw]
	bl	_SWAPW
	mov	x20, x0
	b	LBB0_9
LBB0_6:
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ERR
	b	LBB0_10
LBB0_7:
	cmp	w20, #0
	cinc	w8, w20, lt
	add	w1, w20, w8, asr #1
	ldr	w8, [x21, #4]
	sdiv	w23, w1, w8
	msub	w22, w23, w8, w1
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	bl	_TRACE
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_TRACE
	mov	x0, x21
	mov	x1, x23
	bl	_FatGetFatSector
	cbz	w0, LBB0_10
; %bb.8:
	sxtw	x8, w22
	ldr	w0, [x8, w0, sxtw]
	bl	_SWAPW
	and	w8, w0, #0xfff
	asr	w9, w0, #4
	tst	w20, #0x1
	csel	w20, w8, w9, eq
LBB0_9:
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	str	w20, [x19]
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FatGetFatEntry() Retrieving FAT entry for cluster %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"FatOffset: %d\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"ThisFatEntOffset: %d\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.4:                               ; @.str.4
	.asciz	"Unknown FAT type %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"FAT entry is 0x%x.\n"

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