	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_lfu_policy_get_last_item
_cache_lfu_policy_get_last_item:        ## @cache_lfu_policy_get_last_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	%rdi, %r15
	leaq	_cache_lfu_policy_get_last_item(%rip), %rdi
	callq	_TRACE_IN
	movq	_CACHELIB_MAX_FREQUENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-4(,%r12,4), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decq	%r12
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_TAILQ_EMPTY
	addq	$-4, %rbx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.3:
	movl	%r12d, %edi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	movq	_cache_lfu_policy_group_@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TAILQ_LAST
	movq	%rax, %r14
LBB0_4:
	leaq	_cache_lfu_policy_get_last_item(%rip), %rdi
	callq	_TRACE_OUT
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHELIB_MAX_FREQUENCY,4,2     ## @CACHELIB_MAX_FREQUENCY
	.comm	_cache_lfu_policy_group_,4,2    ## @cache_lfu_policy_group_
	.no_dead_strip	_cache_lfu_policy_get_last_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_get_last_item
_cache_lfu_policy_get_last_item:        ; @cache_lfu_policy_get_last_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, x0
Lloh0:
	adrp	x0, _cache_lfu_policy_get_last_item@PAGE
Lloh1:
	add	x0, x0, _cache_lfu_policy_get_last_item@PAGEOFF
	bl	_TRACE_IN
Lloh2:
	adrp	x8, _CACHELIB_MAX_FREQUENCY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CACHELIB_MAX_FREQUENCY@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	lsl	x8, x20, #2
	sub	x21, x8, #4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, #1
	b.lt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x20, x20, #1
	ldr	x8, [x19]
	add	x0, x8, x21
	bl	_TAILQ_EMPTY
	sub	x21, x21, #4
	cbnz	w0, LBB0_1
; %bb.3:
	ldr	x8, [x19]
	add	x0, x8, w20, uxtw #2
Lloh5:
	adrp	x8, _cache_lfu_policy_group_@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cache_lfu_policy_group_@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_TAILQ_LAST
	mov	x19, x0
	b	LBB0_5
LBB0_4:
	mov	x19, #0
LBB0_5:
Lloh8:
	adrp	x0, _cache_lfu_policy_get_last_item@PAGE
Lloh9:
	add	x0, x0, _cache_lfu_policy_get_last_item@PAGEOFF
	bl	_TRACE_OUT
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHELIB_MAX_FREQUENCY,4,2     ; @CACHELIB_MAX_FREQUENCY
	.comm	_cache_lfu_policy_group_,4,2    ; @cache_lfu_policy_group_
	.no_dead_strip	_cache_lfu_policy_get_last_item
.subsections_via_symbols
