	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arena_decay_to_limit
_arena_decay_to_limit:                  ## @arena_decay_to_limit
	.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, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r13d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_tsdn_witness_tsdp_get
	movq	_WITNESS_RANK_CORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$1, %edx
	callq	_witness_assert_depth_to_rank
	leaq	4(%r14), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_malloc_mutex_assert_owner
	cmpq	$0, 16(%rbp)
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%r14)
	jne	LBB0_5
## %bb.2:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	$1, (%r14)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_malloc_mutex_unlock
	movq	%r15, %rdi
	callq	_extent_hooks_get
	movq	%rax, -56(%rbp)
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_extent_list_init
	subq	$8, %rsp
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	16(%rbp), %r9
	pushq	%r13
	callq	_arena_stash_decayed
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r13
	movl	24(%rbp), %eax
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r15, %r8
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	leaq	-48(%rbp), %rax
	pushq	%rax
	callq	_arena_decay_stashed
	addq	$16, %rsp
	xorl	%edi, %edi
	cmpq	%r13, %rax
	sete	%dil
	callq	_assert
LBB0_4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_malloc_mutex_lock
	movl	$0, (%r14)
LBB0_5:
	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
	.no_dead_strip	_arena_decay_to_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arena_decay_to_limit
_arena_decay_to_limit:                  ; @arena_decay_to_limit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x7
	mov	x26, x6
	mov	x27, x5
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x24, x1
	mov	x20, x0
	bl	_tsdn_witness_tsdp_get
Lloh0:
	adrp	x8, _WITNESS_RANK_CORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WITNESS_RANK_CORE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_witness_assert_depth_to_rank
	add	x25, x19, #4
	mov	x0, x20
	mov	x1, x25
	bl	_malloc_mutex_assert_owner
	cbz	x26, LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_5
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x25
	bl	_malloc_mutex_unlock
	mov	x0, x24
	bl	_extent_hooks_get
	str	x0, [sp, #8]
	add	x0, sp, #4
	bl	_extent_list_init
	add	x2, sp, #8
	add	x6, sp, #4
	mov	x0, x20
	mov	x1, x24
	mov	x3, x23
	mov	x4, x27
	mov	x5, x26
	bl	_arena_stash_decayed
	cbz	x0, LBB0_4
; %bb.3:
	mov	x26, x0
	add	x2, sp, #8
	add	x6, sp, #4
	mov	x0, x20
	mov	x1, x24
	mov	x3, x19
	mov	x4, x23
	mov	x5, x22
	mov	x7, x21
	bl	_arena_decay_stashed
	cmp	x0, x26
	cset	w0, eq
	bl	_assert
LBB0_4:
	mov	x0, x20
	mov	x1, x25
	bl	_malloc_mutex_lock
	str	wzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WITNESS_RANK_CORE,4,2          ; @WITNESS_RANK_CORE
	.no_dead_strip	_arena_decay_to_limit
.subsections_via_symbols
