	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arena_decay_impl
_arena_decay_impl:                      ## @arena_decay_impl
	.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
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r14
	leaq	8(%rdx), %rax
	testl	%r9d, %r9d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movl	%r9d, %r15d
	movq	%rdi, %r12
	movq	%rax, %rsi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_malloc_mutex_lock
	movq	%rbx, %rdi
	callq	_eset_npages_get
                                        ## kill: def $eax killed $eax def $rax
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	_arena_decay_to_limit
	addq	$16, %rsp
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_malloc_mutex_unlock
LBB0_11:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_2:
	movq	%rdi, %r15
	movq	%rax, %r12
	movq	%rax, %rsi
	callq	_malloc_mutex_trylock
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_3
LBB0_12:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r14, %r15
	movq	%r14, %rsi
	movq	%r13, %r14
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %r8d
	callq	_arena_maybe_decay
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	(%r14), %rax
	movq	_SMOOTHSTEP_NSTEPS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	-8(%rax,%rcx,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_4:
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_malloc_mutex_unlock
	movq	_have_background_thread@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.7:
	xorl	%eax, %eax
	callq	_background_thread_enabled
	testl	%r13d, %r13d
	jne	LBB0_11
## %bb.8:
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_background_thread_interval_check
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SMOOTHSTEP_NSTEPS,4,2          ## @SMOOTHSTEP_NSTEPS
	.comm	_have_background_thread,8,3     ## @have_background_thread
	.no_dead_strip	_arena_decay_impl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arena_decay_impl
_arena_decay_impl:                      ; @arena_decay_impl
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x23, x2, #8
	cbz	w5, LBB0_3
; %bb.1:
	mov	x25, x5
	mov	x0, x19
	mov	x1, x23
	bl	_malloc_mutex_lock
	mov	x0, x24
	bl	_eset_npages_get
	mov	x6, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x24
	mov	x4, x25
	mov	w5, #0
	mov	x7, x22
	bl	_arena_decay_to_limit
	mov	x0, x19
	mov	x1, x23
	bl	_malloc_mutex_unlock
LBB0_2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	mov	x1, x23
	bl	_malloc_mutex_trylock
	cbz	x0, LBB0_6
; %bb.4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x24
	mov	x4, x22
	bl	_arena_maybe_decay
	mov	x24, x0
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SMOOTHSTEP_NSTEPS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMOOTHSTEP_NSTEPS@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #3
	ldur	x25, [x8, #-8]
	b	LBB0_9
LBB0_8:
                                        ; implicit-def: $x25
LBB0_9:
	mov	x0, x19
	mov	x1, x23
	bl	_malloc_mutex_unlock
Lloh3:
	adrp	x8, _have_background_thread@GOTPAGE
Lloh4:
	ldr	x8, [x8, _have_background_thread@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.10:
	bl	_background_thread_enabled
	mov	x8, x0
	mov	w0, #0
	cbnz	w22, LBB0_5
; %bb.11:
	cbz	x8, LBB0_5
; %bb.12:
	cbz	w24, LBB0_5
; %bb.13:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x25
	bl	_background_thread_interval_check
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SMOOTHSTEP_NSTEPS,4,2          ; @SMOOTHSTEP_NSTEPS
	.comm	_have_background_thread,8,3     ; @have_background_thread
	.no_dead_strip	_arena_decay_impl
.subsections_via_symbols
