	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _FAT_cache_getPage
__FAT_cache_getPage:                    ## @_FAT_cache_getPage
	.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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movl	(%rdi), %eax
	movl	4(%rdi), %r11d
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	_UINT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_CACHE_FREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r13d, %r13d
	movq	%r14, %rbx
	xorl	%r8d, %r8d
	xorl	%edi, %edi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	testl	%edi, %edi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	addq	$20, %rbx
	cmpq	%r13, %rax
	je	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	cmpl	%r12d, %edx
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rbx), %esi
	addl	%edx, %esi
	cmpl	%r12d, %esi
	jbe	LBB0_8
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%rbx), %esi
	cmpl	%ecx, %edx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	cmpl	%r9d, %esi
	jae	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	cmpl	%ecx, %edx
	sete	%dil
	movl	%r13d, %r8d
	movl	%esi, %r9d
	jmp	LBB0_13
LBB0_14:
	testl	%edi, %edi
	je	LBB0_2
## %bb.15:
	movl	%r8d, %r13d
	jmp	LBB0_17
LBB0_1:
	xorl	%r8d, %r8d
LBB0_2:
	movl	%r8d, %r13d
	leaq	(,%r13,4), %rbx
	addq	%r13, %rbx
	cmpl	$1, 12(%r14,%rbx,4)
	jne	LBB0_17
## %bb.3:
	movl	%r11d, -44(%rbp)                ## 4-byte Spill
	movl	12(%r15), %edi
	movl	(%r14,%rbx,4), %esi
	movl	4(%r14,%rbx,4), %edx
	movl	16(%r14,%rbx,4), %ecx
	callq	__FAT_disc_writeSectors
	testl	%eax, %eax
	je	LBB0_4
## %bb.16:
	leaq	(%r14,%rbx,4), %rax
	addq	$12, %rax
	movl	$0, (%rax)
	movl	-44(%rbp), %r11d                ## 4-byte Reload
LBB0_17:
	xorl	%ebx, %ebx
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%r11d
	subl	%edx, %r12d
	addl	%r12d, %r11d
	movl	8(%r15), %eax
	cmpl	%eax, %r11d
	cmovael	%eax, %r11d
	movl	12(%r15), %edi
	subl	%r12d, %r11d
	movl	%r11d, -44(%rbp)                ## 4-byte Spill
	leaq	(,%r13,4), %r15
	addq	%r13, %r15
	movl	16(%r14,%r15,4), %ecx
	movl	%r12d, %esi
	movl	%r11d, %edx
	callq	__FAT_disc_readSectors
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	leaq	(%r14,%r15,4), %rbx
	movl	%r12d, (%r14,%r15,4)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14,%r15,4)
LBB0_19:
	xorl	%eax, %eax
	callq	_accessTime
	leaq	(,%r13,4), %rcx
	addq	%r13, %rcx
	movl	%eax, 8(%r14,%rcx,4)
LBB0_20:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_CACHE_FREE,4,2                 ## @CACHE_FREE
	.no_dead_strip	__FAT_cache_getPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _FAT_cache_getPage
__FAT_cache_getPage:                    ; @_FAT_cache_getPage
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldp	w12, w23, [x0]
	cbz	w12, LBB0_10
; %bb.1:
	mov	x9, #0
	mov	w8, #0
	mov	w14, #0
Lloh0:
	adrp	x10, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _CACHE_FREE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _CACHE_FREE@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	neg	x12, x12
	mov	w13, #20
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	madd	x21, x9, x13, x22
	add	x9, x9, #1
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x21]
	cmp	w15, w20
	b.hi	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	w16, [x21, #4]
	add	w16, w16, w15
	cmp	w16, w20
	b.hi	LBB0_17
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=2
	cbz	w14, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x21, x21, #20
	add	x9, x9, #1
	add	x15, x12, x9
	mov	w14, #1
	cmp	x15, #1
	b.ne	LBB0_3
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w15, w11
	cset	w14, eq
	ldr	w16, [x21, #8]
	cmp	w16, w10
	cset	w17, lo
	orr	w17, w14, w17
	sub	w0, w9, #1
	cmp	w17, #0
	csel	w8, w0, w8, ne
	csel	w10, w16, w10, ne
	cmn	x12, x9
	b.ne	LBB0_2
; %bb.8:
	cmp	w15, w11
	b.ne	LBB0_11
LBB0_9:
	mov	w24, w8
	b	LBB0_14
LBB0_10:
	mov	w8, #0
LBB0_11:
	mov	w24, w8
	mov	w9, #20
	umaddl	x21, w8, w9, x22
	ldr	w8, [x21, #12]!
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.12:
	ldr	w0, [x19, #12]
	mov	w8, #20
	madd	x8, x24, x8, x22
	ldp	w1, w2, [x8]
	ldr	w3, [x8, #16]
	bl	__FAT_disc_writeSectors
	cbz	w0, LBB0_16
; %bb.13:
	str	wzr, [x21]
LBB0_14:
	udiv	w8, w20, w23
	mul	w20, w8, w23
	ldp	w8, w0, [x19, #8]
	add	w9, w20, w23
	cmp	w9, w8
	csel	w8, w9, w8, lo
	sub	w19, w8, w20
	mov	w8, #20
	madd	x8, x24, x8, x22
	ldr	w3, [x8, #16]
	mov	x1, x20
	mov	x2, x19
	bl	__FAT_disc_readSectors
	cbz	w0, LBB0_16
; %bb.15:
	mov	w8, #20
	madd	x21, x24, x8, x22
	stp	w20, w19, [x21]
	b	LBB0_18
LBB0_16:
	mov	x21, #0
	b	LBB0_19
LBB0_17:
	sub	w24, w9, #1
LBB0_18:
	bl	_accessTime
	mov	w8, #20
	madd	x8, x24, x8, x22
	str	w0, [x8, #8]
LBB0_19:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_CACHE_FREE,4,2                 ; @CACHE_FREE
	.no_dead_strip	__FAT_cache_getPage
.subsections_via_symbols
