	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_get_top_stats            ## -- Begin function cache_get_top_stats
	.p2align	4, 0x90
_cache_get_top_stats:                   ## @cache_get_top_stats
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movl	%edx, %r12d
	movl	%esi, %r13d
	movl	%edi, %ebx
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	$0, (%rsp)
	leaq	-96(%rbp), %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cache_top_fill_heap
	movl	%eax, -88(%rbp)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	je	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	movq	_heap_acounter_off@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	-84(%rbp)
	addq	%rax, -80(%rbp)
	movq	(%r13,%r14,4), %rcx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rcx, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	mulsd	%xmm0, %xmm1
	addsd	-72(%rbp), %xmm1
	movsd	%xmm1, -72(%rbp)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%ecx, -64(%rbp)
	movslq	-88(%rbp), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %rax
	movq	8(%rax,%rbx,8), %rdi
	movq	(%rdi), %r13
	movq	(%r12), %r14
	callq	_cache_uri_get_size
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13,%r14,4), %rcx
	jmp	LBB0_7
LBB0_8:
	movq	_TAT@GOTPCREL(%rip), %rax
	movq	_heap_acounter_id@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	shlq	$2, %rsi
	movq	(%rax), %rdi
	addq	%rsi, %rdi
	movq	_cum_access_counters@GOTPCREL(%rip), %r13
	addq	(%r13), %rsi
	xorl	%edx, %edx
	callq	_amortization_counter_precise_increment
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_cache_bclear
	movl	-88(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cache_bprintf
	movq	_uries@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cache_bprintf
	movl	-88(%rbp), %edi
	movl	(%r14), %esi
	callq	_safe_div
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_cache_bprintf
	movl	-84(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cache_bprintf
	movl	-64(%rbp), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cache_bprintf
	movl	-64(%rbp), %edi
	movq	(%r13), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_safe_div
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_cache_bprintf
	movl	-80(%rbp), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cache_bprintf
	cvttsd2si	-72(%rbp), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cache_bprintf
	movl	-48(%rbp), %ecx
	cmpl	%r15d, %ecx
	movl	$-1, %eax
	cmovll	%ecx, %eax
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %eax
LBB0_9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_heap_acounter_off,8,3          ## @heap_acounter_off
	.comm	_TAT,8,3                        ## @TAT
	.comm	_heap_acounter_id,8,3           ## @heap_acounter_id
	.comm	_cum_access_counters,8,3        ## @cum_access_counters
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"selection_size\t%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"total_files\t%lld\n"

	.comm	_uries,4,2                      ## @uries
L_.str.2:                               ## @.str.2
	.asciz	"selection_relative_size\t%.10lf\n"

L_.str.3:                               ## @.str.3
	.asciz	"known_size_files\t%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"sum_acounter\t%.10lg\n"

L_.str.5:                               ## @.str.5
	.asciz	"relative_sum_acounter\t%.10lf\n"

L_.str.6:                               ## @.str.6
	.asciz	"sum_filesize\t%lld\n"

L_.str.7:                               ## @.str.7
	.asciz	"weighted_sum_filesize\t%.10lg\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_get_top_stats            ; -- Begin function cache_get_top_stats
	.p2align	2
_cache_get_top_stats:                   ; @cache_get_top_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, sp, #40
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_cache_top_fill_heap
	str	w0, [sp, #8]
	tbnz	w0, #31, LBB0_8
; %bb.1:
	cbz	w0, LBB0_7
; %bb.2:
	mov	x21, #0
Lloh0:
	adrp	x22, _heap_acounter_off@GOTPAGE
Lloh1:
	ldr	x22, [x22, _heap_acounter_off@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	add	w8, w8, #1
	str	w8, [sp, #12]
	ldr	x8, [sp, #16]
	add	x8, x8, x0
	str	x8, [sp, #16]
	ldr	x8, [x23]
	scvtf	d0, x8
	scvtf	d1, x0
	ldr	d2, [sp, #24]
	fmadd	d0, d0, d1, d2
	str	d0, [sp, #24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [sp, #32]
	ldrsw	x10, [sp, #8]
	add	w8, w9, w8
	str	w8, [sp, #32]
	add	x21, x21, #1
	cmp	x21, x10
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #40]
	add	x8, x8, x21, lsl #3
	ldr	x0, [x8, #8]
	ldr	x8, [x0]
	ldr	x9, [x22]
	add	x23, x8, x9, lsl #2
	bl	_cache_uri_get_size
	tbz	x0, #63, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	b	LBB0_4
LBB0_7:
Lloh2:
	adrp	x8, _TAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TAT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x21, _heap_acounter_id@GOTPAGE
Lloh6:
	ldr	x21, [x21, _heap_acounter_id@GOTPAGEOFF]
	ldr	x9, [x21]
	lsl	x9, x9, #2
	add	x0, x8, x9
Lloh7:
	adrp	x22, _cum_access_counters@GOTPAGE
Lloh8:
	ldr	x22, [x22, _cum_access_counters@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, x9
	mov	w2, #0
	bl	_amortization_counter_precise_increment
	mov	x0, sp
	mov	x1, x20
	mov	x2, x19
	bl	_cache_bclear
	ldr	w2, [sp, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_cache_bprintf
Lloh11:
	adrp	x20, _uries@GOTPAGE
Lloh12:
	ldr	x20, [x20, _uries@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, sp
	bl	_cache_bprintf
	ldr	w0, [sp, #8]
	ldr	w1, [x20]
	bl	_safe_div
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, sp
	bl	_cache_bprintf
	ldr	w2, [sp, #12]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, sp
	bl	_cache_bprintf
	ldr	w2, [sp, #32]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, sp
	bl	_cache_bprintf
	ldr	w0, [sp, #32]
	ldr	x8, [x22]
	ldr	x9, [x21]
	ldr	w1, [x8, x9, lsl #2]
	bl	_safe_div
	mov	x2, x0
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, sp
	bl	_cache_bprintf
	ldr	w2, [sp, #16]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, sp
	bl	_cache_bprintf
	ldr	d0, [sp, #24]
	fcvtzs	w2, d0
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, sp
	bl	_cache_bprintf
	ldr	w8, [sp]
	cmp	w8, w19
	csinv	w0, w8, wzr, lt
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_heap_acounter_off,8,3          ; @heap_acounter_off
	.comm	_TAT,8,3                        ; @TAT
	.comm	_heap_acounter_id,8,3           ; @heap_acounter_id
	.comm	_cum_access_counters,8,3        ; @cum_access_counters
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"selection_size\t%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"total_files\t%lld\n"

	.comm	_uries,4,2                      ; @uries
l_.str.2:                               ; @.str.2
	.asciz	"selection_relative_size\t%.10lf\n"

l_.str.3:                               ; @.str.3
	.asciz	"known_size_files\t%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"sum_acounter\t%.10lg\n"

l_.str.5:                               ; @.str.5
	.asciz	"relative_sum_acounter\t%.10lf\n"

l_.str.6:                               ; @.str.6
	.asciz	"sum_filesize\t%lld\n"

l_.str.7:                               ; @.str.7
	.asciz	"weighted_sum_filesize\t%.10lg\n"

.subsections_via_symbols
