	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkclnum
_checkclnum:                            ## @checkclnum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rcx, %rbx
	movl	%esi, %r9d
	movl	(%rcx), %r8d
	movq	_CLUST_RSRVD@GOTPCREL(%rip), %rcx
	movl	(%rdi), %esi
	movl	(%rcx), %eax
	andl	%esi, %eax
	cmpl	%eax, %r8d
	jl	LBB0_2
## %bb.1:
	notl	%esi
	orl	%esi, %r8d
	movl	%r8d, (%rbx)
LBB0_2:
	movq	_CLUST_FREE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_4
## %bb.3:
	incl	12(%rdi)
	movq	_FSOK@GOTPCREL(%rip), %rsi
	jmp	LBB0_12
LBB0_4:
	movq	_CLUST_BAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_6
## %bb.5:
	incl	8(%rdi)
	movq	_FSOK@GOTPCREL(%rip), %rsi
	jmp	LBB0_12
LBB0_6:
	movq	_CLUST_FIRST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jl	LBB0_9
## %bb.7:
	movq	_FSOK@GOTPCREL(%rip), %rsi
	cmpl	4(%rdi), %r8d
	jl	LBB0_12
## %bb.8:
	movq	_CLUST_EOFS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jge	LBB0_12
LBB0_9:
	cmpl	(%rcx), %r8d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmovlq	%rax, %rcx
	andl	(%rdi), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	movl	%r9d, %edx
	callq	_pwarn
	leaq	L_.str.3(%rip), %rsi
	xorl	%edi, %edi
	callq	_ask
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	_CLUST_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_FSFATMOD@GOTPCREL(%rip), %rsi
	jmp	LBB0_12
LBB0_10:
	movq	_FSERROR@GOTPCREL(%rip), %rsi
LBB0_12:
	movl	(%rsi), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLUST_RSRVD,4,2                ## @CLUST_RSRVD
	.comm	_CLUST_FREE,4,2                 ## @CLUST_FREE
	.comm	_FSOK,4,2                       ## @FSOK
	.comm	_CLUST_BAD,4,2                  ## @CLUST_BAD
	.comm	_CLUST_FIRST,4,2                ## @CLUST_FIRST
	.comm	_CLUST_EOFS,4,2                 ## @CLUST_EOFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cluster %u in FAT %d continues with %s cluster number %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"out of range"

L_.str.2:                               ## @.str.2
	.asciz	"reserved"

L_.str.3:                               ## @.str.3
	.asciz	"Truncate"

	.comm	_CLUST_EOF,4,2                  ## @CLUST_EOF
	.comm	_FSFATMOD,4,2                   ## @FSFATMOD
	.comm	_FSERROR,4,2                    ## @FSERROR
	.no_dead_strip	_checkclnum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkclnum
_checkclnum:                            ; @checkclnum
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	mov	x8, x1
	ldr	w9, [x3]
Lloh0:
	adrp	x10, _CLUST_RSRVD@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CLUST_RSRVD@GOTPAGEOFF]
	ldr	w12, [x10]
	ldr	w11, [x0]
	and	w12, w11, w12
	cmp	w9, w12
	b.lt	LBB0_2
; %bb.1:
	orn	w9, w9, w11
	str	w9, [x19]
LBB0_2:
Lloh2:
	adrp	x11, _CLUST_FREE@GOTPAGE
Lloh3:
	ldr	x11, [x11, _CLUST_FREE@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	cmp	w9, w11
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x0, #12]
	add	w8, w8, #1
	str	w8, [x0, #12]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x11, _CLUST_BAD@GOTPAGE
Lloh6:
	ldr	x11, [x11, _CLUST_BAD@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	cmp	w9, w11
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x0, #8]
	add	w8, w8, #1
	str	w8, [x0, #8]
LBB0_6:
Lloh8:
	adrp	x11, _FSOK@GOTPAGE
Lloh9:
	ldr	x11, [x11, _FSOK@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x11]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh10:
	adrp	x11, _CLUST_FIRST@GOTPAGE
Lloh11:
	ldr	x11, [x11, _CLUST_FIRST@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	cmp	w9, w11
	b.lt	LBB0_11
; %bb.9:
	ldr	w12, [x0, #4]
Lloh13:
	adrp	x11, _FSOK@GOTPAGE
Lloh14:
	ldr	x11, [x11, _FSOK@GOTPAGEOFF]
	cmp	w9, w12
	b.lt	LBB0_7
; %bb.10:
Lloh15:
	adrp	x12, _CLUST_EOFS@GOTPAGE
Lloh16:
	ldr	x12, [x12, _CLUST_EOFS@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	cmp	w9, w12
	b.ge	LBB0_7
LBB0_11:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, l_.str.2@PAGE
Lloh19:
	add	x11, x11, l_.str.2@PAGEOFF
Lloh20:
	adrp	x12, l_.str.1@PAGE
Lloh21:
	add	x12, x12, l_.str.1@PAGEOFF
	cmp	w9, w10
	csel	x3, x12, x11, lt
	ldr	w10, [x0]
	and	w4, w10, w9
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	mov	x2, x8
	bl	_pwarn
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #0
	bl	_ask
	cbz	x0, LBB0_13
; %bb.12:
Lloh26:
	adrp	x8, _CLUST_EOF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CLUST_EOF@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh29:
	adrp	x11, _FSFATMOD@GOTPAGE
Lloh30:
	ldr	x11, [x11, _FSFATMOD@GOTPAGEOFF]
	b	LBB0_7
LBB0_13:
Lloh31:
	adrp	x11, _FSERROR@GOTPAGE
Lloh32:
	ldr	x11, [x11, _FSERROR@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CLUST_RSRVD,4,2                ; @CLUST_RSRVD
	.comm	_CLUST_FREE,4,2                 ; @CLUST_FREE
	.comm	_FSOK,4,2                       ; @FSOK
	.comm	_CLUST_BAD,4,2                  ; @CLUST_BAD
	.comm	_CLUST_FIRST,4,2                ; @CLUST_FIRST
	.comm	_CLUST_EOFS,4,2                 ; @CLUST_EOFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cluster %u in FAT %d continues with %s cluster number %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"out of range"

l_.str.2:                               ; @.str.2
	.asciz	"reserved"

l_.str.3:                               ; @.str.3
	.asciz	"Truncate"

	.comm	_CLUST_EOF,4,2                  ; @CLUST_EOF
	.comm	_FSFATMOD,4,2                   ; @FSFATMOD
	.comm	_FSERROR,4,2                    ; @FSERROR
	.no_dead_strip	_checkclnum
.subsections_via_symbols
