	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_bottom_fill_heap_from_given_disk
_cache_bottom_fill_heap_from_given_disk: ## @cache_bottom_fill_heap_from_given_disk
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	16(%rbp), %r12d
	movq	_cgsl_order_top@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	sete	%al
	movq	_cgsl_order_bottom@GOTPCREL(%rip), %rbx
	cmpl	%r12d, (%rbx)
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_cache_is_valid_disk
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.3:
	movq	_heap_foreach@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, (%rax)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_get_acounter_id_by_t
	movq	_heap_acounter_id@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	js	LBB0_4
## %bb.7:
	movq	_acounter_off@GOTPCREL(%rip), %rdx
	movl	%eax, %eax
	shlq	$2, %rax
	addq	(%rdx), %rax
	movq	_heap_acounter_off@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	movq	$0, 8(%r14)
	movq	_CACHE_MAX_HEAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movl	%ebx, (%r14)
	movq	_cgsl_order_top@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_8
## %bb.9:
	movq	_cache_heap_cmp_top@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_CACHE_ERR_LIMIT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_CACHE_ERR_UNKNOWN_T@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_cache_heap_cmp_bottom@GOTPCREL(%rip), %rax
LBB0_10:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_TAT@GOTPCREL(%rip), %rax
	movslq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	_tbl_foreach@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movq	_disk_filter@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	callq	_cache_disk_filter_init
	movq	_cache_features_mask@GOTPCREL(%rip), %rax
	movq	_CACHE_FEATURE_FAST_BOTTOM_ACCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_17
## %bb.11:
	movl	%ebx, %edi
	callq	_get_bucket_by_packed_location
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:
	movl	%eax, %r15d
	movq	_list_cached@GOTPCREL(%rip), %r14
	movl	%eax, %r13d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	subl	%r15d, %r13d
	js	LBB0_18
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movl	%r13d, %r12d
	shlq	$2, %r12
	addq	(%r14), %r12
	movq	%r12, %rdi
	callq	_PNEXT
	cmpq	%r12, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_cache_heap_insert_uri_from_given_disk
	movq	%rbx, %rdi
	callq	_PNEXT
	movq	%rax, %rbx
	cmpq	%r12, %rax
	jne	LBB0_15
	jmp	LBB0_16
LBB0_17:
	movq	_cache_heap_insert_uri_from_given_disk@GOTPCREL(%rip), %rdi
	movl	%r12d, %esi
	callq	_cache_all_uri_cached_foreach
LBB0_18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cache_heap_sort                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cgsl_order_top,4,2             ## @cgsl_order_top
	.comm	_cgsl_order_bottom,4,2          ## @cgsl_order_bottom
	.comm	_CACHE_ERR_LIMIT,4,2            ## @CACHE_ERR_LIMIT
	.comm	_heap_foreach,8,3               ## @heap_foreach
	.comm	_heap_acounter_id,4,2           ## @heap_acounter_id
	.comm	_CACHE_ERR_UNKNOWN_T,4,2        ## @CACHE_ERR_UNKNOWN_T
	.comm	_acounter_off,8,3               ## @acounter_off
	.comm	_heap_acounter_off,8,3          ## @heap_acounter_off
	.comm	_CACHE_MAX_HEAP_SIZE,4,2        ## @CACHE_MAX_HEAP_SIZE
	.comm	_cache_heap_cmp_top,4,2         ## @cache_heap_cmp_top
	.comm	_cache_heap_cmp_bottom,4,2      ## @cache_heap_cmp_bottom
	.comm	_TAT,8,3                        ## @TAT
	.comm	_tbl_foreach,8,3                ## @tbl_foreach
	.comm	_disk_filter,4,2                ## @disk_filter
	.comm	_cache_features_mask,4,2        ## @cache_features_mask
	.comm	_CACHE_FEATURE_FAST_BOTTOM_ACCESS,4,2 ## @CACHE_FEATURE_FAST_BOTTOM_ACCESS
	.comm	_list_cached,8,3                ## @list_cached
	.no_dead_strip	_cache_bottom_fill_heap_from_given_disk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_bottom_fill_heap_from_given_disk
_cache_bottom_fill_heap_from_given_disk: ; @cache_bottom_fill_heap_from_given_disk
	.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	x20, x6
	mov	x24, x5
	mov	x25, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _cgsl_order_top@GOTPAGE
