	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_heap_insert              ## -- Begin function cache_heap_insert
	.p2align	4, 0x90
_cache_heap_insert:                     ## @cache_heap_insert
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %eax
	cmpl	4(%rdi), %eax
	jge	LBB0_5
## %bb.1:
	leal	1(%rax), %r12d
	movl	%r12d, (%r15)
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	shrl	%ebx
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	*8(%r15)
	testq	%rax, %rax
	jns	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rcx
	movl	%r12d, %edx
	movq	%rcx, (%rax,%rdx,8)
	cmpl	$3, %r12d
	movl	%ebx, %r12d
	ja	LBB0_3
	jmp	LBB0_9
LBB0_5:
	movq	16(%r15), %rax
	movq	8(%rax), %rdi
	movq	%r14, %rsi
	callq	*8(%r15)
	testq	%rax, %rax
	jle	LBB0_10
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_heap_sift                      ## TAILCALL
LBB0_8:
	movl	%r12d, %ebx
LBB0_9:
	movq	16(%r15), %rax
	movslq	%ebx, %rcx
	movq	%r14, (%rax,%rcx,8)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_heap_insert              ; -- Begin function cache_heap_insert
	.p2align	2
_cache_heap_insert:                     ; @cache_heap_insert
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldp	w8, w9, [x0]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.1:
	add	w21, w8, #1
	str	w21, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w22, w21, #1
	ldp	x8, x9, [x20, #8]
	ldr	x0, [x9, w22, uxtw #3]
	mov	x1, x19
	blr	x8
	tbz	x0, #63, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x8, x22, lsl #3]
	str	x9, [x8, w21, uxtw #3]
	cmp	w21, #3
	mov	x21, x22
	b.hi	LBB0_2
	b	LBB0_7
LBB0_4:
	ldp	x8, x9, [x20, #8]
	ldr	x0, [x9, #8]
	mov	x1, x19
	blr	x8
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_heap_sift
LBB0_6:
	mov	x22, x21
LBB0_7:
	ldr	x8, [x20, #16]
	str	x19, [x8, w22, sxtw #3]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
