	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function dct_calc_II_c
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dct_calc_II_c:                         ## @dct_calc_II_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	movb	(%rdi), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r14d
	andl	$-2, %r14d
	leal	-1(%rax), %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsd	(%r13,%r15,4), %xmm0            ## xmm0 = mem[0],zero
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movslq	%ebx, %rbx
	movsd	(%r13,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	leal	1(%r15), %edx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_SIN
	movss	-64(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm1
	movss	-56(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	subss	%xmm3, %xmm1
	mulss	%xmm0, %xmm1
	addss	%xmm3, %xmm2
	mulss	LCPI0_0(%rip), %xmm2
	movaps	%xmm2, %xmm0
	addss	%xmm1, %xmm0
	cvtss2sd	%xmm0, %xmm0
	movsd	%xmm0, (%r13,%r15,4)
	subss	%xmm1, %xmm2
	xorps	%xmm0, %xmm0
	cvtss2sd	%xmm2, %xmm0
	movsd	%xmm0, (%r13,%rbx,8)
	addq	$2, %r15
	decl	%ebx
	cmpq	%r15, %r14
	jne	LBB0_2
LBB0_3:
	leaq	8(%r12), %rdi
	movq	%r13, %rsi
	callq	*8(%r12)
	movsd	8(%r13), %xmm0                  ## xmm0 = mem[0],zero
	movapd	LCPI0_1(%rip), %xmm1            ## xmm1 = [-0.0E+0,-0.0E+0]
	xorpd	%xmm0, %xmm1
	movlpd	%xmm1, 8(%r13)
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_6
## %bb.4:
	movq	%r12, %r15
	mulsd	LCPI0_2(%rip), %xmm0
	xorps	%xmm2, %xmm2
	cvtsd2ss	%xmm0, %xmm2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	2(%rax), %ebx
	leal	-2(%rax), %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	decl	%eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm2, -80(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movsd	(%r13,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, -76(%rbp)                ## 4-byte Spill
	leal	-4(%rbx), %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movsd	(%r13,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, -72(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_COS
	movss	%xmm0, -68(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_SIN
	movaps	%xmm0, %xmm1
	movss	-72(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	mulss	%xmm4, %xmm1
	movss	-68(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
	movaps	%xmm5, %xmm2
	movss	-76(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm2
	addss	%xmm1, %xmm2
	xorps	%xmm1, %xmm1
	cvtss2sd	%xmm2, %xmm1
	movss	-80(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movsd	%xmm1, (%r13,%rax,8)
	xorps	%xmm1, %xmm1
	cvtss2sd	%xmm2, %xmm1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movsd	%xmm1, (%r13,%rax,8)
	mulss	%xmm4, %xmm5
	mulss	%xmm3, %xmm0
	subss	%xmm5, %xmm0
	addss	%xmm0, %xmm2
	addl	$-2, %ebx
	addq	$-16, %r13
	cmpl	$3, %ebx
	ja	LBB0_5
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dct_calc_II_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dct_calc_II_c
_dct_calc_II_c:                         ; @dct_calc_II_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	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w20, w9, w8
	cmp	w20, #2
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	and	w23, w20, #0xfffffffe
	sub	w24, w20, #1
	fmov	s8, #0.50000000
	mov	x25, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x25]
	fcvt	s9, d0
	sbfiz	x26, x24, #3, #32
	ldr	d0, [x21, x26]
	fcvt	s10, d0
	add	w2, w22, #1
	mov	x0, x19
	mov	x1, x20
	bl	_SIN
	fsub	s1, s9, s10
	fmul	s0, s0, s1
	fadd	s1, s9, s10
	fmul	s1, s1, s8
	fadd	s2, s1, s0
	fcvt	d2, s2
	str	d2, [x25], #8
	fsub	s0, s1, s0
	fcvt	d0, s0
	str	d0, [x21, x26]
	add	x22, x22, #2
	sub	w24, w24, #1
	cmp	x23, x22
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	ldr	x8, [x0, #8]!
	mov	x1, x21
	blr	x8
	ldr	d0, [x21, #8]
	fneg	d1, d0
	str	d1, [x21, #8]
	subs	w8, w20, #2
	b.lt	LBB0_6
; %bb.4:
	fmov	d1, #0.50000000
	fmul	d0, d0, d1
	fcvt	s9, d0
	add	w22, w20, #2
	add	x23, x21, w8, uxtw #3
	sub	w8, w20, #1
	add	x24, x21, w8, uxtw #3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w22, #4
	ldr	d0, [x23]
	fcvt	s10, d0
	ldr	d0, [x24]
	fcvt	s11, d0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_COS
	fmov	s8, s0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_SIN
	fmul	s1, s0, s11
	fmadd	s1, s8, s10, s1
	fcvt	d1, s1
	str	d1, [x23], #-16
	fcvt	d1, s9
	str	d1, [x24], #-16
	fneg	s1, s8
	fmul	s1, s1, s11
	fmadd	s0, s0, s10, s1
	fadd	s9, s9, s0
	sub	w22, w22, #2
	cmp	w22, #3
	b.hi	LBB0_5
LBB0_6:
	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	_dct_calc_II_c
.subsections_via_symbols
