	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arena_prof_demote
_arena_prof_demote:                     ## @arena_prof_demote
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_config_prof@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cassert
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	movq	_NBINS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_extent_szind_set
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_tsdn_rtree_ctx
	movl	(%r12), %r8d
	movq	_extents_rtree@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	movq	%r14, %rcx
	xorl	%r9d, %r9d
	callq	_rtree_szind_slab_update
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_isalloc
	movq	_LARGE_MINCLASS@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_assert
	movq	(%rbx), %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_config_prof,4,2                ## @config_prof
	.comm	_NBINS,4,2                      ## @NBINS
	.comm	_extents_rtree,4,2              ## @extents_rtree
	.comm	_LARGE_MINCLASS,8,3             ## @LARGE_MINCLASS
	.no_dead_strip	_arena_prof_demote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arena_prof_demote
_arena_prof_demote:                     ; @arena_prof_demote
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _config_prof@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config_prof@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cassert
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
Lloh3:
	adrp	x22, _NBINS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NBINS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_extent_szind_set
	add	x1, sp, #12
	mov	x0, x21
	bl	_tsdn_rtree_ctx
	mov	x2, x0
	ldr	w4, [x22]
Lloh5:
	adrp	x1, _extents_rtree@GOTPAGE
Lloh6:
	ldr	x1, [x1, _extents_rtree@GOTPAGEOFF]
	mov	x0, x21
	mov	x3, x19
	mov	w5, #0
	bl	_rtree_szind_slab_update
	mov	x0, x21
	mov	x1, x19
	bl	_isalloc
Lloh7:
	adrp	x19, _LARGE_MINCLASS@GOTPAGE
Lloh8:
	ldr	x19, [x19, _LARGE_MINCLASS@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_config_prof,4,2                ; @config_prof
	.comm	_NBINS,4,2                      ; @NBINS
	.comm	_extents_rtree,4,2              ; @extents_rtree
	.comm	_LARGE_MINCLASS,8,3             ; @LARGE_MINCLASS
	.no_dead_strip	_arena_prof_demote
.subsections_via_symbols
