	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	64(%rbp), %ebx
	movl	32(%rbp), %r12d
	callq	_tsdn_witness_tsdp_get
	movq	_WITNESS_RANK_CORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%edx, %edx
	testl	%ebx, %ebx
	setne	%dl
	movl	%eax, %edi
	callq	_witness_assert_depth_to_rank
	testq	%r15, %r15
	sete	%al
	testl	%r12d, %r12d
	sete	%bl
	orb	%bl, %al
	movzbl	%al, %edi
	callq	_assert
	cmpq	$0, 16(%rbp)
	sete	%al
	orb	%bl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	48(%rbp), %rax
	cmpl	$0, (%rax)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	sete	%al
	orb	%bl, %al
	movzbl	%al, %edi
	callq	_assert
	leaq	-84(%rbp), %rsi
	movq	%r13, %rdi
	callq	_tsdn_rtree_ctx
	movq	%rax, %rbx
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%rax, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%r8, %r14
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %r9
	movl	64(%rbp), %eax
	pushq	%rax
	movl	32(%rbp), %eax
	pushq	%rax
	pushq	24(%rbp)
	pushq	16(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r15
	pushq	%rax
	callq	_extent_recycle_extract
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movl	40(%rbp), %r10d
	subq	$8, %rsp
	movq	%r12, %rdx
	movq	%r13, %r12
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %r13
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movl	64(%rbp), %ebx
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	movl	32(%rbp), %eax
	pushq	%rax
	pushq	24(%rbp)
	movq	16(%rbp), %rbx
	pushq	%rbx
	pushq	%r15
	callq	_extent_recycle_split
	addq	$64, %rsp
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %rcx
	movq	56(%rbp), %rax
	cmpl	$0, (%rax)
	movq	%r12, %rbx
	movq	%r13, %r14
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%rcx, %r13
	callq	_extent_committed_get
	movq	%r13, %rcx
	testq	%rax, %rax
	je	LBB0_20
LBB0_4:
	movq	%rcx, %r13
	movq	%r15, %rdi
	callq	_extent_committed_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	56(%rbp), %rax
	movl	$1, (%rax)
LBB0_6:
	movq	%r15, %rdi
	callq	_extent_zeroed_get
	testq	%rax, %rax
	movq	48(%rbp), %r12
	je	LBB0_8
## %bb.7:
	movl	$1, (%r12)
LBB0_8:
	testq	%r13, %r13
	movq	24(%rbp), %rdx
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	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
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_extent_slab_set
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	40(%rbp), %ecx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_extent_interior_register
LBB0_12:
	cmpl	$0, (%r12)
	je	LBB0_24
## %bb.13:
	movq	%r15, %rdi
	callq	_extent_base_get
	movq	%rax, %r14
	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_24
## %bb.15:
	movq	_PAGE@GOTPCREL(%rip), %r12
	cmpl	$8, (%r12)
	jb	LBB0_24
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpq	$0, (%r14,%rbx,8)
	sete	%dil
	callq	_assert
	incq	%rbx
	movslq	(%r12), %rax
	shrq	$3, %rax
	cmpq	%rax, %rbx
	jb	LBB0_17
	jmp	LBB0_24
LBB0_19:
	xorl	%r15d, %r15d
LBB0_24:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_extent_size_get
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	movq	%rax, %r9
	movl	64(%rbp), %r12d
	pushq	%r12
	callq	_extent_commit_impl
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, %r8
	movl	%r12d, %r9d
	callq	_extent_record
	xorl	%r15d, %r15d
	jmp	LBB0_24
LBB0_22:
	movq	%r15, %rdi
	callq	_extent_size_get
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_pages_purge_forced
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	jmp	LBB0_24
LBB0_25:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_extent_zeroed_set
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %rcx
	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	x22, x7
	mov	x23, x6
	stp	x3, x5, [sp, #56]               ; 16-byte Folded Spill
	mov	x26, x4
	mov	x28, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w27, [x29, #40]
	ldr	x25, [x29, #24]
	ldr	w21, [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	w27, #0
	cset	w2, ne
	bl	_witness_assert_depth_to_rank
	cmp	x26, #0
	cset	w8, eq
	cmp	w21, #0
	cset	w24, eq
	orr	w0, w8, w24
	bl	_assert
	cmp	x23, #0
	cset	w8, eq
	orr	w0, w8, w24
	bl	_assert
	str	x25, [sp, #40]                  ; 8-byte Folded Spill
	ldr	w8, [x25]
	mov	x25, x22
	ldr	x22, [sp, #56]                  ; 8-byte Folded Reload
	cmp	w8, #0
	cset	w8, eq
	orr	w0, w24, w8
	bl	_assert
	sub	x1, x29, #84
	mov	x0, x20
	bl	_tsdn_rtree_ctx
	mov	x3, x0
	stp	w21, w27, [sp, #8]
	str	w21, [sp, #76]                  ; 4-byte Folded Spill
	str	x25, [sp, #48]                  ; 8-byte Folded Spill
	str	x25, [sp]
	str	x20, [sp, #80]                  ; 8-byte Folded Spill
	mov	x0, x20
	mov	x1, x19
	mov	x20, x28
	mov	x2, x28
	mov	x28, x3
	mov	x21, x22
	mov	x4, x22
	mov	x5, x26
	ldr	x6, [sp, #64]                   ; 8-byte Folded Reload
	mov	x24, x6
	mov	x25, x23
	mov	x7, x23
	bl	_extent_recycle_extract
	cbz	x0, LBB0_20
; %bb.1:
	ldr	w9, [x29, #20]
	stp	w27, w9, [sp, #32]              ; 8-byte Folded Spill
	str	w27, [sp, #24]
	str	x0, [sp, #16]
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp, #8]
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	str	x8, [sp]
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	mov	x23, x19
	mov	x1, x19
	mov	x2, x20
	mov	x3, x28
	mov	x4, x21
	mov	x5, x26
	mov	x6, x24
	mov	x7, x25
	bl	_extent_recycle_split
	mov	x19, x0
	cbz	x0, LBB0_21
; %bb.2:
	ldr	x22, [x29, #32]
	ldr	w8, [x22]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_extent_committed_get
	cbz	x0, LBB0_18
LBB0_4:
	mov	x0, x19
	bl	_extent_committed_get
	cbz	x0, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x22]
LBB0_6:
	mov	x0, x19
	bl	_extent_zeroed_get
	ldr	x22, [sp, #40]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x22]
LBB0_8:
	cbz	x25, LBB0_10
; %bb.9:
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	mov	x1, x19
	ldr	x2, [sp, #48]                   ; 8-byte Folded Reload
	bl	_extent_addr_randomize
LBB0_10:
	mov	x0, x19
	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, #76]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_12
; %bb.11:
	mov	x0, x19
	ldr	w1, [sp, #76]                   ; 4-byte Folded Reload
	bl	_extent_slab_set
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	mov	x1, x28
	mov	x2, x19
	ldr	w3, [sp, #36]                   ; 4-byte Folded Reload
	bl	_extent_interior_register
LBB0_12:
	ldr	w8, [x22]
	cbz	w8, LBB0_21
; %bb.13:
	mov	x0, x19
	bl	_extent_base_get
	mov	x20, x0
	mov	x0, x19
	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, [x20, 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, x19
	bl	_extent_size_get
	mov	x5, x0
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	ldr	w27, [sp, #32]                  ; 4-byte Folded Reload
	mov	x6, x27
	bl	_extent_commit_impl
	cbz	x0, LBB0_24
; %bb.19:
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	mov	x1, x23
	mov	x2, x20
	mov	x3, x21
	mov	x4, x19
	mov	x5, x27
	bl	_extent_record
LBB0_20:
	mov	x19, #0
LBB0_21:
	mov	x0, x19
	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, x19
	bl	_extent_size_get
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_pages_purge_forced
	cbz	x0, LBB0_21
; %bb.23:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	b	LBB0_21
LBB0_24:
	mov	x0, x19
	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
