	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function __mf_adapt_cache_fn
LCPI0_0:
	.long	1127219200                      ## 0x43300000
	.long	1160773632                      ## 0x45300000
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_1:
	.quad	0x4330000000000000              ## double 4503599627370496
	.quad	0x4530000000000000              ## double 1.9342813113834067E+25
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
___mf_adapt_cache_fn:                   ## @__mf_adapt_cache_fn
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	testq	%r15, %r15
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	32(%r15), %rax
	addq	24(%r15), %rax
	je	LBB0_6
## %bb.1:
	incl	32(%r14)
	movq	(%r15), %rcx
	movq	8(%r15), %rbx
	subq	%rbx, %rcx
	movl	28(%r14), %edx
	addl	%ecx, %edx
	incl	%edx
	movl	%edx, 28(%r14)
	movl	16(%r15), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.2:
	incl	24(%r14)
	cvtsi2sd	%edx, %xmm0
	movsd	(%r14), %xmm1                   ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	incq	%rcx
	movq	%rcx, %xmm2
	punpckldq	LCPI0_0(%rip), %xmm2    ## xmm2 = xmm2[0],mem[0],xmm2[1],mem[1]
	movsd	%xmm1, (%r14)
	subpd	LCPI0_1(%rip), %xmm2
	movapd	%xmm2, %xmm1
	unpckhpd	%xmm2, %xmm1                    ## xmm1 = xmm1[1],xmm2[1]
	addsd	%xmm2, %xmm1
	mulsd	%xmm0, %xmm1
	addsd	8(%r14), %xmm1
	movsd	%xmm1, 8(%r14)
	movq	16(%r14), %rcx
	movl	%ebx, %esi
	andl	$1, %esi
	movq	(%rcx), %rdi
	addl	%edx, (%rdi,%rsi,4)
	movl	$2, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %esi
	movq	-8(%rcx,%rdx,8), %rdi
	movl	%ebx, %eax
	andl	$2, %eax
	addl	%esi, (%rdi,%rax,2)
	cmpq	$64, %rdx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rax
	shrq	$2, %rax
	movl	16(%r15), %esi
	movq	(%rcx,%rdx,8), %rdi
	andl	$4, %ebx
	addl	%esi, (%rdi,%rbx)
	addq	$2, %rdx
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_5:
	sarl	16(%r15)
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___mf_adapt_cache_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mf_adapt_cache_fn
___mf_adapt_cache_fn:                   ; @__mf_adapt_cache_fn
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x0]
	cmp	x1, #0
	ccmp	x20, #0, #4, ne
	cset	w0, ne
	bl	_assert
	ldp	x9, x8, [x20, #24]
	cmn	x8, x9
	b.eq	LBB0_5
; %bb.1:
	ldp	w10, w8, [x19, #28]
	add	w11, w8, #1
	ldp	x9, x8, [x20]
	sub	x9, x9, x8
	add	w10, w10, w9
	add	w10, w10, #1
	stp	w10, w11, [x19, #28]
	ldr	w10, [x20, #16]
	cbz	w10, LBB0_5
; %bb.2:
	ldr	w11, [x19, #24]
	add	w11, w11, #1
	str	w11, [x19, #24]
	scvtf	d0, w10
	ldp	d1, d2, [x19]
	fadd	d1, d1, d0
	str	d1, [x19]
	add	x9, x9, #1
	ucvtf	d1, x9
	fmadd	d0, d1, d0, d2
	str	d0, [x19, #8]
	ldr	x9, [x19, #16]
	and	x11, x8, #0x1
	ldr	x12, [x9]
	lsl	x11, x11, #2
	ldr	w13, [x12, x11]
	add	w10, w13, w10
	str	w10, [x12, x11]
	mov	w10, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ubfx	x11, x8, #1, #1
	lsr	x8, x8, #1
	ldr	w12, [x20, #16]
	ldr	x13, [x9, x10]
	lsl	x11, x11, #2
	ldr	w14, [x13, x11]
	add	w12, w14, w12
	str	w12, [x13, x11]
	add	x10, x10, #8
	cmp	x10, #512
	b.ne	LBB0_3
; %bb.4:
	ldr	w8, [x20, #16]
	asr	w8, w8, #1
	str	w8, [x20, #16]
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___mf_adapt_cache_fn
.subsections_via_symbols
