	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_priority_lists_request
_cache_priority_lists_request:          ## @cache_priority_lists_request
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_next_priority_lists_request_time@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	xorl	%eax, %eax
	callq	_get_rusage_time
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movq	_simulation_params@GOTPCREL(%rip), %r12
	cmpq	$0, 8(%r12)
	je	LBB0_1
## %bb.2:
	movq	_simulation_stats@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ebx
	addl	%edx, %edx
	movq	_CACHE_MAX_HEAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	cmovgel	%ecx, %edx
	addl	%ebx, %ebx
	cmpl	%ecx, %ebx
	cmovgel	%ecx, %ebx
	testl	%edx, %edx
	jne	LBB0_4
	jmp	LBB0_3
LBB0_1:
	movq	_CACHE_MAX_HEAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_3:
	movl	%ecx, %edx
LBB0_4:
	testl	%ebx, %ebx
	cmovnel	%ebx, %ecx
	movq	_heap_cached@GOTPCREL(%rip), %rdi
	movq	_heap_uncached@GOTPCREL(%rip), %rsi
	movq	_heap_cached_files@GOTPCREL(%rip), %rbx
	movq	_heap_uncached_files@GOTPCREL(%rip), %r14
	movq	%rbx, %r8
	movq	%r14, %r9
	callq	_cache_get_priority_heaps
	movl	(%rbx), %edx
	movl	(%r14), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	xorl	%eax, %eax
	callq	_get_rusage_time
	subsd	-40(%rbp), %xmm0                ## 8-byte Folded Reload
	movq	_simulation_stats@GOTPCREL(%rip), %rax
	ucomisd	8(%rax), %xmm0
	jbe	LBB0_6
## %bb.5:
	movsd	%xmm0, 8(%rax)
LBB0_6:
	movq	_cached_ptr@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	movq	_uncached_ptr@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movl	(%r15), %ecx
	movq	_next_download_file_time@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	addl	(%r12), %ecx
	movl	%ecx, (%r15)
	incl	16(%rax)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<%d> cache_priority_list_request\n"

	.comm	_next_priority_lists_request_time,4,2 ## @next_priority_lists_request_time
	.comm	_simulation_params,16,3         ## @simulation_params
	.comm	_simulation_stats,24,3          ## @simulation_stats
	.comm	_CACHE_MAX_HEAP_SIZE,4,2        ## @CACHE_MAX_HEAP_SIZE
	.comm	_heap_cached,4,2                ## @heap_cached
	.comm	_heap_uncached,4,2              ## @heap_uncached
	.comm	_heap_cached_files,4,2          ## @heap_cached_files
	.comm	_heap_uncached_files,4,2        ## @heap_uncached_files
L_.str.1:                               ## @.str.1
	.asciz	"heap_cached_files: %d, heap_uncached_files: %d\n"

	.comm	_cached_ptr,4,2                 ## @cached_ptr
	.comm	_uncached_ptr,8,3               ## @uncached_ptr
	.comm	_next_download_file_time,4,2    ## @next_download_file_time
	.no_dead_strip	_cache_priority_lists_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_priority_lists_request
_cache_priority_lists_request:          ; @cache_priority_lists_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
Lloh0:
	adrp	x21, _next_priority_lists_request_time@GOTPAGE
Lloh1:
	ldr	x21, [x21, _next_priority_lists_request_time@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
	bl	_get_rusage_time
	fmov	d8, d0
Lloh4:
	adrp	x23, _simulation_params@GOTPAGE
Lloh5:
	ldr	x23, [x23, _simulation_params@GOTPAGEOFF]
	ldr	x8, [x23, #8]
Lloh6:
	adrp	x22, _simulation_stats@GOTPAGE
Lloh7:
	ldr	x22, [x22, _simulation_stats@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w8, w9, [x22]
	lsl	w10, w8, #1
Lloh8:
	adrp	x8, _CACHE_MAX_HEAP_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CACHE_MAX_HEAP_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w10, w8
	csel	w2, w10, w8, lt
	lsl	w9, w9, #1
	cmp	w9, w8
	csel	w9, w9, w8, lt
	cbnz	w2, LBB0_4
	b	LBB0_3
LBB0_2:
	mov	w9, #0
Lloh11:
	adrp	x8, _CACHE_MAX_HEAP_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CACHE_MAX_HEAP_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
LBB0_3:
	mov	x2, x8
LBB0_4:
	cmp	w9, #0
	csel	w3, w8, w9, eq
Lloh14:
	adrp	x0, _heap_cached@GOTPAGE
Lloh15:
	ldr	x0, [x0, _heap_cached@GOTPAGEOFF]
Lloh16:
	adrp	x1, _heap_uncached@GOTPAGE
Lloh17:
	ldr	x1, [x1, _heap_uncached@GOTPAGEOFF]
Lloh18:
	adrp	x19, _heap_cached_files@GOTPAGE
Lloh19:
	ldr	x19, [x19, _heap_cached_files@GOTPAGEOFF]
Lloh20:
	adrp	x20, _heap_uncached_files@GOTPAGE
Lloh21:
	ldr	x20, [x20, _heap_uncached_files@GOTPAGEOFF]
	mov	x4, x19
	mov	x5, x20
	bl	_cache_get_priority_heaps
	ldr	w2, [x19]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	bl	_get_rusage_time
	fsub	d0, d0, d8
	ldr	d1, [x22, #8]
	fcmp	d1, d0
	b.pl	LBB0_6
; %bb.5:
	str	d0, [x22, #8]
LBB0_6:
Lloh24:
	adrp	x8, _cached_ptr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _cached_ptr@GOTPAGEOFF]
	mov	w9, #1
Lloh26:
	adrp	x10, _uncached_ptr@GOTPAGE
Lloh27:
	ldr	x10, [x10, _uncached_ptr@GOTPAGEOFF]
Lloh28:
	str	w9, [x8]
Lloh29:
	str	xzr, [x10]
	ldr	w8, [x21]
Lloh30:
	adrp	x9, _next_download_file_time@GOTPAGE
Lloh31:
	ldr	x9, [x9, _next_download_file_time@GOTPAGEOFF]
Lloh32:
	str	w8, [x9]
	ldr	w9, [x23]
	add	w8, w8, w9
	str	w8, [x21]
	ldr	w8, [x22, #16]
	add	w8, w8, #1
	str	w8, [x22, #16]
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<%d> cache_priority_list_request\n"

	.comm	_next_priority_lists_request_time,4,2 ; @next_priority_lists_request_time
	.comm	_simulation_params,16,3         ; @simulation_params
	.comm	_simulation_stats,24,3          ; @simulation_stats
	.comm	_CACHE_MAX_HEAP_SIZE,4,2        ; @CACHE_MAX_HEAP_SIZE
	.comm	_heap_cached,4,2                ; @heap_cached
	.comm	_heap_uncached,4,2              ; @heap_uncached
	.comm	_heap_cached_files,4,2          ; @heap_cached_files
	.comm	_heap_uncached_files,4,2        ; @heap_uncached_files
l_.str.1:                               ; @.str.1
	.asciz	"heap_cached_files: %d, heap_uncached_files: %d\n"

	.comm	_cached_ptr,4,2                 ; @cached_ptr
	.comm	_uncached_ptr,8,3               ; @uncached_ptr
	.comm	_next_download_file_time,4,2    ; @next_download_file_time
	.no_dead_strip	_cache_priority_lists_request
.subsections_via_symbols
