	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fatget
_fatget:                                ## @fatget
	.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	(%rsi), %r15d
	cmpl	$268435456, %r15d               ## imm = 0x10000000
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	movl	%r15d, %esi
	callq	_fatoff
	movl	%eax, %r12d
	movl	20(%r13), %edi
	xorl	%ebx, %ebx
	cmpl	$32, (%r13)
	sete	%bl
	leal	(%r12,%rbx,2), %r14d
	addl	$2, %r14d
	callq	_secbyt
	cmpl	%eax, %r14d
	jg	LBB0_1
## %bb.3:
	movq	_FATBLKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%edx, %r12d
	leal	(%rbx,%rbx), %edx
	addl	$2, %edx
	addl	%r12d, %edx
	cmpl	%ecx, %edx
	jle	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	4(%r13), %eax
	je	LBB0_6
## %bb.5:
	movl	16(%r13), %esi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_dos_read_fatblk
	testl	%eax, %eax
	jne	LBB0_16
LBB0_6:
	movslq	%r12d, %rdi
	shlq	$2, %rdi
	addq	8(%r13), %rdi
	movl	(%r13), %eax
	cmpl	$12, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$16, %eax
	je	LBB0_13
## %bb.8:
	cmpl	$32, %eax
	jne	LBB0_1
## %bb.9:
	callq	_cv4
	andl	$268435455, %eax                ## imm = 0xFFFFFFF
	jmp	LBB0_14
LBB0_13:
	callq	_cv2
LBB0_14:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_10:
	callq	_cv2
	testb	$1, %r15b
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_11
## %bb.12:
	andl	$4095, %eax                     ## imm = 0xFFF
	jmp	LBB0_15
LBB0_11:
	sarl	$4, %eax
LBB0_15:
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FATBLKSZ,4,2                   ## @FATBLKSZ
	.no_dead_strip	_fatget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fatget
_fatget:                                ; @fatget
	.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
	ldr	w20, [x1]
	lsr	w8, w20, #28
	cbnz	w8, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x0]
	mov	x1, x20
	bl	_fatoff
	mov	x22, x0
	ldr	w8, [x21]
	mov	w9, #2
	mov	w10, #4
	cmp	w8, #32
	csel	w23, w10, w9, eq
	add	w24, w23, w0
	ldr	w0, [x21, #20]
	bl	_secbyt
	cmp	w24, w0
	b.gt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _FATBLKSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FATBLKSZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w2, w22, w8
	msub	w22, w2, w8, w22
	add	w9, w22, w23
	cmp	w9, w8
	b.le	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_4:
	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
LBB0_5:
	ldr	w8, [x21, #4]
	cmp	w2, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w1, [x21, #16]
	mov	x0, x21
	bl	_dos_read_fatblk
	cbnz	w0, LBB0_4
LBB0_7:
	ldr	x8, [x21, #8]
	add	x0, x8, w22, sxtw #2
	ldr	w8, [x21]
	cmp	w8, #12
	b.eq	LBB0_11
; %bb.8:
	cmp	w8, #16
	b.eq	LBB0_12
; %bb.9:
	cmp	w8, #32
	b.ne	LBB0_3
; %bb.10:
	bl	_cv4
	and	w8, w0, #0xfffffff
	b	LBB0_13
LBB0_11:
	bl	_cv2
	and	w8, w0, #0xfff
	asr	w9, w0, #4
	tst	w20, #0x1
	csel	w8, w8, w9, eq
	b	LBB0_13
LBB0_12:
	bl	_cv2
	mov	x8, x0
LBB0_13:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FATBLKSZ,4,2                   ; @FATBLKSZ
	.no_dead_strip	_fatget
.subsections_via_symbols
