	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_arena_reset_post
_do_arena_reset_post:                   ## @do_arena_reset_post
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_tsdn_fetch
	movq	%rax, %rbx
	movq	_have_background_thread@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_background_thread_info_get
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_malloc_mutex_lock
LBB0_2:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.3:
	movl	%r12d, %r13d
	xorl	%r14d, %r14d
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r14,8), %rsi
	movq	%rbx, %rdi
	callq	_vsalloc
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_assert_zu_eq
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_4
LBB0_5:
	movq	_have_background_thread@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_background_thread_info_get
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_malloc_mutex_unlock
LBB0_7:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_have_background_thread,8,3     ## @have_background_thread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocation should no longer exist"

	.no_dead_strip	_do_arena_reset_post
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_arena_reset_post
_do_arena_reset_post:                   ; @do_arena_reset_post
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_tsdn_fetch
	mov	x21, x0
Lloh0:
	adrp	x23, _have_background_thread@GOTPAGE
Lloh1:
	ldr	x23, [x23, _have_background_thread@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_background_thread_info_get
	mov	x1, x0
	mov	x0, x21
	bl	_malloc_mutex_lock
LBB0_2:
	cbz	w22, LBB0_5
; %bb.3:
	mov	w24, w22
	mov	x25, x19
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x25], #8
	mov	x0, x21
	bl	_vsalloc
	mov	w1, #0
	mov	x2, x22
	bl	_assert_zu_eq
	subs	x24, x24, #1
	b.ne	LBB0_4
LBB0_5:
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_background_thread_info_get
	mov	x1, x0
	mov	x0, x21
	bl	_malloc_mutex_unlock
LBB0_7:
	mov	x0, x19
	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
	b	_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_have_background_thread,8,3     ; @have_background_thread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocation should no longer exist"

	.no_dead_strip	_do_arena_reset_post
.subsections_via_symbols
