	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extent_recycle_extract
_extent_recycle_extract:                ## @extent_recycle_extract
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	24(%rbp), %rbx
	movq	16(%rbp), %r14
	callq	_tsdn_witness_tsdp_get
	movq	_WITNESS_RANK_CORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%edx, %edx
	cmpl	$0, 48(%rbp)
	setne	%dl
	movl	%eax, %edi
	callq	_witness_assert_depth_to_rank
	xorl	%edi, %edi
	cmpq	$0, 32(%rbp)
	setne	%dil
	callq	_assert
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	movq	_config_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_PAGE_ADDR2BASE
	xorl	%edi, %edi
	cmpq	%r12, %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_assert
	movq	_PAGE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movq	32(%rbp), %rcx
	cmpq	%rcx, (%rax)
	setae	%dil
	callq	_assert
LBB0_3:
	addq	%r14, %rbx
	movq	%r13, %rdi
	movq	%rbx, %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_malloc_mutex_lock
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_extent_hooks_assure_initialized
	testq	%r12, %r12
	je	LBB0_11
## %bb.4:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_extent_lock_from_addr
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_extent_base_get
	xorl	%edi, %edi
	cmpq	%r12, %rax
	sete	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_extent_arena_ind_get
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_arena_ind_get
	cmpq	%rax, %rbx
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_extent_size_get
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	jb	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_extent_state_get
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_eset_state_get
	movq	%r14, %r15
	cmpq	%rax, %rbx
	je	LBB0_10
LBB0_9:
	xorl	%r15d, %r15d
LBB0_10:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_extent_unlock
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_13
LBB0_14:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_extent_activate_locked
	jmp	LBB0_15
LBB0_11:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	32(%rbp), %rcx
	callq	_eset_fit_locked
	movq	%rax, %r15
	testq	%r15, %r15
	jne	LBB0_14
LBB0_13:
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_5:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_15:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_malloc_mutex_unlock
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WITNESS_RANK_CORE,4,2          ## @WITNESS_RANK_CORE
	.comm	_config_debug,8,3               ## @config_debug
	.comm	_PAGE,8,3                       ## @PAGE
	.no_dead_strip	_extent_recycle_extract
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extent_recycle_extract
_extent_recycle_extract:                ; @extent_recycle_extract
	.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	x26, x7
	mov	x27, x6
	mov	x22, x5
	mov	x19, x4
	mov	x23, x3
	mov	x25, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x24, [x29, #16]
	ldr	w28, [x29, #28]
	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	x24, #0
	cset	w0, ne
	bl	_assert
	cbz	x22, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _config_debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _config_debug@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_PAGE_ADDR2BASE
	cmp	x0, x22
	cset	w0, eq
	bl	_assert
	cmp	x26, #0
	cset	w0, eq
	bl	_assert
Lloh6:
	adrp	x8, _PAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x24
	cset	w0, hs
	bl	_assert
LBB0_3:
	add	x26, x26, x27
	mov	x0, x20
	mov	x1, x19
	bl	_malloc_mutex_lock
	mov	x0, x21
	mov	x1, x25
	bl	_extent_hooks_assure_initialized
	mov	x0, x20
	cbz	x22, LBB0_10
; %bb.4:
	mov	x1, x23
	mov	x2, x22
	mov	w3, #0
	bl	_extent_lock_from_addr
	cbz	x0, LBB0_12
; %bb.5:
	mov	x23, x0
	bl	_extent_base_get
	cmp	x0, x22
	cset	w0, eq
	bl	_assert
	mov	x0, x23
	bl	_extent_arena_ind_get
	mov	x22, x0
	mov	x0, x21
	bl	_arena_ind_get
	cmp	x22, x0
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x23
	bl	_extent_size_get
	cmp	x0, x26
	b.lo	LBB0_8
; %bb.7:
	mov	x0, x23
	bl	_extent_state_get
	mov	x24, x0
	mov	x0, x19
	bl	_eset_state_get
	mov	x22, x23
	cmp	x24, x0
	b.eq	LBB0_9
LBB0_8:
	mov	x22, #0
LBB0_9:
	mov	x0, x20
	mov	x1, x23
	bl	_extent_unlock
	cbnz	x22, LBB0_11
	b	LBB0_13
LBB0_10:
	mov	x1, x19
	mov	x2, x26
	mov	x3, x24
	bl	_eset_fit_locked
	mov	x22, x0
	cbz	x22, LBB0_13
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	bl	_extent_activate_locked
	b	LBB0_13
LBB0_12:
	mov	x22, #0
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_malloc_mutex_unlock
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WITNESS_RANK_CORE,4,2          ; @WITNESS_RANK_CORE
	.comm	_config_debug,8,3               ; @config_debug
	.comm	_PAGE,8,3                       ; @PAGE
	.no_dead_strip	_extent_recycle_extract
.subsections_via_symbols
