	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_top_heap_insert_uri_optimized
_cache_top_heap_insert_uri_optimized:   ## @cache_top_heap_insert_uri_optimized
	.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
	movq	%rdi, %rbx
	movq	_heap_acounter_off@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	shlq	$2, %r15
	addq	(%rdi), %r15
	movq	_heap_foreach@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	cmpl	4(%rax), %ecx
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_tbl_foreach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_amortization_counter_update
	movq	(%r14), %rcx
	movl	(%rcx), %eax
	leal	1(%rax), %r13d
	movl	%r13d, (%rcx)
	testl	%eax, %eax
	jle	LBB0_17
## %bb.2:
	movl	%r13d, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	shrl	%ebx
	movl	%ebx, %edi
	callq	_GET_HEAP_VALUE
	cmpq	(%r15), %rax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rcx
	movl	%r13d, %edx
	movq	%rcx, (%rax,%rdx,8)
	cmpl	$3, %r13d
	movl	%ebx, %r13d
	ja	LBB0_3
	jmp	LBB0_6
LBB0_7:
	movl	$1, %edi
	callq	_GET_HEAP_VALUE
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:
	movq	_tbl_foreach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_amortization_counter_update
	movl	$1, %r13d
	movl	$1, %edi
	callq	_GET_HEAP_VALUE
	cmpq	(%r15), %rax
	jge	LBB0_18
## %bb.9:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rcx
	movl	(%rcx), %eax
	cmpl	$2, %eax
	jl	LBB0_17
## %bb.10:
	movl	$1, %r14d
	movl	$2, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %r12d
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r12d, %edi
	callq	_GET_HEAP_VALUE
	movq	%rax, %rbx
	movl	%r12d, %r13d
	orl	$1, %r13d
	movl	%r13d, %edi
	callq	_GET_HEAP_VALUE
	cmpq	%rax, %rbx
	jg	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%r12d, %r13d
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r15), %rbx
	movl	%r13d, %edi
	callq	_GET_HEAP_VALUE
	movq	_heap_foreach@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	cmpq	%rax, %rbx
	jle	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rcx), %rax
	movslq	%r13d, %rcx
	movq	(%rax,%rcx,8), %rcx
	movslq	%r14d, %rdx
	movq	%rcx, (%rax,%rdx,8)
	leal	(%r13,%r13), %r12d
	movq	(%rsi), %rcx
	movl	(%rcx), %eax
	movl	%r13d, %r14d
	cmpl	%eax, %r12d
	jle	LBB0_11
	jmp	LBB0_17
LBB0_4:
	movl	%r13d, %ebx
LBB0_6:
	movq	(%r14), %rcx
	movl	%ebx, %r13d
LBB0_17:
	movq	8(%rcx), %rax
	movslq	%r13d, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%r14d, %r13d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_heap_acounter_off,8,3          ## @heap_acounter_off
	.comm	_heap_foreach,8,3               ## @heap_foreach
	.comm	_tbl_foreach,4,2                ## @tbl_foreach
	.no_dead_strip	_cache_top_heap_insert_uri_optimized
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_top_heap_insert_uri_optimized
_cache_top_heap_insert_uri_optimized:   ; @cache_top_heap_insert_uri_optimized
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _heap_acounter_off@GOTPAGE
Lloh1:
	ldr	x9, [x9, _heap_acounter_off@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x24, _heap_foreach@GOTPAGE
Lloh4:
	ldr	x24, [x24, _heap_foreach@GOTPAGEOFF]
	add	x20, x8, x9, lsl #2
	ldr	x8, [x24]
	ldp	w9, w8, [x8]
	cmp	w9, w8
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _tbl_foreach@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tbl_foreach@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_amortization_counter_update
	ldr	x8, [x24]
	ldr	w9, [x8]
	add	w21, w9, #1
	str	w21, [x8]
	cmp	w9, #1
	b.lt	LBB0_10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w22, w21, #1
	mov	x0, x22
	bl	_GET_HEAP_VALUE
	ldr	x8, [x20]
	cmp	x0, x8
	b.le	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
	ldr	x9, [x8, w22, uxtw #3]
	str	x9, [x8, w21, uxtw #3]
	cmp	w21, #3
	mov	x21, x22
	b.hi	LBB0_2
	b	LBB0_9
LBB0_4:
	mov	w0, #1
	bl	_GET_HEAP_VALUE
	ldr	x8, [x20]
	cmp	x0, x8
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.5:
Lloh8:
	adrp	x8, _tbl_foreach@GOTPAGE
Lloh9:
	ldr	x8, [x8, _tbl_foreach@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_amortization_counter_update
	mov	w0, #1
	bl	_GET_HEAP_VALUE
	ldr	x8, [x20]
	cmp	x0, x8
	b.ge	LBB0_11
; %bb.6:
	ldr	x8, [x24]
	ldr	w9, [x8]
	cmp	w9, #2
	b.ge	LBB0_12
; %bb.7:
	mov	w21, #1
	b	LBB0_10
LBB0_8:
	mov	x22, x21
LBB0_9:
	ldr	x8, [x24]
	mov	x21, x22
LBB0_10:
	ldr	x8, [x8, #8]
	str	x19, [x8, w21, sxtw #3]
LBB0_11:
	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_12:
	mov	w25, #1
	mov	w22, #2
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cmp	w22, w9
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x22
	bl	_GET_HEAP_VALUE
	mov	x21, x0
	orr	w23, w22, #0x1
	mov	x0, x23
	bl	_GET_HEAP_VALUE
	cmp	x21, x0
	csel	w21, w23, w22, gt
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x21, x22
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x22, [x20]
	mov	x0, x21
	bl	_GET_HEAP_VALUE
	ldr	x8, [x24]
	cmp	x22, x0
	b.le	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x8, #8]
	ldr	x9, [x8, w21, sxtw #3]
	str	x9, [x8, w25, sxtw #3]
	lsl	w22, w21, #1
	ldr	x8, [x24]
	ldr	w9, [x8]
	mov	x25, x21
	cmp	w22, w9
	b.le	LBB0_13
	b	LBB0_10
LBB0_18:
	mov	x21, x25
	b	LBB0_10
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_heap_acounter_off,8,3          ; @heap_acounter_off
	.comm	_heap_foreach,8,3               ; @heap_foreach
	.comm	_tbl_foreach,4,2                ; @tbl_foreach
	.no_dead_strip	_cache_top_heap_insert_uri_optimized
.subsections_via_symbols
