	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arena_destroy                  ## -- Begin function arena_destroy
	.p2align	4, 0x90
_arena_destroy:                         ## @arena_destroy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_base_ind_get
	movq	_narenas_auto@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_assert
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_arena_nthreads_get
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_arena_nthreads_get
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	leaq	8(%rbx), %rdi
	callq	_eset_npages_get
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	leaq	4(%rbx), %rdi
	callq	_eset_npages_get
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_arena_destroy_retained
	movl	(%rbx), %edi
	callq	_base_ind_get
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_arena_set
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	(%rbx), %esi
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_base_delete                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_narenas_auto,8,3               ## @narenas_auto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arena_destroy                  ; -- Begin function arena_destroy
	.p2align	2
_arena_destroy:                         ; @arena_destroy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1]
	bl	_base_ind_get
Lloh0:
	adrp	x8, _narenas_auto@GOTPAGE
Lloh1:
	ldr	x8, [x8, _narenas_auto@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ge
	bl	_assert
	mov	x0, x19
	mov	w1, #0
	bl	_arena_nthreads_get
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	mov	w1, #1
	bl	_arena_nthreads_get
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	add	x0, x19, #8
	bl	_eset_npages_get
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	add	x0, x19, #4
	bl	_eset_npages_get
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x19
	bl	_arena_destroy_retained
	ldr	w0, [x19]
	bl	_base_ind_get
	mov	x1, #0
	bl	_arena_set
	mov	x0, x20
	bl	_tsd_tsdn
	ldr	w1, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_base_delete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_narenas_auto,8,3               ; @narenas_auto
.subsections_via_symbols
