	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function cache_lfu_policy_update_item
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cache_lfu_policy_update_item:          ## @cache_lfu_policy_update_item
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	_cache_lfu_policy_update_item(%rip), %rdi
	callq	_TRACE_IN
	movq	16(%rbx), %rax
	subq	8(%rbx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_CACHELIB_MAX_FREQUENCY@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm0
	jmp	LBB0_4
LBB0_1:
	cvtsi2sdq	24(%rbx), %xmm0
	mulsd	%xmm0, %xmm0
	incq	%rax
	cvtsi2sd	%rax, %xmm1
	divsd	%xmm1, %xmm0
	movq	_CACHELIB_MAX_FREQUENCY@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	cvttpd2dq	%xmm0, %xmm2
	cvtdq2pd	%xmm2, %xmm2
	ucomisd	%xmm1, %xmm2
	jae	LBB0_2
LBB0_4:
	cvttsd2si	%xmm0, %r15d
	jmp	LBB0_5
LBB0_2:
	addsd	LCPI0_0(%rip), %xmm1
	cvttsd2si	%xmm1, %r15d
LBB0_5:
	movq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	movq	_entries@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movslq	%r15d, %rdi
	movq	%rdi, (%rbx)
	shlq	$2, %rdi
	addq	(%r14), %rdi
	movl	(%r12), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
	leaq	_cache_lfu_policy_update_item(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TRACE_OUT                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHELIB_MAX_FREQUENCY,8,3     ## @CACHELIB_MAX_FREQUENCY
	.comm	_entries,4,2                    ## @entries
	.no_dead_strip	_cache_lfu_policy_update_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_lfu_policy_update_item
_cache_lfu_policy_update_item:          ; @cache_lfu_policy_update_item
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _cache_lfu_policy_update_item@PAGE
Lloh1:
	add	x0, x0, _cache_lfu_policy_update_item@PAGEOFF
	bl	_TRACE_IN
	ldp	x9, x8, [x19, #8]
	subs	x8, x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _CACHELIB_MAX_FREQUENCY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CACHELIB_MAX_FREQUENCY@GOTPAGEOFF]
Lloh4:
	ldr	d0, [x8]
	b	LBB0_3
LBB0_2:
	ldr	d0, [x19, #24]
	scvtf	d0, d0
	fmul	d0, d0, d0
	add	x8, x8, #1
	scvtf	d1, x8
	fdiv	d1, d0, d1
Lloh5:
	adrp	x8, _CACHELIB_MAX_FREQUENCY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CACHELIB_MAX_FREQUENCY@GOTPAGEOFF]
Lloh7:
	ldr	d0, [x8]
	fmul	d1, d0, d1
	fcvtzs	w21, d1
	scvtf	d1, w21
	fcmp	d0, d1
	b.hi	LBB0_4
LBB0_3:
	fmov	d1, #-1.00000000
	fadd	d0, d0, d1
	fcvtzs	w21, d0
LBB0_4:
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x8, x9, lsl #2
Lloh8:
	adrp	x22, _entries@GOTPAGE
Lloh9:
	ldr	x22, [x22, _entries@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	sxtw	x8, w21
	str	x8, [x19]
	ldr	x8, [x20]
	add	x0, x8, w21, sxtw #2
	ldr	w2, [x22]
	mov	x1, x19
	bl	_TAILQ_INSERT_HEAD
Lloh10:
	adrp	x0, _cache_lfu_policy_update_item@PAGE
Lloh11:
	add	x0, x0, _cache_lfu_policy_update_item@PAGEOFF
	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
	b	_TRACE_OUT
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHELIB_MAX_FREQUENCY,8,3     ; @CACHELIB_MAX_FREQUENCY
	.comm	_entries,4,2                    ; @entries
	.no_dead_strip	_cache_lfu_policy_update_item
.subsections_via_symbols
