	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_get_priority_heaps       ## -- Begin function cache_get_priority_heaps
	.p2align	4, 0x90
_cache_get_priority_heaps:              ## @cache_get_priority_heaps
	.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
	movq	%rsi, %r14
	movq	%rdi, %r13
	testl	%edx, %edx
	movq	_CACHE_MAX_HEAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmovel	%esi, %edx
	testl	%ecx, %ecx
	cmovel	%esi, %ecx
	movq	$0, 8(%rdi)
	cmpl	%esi, %edx
	cmovgel	%esi, %edx
	movl	%edx, (%rdi)
	movq	_cached_heap_cmp@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rdi)
	movq	$0, 8(%r14)
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, (%r14)
	movq	_uncached_heap_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_uri_hash_prime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	movq	_H@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%r15), %rcx
	movq	(%rcx,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%rbx)
	movq	%r13, %rdi
	cmoveq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cache_heap_insert
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_uri_hash_prime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	callq	_cache_heap_sort
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_verbosity@GOTPCREL(%rip), %rbx
	cmpl	$3, (%rbx)
	jl	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_cache_dump_priority_heap
LBB0_8:
	movq	%r14, %rdi
	callq	_cache_heap_sort
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	cmpl	$3, (%rbx)
	jl	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_cache_dump_priority_heap
LBB0_10:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHE_MAX_HEAP_SIZE,4,2        ## @CACHE_MAX_HEAP_SIZE
	.comm	_cached_heap_cmp,4,2            ## @cached_heap_cmp
	.comm	_uncached_heap_cmp,4,2          ## @uncached_heap_cmp
	.comm	_uri_hash_prime,4,2             ## @uri_hash_prime
	.comm	_H,8,3                          ## @H
	.comm	_verbosity,4,2                  ## @verbosity
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cached"

L_.str.1:                               ## @.str.1
	.asciz	"uncached"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_get_priority_heaps       ; -- Begin function cache_get_priority_heaps
	.p2align	2
_cache_get_priority_heaps:              ; @cache_get_priority_heaps
	.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, x5
	mov	x22, x4
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _CACHE_MAX_HEAP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CACHE_MAX_HEAP_SIZE@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w2, #0
	csel	w10, w9, w2, eq
	cmp	w3, #0
	csel	w11, w9, w3, eq
	str	xzr, [x0, #8]
	cmp	w10, w9
	csel	w9, w10, w9, lt
	str	w9, [x0]
Lloh2:
	adrp	x9, _cached_heap_cmp@GOTPAGE
Lloh3:
	ldr	x9, [x9, _cached_heap_cmp@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w9, [x0, #4]
	str	xzr, [x1, #8]
	ldr	w8, [x8]
	cmp	w11, w8
	csel	w8, w11, w8, lt
	str	w8, [x1]
Lloh5:
	adrp	x8, _uncached_heap_cmp@GOTPAGE
Lloh6:
	ldr	x8, [x8, _uncached_heap_cmp@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x1, #4]
Lloh8:
	adrp	x24, _uri_hash_prime@GOTPAGE
Lloh9:
	ldr	x24, [x24, _uri_hash_prime@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x25, #0
Lloh10:
	adrp	x26, _H@GOTPAGE
Lloh11:
	ldr	x26, [x26, _H@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x9, [x26]
	ldr	x23, [x9, x25, lsl #3]
	cbz	x23, LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23]
	cmp	x8, #0
	csel	x0, x19, x21, eq
	mov	x1, x23
	bl	_cache_heap_insert
	ldr	x23, [x23, #8]
	cbnz	x23, LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	b	LBB0_2
LBB0_6:
	mov	x0, x21
	bl	_cache_heap_sort
	str	w0, [x22]
Lloh12:
	adrp	x22, _verbosity@GOTPAGE
Lloh13:
	ldr	x22, [x22, _verbosity@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #3
	b.lt	LBB0_8
; %bb.7:
	mov	x2, x0
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_cache_dump_priority_heap
LBB0_8:
	mov	x0, x19
	bl	_cache_heap_sort
	str	w0, [x20]
	ldr	w8, [x22]
	cmp	w8, #3
	b.lt	LBB0_10
; %bb.9:
	mov	x2, x0
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_cache_dump_priority_heap
LBB0_10:
	mov	w0, #0
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHE_MAX_HEAP_SIZE,4,2        ; @CACHE_MAX_HEAP_SIZE
	.comm	_cached_heap_cmp,4,2            ; @cached_heap_cmp
	.comm	_uncached_heap_cmp,4,2          ; @uncached_heap_cmp
	.comm	_uri_hash_prime,4,2             ; @uri_hash_prime
	.comm	_H,8,3                          ; @H
	.comm	_verbosity,4,2                  ; @verbosity
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cached"

l_.str.1:                               ; @.str.1
	.asciz	"uncached"

.subsections_via_symbols
