	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function calculate_lanczos_coeffs
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
LCPI0_2:
	.long	0xbf800000                      ## float -1
LCPI0_3:
	.long	0xc0000000                      ## float -2
LCPI0_4:
	.long	0xc0400000                      ## float -3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_calculate_lanczos_coeffs:              ## @calculate_lanczos_coeffs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movaps	%xmm0, %xmm1
	movq	_M_PI@GOTPCREL(%rip), %r14
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm4
	addss	%xmm2, %xmm4
	mulss	(%r14), %xmm4
	movq	%rdi, %rbx
	xorps	%xmm3, %xmm3
	ucomiss	%xmm3, %xmm4
	movaps	%xmm2, %xmm0
	movss	%xmm1, -28(%rbp)                ## 4-byte Spill
	jne	LBB0_1
	jnp	LBB0_2
LBB0_1:
	movaps	%xmm4, %xmm0
	movss	%xmm4, -48(%rbp)                ## 4-byte Spill
	callq	_sinf
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	callq	_sinf
	xorps	%xmm3, %xmm3
	movss	-28(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	-20(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	-48(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	mulss	%xmm4, %xmm4
	mulss	LCPI0_1(%rip), %xmm4
	divss	%xmm4, %xmm0
LBB0_2:
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movss	%xmm0, (%rbx)
	movss	(%r14), %xmm6                   ## xmm6 = mem[0],zero,zero,zero
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	addss	%xmm2, %xmm0
	mulss	%xmm6, %xmm0
	ucomiss	%xmm3, %xmm0
	movaps	%xmm2, %xmm4
	jne	LBB0_3
	jnp	LBB0_4
LBB0_3:
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	callq	_sinf
	movss	%xmm0, -24(%rbp)                ## 4-byte Spill
	movss	-20(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	callq	_sinf
	movss	-28(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm4
	mulss	-24(%rbp), %xmm4                ## 4-byte Folded Reload
	movss	-20(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm0
	mulss	LCPI0_1(%rip), %xmm0
	divss	%xmm0, %xmm4
	movss	(%r14), %xmm6                   ## xmm6 = mem[0],zero,zero,zero
LBB0_4:
	movss	%xmm4, 4(%rbx)
	movss	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	addss	%xmm2, %xmm0
	mulss	%xmm6, %xmm0
	xorps	%xmm3, %xmm3
	ucomiss	%xmm3, %xmm0
	movaps	%xmm2, %xmm5
	jne	LBB0_5
	jnp	LBB0_6
LBB0_5:
	movss	%xmm4, -20(%rbp)                ## 4-byte Spill
	movss	%xmm0, -24(%rbp)                ## 4-byte Spill
	callq	_sinf
	movss	%xmm0, -32(%rbp)                ## 4-byte Spill
	movss	-24(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	callq	_sinf
	xorps	%xmm3, %xmm3
	movss	-20(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movss	-28(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm5
	mulss	-32(%rbp), %xmm5                ## 4-byte Folded Reload
	movss	-24(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm0
	mulss	LCPI0_1(%rip), %xmm0
	divss	%xmm0, %xmm5
	movss	(%r14), %xmm6                   ## xmm6 = mem[0],zero,zero,zero
LBB0_6:
	movss	%xmm5, 8(%rbx)
	addss	LCPI0_4(%rip), %xmm1
	addss	%xmm2, %xmm1
	mulss	%xmm6, %xmm1
	ucomiss	%xmm3, %xmm1
	movaps	%xmm5, %xmm0
	jne	LBB0_7
	jnp	LBB0_8
LBB0_7:
	movaps	%xmm1, %xmm0
	movss	%xmm1, -28(%rbp)                ## 4-byte Spill
	movss	%xmm4, -20(%rbp)                ## 4-byte Spill
	movss	%xmm5, -24(%rbp)                ## 4-byte Spill
	callq	_sinf
	movss	%xmm0, -32(%rbp)                ## 4-byte Spill
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_1(%rip), %xmm0
	callq	_sinf
	movss	-24(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
	movss	-20(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm2
	mulss	-32(%rbp), %xmm2                ## 4-byte Folded Reload
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm0
	mulss	LCPI0_1(%rip), %xmm0
	divss	%xmm0, %xmm2
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
LBB0_8:
	xorps	%xmm1, %xmm1
	movaps	-48(%rbp), %xmm3                ## 16-byte Reload
	addss	%xmm1, %xmm3
	addss	%xmm4, %xmm3
	addss	%xmm5, %xmm3
	addss	%xmm2, %xmm3
	movsd	(%rbx), %xmm1                   ## xmm1 = mem[0],zero
	insertps	$32, %xmm0, %xmm1               ## xmm1 = xmm1[0,1],xmm0[0],xmm1[3]
	insertps	$48, %xmm2, %xmm1               ## xmm1 = xmm1[0,1,2],xmm2[0]
	shufps	$0, %xmm3, %xmm3                ## xmm3 = xmm3[0,0,0,0]
	divps	%xmm3, %xmm1
	movups	%xmm1, (%rbx)
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_calculate_lanczos_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calculate_lanczos_coeffs
_calculate_lanczos_coeffs:              ; @calculate_lanczos_coeffs
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	.cfi_offset b12, -72
	.cfi_offset b13, -80
	.cfi_offset b14, -88
	.cfi_offset b15, -96
	mov	x19, x0
	fmov	s8, s0
Lloh0:
	adrp	x20, _M_PI@GOTPAGE
Lloh1:
	ldr	x20, [x20, _M_PI@GOTPAGEOFF]
	ldr	s0, [x20]
	fmov	s11, #1.00000000
	fadd	s1, s8, s11
	fmul	s9, s1, s0
	fcmp	s9, #0.0
	fmov	s12, #1.00000000
	b.eq	LBB0_2
; %bb.1:
	fmov	s0, s9
	bl	_sinf
	fmov	s10, s0
	fmov	s12, #0.50000000
	fmul	s0, s9, s12
	bl	_sinf
	fmul	s0, s10, s0
	fmul	s1, s9, s9
	fmul	s1, s1, s12
	fdiv	s12, s0, s1
LBB0_2:
	str	s12, [x19]
	ldr	s0, [x20]
	fmov	s1, #-1.00000000
	fadd	s1, s8, s1
	fadd	s1, s1, s11
	fmul	s9, s1, s0
	fcmp	s9, #0.0
	b.eq	LBB0_4
; %bb.3:
	fmov	s0, s9
	bl	_sinf
	fmov	s10, s0
	fmov	s11, #0.50000000
	fmul	s0, s9, s11
	bl	_sinf
	fmul	s0, s10, s0
	fmul	s1, s9, s9
	fmul	s1, s1, s11
	fdiv	s11, s0, s1
	ldr	s0, [x20]
LBB0_4:
	str	s11, [x19, #4]
	fmov	s1, #-2.00000000
	fadd	s1, s8, s1
	fmov	s13, #1.00000000
	fadd	s1, s1, s13
	fmul	s9, s1, s0
	fcmp	s9, #0.0
	fmov	s10, #1.00000000
	b.eq	LBB0_6
; %bb.5:
	fmov	s0, s9
	bl	_sinf
	fmov	s10, s0
	fmov	s14, #0.50000000
	fmul	s0, s9, s14
	bl	_sinf
	fmul	s0, s10, s0
	fmul	s1, s9, s9
	fmul	s1, s1, s14
	fdiv	s10, s0, s1
	ldr	s0, [x20]
LBB0_6:
	str	s10, [x19, #8]
	fmov	s1, #-3.00000000
	fadd	s1, s8, s1
	fadd	s1, s1, s13
	fmul	s8, s1, s0
	fcmp	s8, #0.0
	fmov	s0, s10
	b.eq	LBB0_8
; %bb.7:
	fmov	s0, s8
	bl	_sinf
	fmov	s9, s0
	fmov	s13, #0.50000000
	fmul	s0, s8, s13
	bl	_sinf
	fmul	s0, s9, s0
	fmul	s1, s8, s8
	fmul	s1, s1, s13
	fdiv	s13, s0, s1
	ldr	s0, [x19, #8]
LBB0_8:
	movi	d1, #0000000000000000
	fadd	s1, s12, s1
	fadd	s1, s1, s11
	fadd	s1, s1, s10
	fadd	s1, s1, s13
	ldr	d2, [x19]
	dup.2s	v3, v1[0]
	fdiv.2s	v2, v2, v3
	str	d2, [x19]
	fdiv	s0, s0, s1
	fdiv	s1, s13, s1
	stp	s0, s1, [x19, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_calculate_lanczos_coeffs
.subsections_via_symbols
