	.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_top_fill_heap_uncached
LCPI0_0:
	.quad	0x3eb0c6f7a0b5ed8d              ## double 9.9999999999999995E-7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cache_top_fill_heap_uncached:          ## @cache_top_fill_heap_uncached
	.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
	movl	%edi, %r14d
	movq	_cache_features_mask@GOTPCREL(%rip), %rax
	movq	_CACHE_FEATURE_LONG_QUERIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	(%rax), %edi
	callq	_assert
	movq	_cache_top_fill_heap_uncached.fake(%rip), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_sizeof_uri
	movl	%eax, %edi
	callq	_zmalloc0
	movq	%rax, _cache_top_fill_heap_uncached.fake(%rip)
LBB0_2:
	movq	(%rax), %rcx
	movq	_heap_acounter_off@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	$1000000, %r14d                 ## imm = 0xF4240
	jl	LBB0_4
## %bb.3:
	cvtsi2sd	%r14d, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %esi
	movl	%esi, (%rcx,%rdx,4)
	movl	%r14d, %ecx
	imulq	$1125899907, %rcx, %r14         ## imm = 0x431BDE83
	shrq	$50, %r14
	jmp	LBB0_5
LBB0_4:
	xorl	%esi, %esi
	cmpl	$1, %r14d
	sbbl	%esi, %esi
	orl	%r14d, %esi
	movl	%esi, (%rcx,%rdx,4)
LBB0_5:
	movq	_CACHE_URI_BUCKETS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r15
	leal	-1(%r15), %ecx
	cmpl	%r15d, %r14d
	cmovll	%r14d, %ecx
	movq	_heap_foreach@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdx
	movl	(%rdx), %edi
	testl	%edi, %edi
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %rdx
	movq	%rax, 8(%rdx,%rbx,8)
	movq	(%rsi), %rdx
	movslq	(%rdx), %rdi
	incq	%rbx
	cmpq	%rdi, %rbx
	jl	LBB0_7
LBB0_8:
	movl	%edi, 4(%rdx)
	movslq	%ecx, %r12
	movq	_acounter_uncached_bucket_id@GOTPCREL(%rip), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	decq	%r15
	cmpq	%r12, %r15
	jle	LBB0_15
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	leaq	-8(,%r15,8), %r14
	movq	_list_uncached@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r14, %rdi
	callq	_PNEXT
	cmpq	%r14, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_cache_top_heap_insert_uri_optimized2
	movq	%rbx, %rdi
	callq	_PNEXT
	movq	%rax, %rbx
	cmpq	%r14, %rax
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_heap_acounter_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	jg	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	callq	_GET_HEAP_VALUE
	cltq
	cmpq	%rax, %r15
	jg	LBB0_14
## %bb.16:
	addl	$-2, %r15d
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vkprintf                       ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_cache_top_fill_heap_uncached.fake,8,3 ## @cache_top_fill_heap_uncached.fake
	.comm	_cache_features_mask,4,2        ## @cache_features_mask
	.comm	_CACHE_FEATURE_LONG_QUERIES,4,2 ## @CACHE_FEATURE_LONG_QUERIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_heap_acounter_off,8,3          ## @heap_acounter_off
	.comm	_CACHE_URI_BUCKETS,4,2          ## @CACHE_URI_BUCKETS
	.comm	_heap_foreach,8,3               ## @heap_foreach
	.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
L_.str.1:                               ## @.str.1
	.asciz	"Skipping uncached buckets from %d to 0.\n"

	.no_dead_strip	_cache_top_fill_heap_uncached
