	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_from_cache
_fill_from_cache:                       ## @fill_from_cache
	.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
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	cmpq	$0, 40(%r13)
	jne	LBB0_12
## %bb.1:
	movq	%rdx, %r12
	movl	(%rdx), %eax
	cmpl	(%r13), %eax
	jge	LBB0_12
## %bb.2:
	movq	%rcx, %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %eax
	incl	%eax
	movl	%eax, (%r12)
	cmpl	(%r13), %eax
	jge	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rbx
	movslq	%eax, %r15
	shlq	$4, %r15
	movq	(%rbx,%r15), %rax
	movsd	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	ucomisd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	ja	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	subsd	8(%r13), %xmm1
	divsd	-56(%rbp), %xmm1                ## 8-byte Folded Reload
	movl	16(%r13), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	addsd	%xmm1, %xmm0
	callq	_lrint
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	16(%r13), %eax
	jge	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx,%r15), %ecx
	movl	%eax, %eax
	movl	%ecx, (%rdx,%rax,4)
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r14, %r14
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r14), %rax
	cmpl	20(%r13), %eax
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	%r15, %rbx
	movq	24(%r13), %rcx
	leal	1(%rax), %edx
	movl	%edx, (%r14)
	shlq	$4, %rax
	movupd	(%rbx), %xmm0
	movupd	%xmm0, (%rcx,%rax)
	jmp	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fill_from_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_from_cache
_fill_from_cache:                       ; @fill_from_cache
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	ldr	x22, [x0]
	ldr	x8, [x22, #40]
	cbnz	x8, LBB0_12
; %bb.1:
	mov	x20, x2
	ldr	w24, [x2]
	ldr	w8, [x22]
	cmp	w24, w8
	b.ge	LBB0_12
; %bb.2:
	fmov	d8, d1
	fmov	d9, d0
	mov	x19, x3
	mov	x21, x1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	add	w24, w8, #1
	str	w24, [x20]
	ldr	w8, [x22]
	cmp	w24, w8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x22, #32]
	add	x23, x25, w24, sxtw #4
	ldr	x8, [x23]
	ldr	d0, [x8, #8]
	fcmp	d0, d9
	b.gt	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	d0, [x8]
	ldr	d1, [x22, #8]
	fsub	d0, d0, d1
	fdiv	d0, d0, d8
	ldr	w8, [x22, #16]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	scvtf	d1, w8
	fadd	d0, d0, d1
	bl	_lrint
	tbnz	w0, #31, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #16]
	cmp	w0, w8
	b.ge	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x21, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w24
	add	x8, x25, x8, lsl #4
	ldr	w8, [x8, #8]
	str	w8, [x21, w0, uxtw #2]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x19, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x19]
	ldr	w9, [x22, #20]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x22, #24]
	add	w10, w8, #1
	str	w10, [x19]
	ldr	q0, [x23]
	str	q0, [x9, x8, lsl #4]
	b	LBB0_3
LBB0_12:
	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	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fill_from_cache
.subsections_via_symbols
