	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extent_recycle
_extent_recycle:                        ## @extent_recycle
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	64(%rbp), %r12d
	movl	32(%rbp), %r14d
	callq	_tsdn_witness_tsdp_get
	movq	_WITNESS_RANK_CORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%edx, %edx
	testl	%r12d, %r12d
	setne	%dl
	movl	%eax, %edi
	callq	_witness_assert_depth_to_rank
	testq	%rbx, %rbx
	sete	%al
	testl	%r14d, %r14d
	sete	%r12b
	orb	%r12b, %al
	movzbl	%al, %edi
	callq	_assert
	cmpq	$0, 16(%rbp)
	sete	%al
	orb	%r12b, %al
	movzbl	%al, %edi
	callq	_assert
	movq	48(%rbp), %rax
	cmpl	$0, (%rax)
	sete	%al
	orb	%r12b, %al
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movzbl	%al, %edi
	callq	_assert
	leaq	-100(%rbp), %rsi
	movq	%r13, %rdi
	callq	_tsdn_rtree_ctx
	movq	%rax, %r14
	subq	$8, %rsp
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %r13
	movq	%r15, %rdx
	movq	%rax, %rcx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movq	%r8, %r15
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r9
	movl	64(%rbp), %eax
	pushq	%rax
	movl	32(%rbp), %eax
	pushq	%rax
	pushq	24(%rbp)
	pushq	16(%rbp)
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_extent_recycle_extract
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movl	40(%rbp), %r10d
	subq	$8, %rsp
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rcx
	movq	%r15, %r14
	movq	%r15, %r8
	movq	%rbx, %r9
	movl	64(%rbp), %ebx
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	movl	32(%rbp), %eax
	pushq	%rax
	pushq	24(%rbp)
	movq	16(%rbp), %r13
	pushq	%r13
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_extent_recycle_split
	addq	$64, %rsp
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rax, %r15
	movq	56(%rbp), %r12
	cmpl	$0, (%r12)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_extent_committed_get
	testq	%rax, %rax
	je	LBB0_20
LBB0_4:
	movq	%r15, %rdi
	callq	_extent_committed_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$1, (%r12)
LBB0_6:
	movq	%r15, %rdi
	callq	_extent_zeroed_get
	testq	%rax, %rax
	movq	48(%rbp), %r14
	je	LBB0_8
## %bb.7:
	movl	$1, (%r14)
LBB0_8:
	testq	%r13, %r13
	je	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	24(%rbp), %rcx
	callq	_extent_addr_randomize
LBB0_10:
	movq	%r15, %rdi
	callq	_extent_state_get
	movq	_extent_state_active@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movl	32(%rbp), %esi
	testl	%esi, %esi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_extent_slab_set
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	40(%rbp), %ecx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_extent_interior_register
LBB0_12:
	cmpl	$0, (%r14)
	je	LBB0_25
## %bb.13:
	movq	%r15, %rdi
	callq	_extent_base_get
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_extent_zeroed_get
	testq	%rax, %rax
	je	LBB0_22
## %bb.14:
	movq	_config_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_25
## %bb.15:
	movq	_PAGE@GOTPCREL(%rip), %r14
	cmpl	$8, (%r14)
	jb	LBB0_25
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpq	$0, (%r12,%rbx,8)
	sete	%dil
	callq	_assert
	incq	%rbx
	movslq	(%r14), %rax
	shrq	$3, %rax
	cmpq	%rax, %rbx
	jb	LBB0_17
	jmp	LBB0_25
LBB0_19:
	xorl	%r15d, %r15d
LBB0_25:
	movq	%r15, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%r15, %rdi
	callq	_extent_size_get
	subq	$8, %rsp
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	movq	%rax, %r9
	movl	64(%rbp), %eax
	pushq	%rax
	callq	_extent_commit_impl
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_26
## %bb.21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r15, %r8
	movl	64(%rbp), %r9d
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_extent_record
	xorl	%r15d, %r15d
	jmp	LBB0_25
LBB0_22:
	movq	%r15, %rdi
	callq	_extent_size_get
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_extent_need_manual_zero
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_pages_purge_forced
	testq	%rax, %rax
	je	LBB0_25
LBB0_24:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_memset
	jmp	LBB0_25
LBB0_26:
	movq	%rbx, %rdi
	callq	_extent_need_manual_zero
	testq	%rax, %rax
	jne	LBB0_4
## %bb.27:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_extent_zeroed_set
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_WITNESS_RANK_CORE,4,2          ## @WITNESS_RANK_CORE
	.comm	_extent_state_active,8,3        ## @extent_state_active
	.comm	_config_debug,8,3               ## @config_debug
	.comm	_PAGE,4,2                       ## @PAGE
	.no_dead_strip	_extent_recycle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extent_recycle