.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_uncached
_cache_top_fill_heap_uncached:          ; @cache_top_fill_heap_uncached
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _cache_features_mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cache_features_mask@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CACHE_FEATURE_LONG_QUERIES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CACHE_FEATURE_LONG_QUERIES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_assert
	adrp	x20, _cache_top_fill_heap_uncached.fake@PAGE
	ldr	x0, [x20, _cache_top_fill_heap_uncached.fake@PAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_sizeof_uri
	bl	_zmalloc0
	str	x0, [x20, _cache_top_fill_heap_uncached.fake@PAGEOFF]
LBB0_2:
	mov	w9, #16959
	movk	w9, #15, lsl #16
	ldr	x8, [x0]
Lloh8:
	adrp	x10, _heap_acounter_off@GOTPAGE
Lloh9:
	ldr	x10, [x10, _heap_acounter_off@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	w19, w9
	b.le	LBB0_4
; %bb.3:
	scvtf	d0, w19
	mov	x11, #60813
	movk	x11, #41141, lsl #16
	movk	x11, #50935, lsl #32
	movk	x11, #16048, lsl #48
	fmov	d1, x11
	fmul	d0, d0, d1
	fcvtzs	w11, d0
	str	w11, [x8, x10, lsl #2]
	add	w8, w9, #1
	udiv	w19, w19, w8
	b	LBB0_5
LBB0_4:
	cmp	w19, #0
	csinv	w9, w19, wzr, ne
	str	w9, [x8, x10, lsl #2]
LBB0_5:
Lloh11:
	adrp	x8, _CACHE_URI_BUCKETS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CACHE_URI_BUCKETS@GOTPAGEOFF]
Lloh13:
	ldrsw	x21, [x8]
	sub	w8, w21, #1
	cmp	w19, w21
	csel	w8, w19, w8, lt
Lloh14:
	adrp	x10, _heap_foreach@GOTPAGE
Lloh15:
	ldr	x10, [x10, _heap_foreach@GOTPAGEOFF]
	ldr	x9, [x10]
	ldr	w11, [x9]
	cmp	w11, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x12, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x9, #8]
	add	x9, x9, x12, lsl #3
	str	x0, [x9, #8]
	ldr	x9, [x10]
	ldrsw	x11, [x9]
	add	x12, x12, #1
	cmp	x12, x11
	b.lt	LBB0_7
LBB0_8:
	str	w11, [x9, #4]
	sxtw	x22, w8
Lloh16:
	adrp	x23, _list_uncached@GOTPAGE
Lloh17:
	ldr	x23, [x23, _list_uncached@GOTPAGEOFF]
Lloh18:
	adrp	x24, _heap_acounter_id@GOTPAGE
Lloh19:
	ldr	x24, [x24, _heap_acounter_id@GOTPAGEOFF]
Lloh20:
	adrp	x25, _acounter_uncached_bucket_id@GOTPAGE
Lloh21:
	ldr	x25, [x25, _acounter_uncached_bucket_id@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x21, x26
	cmp	x26, x22
	b.le	LBB0_16
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	sub	x26, x21, #1
	ldr	x8, [x23]
	add	x19, x8, x26, lsl #3
	mov	x0, x19
	bl	_PNEXT
	cmp	x0, x19
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x20, x0
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_cache_top_heap_insert_uri_optimized2
	mov	x0, x20
	bl	_PNEXT
	mov	x20, x0
	cmp	x0, x19
	b.ne	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.gt	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #1
	bl	_GET_HEAP_VALUE
	cmp	x21, w0, sxtw
	b.gt	LBB0_9
; %bb.15:
	sub	w2, w21, #2
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vkprintf
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_cache_top_fill_heap_uncached.fake,8,3 ; @cache_top_fill_heap_uncached.fake
	.comm	_cache_features_mask,4,2        ; @cache_features_mask
	.comm	_CACHE_FEATURE_LONG_QUERIES,4,2 ; @CACHE_FEATURE_LONG_QUERIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_heap_acounter_off,8,3          ; @heap_acounter_off
	.comm	_CACHE_URI_BUCKETS,4,2          ; @CACHE_URI_BUCKETS
	.comm	_heap_foreach,8,3               ; @heap_foreach
	.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
l_.str.1:                               ; @.str.1
	.asciz	"Skipping uncached buckets from %d to 0.\n"

	.no_dead_strip	_cache_top_fill_heap_uncached
.subsections_via_symbols
