	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arena_i_destroy_ctl
_arena_i_destroy_ctl:                   ## @arena_i_destroy_ctl
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	subq	$8, %rsp
	leaq	-48(%rbp), %rax
	leaq	-36(%rbp), %rbx
	pushq	%rax
	pushq	%rbx
	pushq	16(%rbp)
	callq	_arena_i_reset_destroy_helper
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_arena_nthreads_get
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rdi
	movl	$1, %esi
	callq	_arena_nthreads_get
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_arena_reset_prepare_background_thread
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_arena_reset
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movq	-48(%rbp), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_arena_decay
	movq	_MALLCTL_ARENAS_DESTROYED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_arenas_i
	movq	%rax, %r15
	movl	$1, (%rax)
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movq	-48(%rbp), %rsi
	movl	-36(%rbp), %ecx
	movl	%eax, %edi
	movq	%r15, %rdx
	movl	$1, %r8d
	callq	_ctl_arena_refresh
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_arena_destroy
	movl	-36(%rbp), %edi
	callq	_arenas_i
	movq	%rax, %r15
	movl	$0, (%rax)
	movq	_destroyed_link@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_ql_elm_new
	movq	_ctl_arenas@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r12), %edx
	movq	%r15, %rsi
	callq	_ql_tail_insert
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_arena_reset_finish_background_thread
	movl	$1, %edi
	callq	_assert
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_MALLCTL_ARENAS_DESTROYED,4,2   ## @MALLCTL_ARENAS_DESTROYED
	.comm	_destroyed_link,4,2             ## @destroyed_link
	.comm	_ctl_arenas,8,3                 ## @ctl_arenas
	.no_dead_strip	_arena_i_destroy_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arena_i_destroy_ctl
_arena_i_destroy_ctl:                   ; @arena_i_destroy_ctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	add	x8, sp, #16
	str	x8, [sp]
	add	x7, sp, #28
	bl	_arena_i_reset_destroy_helper
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x0, [sp, #16]
	mov	w1, #0
	bl	_arena_nthreads_get
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x0, [sp, #16]
	mov	w21, #1
	mov	w1, #1
	bl	_arena_nthreads_get
	cbz	x0, LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_4:
	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
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	w1, [sp, #28]
	mov	x0, x19
	bl	_arena_reset_prepare_background_thread
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_arena_reset
	mov	x0, x19
	bl	_tsd_tsdn
	ldr	x1, [sp, #16]
	mov	w2, #0
	mov	w3, #1
	bl	_arena_decay
Lloh3:
	adrp	x8, _MALLCTL_ARENAS_DESTROYED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MALLCTL_ARENAS_DESTROYED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_arenas_i
	mov	x20, x0
	str	w21, [x0]
	mov	x0, x19
	bl	_tsd_tsdn
	ldr	x1, [sp, #16]
	ldr	w3, [sp, #28]
	mov	x2, x20
	mov	w4, #1
	bl	_ctl_arena_refresh
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_arena_destroy
	ldr	w0, [sp, #28]
	bl	_arenas_i
	mov	x20, x0
	str	wzr, [x0]
Lloh6:
	adrp	x21, _destroyed_link@GOTPAGE
Lloh7:
	ldr	x21, [x21, _destroyed_link@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ql_elm_new
Lloh8:
	adrp	x8, _ctl_arenas@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ctl_arenas@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	ldr	w2, [x21]
	mov	x1, x20
	bl	_ql_tail_insert
	ldr	w1, [sp, #28]
	mov	x0, x19
	bl	_arena_reset_finish_background_thread
	mov	w0, #1
	bl	_assert
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_MALLCTL_ARENAS_DESTROYED,4,2   ; @MALLCTL_ARENAS_DESTROYED
	.comm	_destroyed_link,4,2             ; @destroyed_link
	.comm	_ctl_arenas,8,3                 ; @ctl_arenas
	.no_dead_strip	_arena_i_destroy_ctl
.subsections_via_symbols
