	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function dst_calc_I_c
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dst_calc_I_c:                          ## @dst_calc_I_c
	.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
	movq	%rsi, %r12
	movq	%rdi, %r15
	movb	(%rdi), %cl
	movl	$1, %esi
	shll	%cl, %esi
	movl	$0, (%r12)
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$4, %esi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	jl	LBB0_3
## %bb.1:
	movl	%esi, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$3, %ecx
	movl	$2, %r13d
	cmovgel	%ecx, %r13d
	leaq	(%r12,%rax,4), %r14
	addq	$-4, %r14
	addq	%r13, %r13
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r12,%rbx,2), %xmm0
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r14), %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_SIN
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movss	-52(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm1
	movss	-48(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	addss	%xmm3, %xmm1
	mulss	%xmm0, %xmm1
	subss	%xmm3, %xmm2
	mulss	LCPI0_0(%rip), %xmm2
	movaps	%xmm1, %xmm0
	addss	%xmm2, %xmm0
	cvttss2si	%xmm0, %eax
	movl	%eax, (%r12,%rbx,2)
	subss	%xmm2, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, (%r14)
	addq	$2, %rbx
	addq	$-4, %r14
	cmpq	%rbx, %r13
	jne	LBB0_2
LBB0_3:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	shll	(%r12,%rax,4)
	leaq	8(%r15), %rdi
	movq	%r12, %rsi
	callq	*8(%r15)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r12), %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %eax
	movl	%eax, (%r12)
	cmpl	$4, %r15d
	jl	LBB0_6
## %bb.4:
	leal	-2(%r15), %ecx
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addl	4(%r12,%rdx,4), %eax
	movl	%eax, 4(%r12,%rdx,4)
	xorl	%esi, %esi
	subl	8(%r12,%rdx,4), %esi
	movl	%esi, (%r12,%rdx,4)
	leaq	2(%rdx), %rsi
	movq	%rsi, %rdx
	cmpq	%rcx, %rsi
	jb	LBB0_5
LBB0_6:
	movslq	%r15d, %rax
	movl	$0, -4(%r12,%rax,4)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dst_calc_I_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dst_calc_I_c
_dst_calc_I_c:                          ; @dst_calc_I_c
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-112]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b10, -104
	.cfi_offset b11, -112
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w20, w9, w8
	str	wzr, [x1]
	cmp	w20, #0
	cinc	w8, w20, lt
	asr	w23, w8, #1
	cmp	w20, #4
	b.lt	LBB0_3
; %bb.1:
	mov	w22, #2
	cmp	w23, #2
	csel	w8, w23, w22, gt
	add	x9, x19, w20, uxtw #2
	sub	x24, x9, #4
	add	x25, x19, #4
	lsl	x26, x8, #1
	fmov	s8, #0.50000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x25]
	scvtf	s9, s0
	ldr	s0, [x24]
	scvtf	s10, s0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_SIN
	fadd	s1, s9, s10
	fmul	s0, s0, s1
	fsub	s1, s9, s10
	fmul	s1, s1, s8
	fadd	s2, s0, s1
	fcvtzs	w8, s2
	str	w8, [x25], #4
	fsub	s0, s0, s1
	fcvtzs	w8, s0
	str	w8, [x24], #-4
	add	x22, x22, #2
	cmp	x26, x22
	b.ne	LBB0_2
LBB0_3:
	sbfiz	x8, x23, #2, #32
	ldr	w9, [x19, x8]
	lsl	w9, w9, #1
	str	w9, [x19, x8]
	ldr	x8, [x21, #8]!
	mov	x0, x21
	mov	x1, x19
	blr	x8
	ldr	s0, [x19]
	scvtf	s0, s0
	fmov	s1, #0.50000000
	fmul	s0, s0, s1
	fcvtzs	w8, s0
	str	w8, [x19]
	cmp	w20, #4
	b.lt	LBB0_6
; %bb.4:
	mov	x10, #0
	sub	w9, w20, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x19, x10, lsl #2
	ldp	w12, w13, [x11, #8]
	add	w8, w12, w8
	neg	w12, w13
	stp	w12, w8, [x11, #4]
	add	x11, x10, #3
	add	x10, x10, #2
	cmp	x11, x9
	b.lo	LBB0_5
LBB0_6:
	sub	w8, w20, #1
	str	wzr, [x19, w8, sxtw #2]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #112            ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dst_calc_I_c
.subsections_via_symbols
