	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function arena_reset
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_arena_reset
	.p2align	4, 0x90
_arena_reset:                           ## @arena_reset
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_tsd_tsdn
	leaq	16(%r14), %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_malloc_mutex_lock
	leaq	20(%r14), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_extent_list_first
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r13
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_large_dalloc
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_malloc_mutex_lock
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_extent_list_first
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_extent_base_get
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_malloc_mutex_unlock
	movq	%r12, %rdi
	callq	_tsd_rtree_ctx
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_tsd_tsdn
	leaq	-72(%rbp), %rcx
	movq	%rcx, (%rsp)
	movl	%eax, %edi
	movq	_extents_rtree@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movl	$1, %r8d
	leaq	-80(%rbp), %r9
	callq	_rtree_szind_slab_read
	movq	-80(%rbp), %rax
	xorl	%edi, %edi
	movq	_NSIZES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_assert
	movq	_config_stats@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_config_prof@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_opt_prof@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rdi
	callq	_sz_index2size
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_isalloc
	xorl	%edi, %edi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rbx
	sete	%dil
	callq	_assert
	movq	_config_prof@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_opt_prof@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	-80(%rbp), %rcx
	callq	_prof_free
	jmp	LBB0_9
LBB0_10:
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_malloc_mutex_unlock
	movq	_NBINS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_23
## %bb.11:
	xorl	%ecx, %ecx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_malloc_mutex_unlock
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	_NBINS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rcx
	jae	LBB0_23
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	movq	8(%r14), %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,4), %rbx
	leaq	(%r15,%rbx,8), %r13
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_malloc_mutex_lock
	movq	%rbx, %rax
	movq	32(%r15,%rbx,8), %rbx
	testq	%rbx, %rbx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%rax,8), %rax
	addq	$32, %rax
	movq	$0, (%rax)
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_malloc_mutex_unlock
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_arena_slab_dalloc
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_malloc_mutex_lock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rax,8), %r15
	addq	$28, %r15
	movq	%r15, %rdi
	callq	_extent_heap_remove_first
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_malloc_mutex_unlock
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_arena_slab_dalloc
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_malloc_mutex_lock
	movq	%r15, %rdi
	callq	_extent_heap_remove_first
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %r15
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_extent_list_first
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_arena_bin_slabs_full_remove
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_malloc_mutex_unlock
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_arena_slab_dalloc
	movq	%r12, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_malloc_mutex_lock
	movq	%r15, %rdi
	callq	_extent_list_first
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_config_stats@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	xorps	%xmm0, %xmm0
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movups	%xmm0, 8(%rax,%rcx,8)
	jmp	LBB0_22
LBB0_23:
	movq	_ATOMIC_RELAXED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_store_zu
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_extents_rtree,4,2              ## @extents_rtree
	.comm	_NSIZES,8,3                     ## @NSIZES
	.comm	_config_stats,8,3               ## @config_stats
	.comm	_config_prof,8,3                ## @config_prof
	.comm	_opt_prof,8,3                   ## @opt_prof
	.comm	_NBINS,4,2                      ## @NBINS
	.comm	_ATOMIC_RELAXED,4,2             ## @ATOMIC_RELAXED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arena_reset                    ; -- Begin function arena_reset
	.p2align	2
_arena_reset:                           ; @arena_reset
	.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, x1
	mov	x20, x0
	bl	_tsd_tsdn
	add	x21, x19, #16
	mov	x1, x21
	bl	_malloc_mutex_lock
	add	x22, x19, #20
	mov	x0, x22
	bl	_extent_list_first
Lloh0:
	adrp	x28, _config_stats@GOTPAGE
