	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_promote_levels
_update_promote_levels:                 ## @update_promote_levels
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	addq	$12, %rdi
	callq	_allocator_empty
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_default_promote_level
	movl	%eax, %edi
	movq	_NR_HOTSPOT_LEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_3
LBB0_2:
	movq	_NR_HOTSPOT_LEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edi
	shrl	%edi
LBB0_3:
	callq	_max
	movl	%eax, %ebx
	leaq	8(%r14), %rdi
	callq	_stats_assess
	cmpl	$130, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.5:
	shrl	$2, %ebx
	jmp	LBB0_7
LBB0_6:
	shrl	%ebx
LBB0_7:
	movq	_NR_HOTSPOT_LEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subl	%ebx, %ecx
	movl	%ecx, (%r14)
	movl	(%rax), %eax
	subl	%ebx, %eax
	movl	%eax, 4(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_HOTSPOT_LEVELS,4,2          ## @NR_HOTSPOT_LEVELS
	.no_dead_strip	_update_promote_levels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_promote_levels
_update_promote_levels:                 ; @update_promote_levels
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	add	x0, x0, #12
	bl	_allocator_empty
Lloh0:
	adrp	x21, _NR_HOTSPOT_LEVELS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NR_HOTSPOT_LEVELS@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_default_promote_level
	ldr	w1, [x21]
	b	LBB0_3
LBB0_2:
	ldr	w1, [x21]
	lsr	w0, w1, #1
LBB0_3:
	bl	_max
	mov	x20, x0
	add	x0, x19, #8
	bl	_stats_assess
	lsr	w8, w20, #1
	lsr	w9, w20, #2
	cmp	w0, #129
	csel	w9, w20, w9, ne
	cmp	w0, #130
	csel	w8, w8, w9, eq
	ldr	w9, [x21]
	sub	w9, w9, w8
	str	w9, [x19]
	ldr	w9, [x21]
	sub	w8, w9, w8
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_HOTSPOT_LEVELS,4,2          ; @NR_HOTSPOT_LEVELS
	.no_dead_strip	_update_promote_levels
.subsections_via_symbols