_extent_recycle:                        ; @extent_recycle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x27, x7
	mov	x24, x6
	stp	x3, x5, [sp, #72]               ; 16-byte Folded Spill
	mov	x19, x4
	str	x4, [sp, #64]                   ; 8-byte Folded Spill
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldr	w28, [x29, #40]
	ldr	x26, [x29, #24]
	ldr	w22, [x29, #16]
	bl	_tsdn_witness_tsdp_get
Lloh0:
	adrp	x8, _WITNESS_RANK_CORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WITNESS_RANK_CORE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cmp	w28, #0
	cset	w2, ne
	bl	_witness_assert_depth_to_rank
	cmp	x19, #0
	cset	w8, eq
	cmp	w22, #0
	cset	w25, eq
	orr	w0, w8, w25
	bl	_assert
	cmp	x24, #0
	cset	w8, eq
	orr	w0, w8, w25
	bl	_assert
	str	x26, [sp, #48]                  ; 8-byte Folded Spill
	ldr	w8, [x26]
	ldr	x19, [sp, #72]                  ; 8-byte Folded Reload
	cmp	w8, #0
	cset	w8, eq
	orr	w0, w25, w8
	bl	_assert
	sub	x1, x29, #84
	mov	x0, x21
	bl	_tsdn_rtree_ctx
	mov	x26, x0
	stp	w22, w28, [sp, #8]
	str	w22, [sp, #88]                  ; 4-byte Folded Spill
	str	x27, [sp, #56]                  ; 8-byte Folded Spill
	str	x27, [sp]
	mov	x0, x21
	mov	x27, x23
	mov	x1, x23
	mov	x2, x20
	mov	x3, x26
	mov	x22, x19
	mov	x4, x19
	ldr	x23, [sp, #64]                  ; 8-byte Folded Reload
	mov	x5, x23
	ldr	x6, [sp, #80]                   ; 8-byte Folded Reload
	mov	x25, x6
	mov	x19, x24
	mov	x7, x24
	bl	_extent_recycle_extract
	cbz	x0, LBB0_20
; %bb.1:
	ldr	w8, [x29, #20]
	stp	w28, w28, [sp, #24]             ; 4-byte Folded Spill
	mov	x28, x8
	str	x0, [sp, #16]
	str	w8, [sp, #12]
	ldr	w8, [sp, #88]                   ; 4-byte Folded Reload
	str	w8, [sp, #8]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	str	x8, [sp]
	stp	x21, x27, [sp, #32]             ; 16-byte Folded Spill
	mov	x0, x21
	mov	x1, x27
	mov	x21, x20
	mov	x2, x20
	mov	x3, x26
	mov	x4, x22
	mov	x5, x23
	mov	x6, x25
	mov	x7, x19
	bl	_extent_recycle_split
	mov	x20, x0
	cbz	x0, LBB0_21
; %bb.2:
	ldr	x24, [x29, #32]
	ldr	w8, [x24]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_extent_committed_get
	cbz	x0, LBB0_18
LBB0_4:
	mov	x0, x20
	bl	_extent_committed_get
	cbz	x0, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x24]
LBB0_6:
	mov	x0, x20
	bl	_extent_zeroed_get
	ldp	x23, x22, [sp, #40]             ; 16-byte Folded Reload
	ldr	x21, [sp, #32]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x22]
LBB0_8:
	cbz	x19, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	ldr	x3, [sp, #56]                   ; 8-byte Folded Reload
	bl	_extent_addr_randomize
LBB0_10:
	mov	x0, x20
	bl	_extent_state_get
Lloh3:
	adrp	x8, _extent_state_active@GOTPAGE
Lloh4:
	ldr	x8, [x8, _extent_state_active@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	ldr	w8, [sp, #88]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_12
; %bb.11:
	mov	x0, x20
	ldr	w1, [sp, #88]                   ; 4-byte Folded Reload
	bl	_extent_slab_set
	mov	x0, x21
	mov	x1, x26
	mov	x2, x20
	mov	x3, x28
	bl	_extent_interior_register
LBB0_12:
	ldr	w8, [x22]
	cbz	w8, LBB0_21
; %bb.13:
	mov	x0, x20
	bl	_extent_base_get
	mov	x19, x0
	mov	x0, x20
	bl	_extent_zeroed_get
	cbz	x0, LBB0_22
; %bb.14:
Lloh6:
	adrp	x8, _config_debug@GOTPAGE
Lloh7:
	ldr	x8, [x8, _config_debug@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_21
; %bb.15:
Lloh9:
	adrp	x21, _PAGE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _PAGE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #8
	b.lo	LBB0_21
; %bb.16:
	mov	x22, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, x22, lsl #3]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8, lsr #3
	b.lo	LBB0_17
	b	LBB0_21
LBB0_18:
	mov	x0, x20
	bl	_extent_size_get
	mov	x5, x0
	ldp	x27, x23, [sp, #32]             ; 16-byte Folded Reload
	mov	x0, x27
	mov	x1, x23
	mov	x25, x21
	mov	x2, x21
	mov	x3, x20
	mov	w4, #0
	ldr	w21, [sp, #28]                  ; 4-byte Folded Reload
	mov	x6, x21
	bl	_extent_commit_impl
	cbz	x0, LBB0_25
; %bb.19:
	mov	x0, x27
	mov	x1, x23
	mov	x2, x25
	mov	x3, x22
	mov	x4, x20
	mov	x5, x21
	bl	_extent_record
LBB0_20:
	mov	x20, #0
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_22:
	mov	x0, x20
	bl	_extent_size_get
	mov	x21, x0
	mov	x0, x23
	bl	_extent_need_manual_zero
	cbnz	x0, LBB0_24
; %bb.23:
	mov	x0, x19
	mov	x1, x21
	bl	_pages_purge_forced
	cbz	x0, LBB0_21
LBB0_24:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	b	LBB0_21
LBB0_25:
	mov	x0, x23
	bl	_extent_need_manual_zero
	cbnz	x0, LBB0_4
; %bb.26:
	mov	x0, x20
	mov	w1, #1
	bl	_extent_zeroed_set
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WITNESS_RANK_CORE,4,2          ; @WITNESS_RANK_CORE
	.comm	_extent_state_active,8,3        ; @extent_state_active
	.comm	_config_debug,8,3               ; @config_debug
	.comm	_PAGE,4,2                       ; @PAGE
	.no_dead_strip	_extent_recycle
.subsections_via_symbols
