	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_arena_reset_pre
_do_arena_reset_pre:                    ## @do_arena_reset_pre
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	callq	_MALLOCX_ARENA
	movl	%eax, %r13d
	movq	_MALLOCX_TCACHE_NONE@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	xorl	%eax, %eax
	callq	_get_nsmall
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_get_nlarge
	movl	$32, %ecx
	cmpl	$32, %eax
	ja	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_get_nlarge
	movl	%eax, %ecx
LBB0_2:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%rbx), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%edi, (%rax)
	shll	$3, %edi
	callq	_malloc
	movq	%rax, (%r15)
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_assert_ptr_not_null
	movl	%ebx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_get_small_size
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_mallocx
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_assert_ptr_not_null
	incq	%r12
	cmpq	%r12, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_4
LBB0_5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_get_large_size
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_mallocx
	movq	(%r15), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addl	%ebx, %edx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_assert_ptr_not_null
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_tsdn_fetch
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpl	$0, (%r13)
	je	LBB0_11
## %bb.9:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_ivsalloc
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_assert_zu_gt
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jb	LBB0_10
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MALLOCX_TCACHE_NONE,4,2        ## @MALLOCX_TCACHE_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected malloc() failure"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected mallocx(%zu, %#x) failure"

L_.str.2:                               ## @.str.2
	.asciz	"Allocation should have queryable size"

	.comm	_NLARGE,4,2                     ## @NLARGE
	.no_dead_strip	_do_arena_reset_pre
.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_pre
_do_arena_reset_pre:                    ; @do_arena_reset_pre
	.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	x19, x2
	mov	x20, x1
	bl	_MALLOCX_ARENA
Lloh0:
	adrp	x8, _MALLOCX_TCACHE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MALLOCX_TCACHE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w21, w8, w0
	bl	_get_nsmall
	mov	x22, x0
	bl	_get_nlarge
	cmp	w0, #32
	b.ls	LBB0_2
; %bb.1:
	mov	w23, #32
	b	LBB0_3
LBB0_2:
	bl	_get_nlarge
	mov	x23, x0
LBB0_3:
	add	w8, w23, w22
	str	w8, [x19]
	lsl	w0, w8, #3
	bl	_malloc
	str	x0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_assert_ptr_not_null
	cbz	w22, LBB0_6
; %bb.4:
	mov	x24, #0
	mov	w27, w22
Lloh5:
	adrp	x25, l_.str.1@PAGE
Lloh6:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_get_small_size
	mov	x26, x0
	mov	x1, x21
	bl	_mallocx
	ldr	x8, [x20]
	lsl	x9, x24, #3
	str	x0, [x8, x9]
	ldr	x8, [x20]
	ldr	x0, [x8, x9]
	stp	x26, x21, [sp]
	mov	x1, x25
	bl	_assert_ptr_not_null
	add	x24, x24, #1
	cmp	x27, x24
	b.ne	LBB0_5
LBB0_6:
	cbz	w23, LBB0_9
; %bb.7:
	mov	x24, #0
	mov	w25, w23
	mov	x26, x21
	mov	w27, w22
Lloh7:
	adrp	x22, l_.str.1@PAGE
Lloh8:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_get_large_size
	mov	x23, x0
	mov	x1, x21
	bl	_mallocx
	ldr	x8, [x20]
	add	w9, w27, w24
	str	x0, [x8, w9, uxtw #3]
	ldr	x8, [x20]
	ldr	x0, [x8, x24, lsl #3]
	stp	x23, x26, [sp]
	mov	x1, x22
	bl	_assert_ptr_not_null
	add	x24, x24, #1
	cmp	x25, x24
	b.ne	LBB0_8
LBB0_9:
	bl	_tsdn_fetch
	ldr	w8, [x19]
	cbz	w8, LBB0_12
; %bb.10:
	mov	x21, x0
	mov	x23, #0
Lloh9:
	adrp	x22, l_.str.2@PAGE
Lloh10:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x1, [x8, x23, lsl #3]
	mov	x0, x21
	bl	_ivsalloc
	mov	w1, #0
	mov	x2, x22
	bl	_assert_zu_gt
	add	x23, x23, #1
	ldr	w8, [x19]
	cmp	x23, x8
	b.lo	LBB0_11
LBB0_12:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MALLOCX_TCACHE_NONE,4,2        ; @MALLOCX_TCACHE_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected malloc() failure"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected mallocx(%zu, %#x) failure"

l_.str.2:                               ; @.str.2
	.asciz	"Allocation should have queryable size"

	.comm	_NLARGE,4,2                     ; @NLARGE
	.no_dead_strip	_do_arena_reset_pre
.subsections_via_symbols
