	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_top_fill_heap_all
_cache_top_fill_heap_all:               ## @cache_top_fill_heap_all
	.cfi_startproc
## %bb.0:
                                        ## kill: def $edi killed $edi def $rdi
	cmpl	$1000000, %edi                  ## imm = 0xF4240
	jl	LBB0_2
## %bb.1:
	movslq	%edi, %rax
	imulq	$1125899907, %rax, %rdi         ## imm = 0x431BDE83
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$50, %rdi
	addl	%eax, %edi
LBB0_2:
	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	_CACHE_URI_BUCKETS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	leal	-1(%rax), %ebx
	cmpl	%eax, %edi
	cmovll	%edi, %ebx
	movq	_cache_features_mask@GOTPCREL(%rip), %rcx
	movq	_CACHE_FEATURE_LONG_QUERIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rcx), %edi
	callq	_assert
	movl	(%r14), %r12d
	cmpl	%ebx, %r12d
	jle	LBB0_3
## %bb.4:
	movslq	%r12d, %rax
	decq	%rax
	movslq	%ebx, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-1(%r13), %rax
	movl	%r13d, %r12d
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	jle	LBB0_16
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movq	%rax, %r13
	leaq	(,%rax,4), %r14
	movq	_list_cached@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	%r14, %r15
	movq	%r15, %rdi
	callq	_PNEXT
	cmpq	%r15, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_cache_top_heap_insert_uri_optimized
	movq	%rbx, %rdi
	callq	_PNEXT
	movq	%rax, %rbx
	cmpq	%r15, %rax
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_list_uncached@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r14, %rdi
	callq	_PNEXT
	cmpq	%r14, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_cache_top_heap_insert_uri_optimized
	movq	%rbx, %rdi
	callq	_PNEXT
	movq	%rax, %rbx
	cmpq	%r14, %rax
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_heap_acounter_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_acounter_uncached_bucket_id@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_heap_foreach@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	cmpq	8(%rax), %rcx
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	callq	_GET_HEAP_VALUE
	cmpl	%r12d, %eax
	jl	LBB0_15
## %bb.14:
	leal	-2(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_vkprintf
	jmp	LBB0_17
LBB0_3:
	leal	-1(%r12), %r13d
	jmp	LBB0_17
LBB0_16:
	movl	%r13d, %r12d
	movl	%eax, %r13d
LBB0_17:
	movq	_cache_features_mask@GOTPCREL(%rip), %rcx
	movq	_CACHE_FEATURE_FAST_BOTTOM_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.18:
	testl	%r12d, %r12d
	jle	LBB0_24
## %bb.19:
	movl	%r13d, %r15d
	movq	_list_cached@GOTPCREL(%rip), %r12
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	-1(%r15), %rax
	testl	%r15d, %r15d
	movq	%rax, %r15
	jle	LBB0_24
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	leaq	(,%r15,4), %r14
	addq	(%r12), %r14
	movq	%r14, %rdi
	callq	_PNEXT
	cmpq	%r14, %rax
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_cache_top_heap_insert_uri_optimized
	movq	%rbx, %rdi
	callq	_PNEXT
	movq	%rax, %rbx
	cmpq	%r14, %rax
	jne	LBB0_22
	jmp	LBB0_23
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHE_URI_BUCKETS,4,2          ## @CACHE_URI_BUCKETS
	.comm	_cache_features_mask,4,2        ## @cache_features_mask
	.comm	_CACHE_FEATURE_LONG_QUERIES,4,2 ## @CACHE_FEATURE_LONG_QUERIES
	.comm	_list_cached,8,3                ## @list_cached
	.comm	_list_uncached,8,3              ## @list_uncached
	.comm	_heap_acounter_id,8,3           ## @heap_acounter_id
	.comm	_acounter_uncached_bucket_id,8,3 ## @acounter_uncached_bucket_id
	.comm	_heap_foreach,8,3               ## @heap_foreach
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skipping buckets from %d to 0.\n"

	.comm	_CACHE_FEATURE_FAST_BOTTOM_ACCESS,4,2 ## @CACHE_FEATURE_FAST_BOTTOM_ACCESS
	.no_dead_strip	_cache_top_fill_heap_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_top_fill_heap_all
_cache_top_fill_heap_all:               ; @cache_top_fill_heap_all
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w8, #16959
	movk	w8, #15, lsl #16
	add	w9, w8, #1
	sdiv	w9, w0, w9
Lloh0:
	adrp	x20, _CACHE_URI_BUCKETS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CACHE_URI_BUCKETS@GOTPAGEOFF]
	cmp	w0, w8
	csel	w8, w9, w0, gt
	ldr	w9, [x20]
	sub	w10, w9, #1
Lloh2:
	adrp	x21, _cache_features_mask@GOTPAGE