Lloh1:
	ldr	x26, [x26, _cgsl_order_top@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, w6
Lloh2:
	adrp	x8, _cgsl_order_bottom@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cgsl_order_bottom@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ccmp	w8, w6, #4, ne
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	mov	x1, x25
	mov	x2, x24
	bl	_cache_is_valid_disk
	tbnz	w0, #31, LBB0_13
; %bb.1:
	cmp	w22, #0
	b.le	LBB0_10
; %bb.2:
Lloh5:
	adrp	x8, _heap_foreach@GOTPAGE
Lloh6:
	ldr	x8, [x8, _heap_foreach@GOTPAGEOFF]
Lloh7:
	str	x19, [x8]
	mov	x0, x23
	bl	_get_acounter_id_by_t
Lloh8:
	adrp	x8, _heap_acounter_id@GOTPAGE
Lloh9:
	ldr	x8, [x8, _heap_acounter_id@GOTPAGEOFF]
	str	w0, [x8]
	tbnz	w0, #31, LBB0_11
; %bb.3:
Lloh10:
	adrp	x9, _acounter_off@GOTPAGE
Lloh11:
	ldr	x9, [x9, _acounter_off@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x9, x9, w0, uxtw #2
Lloh13:
	adrp	x10, _heap_acounter_off@GOTPAGE
Lloh14:
	ldr	x10, [x10, _heap_acounter_off@GOTPAGEOFF]
Lloh15:
	str	x9, [x10]
	str	xzr, [x19, #8]
Lloh16:
	adrp	x9, _CACHE_MAX_HEAP_SIZE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CACHE_MAX_HEAP_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w9, w22
	csel	w9, w9, w22, lt
	str	w9, [x19]
	ldr	w9, [x26]
Lloh19:
	adrp	x10, _cache_heap_cmp_top@GOTPAGE
Lloh20:
	ldr	x10, [x10, _cache_heap_cmp_top@GOTPAGEOFF]
Lloh21:
	adrp	x11, _cache_heap_cmp_bottom@GOTPAGE
Lloh22:
	ldr	x11, [x11, _cache_heap_cmp_bottom@GOTPAGEOFF]
	cmp	w9, w20
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	str	w9, [x19, #4]
Lloh23:
	adrp	x9, _TAT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TAT@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ldrsw	x8, [x8]
	add	x8, x9, x8
Lloh26:
	adrp	x9, _tbl_foreach@GOTPAGE
Lloh27:
	ldr	x9, [x9, _tbl_foreach@GOTPAGEOFF]
Lloh28:
	str	x8, [x9]
Lloh29:
	adrp	x0, _disk_filter@GOTPAGE
Lloh30:
	ldr	x0, [x0, _disk_filter@GOTPAGEOFF]
	mov	x1, x21
	bl	_cache_disk_filter_init
Lloh31:
	adrp	x8, _cache_features_mask@GOTPAGE
Lloh32:
	ldr	x8, [x8, _cache_features_mask@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _CACHE_FEATURE_FAST_BOTTOM_ACCESS@GOTPAGE
Lloh35:
	ldr	x9, [x9, _CACHE_FEATURE_FAST_BOTTOM_ACCESS@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.4:
	mov	x0, x21
	bl	_get_bucket_by_packed_location
	tbnz	w0, #31, LBB0_15
; %bb.5:
	mov	x20, x0
Lloh37:
	adrp	x23, _list_cached@GOTPAGE
Lloh38:
	ldr	x23, [x23, _list_cached@GOTPAGEOFF]
	mov	x24, x0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	subs	w24, w24, w20
	b.mi	LBB0_15
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x23]
	add	x21, x8, w24, uxtw #2
	mov	x0, x21
	bl	_PNEXT
	cmp	x0, x21
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_cache_heap_insert_uri_from_given_disk
	mov	x0, x22
	bl	_PNEXT
	mov	x22, x0
	cmp	x0, x21
	b.ne	LBB0_9
	b	LBB0_6
LBB0_10:
Lloh39:
	adrp	x8, _CACHE_ERR_LIMIT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CACHE_ERR_LIMIT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh41:
	adrp	x8, _CACHE_ERR_UNKNOWN_T@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CACHE_ERR_UNKNOWN_T@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	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
LBB0_14:
Lloh43:
	adrp	x0, _cache_heap_insert_uri_from_given_disk@GOTPAGE
Lloh44:
	ldr	x0, [x0, _cache_heap_insert_uri_from_given_disk@GOTPAGEOFF]
	mov	x1, x20
	bl	_cache_all_uri_cached_foreach
LBB0_15:
	mov	x0, x19
	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	_cache_heap_sort
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_cgsl_order_top,4,2             ; @cgsl_order_top
	.comm	_cgsl_order_bottom,4,2          ; @cgsl_order_bottom
	.comm	_CACHE_ERR_LIMIT,4,2            ; @CACHE_ERR_LIMIT
	.comm	_heap_foreach,8,3               ; @heap_foreach
	.comm	_heap_acounter_id,4,2           ; @heap_acounter_id
	.comm	_CACHE_ERR_UNKNOWN_T,4,2        ; @CACHE_ERR_UNKNOWN_T
	.comm	_acounter_off,8,3               ; @acounter_off
	.comm	_heap_acounter_off,8,3          ; @heap_acounter_off
	.comm	_CACHE_MAX_HEAP_SIZE,4,2        ; @CACHE_MAX_HEAP_SIZE
	.comm	_cache_heap_cmp_top,4,2         ; @cache_heap_cmp_top
	.comm	_cache_heap_cmp_bottom,4,2      ; @cache_heap_cmp_bottom
	.comm	_TAT,8,3                        ; @TAT
	.comm	_tbl_foreach,8,3                ; @tbl_foreach
	.comm	_disk_filter,4,2                ; @disk_filter
	.comm	_cache_features_mask,4,2        ; @cache_features_mask
	.comm	_CACHE_FEATURE_FAST_BOTTOM_ACCESS,4,2 ; @CACHE_FEATURE_FAST_BOTTOM_ACCESS
	.comm	_list_cached,8,3                ; @list_cached
	.no_dead_strip	_cache_bottom_fill_heap_from_given_disk
.subsections_via_symbols
