	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_fat_nextCluster           ## -- Begin function _FAT_fat_nextCluster
	.p2align	4, 0x90
__FAT_fat_nextCluster:                  ## @_FAT_fat_nextCluster
	.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	_CLUSTER_FREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	%rsi, %rax
	je	LBB0_26
## %bb.1:
	movq	%rdi, %r14
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_24
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_24:
	movq	_CLUSTER_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_17:
	movq	8(%r14), %rcx
	movq	24(%r14), %rsi
	leaq	(,%rbx,4), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_18
## %bb.19:
	cqto
	idivq	%rcx
	movq	%rax, %r9
	jmp	LBB0_20
LBB0_9:
	movq	8(%r14), %rcx
	movq	24(%r14), %rsi
	leaq	(%rbx,%rbx), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_10
## %bb.11:
	cqto
	idivq	%rcx
	movq	%rax, %r9
	jmp	LBB0_12
LBB0_3:
	movq	8(%r14), %rsi
	movq	24(%r14), %rcx
	leaq	(%rbx,%rbx,2), %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	cqto
	idivq	%rsi
	movq	%rdx, %r12
	movq	%rax, %r15
	jmp	LBB0_6
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r9d
LBB0_20:
	addq	%rsi, %r9
	sarq	$2, %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_21
## %bb.22:
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	jmp	LBB0_23
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r9d
LBB0_12:
	addq	%rsi, %r9
	sarq	%rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.14:
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	jmp	LBB0_15
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %r12d
	movl	%eax, %r15d
LBB0_6:
	addq	%rcx, %r15
	movl	16(%r14), %edi
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %rsi
	movl	$4, %r8d
	movq	%r15, %rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	__FAT_cache_readLittleEndianValue
	incl	%r12d
	movslq	%r12d, %rcx
	xorl	%edx, %edx
	cmpq	%rcx, 8(%r14)
	cmovlel	%r13d, %ecx
	setle	%dl
	addq	%r15, %rdx
	movl	$0, -52(%rbp)
	movl	16(%r14), %edi
	leaq	-52(%rbp), %rsi
	movl	$4, %r8d
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	__FAT_cache_readLittleEndianValue
	movl	-52(%rbp), %eax
	shll	$8, %eax
	movslq	%eax, %rcx
	orq	-48(%rbp), %rcx
	movl	%ecx, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	sarq	$4, %rcx
	testb	$1, %bl
	cmovneq	%rcx, %rax
	cmpq	$4087, %rax                     ## imm = 0xFF7
	jl	LBB0_8
## %bb.7:
	movq	_CLUSTER_EOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	movq	%rax, %rbx
	jmp	LBB0_26
LBB0_21:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
LBB0_23:
	shll	$2, %ecx
	movl	16(%r14), %edi
	leaq	-48(%rbp), %rsi
	movl	$4, %r8d
	movq	%r9, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	__FAT_cache_readLittleEndianValue
	movq	-48(%rbp), %rbx
	cmpq	$268435447, %rbx                ## imm = 0xFFFFFF7
	jge	LBB0_16
	jmp	LBB0_26
LBB0_13:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
LBB0_15:
	addl	%ecx, %ecx
	movl	16(%r14), %edi
	leaq	-48(%rbp), %rsi
	movl	$4, %r8d
	movq	%r9, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	__FAT_cache_readLittleEndianValue
	movq	-48(%rbp), %rbx
	cmpq	$65527, %rbx                    ## imm = 0xFFF7
	jl	LBB0_26
LBB0_16:
	movq	_CLUSTER_EOF@GOTPCREL(%rip), %rax
LBB0_25:
	movq	(%rax), %rbx
LBB0_26:
	movq	%rbx, %rax
	addq	$24, %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_24, LBB0_24-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_24
	.long	L0_0_set_17
	.long	L0_0_set_9
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_CLUSTER_FREE,8,3               ## @CLUSTER_FREE
	.comm	_CLUSTER_ERROR,8,3              ## @CLUSTER_ERROR
	.comm	_CLUSTER_EOF,8,3                ## @CLUSTER_EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_fat_nextCluster           ; -- Begin function _FAT_fat_nextCluster
	.p2align	2
