	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function FatGetFatSector
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
LCPI0_2:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_FatGetFatSector:                       ## @FatGetFatSector
	.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	$24, %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, %r15
	movq	(%rdi), %r12
	movq	8(%rdi), %rcx
	leaq	(%r12,%rsi), %r14
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r13
	jmp	LBB0_3
LBB0_1:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r13d
LBB0_3:
	xorl	%edi, %edi
	cmpq	%rbx, 16(%r15)
	seta	%dil
	callq	_ASSERT
	movq	24(%r15), %rax
	cmpq	%r14, (%rax,%r13,8)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_20
LBB0_5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movq	8(%r15), %r14
	movq	16(%r15), %rdi
	subq	%r13, %r14
	subq	%rbx, %rdi
	movl	$4, %esi
	callq	_min
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_min
	movl	%eax, %r14d
	movq	%rbx, %rsi
	movslq	%eax, %rbx
	movq	32(%r15), %rcx
	imulq	%r13, %rcx
	shlq	$2, %rcx
	addq	40(%r15), %rcx
	movq	%r15, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_FatReadVolumeSectors
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str(%rip), %rdi
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.9:
	movq	24(%r15), %r9
	cmpq	$2, %rbx
	movl	$1, %ecx
	cmovaeq	%rbx, %rcx
	cmpq	$4, %rcx
	jae	LBB0_11
## %bb.10:
	xorl	%edx, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_6:
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_11:
	movq	%rcx, %rdx
	andq	$-4, %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	je	LBB0_12
## %bb.13:
	movq	%r8, %rbx
	andq	$-2, %rbx
	leaq	2(%rax), %rsi
	movq	%rsi, %xmm1
	pshufd	$68, %xmm1, %xmm2               ## xmm2 = xmm1[0,1,0,1]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [4,4]
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [8,8]
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm5
	paddq	%xmm0, %xmm5
	movdqa	%xmm2, %xmm6
	paddq	%xmm1, %xmm6
	leaq	(%rsi,%r13), %rax
	movdqu	%xmm5, (%r9,%rax,8)
	movdqu	%xmm6, 16(%r9,%rax,8)
	movq	%rsi, %rax
	orq	$4, %rax
	movdqa	%xmm1, %xmm5
	paddq	%xmm3, %xmm5
	movdqa	%xmm2, %xmm6
	paddq	%xmm5, %xmm6
	paddq	%xmm0, %xmm5
	addq	%r13, %rax
	movdqu	%xmm5, (%r9,%rax,8)
	movdqu	%xmm6, 16(%r9,%rax,8)
	addq	$8, %rsi
	paddq	%xmm4, %xmm1
	addq	$-2, %rbx
	jne	LBB0_14
	jmp	LBB0_15
LBB0_12:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%esi, %esi
LBB0_15:
	testb	$1, %r8b
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_17
## %bb.16:
	paddq	%xmm1, %xmm0
	leaq	2(%r14), %rax
	movq	%rax, %xmm2
	pshufd	$68, %xmm2, %xmm2               ## xmm2 = xmm2[0,1,0,1]
	paddq	%xmm1, %xmm2
	addq	%r13, %rsi
	movdqu	%xmm0, (%r9,%rsi,8)
	movdqu	%xmm2, 16(%r9,%rsi,8)
LBB0_17:
	cmpq	%rdx, %rcx
	je	LBB0_20
LBB0_18:
	subq	%rdx, %rcx
	addq	%rdx, %r12
	addq	%r10, %r12
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rdx,%r13), %rax
	movq	%r12, (%r9,%rax,8)
	incq	%rdx
	incq	%r12
	decq	%rcx
	jne	LBB0_19
LBB0_20:
	movq	%r14, %rsi
	callq	_TRACE
	imulq	32(%r15), %r13
	shlq	$2, %r13
	addq	40(%r15), %r13
LBB0_21:
	movq	%r13, %rax
	addq	$24, %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	"FAT cache miss: read sector 0x%x from disk\n"

L_.str.1:                               ## @.str.1
	.asciz	"FAT cache hit: sector 0x%x present\n"

	.no_dead_strip	_FatGetFatSector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function FatGetFatSector
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_FatGetFatSector:                       ; @FatGetFatSector
	.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	x21, x1
	mov	x19, x0
	ldp	x24, x8, [x0]
	add	x20, x24, x1
	udiv	x9, x1, x8
	msub	x23, x9, x8, x1
	ldr	x8, [x0, #16]
	cmp	x8, x1
	cset	w0, hi
	bl	_ASSERT
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x23, lsl #3]
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_2:
	ldp	x8, x9, [x19, #8]
	sub	x22, x8, x23
	sub	x0, x9, x20
	mov	w1, #4
	bl	_min
	mov	x1, x0
	mov	x0, x22
	bl	_min
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	ldp	x9, x8, [x19, #32]
	mul	x9, x9, x23
	add	x3, x8, x9, lsl #2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_FatReadVolumeSectors
	cbz	w0, LBB0_6
; %bb.3:
	cbz	w22, LBB0_10
; %bb.4:
	ldr	x8, [x19, #24]
	cmp	x22, #1
	csinc	x10, x22, xzr, hi
	cmp	x10, #8
	b.hs	LBB0_7
; %bb.5:
	mov	x9, #0
	b	LBB0_11
LBB0_6:
	mov	x0, #0
	b	LBB0_14
LBB0_7:
	mov	x11, #0
	and	x9, x10, #0xfffffffffffffff8
	dup.2d	v0, x20
	add	x12, x20, #2
	dup.2d	v1, x12
	add	x12, x20, #4
	dup.2d	v2, x12
	add	x12, x20, #6
Lloh2:
	adrp	x13, lCPI0_0@PAGE
Lloh3:
	ldr	q3, [x13, lCPI0_0@PAGEOFF]
	dup.2d	v4, x12
	mov	w12, #8
	dup.2d	v5, x12
	mov	x12, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add.2d	v6, v3, v0
	add.2d	v7, v1, v3
	add.2d	v16, v2, v3
	add.2d	v17, v4, v3
	add	x13, x11, x23
	add	x13, x8, x13, lsl #3
	stp	q6, q7, [x13]
	stp	q16, q17, [x13, #32]
	add	x11, x11, #8
	add.2d	v3, v3, v5
	subs	x12, x12, #8
	b.ne	LBB0_8
; %bb.9:
	cmp	x10, x9
	b.ne	LBB0_11
LBB0_10:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:
	sub	x10, x10, x9
	add	x11, x9, x24
	add	x11, x11, x21
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x12, x9, x23
	str	x11, [x8, x12, lsl #3]
	add	x9, x9, #1
	add	x11, x11, #1
	subs	x10, x10, #1
	b.ne	LBB0_12
LBB0_13:
	mov	x1, x20
	bl	_TRACE
	ldp	x9, x8, [x19, #32]
	mul	x9, x9, x23
	add	x0, x8, x9, lsl #2
LBB0_14:
	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 AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FAT cache miss: read sector 0x%x from disk\n"

l_.str.1:                               ; @.str.1
	.asciz	"FAT cache hit: sector 0x%x present\n"

	.no_dead_strip	_FatGetFatSector
.subsections_via_symbols
