	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chkrange                       ## -- Begin function chkrange
	.p2align	4, 0x90
_chkrange:                              ## @chkrange
	.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	$1, %ebx
	testq	%rdi, %rdi
	jle	LBB0_16
## %bb.1:
	movl	%esi, %r14d
	testl	%esi, %esi
	jle	LBB0_16
## %bb.2:
	movq	%rdi, %r12
	movq	_maxfsblock@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rdi, %rax
	jl	LBB0_16
## %bb.3:
	leal	-1(%r14), %ecx
	cmpq	%rcx, %rax
	jl	LBB0_16
## %bb.4:
	movq	_sblock@GOTPCREL(%rip), %r15
	cmpl	%r14d, (%r15)
	jl	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_fragnum
	addl	%r14d, %eax
	cmpl	(%r15), %eax
	jle	LBB0_8
LBB0_6:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.7:
	movq	_sblock@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_fragnum
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_printf
LBB0_16:
	movl	$1, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_sblock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_dtog
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cgdmin
	movl	%r14d, %r14d
	addq	%r12, %r14
	cmpq	%r12, %rax
	jle	LBB0_12
## %bb.9:
	movq	_sblock@GOTPCREL(%rip), %rdi
	movl	%r15d, %esi
	callq	_cgsblock
	xorl	%ebx, %ebx
	cmpq	%rax, %r14
	jle	LBB0_17
## %bb.10:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.11:
	movq	_sblock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_cgdmin
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_cgsblock
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	jmp	LBB0_15
LBB0_12:
	movl	%r15d, %esi
	incl	%esi
	movq	_sblock@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_cgbase
	xorl	%ebx, %ebx
	cmpq	%rax, %r14
	jle	LBB0_17
## %bb.13:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.14:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_cgdmin
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	8(%r13), %rdx
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
LBB0_15:
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_maxfsblock,8,3                 ## @maxfsblock
	.comm	_sblock,16,3                    ## @sblock
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad size: blk %ld, offset %i, size %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"blk %ld < cgdmin %ld;"

L_.str.2:                               ## @.str.2
	.asciz	" blk + cnt %ld > cgsbase %ld\n"

L_.str.3:                               ## @.str.3
	.asciz	"blk %ld >= cgdmin %ld;"

L_.str.4:                               ## @.str.4
	.asciz	" blk + cnt %ld > sblock.fs_fpg %ld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chkrange                       ; -- Begin function chkrange
	.p2align	2
_chkrange:                              ; @chkrange
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	w0, #1
	cmp	x19, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x20, x1
	subs	w8, w1, #1
	b.lt	LBB0_10
; %bb.2:
Lloh0:
	adrp	x9, _maxfsblock@GOTPAGE
Lloh1:
	ldr	x9, [x9, _maxfsblock@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	subs	x9, x9, x19
	b.lt	LBB0_9
; %bb.3:
	cmp	x9, x8
	b.lt	LBB0_9
; %bb.4:
Lloh3:
	adrp	x21, _sblock@GOTPAGE
Lloh4:
	ldr	x21, [x21, _sblock@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w20
	b.lt	LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_fragnum
	ldr	w8, [x21]
	add	w9, w0, w20
	cmp	w9, w8
	b.le	LBB0_11
LBB0_6:
Lloh5:
	adrp	x8, _debug@GOTPAGE
Lloh6:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.7:
Lloh8:
	adrp	x0, _sblock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _sblock@GOTPAGEOFF]
	mov	x1, x19
	bl	_fragnum
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
	str	x20, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
LBB0_8:
	bl	_printf
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
	add	sp, sp, #64
	ret
LBB0_11:
Lloh12:
	adrp	x22, _sblock@GOTPAGE
Lloh13:
	ldr	x22, [x22, _sblock@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x19
	bl	_dtog
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_cgdmin
	add	x20, x19, w20, uxtw
	cmp	x0, x19
	b.le	LBB0_15
; %bb.12:
Lloh14:
	adrp	x0, _sblock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _sblock@GOTPAGEOFF]
	mov	x1, x21
	bl	_cgsblock
	cmp	x20, x0
	b.le	LBB0_19
; %bb.13:
Lloh16:
	adrp	x8, _debug@GOTPAGE
Lloh17:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.14:
Lloh19:
	adrp	x22, _sblock@GOTPAGE
Lloh20:
	ldr	x22, [x22, _sblock@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x21
	bl	_cgdmin
	mov	x2, x0
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	x0, x22
	mov	x1, x21
	bl	_cgsblock
	mov	x2, x0
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_15:
	add	w1, w21, #1
Lloh25:
	adrp	x22, _sblock@GOTPAGE
Lloh26:
	ldr	x22, [x22, _sblock@GOTPAGEOFF]
	mov	x0, x22
	bl	_cgbase
	cmp	x20, x0
	b.le	LBB0_19
; %bb.16:
Lloh27:
	adrp	x8, _debug@GOTPAGE
Lloh28:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.17:
	mov	x0, x22
	mov	x1, x21
	bl	_cgdmin
	mov	x2, x0
Lloh30:
	adrp	x0, l_.str.3@PAGE
Lloh31:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_printf
	ldr	x2, [x22, #8]
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_18:
	mov	x1, x20
	b	LBB0_8
LBB0_19:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_maxfsblock,8,3                 ; @maxfsblock
	.comm	_sblock,16,3                    ; @sblock
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad size: blk %ld, offset %i, size %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"blk %ld < cgdmin %ld;"

l_.str.2:                               ; @.str.2
	.asciz	" blk + cnt %ld > cgsbase %ld\n"

l_.str.3:                               ; @.str.3
	.asciz	"blk %ld >= cgdmin %ld;"

l_.str.4:                               ; @.str.4
	.asciz	" blk + cnt %ld > sblock.fs_fpg %ld\n"

.subsections_via_symbols