__FAT_fat_nextCluster:                  ; @_FAT_fat_nextCluster
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
Lloh0:
	adrp	x8, _CLUSTER_FREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLUSTER_FREE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cmp	x8, x1
	b.eq	LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh5:
	adrp	x8, _CLUSTER_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CLUSTER_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	x19, [x8]
	b	LBB0_9
LBB0_4:
	ldr	x8, [x20, #24]
	lsl	x9, x19, #2
	ldr	x10, [x20, #8]
	sdiv	x9, x9, x10
	add	x8, x9, x8
	asr	x9, x10, #2
	sdiv	x10, x19, x9
	msub	w9, w10, w9, w19
	lsl	w9, w9, #2
	ldr	w0, [x20, #16]
	mov	w10, #4
	add	x11, sp, #40
	stp	x11, x8, [sp]
	stp	x9, x10, [sp, #16]
	bl	__FAT_cache_readLittleEndianValue
	ldr	x8, [sp, #40]
Lloh8:
	adrp	x9, _CLUSTER_EOF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CLUSTER_EOF@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	mov	w10, #65526
	movk	w10, #4095, lsl #16
	b	LBB0_6
LBB0_5:
	ldr	x8, [x20, #24]
	lsl	x9, x19, #1
	ldr	x10, [x20, #8]
	sdiv	x9, x9, x10
	add	x8, x9, x8
	asr	x9, x10, #1
	sdiv	x10, x19, x9
	msub	w9, w10, w9, w19
	lsl	w9, w9, #1
	ldr	w0, [x20, #16]
	mov	w10, #4
	add	x11, sp, #40
	stp	x11, x8, [sp]
	stp	x9, x10, [sp, #16]
	bl	__FAT_cache_readLittleEndianValue
	ldr	x8, [sp, #40]
Lloh11:
	adrp	x9, _CLUSTER_EOF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CLUSTER_EOF@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	mov	w10, #65526
LBB0_6:
	cmp	x8, x10
	b	LBB0_8
LBB0_7:
	ldr	x8, [x20, #24]
	add	x9, x19, x19, lsl #1
	cmp	x9, #0
	cinc	x9, x9, lt
	asr	x9, x9, #1
	ldr	x10, [x20, #8]
	sdiv	x11, x9, x10
	add	x21, x11, x8
	msub	x22, x11, x10, x9
	ldr	w0, [x20, #16]
	mov	w23, #4
	add	x8, sp, #40
	stp	x8, x21, [sp]
	stp	x22, x23, [sp, #16]
	bl	__FAT_cache_readLittleEndianValue
	add	w8, w22, #1
	ldr	x9, [x20, #8]
	cmp	x9, w8, sxtw
	cinc	x8, x21, le
	csinc	w9, wzr, w22, le
	str	wzr, [sp, #36]
	ldr	w0, [x20, #16]
	add	x10, sp, #36
	stp	x10, x8, [sp]
	stp	x9, x23, [sp, #16]
	bl	__FAT_cache_readLittleEndianValue
	ldr	w8, [sp, #36]
	lsl	w8, w8, #8
	sxtw	x8, w8
	ldr	x9, [sp, #40]
	orr	x8, x9, x8
	and	x9, x8, #0xfff
	asr	x8, x8, #4
	tst	x19, #0x1
	csel	x8, x9, x8, eq
Lloh14:
	adrp	x9, _CLUSTER_EOF@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CLUSTER_EOF@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, #4086
LBB0_8:
	csel	x19, x9, x8, gt
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
                                        ; -- End function
	.comm	_CLUSTER_FREE,8,3               ; @CLUSTER_FREE
	.comm	_CLUSTER_ERROR,8,3              ; @CLUSTER_ERROR
	.comm	_CLUSTER_EOF,8,3                ; @CLUSTER_EOF
.subsections_via_symbols
