	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_hotspot_queue
_update_hotspot_queue:                  ## @update_hotspot_queue
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_hblock
	movl	%eax, %r12d
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_h_lookup
	leaq	20(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movl	4(%rax), %esi
	callq	_stats_level_accessed
	leaq	16(%rbx), %rdi
	movq	%r14, %rsi
	callq	_get_index
	leaq	8(%rbx), %r15
	movl	12(%rbx), %esi
	movl	%eax, %edi
	callq	_test_and_set_bit
	xorl	%edx, %edx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %edx
LBB0_3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_q_requeue
	jmp	LBB0_9
LBB0_4:
	callq	_stats_miss
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	callq	_alloc_entry
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	leaq	8(%rbx), %rdi
	callq	_q_pop
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_h_remove
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_get_index
	movl	12(%rbx), %esi
	movl	%eax, %edi
	callq	_clear_bit
LBB0_8:
	movl	%r12d, (%r14)
	addq	$8, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_q_push
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_h_insert
LBB0_9:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_update_hotspot_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_hotspot_queue
_update_hotspot_queue:                  ; @update_hotspot_queue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_to_hblock
	mov	x22, x0
	add	x21, x20, #4
	mov	x0, x21
	mov	x1, x22
	bl	_h_lookup
	mov	x19, x0
	add	x0, x20, #20
	cbz	x19, LBB0_3
; %bb.1:
	ldr	w1, [x19, #4]
	bl	_stats_level_accessed
	add	x0, x20, #16
	mov	x1, x19
	bl	_get_index
	add	x21, x20, #8
	ldr	w1, [x20, #12]
	bl	_test_and_set_bit
	cbz	x0, LBB0_7
; %bb.2:
	mov	w2, #0
	b	LBB0_8
LBB0_3:
	bl	_stats_miss
	add	x23, x20, #16
	mov	x0, x23
	bl	_alloc_entry
	mov	x19, x0
	cbnz	x0, LBB0_6
; %bb.4:
	add	x0, x20, #8
	bl	_q_pop
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_h_remove
	mov	x0, x23
	mov	x1, x19
	bl	_get_index
	ldr	w1, [x20, #12]
	bl	_clear_bit
LBB0_6:
	str	w22, [x19]
	add	x0, x20, #8
	mov	x1, x19
	bl	_q_push
	mov	x0, x21
	mov	x1, x19
	bl	_h_insert
	b	LBB0_9
LBB0_7:
	ldr	w2, [x20]
LBB0_8:
	mov	x0, x21
	mov	x1, x19
	mov	x3, #0
	mov	x4, #0
	bl	_q_requeue
LBB0_9:
	mov	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_update_hotspot_queue
.subsections_via_symbols
