	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_allocblk                       ## -- Begin function allocblk
	.p2align	4, 0x90
_allocblk:                              ## @allocblk
	.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
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	jle	LBB0_24
## %bb.1:
	movq	%rdi, %r13
	movq	_sblock@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	%rdi, %rax
	jl	LBB0_24
## %bb.2:
	movq	_maxfsblock@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_24
## %bb.3:
	leaq	-1(%r13), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_maxfsblock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	%eax, %r14d
	movslq	%r14d, %rdx
	movslq	%ecx, %rsi
	subq	%rax, %rsi
	xorl	%r15d, %r15d
	cmpq	%rdx, %rsi
	jle	LBB0_24
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	cmpq	%r13, %rax
	jl	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, %r15d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	incl	%r15d
	movslq	%r15d, %rcx
	movq	(%r12), %rax
	movq	%rax, %rdx
	subq	%r13, %rdx
	cmpq	%rcx, %rdx
	jl	LBB0_12
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	leal	(%r15,%r14), %ebx
	movl	%ebx, %edi
	callq	_testbmap
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpq	$2, %r13
	jb	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	leal	1(%r15), %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%r14,%rbx), %edi
	callq	_testbmap
	testq	%rax, %rax
	jne	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=3
	incl	%ebx
	decq	%r13
	jne	LBB0_9
LBB0_15:
	movq	_sblock@GOTPCREL(%rip), %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_dtog
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_cglookup
	movq	(%rax), %r13
	movl	%r12d, %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_check_cgmagic
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movq	_sblock@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	callq	_dtogd
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jle	LBB0_20
## %bb.18:
	movl	%eax, %r12d
	addl	%r14d, %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_setbmap
	movq	%r13, %rdi
	callq	_cg_blksfree
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_clrbit
	incl	%r12d
	incl	%r15d
	decq	%rbx
	jne	LBB0_19
LBB0_20:
	movq	_n_blks@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, (%rax)
	movq	_sblock@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_22
## %bb.21:
	decl	8(%r13)
	jmp	LBB0_23
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_24
LBB0_22:
	subq	%rcx, (%r13)
LBB0_23:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_cgdirty
LBB0_24:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sblock,8,3                     ## @sblock
	.comm	_maxfsblock,4,2                 ## @maxfsblock
	.comm	_n_blks,8,3                     ## @n_blks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_allocblk                       ; -- Begin function allocblk
	.p2align	2
_allocblk:                              ; @allocblk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w20, #0
	subs	x21, x0, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _sblock@GOTPAGE
Lloh1:
	ldr	x22, [x22, _sblock@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x0
	b.lt	LBB0_24
; %bb.2:
Lloh2:
	adrp	x23, _maxfsblock@GOTPAGE
Lloh3:
	ldr	x23, [x23, _maxfsblock@GOTPAGEOFF]
	ldrsw	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_21
; %bb.3:
	mov	w25, #0
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x23]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w20, #0
	add	w25, w25, w8
	sxtw	x10, w9
	sub	x10, x10, x8
	cmp	x10, w25, sxtw
	b.le	LBB0_24
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	cmp	x8, x19
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x26, x24
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	w26, w26, #1
	ldr	x8, [x22]
	sub	x9, x8, x19
	cmp	x9, w26, sxtw
	b.lt	LBB0_4
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	add	w20, w26, w25
	mov	x0, x20
	bl	_testbmap
	cbnz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	cmp	x19, #2
	b.lo	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w24, w26, #1
	mov	x27, x21
LBB0_13:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w0, w25, w24
	bl	_testbmap
	cbnz	x0, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	add	w24, w24, #1
	subs	x27, x27, #1
	b.ne	LBB0_13
LBB0_15:
Lloh4:
	adrp	x0, _sblock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _sblock@GOTPAGEOFF]
	mov	x1, x20
	bl	_dtog
	mov	x23, x0
	bl	_cglookup
	mov	x21, x0
	ldr	x22, [x0]
	mov	x0, x23
	mov	x1, x21
	bl	_check_cgmagic
	cbz	w0, LBB0_21
; %bb.16:
Lloh6:
	adrp	x23, _sblock@GOTPAGE
Lloh7:
	ldr	x23, [x23, _sblock@GOTPAGEOFF]
	mov	x0, x23
	mov	x1, x20
	bl	_dtogd
	cmp	x19, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x24, x0
	add	w25, w25, w26
	mov	x26, x19
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_setbmap
	mov	x0, x22
	bl	_cg_blksfree
	mov	x1, x24
	bl	_clrbit
	add	w24, w24, #1
	add	w25, w25, #1
	subs	x26, x26, #1
	b.ne	LBB0_18
LBB0_19:
Lloh8:
	adrp	x8, _n_blks@GOTPAGE
Lloh9:
	ldr	x8, [x8, _n_blks@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, x19
	str	x9, [x8]
	ldr	x8, [x23]
	cmp	x8, x19
	b.ne	LBB0_22
; %bb.20:
	ldr	w8, [x22, #8]
	sub	w8, w8, #1
	str	w8, [x22, #8]
	b	LBB0_23
LBB0_21:
	mov	w20, #0
	b	LBB0_24
LBB0_22:
	ldr	x8, [x22]
	sub	x8, x8, x19
	str	x8, [x22]
LBB0_23:
	mov	x0, x21
	bl	_cgdirty
LBB0_24:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_sblock,8,3                     ; @sblock
	.comm	_maxfsblock,4,2                 ; @maxfsblock
	.comm	_n_blks,8,3                     ; @n_blks
.subsections_via_symbols