Lloh1:
	ldr	x28, [x28, _config_stats@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x25, x0
	mov	x8, sp
	add	x23, x8, #8
                                        ; implicit-def: $x26
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x25
	bl	_large_dalloc
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x21
	bl	_malloc_mutex_lock
	mov	x0, x22
	bl	_extent_list_first
	mov	x25, x0
	cbz	x0, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_extent_base_get
	mov	x27, x0
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x21
	bl	_malloc_mutex_unlock
	mov	x0, x20
	bl	_tsd_rtree_ctx
	mov	x24, x28
	mov	x28, x0
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x5, sp
Lloh2:
	adrp	x1, _extents_rtree@GOTPAGE
Lloh3:
	ldr	x1, [x1, _extents_rtree@GOTPAGEOFF]
	mov	x2, x28
	mov	x28, x24
	mov	x3, x27
	mov	w4, #1
	mov	x6, x23
	bl	_rtree_szind_slab_read
	ldr	x8, [sp]
Lloh4:
	adrp	x9, _NSIZES@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NSIZES@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
	ldr	x8, [x24]
	cbnz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh7:
	adrp	x8, _config_prof@GOTPAGE
Lloh8:
	ldr	x8, [x8, _config_prof@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _opt_prof@GOTPAGE
Lloh11:
	ldr	x9, [x9, _opt_prof@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp]
	bl	_sz_index2size
	mov	x26, x0
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x27
	bl	_isalloc
	cmp	x26, x0
	cset	w0, eq
	bl	_assert
Lloh13:
	adrp	x8, _config_prof@GOTPAGE
Lloh14:
	ldr	x8, [x8, _config_prof@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _opt_prof@GOTPAGE
Lloh17:
	ldr	x9, [x9, _opt_prof@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x3, sp
	mov	x0, x20
	mov	x1, x27
	mov	x2, x26
	bl	_prof_free
	b	LBB0_2
LBB0_8:
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x21
	bl	_malloc_mutex_unlock
Lloh19:
	adrp	x24, _NBINS@GOTPAGE
Lloh20:
	ldr	x24, [x24, _NBINS@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_21
; %bb.9:
	mov	x25, #0
	mov	w26, #40
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x21
	bl	_malloc_mutex_unlock
	add	x25, x25, #1
	ldr	w8, [x24]
	cmp	x25, x8
	b.hs	LBB0_21
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	ldr	x27, [x19, #8]
	madd	x21, x25, x26, x27
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x21
	bl	_malloc_mutex_lock
	mov	x8, x21
	ldr	x22, [x8, #32]!
	cbz	x22, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	str	xzr, [x8]
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x21
	bl	_malloc_mutex_unlock
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x19
	mov	x2, x22
	bl	_arena_slab_dalloc
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x21
	bl	_malloc_mutex_lock
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	madd	x8, x25, x26, x27
	add	x22, x8, #28
	mov	x0, x22
	bl	_extent_heap_remove_first
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x0
LBB0_15:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x21
	bl	_malloc_mutex_unlock
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x19
	mov	x2, x23
	bl	_arena_slab_dalloc
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x21
	bl	_malloc_mutex_lock
	mov	x0, x22
	bl	_extent_heap_remove_first
	mov	x23, x0
	cbnz	x0, LBB0_15
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	madd	x8, x25, x26, x27
	add	x22, x8, #24
	mov	x0, x22
	bl	_extent_list_first
	cbz	x0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x0
LBB0_18:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_arena_bin_slabs_full_remove
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x21
	bl	_malloc_mutex_unlock
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x19
	mov	x2, x23
	bl	_arena_slab_dalloc
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x21
	bl	_malloc_mutex_lock
	mov	x0, x22
	bl	_extent_list_first
	mov	x23, x0
	cbnz	x0, LBB0_18
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x28]
	cbz	x8, LBB0_10
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	madd	x8, x25, x26, x27
	stp	xzr, xzr, [x8, #8]
	b	LBB0_10
LBB0_21:
Lloh21:
	adrp	x8, _ATOMIC_RELAXED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ATOMIC_RELAXED@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_atomic_store_zu
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_extents_rtree,4,2              ; @extents_rtree
	.comm	_NSIZES,8,3                     ; @NSIZES
	.comm	_config_stats,8,3               ; @config_stats
	.comm	_config_prof,8,3                ; @config_prof
	.comm	_opt_prof,8,3                   ; @opt_prof
	.comm	_NBINS,4,2                      ; @NBINS
	.comm	_ATOMIC_RELAXED,4,2             ; @ATOMIC_RELAXED
.subsections_via_symbols
