	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arena_prof_promote             ## -- Begin function arena_prof_promote
	.p2align	4, 0x90
_arena_prof_promote:                    ## @arena_prof_promote
	.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, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_config_prof@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cassert
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_isalloc
	movq	_SC_LARGE_MINCLASS@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_assert
	movq	_SC_SMALL_MAXCLASS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%r14, (%rax)
	setae	%dil
	callq	_assert
	movq	_config_opt_safety_checks@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_safety_check_set_redzone
LBB0_2:
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdi
	callq	_tsdn_rtree_ctx
	movq	%rax, %rbx
	movq	_extents_rtree@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	movq	%r15, %rcx
	movl	$1, %r8d
	callq	_rtree_extent_read
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_sz_size2index
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_extent_szind_set
	movq	%r12, %rdi
	movq	_extents_rtree@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	callq	_rtree_szind_slab_update
	movq	%r12, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_prof_idump_rollback
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_isalloc
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_config_prof,4,2                ## @config_prof
	.comm	_SC_LARGE_MINCLASS,8,3          ## @SC_LARGE_MINCLASS
	.comm	_SC_SMALL_MAXCLASS,8,3          ## @SC_SMALL_MAXCLASS
	.comm	_config_opt_safety_checks,8,3   ## @config_opt_safety_checks
	.comm	_extents_rtree,4,2              ## @extents_rtree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arena_prof_promote             ; -- Begin function arena_prof_promote
	.p2align	2
_arena_prof_promote:                    ; @arena_prof_promote
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	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	x20, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x21
	mov	x1, x20
	bl	_isalloc
Lloh3:
	adrp	x22, _SC_LARGE_MINCLASS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SC_LARGE_MINCLASS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
Lloh5:
	adrp	x8, _SC_SMALL_MAXCLASS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SC_SMALL_MAXCLASS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x19
	cset	w0, hs
	bl	_assert
Lloh8:
	adrp	x8, _config_opt_safety_checks@GOTPAGE
Lloh9:
	ldr	x8, [x8, _config_opt_safety_checks@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_safety_check_set_redzone
LBB0_2:
	add	x1, sp, #12
	mov	x0, x21
	bl	_tsdn_rtree_ctx
	mov	x22, x0
Lloh11:
	adrp	x23, _extents_rtree@GOTPAGE
Lloh12:
	ldr	x23, [x23, _extents_rtree@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	mov	w4, #1
	bl	_rtree_extent_read
	mov	x24, x0
	mov	x0, x19
	bl	_sz_size2index
	mov	x25, x0
	mov	x0, x24
	mov	x1, x25
	bl	_extent_szind_set
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	mov	x4, x25
	mov	w5, #0
	bl	_rtree_szind_slab_update
	mov	x0, x21
	mov	x1, x19
	bl	_prof_idump_rollback
	mov	x0, x21
	mov	x1, x20
	bl	_isalloc
	cmp	x0, x19
	cset	w0, eq
	bl	_assert
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_config_prof,4,2                ; @config_prof
	.comm	_SC_LARGE_MINCLASS,8,3          ; @SC_LARGE_MINCLASS
	.comm	_SC_SMALL_MAXCLASS,8,3          ; @SC_SMALL_MAXCLASS
	.comm	_config_opt_safety_checks,8,3   ; @config_opt_safety_checks
	.comm	_extents_rtree,4,2              ; @extents_rtree
.subsections_via_symbols
