	.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_I_c
LCPI0_0:
	.long	0xbf000000                      ## float -0.5
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dct_calc_I_c:                          ## @dct_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	$40, %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, %r14d
	shll	%cl, %r14d
	movss	(%rsi), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movslq	%r14d, %rbx
	movaps	%xmm1, %xmm0
	subss	(%rsi,%rbx,4), %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	cmpl	$2, %ebx
	jl	LBB0_1
## %bb.2:
	movl	%r14d, %eax
	andl	$-2, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rbx,4), %r13
	addq	$-2, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	movss	(%r13), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_SIN
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_COS
	movss	-44(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movaps	%xmm3, %xmm2
	movss	-52(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	mulss	%xmm2, %xmm0
	addss	-56(%rbp), %xmm0                ## 4-byte Folded Reload
	mulss	-48(%rbp), %xmm2                ## 4-byte Folded Reload
	addss	%xmm1, %xmm3
	mulss	LCPI0_1(%rip), %xmm3
	movaps	%xmm3, %xmm1
	subss	%xmm2, %xmm1
	movss	%xmm1, (%r12,%rbx,2)
	addss	%xmm2, %xmm3
	movss	%xmm3, (%r13)
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movss	4(%r12,%rbx,2), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	addq	$2, %rbx
	addq	$-4, %r13
	jmp	LBB0_3
LBB0_1:
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
LBB0_4:
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_5:
	leaq	8(%r15), %rdi
	movq	%r12, %rsi
	callq	*8(%r15)
	movss	4(%r12), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r12,%rbx,4)
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 4(%r12)
	cmpl	$3, %r14d
	jl	LBB0_8
## %bb.6:
	movl	$3, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	subss	(%r12,%rax,4), %xmm0
	movss	%xmm0, (%r12,%rax,4)
	addq	$2, %rax
	cmpq	%rbx, %rax
	jle	LBB0_7
LBB0_8:
	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_I_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_I_c
_dct_calc_I_c:                          ; @dct_calc_I_c
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b12, -120
	.cfi_offset b13, -128
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	s10, [x1]
	sxtw	x20, w8
	ldr	s0, [x1, w8, sxtw #2]
	fsub	s0, s10, s0
	fmov	s1, #-0.50000000
	fmul	s9, s0, s1
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
	and	w8, w20, #0xfffffffe
	add	x23, x19, x20, lsl #2
	add	x24, x19, #4
	sub	x25, x8, #2
	fmov	s11, #0.50000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s12, [x23]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_SIN
	fmov	s8, s0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_COS
	fsub	s1, s10, s12
	fmul	s0, s1, s0
	fmul	s1, s8, s1
	fadd	s9, s9, s0
	fadd	s0, s10, s12
	fmul	s0, s0, s11
	fsub	s2, s0, s1
	stur	s2, [x24, #-4]
	fadd	s0, s0, s1
	str	s0, [x23]
	cmp	x25, x22
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	s10, [x24], #4
	add	x22, x22, #2
	sub	x23, x23, #4
	b	LBB0_2
LBB0_4:
	ldr	x8, [x21, #8]!
	mov	x0, x21
	mov	x1, x19
	blr	x8
	ldr	s0, [x19, #4]
	str	s0, [x19, x20, lsl #2]
	str	s9, [x19, #4]
	cmp	w20, #2
	b.le	LBB0_7
; %bb.5:
	mov	w8, #3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x9, x8, #2
	ldr	s0, [x19, x9]
	fsub	s9, s9, s0
	str	s9, [x19, x9]
	add	x8, x8, #2
	cmp	x8, x20
	b.le	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #128            ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dct_calc_I_c
.subsections_via_symbols