Lloh3:
	ldr	x21, [x21, _cache_features_mask@GOTPAGEOFF]
	cmp	w8, w9
	csel	w19, w8, w10, lt
	ldr	w8, [x21]
Lloh4:
	adrp	x9, _CACHE_FEATURE_LONG_QUERIES@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CACHE_FEATURE_LONG_QUERIES@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_assert
	ldr	w22, [x20]
	cmp	w22, w19
	b.le	LBB0_13
; %bb.1:
	sxtw	x8, w22
	sub	x8, x8, #1
	sxtw	x24, w19
Lloh7:
	adrp	x25, _list_cached@GOTPAGE
Lloh8:
	ldr	x25, [x25, _list_cached@GOTPAGEOFF]
Lloh9:
	adrp	x26, _list_uncached@GOTPAGE
Lloh10:
	ldr	x26, [x26, _list_uncached@GOTPAGEOFF]
Lloh11:
	adrp	x27, _heap_acounter_id@GOTPAGE
Lloh12:
	ldr	x27, [x27, _heap_acounter_id@GOTPAGEOFF]
Lloh13:
	adrp	x28, _acounter_uncached_bucket_id@GOTPAGE
Lloh14:
	ldr	x28, [x28, _acounter_uncached_bucket_id@GOTPAGEOFF]
Lloh15:
	adrp	x21, _heap_foreach@GOTPAGE
Lloh16:
	ldr	x21, [x21, _heap_foreach@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x23, #1
	mov	x22, x23
	cmp	x23, x24
	b.le	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	mov	x23, x8
	ldr	x8, [x25]
	add	x19, x8, x23, lsl #2
	mov	x0, x19
	bl	_PNEXT
	cmp	x0, x19
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_cache_top_heap_insert_uri_optimized
	mov	x0, x20
	bl	_PNEXT
	mov	x20, x0
	cmp	x0, x19
	b.ne	LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	add	x19, x8, x23, lsl #2
	mov	x0, x19
	bl	_PNEXT
	cmp	x0, x19
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x0
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_cache_top_heap_insert_uri_optimized
	mov	x0, x20
	bl	_PNEXT
	mov	x20, x0
	cmp	x0, x19
	b.ne	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x28]
	cmp	x8, x9
	b.gt	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldp	x9, x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_GET_HEAP_VALUE
	cmp	w0, w22
	b.lt	LBB0_2
; %bb.12:
	sub	w2, w22, #2
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	b	LBB0_15
LBB0_13:
	sub	w23, w22, #1
	b	LBB0_16
LBB0_14:
	mov	x22, x23
	mov	x23, x8
LBB0_15:
Lloh19:
	adrp	x21, _cache_features_mask@GOTPAGE
Lloh20:
	ldr	x21, [x21, _cache_features_mask@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x21]
Lloh21:
	adrp	x9, _CACHE_FEATURE_FAST_BOTTOM_ACCESS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CACHE_FEATURE_FAST_BOTTOM_ACCESS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w22, #1, #8, ne
	b.ge	LBB0_18
LBB0_17:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	w21, w23
Lloh24:
	adrp	x22, _list_cached@GOTPAGE
Lloh25:
	ldr	x22, [x22, _list_cached@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	sub	x8, x21, #1
	cmp	w21, #0
	mov	x21, x8
	b.le	LBB0_17
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	ldr	x8, [x22]
	add	x19, x8, x21, lsl #2
	mov	x0, x19
	bl	_PNEXT
	cmp	x0, x19
	b.eq	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x20, x0
LBB0_22:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_cache_top_heap_insert_uri_optimized
	mov	x0, x20
	bl	_PNEXT
	mov	x20, x0
	cmp	x0, x19
	b.ne	LBB0_22
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHE_URI_BUCKETS,4,2          ; @CACHE_URI_BUCKETS
	.comm	_cache_features_mask,4,2        ; @cache_features_mask
	.comm	_CACHE_FEATURE_LONG_QUERIES,4,2 ; @CACHE_FEATURE_LONG_QUERIES
	.comm	_list_cached,8,3                ; @list_cached
	.comm	_list_uncached,8,3              ; @list_uncached
	.comm	_heap_acounter_id,8,3           ; @heap_acounter_id
	.comm	_acounter_uncached_bucket_id,8,3 ; @acounter_uncached_bucket_id
	.comm	_heap_foreach,8,3               ; @heap_foreach
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skipping buckets from %d to 0.\n"

	.comm	_CACHE_FEATURE_FAST_BOTTOM_ACCESS,4,2 ; @CACHE_FEATURE_FAST_BOTTOM_ACCESS
	.no_dead_strip	_cache_top_fill_heap_all
.subsections_via_symbols
