	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dos_read_fatblk
_dos_read_fatblk:                       ## @dos_read_fatblk
	.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
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_FATBLKSZ@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	imulq	%rdx, %rbx
	movl	24(%rdi), %edi
	callq	_secbyt
	cmpq	%rax, %rbx
	cmovaeq	%rax, %rbx
	movq	(%r12), %rdx
	leaq	(%rbx,%rdx), %rcx
	movq	%rax, %r13
	subq	%rbx, %r13
	cmpq	%rax, %rcx
	cmovbeq	%rdx, %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	movq	16(%r15), %r12
	movq	%rbx, %rdi
	callq	_bytsec
	addq	%rax, %r12
	movl	8(%r15), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rcx
	callq	_ioget
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	movq	$-1, %r14
	jmp	LBB0_6
LBB0_3:
	movq	_FATBLKSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_4:
	xorl	%r12d, %r12d
	subq	%r13, %rdx
	jbe	LBB0_6
## %bb.5:
	addl	8(%r15), %r13d
	xorl	%r12d, %r12d
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_memset
LBB0_6:
	movq	%r14, (%r15)
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FATBLKSZ,8,3                   ## @FATBLKSZ
	.no_dead_strip	_dos_read_fatblk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dos_read_fatblk
_dos_read_fatblk:                       ; @dos_read_fatblk
	.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, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _FATBLKSZ@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FATBLKSZ@GOTPAGEOFF]
	ldr	x8, [x23]
	mul	x21, x8, x2
	ldr	w0, [x0, #24]
	bl	_secbyt
	mov	x8, x0
	ldr	x9, [x23]
	cmp	x21, x0
	csel	x0, x21, x0, lo
	sub	x10, x8, x0
	add	x11, x0, x9
	cmp	x11, x8
	csel	x21, x10, x9, hi
	cbz	x21, LBB0_4
; %bb.1:
	ldr	x24, [x19, #16]
	bl	_bytsec
	add	x1, x0, x24
	ldr	w2, [x19, #8]
	mov	x0, x22
	mov	x3, x21
	bl	_ioget
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, #-1
	b	LBB0_7
LBB0_3:
	ldr	x9, [x23]
LBB0_4:
	subs	x2, x9, x21
	b.ls	LBB0_6
; %bb.5:
	ldr	w8, [x19, #8]
	add	w0, w8, w21
	mov	w1, #0
	bl	_memset
LBB0_6:
	mov	w0, #0
LBB0_7:
	str	x20, [x19]
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FATBLKSZ,8,3                   ; @FATBLKSZ
	.no_dead_strip	_dos_read_fatblk
.subsections_via_symbols
