	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reclaim_block
_reclaim_block:                         ## @reclaim_block
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	32(%rdi), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	*%rax
LBB0_2:
	movl	(%r14), %eax
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	cltd
	idivl	(%r12)
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_5
LBB0_3:
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
LBB0_5:
	movl	4(%r12), %r9d
	testl	%r9d, %r9d
	jle	LBB0_16
## %bb.6:
	movl	8(%r12), %r8d
	movl	$-1, %r15d
	movl	$2147483647, %esi               ## imm = 0x7FFFFFFF
	movl	$16, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	decl	%edx
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	(%rcx,%rdi), %edx
	cmpl	%esi, %edx
	cmovll	%ebx, %r15d
	cmovll	%edx, %esi
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	addq	$24, %rdi
	cmpq	%rbx, %r9
	je	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r8
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r12), %rcx
	cmpq	$0, -8(%rcx,%rdi)
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-16(%rcx,%rdi), %edx
	cmpq	%rbx, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	12(%r12), %edx
	jne	LBB0_13
	jmp	LBB0_14
LBB0_15:
	cmpl	$-1, %r15d
	je	LBB0_16
## %bb.18:
	movl	$-1, 16(%r12)
	movl	%r15d, 8(%r12)
	movq	24(%r12), %rax
	movslq	%r15d, %rcx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movl	(%rax,%rbx), %edx
	movq	8(%rax,%rbx), %rcx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_debug
	movq	24(%r12), %rax
	cmpl	$0, (%rax,%rbx)
	je	LBB0_19
## %bb.20:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_move_block_contents            ## TAILCALL
LBB0_16:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_9:
	xorl	%eax, %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r12, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_erase_block                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reclaim_block: reclaiming block #%d with %d used %d free sectors\n"

	.no_dead_strip	_reclaim_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reclaim_block
_reclaim_block:                         ; @reclaim_block
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	ldr	x0, [x0, #32]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	blr	x8
LBB0_2:
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x20]
	sdiv	w11, w8, w9
	b	LBB0_5
LBB0_4:
	mov	w11, #-1
LBB0_5:
	ldr	w12, [x20, #4]
	cmp	w12, #1
	b.lt	LBB0_17
; %bb.6:
	mov	w8, #0
	mov	x9, #0
	ldr	w10, [x20, #8]
	add	x10, x10, x10, lsl #1
	lsl	x10, x10, #3
	add	x11, x11, x11, lsl #1
	lsl	x11, x11, #3
	add	x12, x12, x12, lsl #1
	lsl	x12, x12, #3
	mov	w21, #-1
	mov	w13, #2147483647
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	sub	w15, w15, #1
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x14, x14, x9
	ldr	w14, [x14, #16]
	add	w14, w15, w14
	cmp	w14, w13
	csel	w21, w8, w21, lt
	csel	w13, w14, w13, lt
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #24
	add	w8, w8, #1
	cmp	x12, x9
	b.eq	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	x10, x9
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x14, [x20, #24]
	add	x15, x14, x9
	ldr	x15, [x15, #8]
	cbnz	x15, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w15, [x14, x9]
	cmp	x11, x9
	b.eq	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w16, [x20, #12]
	cmp	w15, w16
	b.ne	LBB0_8
	b	LBB0_9
LBB0_14:
	cmn	w21, #1
	b.eq	LBB0_17
; %bb.15:
	mov	w8, #-1
	str	w8, [x20, #16]
	str	w21, [x20, #8]
	ldr	x8, [x20, #24]
	mov	w9, #24
	smaddl	x8, w21, w9, x8
	smull	x22, w21, w9
	ldr	w2, [x8]
	ldr	x3, [x8, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	ldr	x8, [x20, #24]
	ldr	w8, [x8, x22]
	cbz	w8, LBB0_20
; %bb.16:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_move_block_contents
LBB0_17:
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_erase_block
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reclaim_block: reclaiming block #%d with %d used %d free sectors\n"

	.no_dead_strip	_reclaim_block
.subsections_via_symbols
