	.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_III_c
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dct_calc_III_c:                        ## @dct_calc_III_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movb	(%rdi), %cl
	movl	$1, %edx
	shlq	%cl, %rdx
	movslq	%edx, %rax
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movss	-4(%rsi,%rax,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$4, %edx
	jl	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	2(%rax), %ebx
	leal	-2(%rax), %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leal	-3(%rax), %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	decl	%eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-4(%rbx), %r13d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movss	(%r12,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movss	(%r12,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	subss	(%r12,%rax,4), %xmm0
	movss	%xmm0, -60(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_COS
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_SIN
	movss	-60(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm1
	mulss	%xmm0, %xmm1
	movss	-56(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	mulss	%xmm4, %xmm2
	movss	-64(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm4
	addss	%xmm1, %xmm4
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movss	%xmm4, (%r12,%rax,4)
	mulss	%xmm3, %xmm0
	subss	%xmm2, %xmm0
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movss	%xmm0, (%r12,%rax,4)
	addl	$-2, %ebx
	addq	$-8, %r12
	cmpl	$5, %ebx
	ja	LBB0_2
LBB0_3:
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm0
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movss	%xmm0, 4(%rbx)
	leaq	16(%r14), %rdi
	movq	%rbx, %rsi
	callq	*16(%r14)
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorps	%xmm1, %xmm1
	cvtsi2ss	%edx, %xmm1
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	divss	%xmm1, %xmm0
	movq	%rdx, %rax
	shrq	%rax
	movq	8(%r14), %rcx
	decl	%edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%rbx,%rsi,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movslq	%edx, %rdx
	movss	(%rbx,%rdx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movaps	%xmm1, %xmm3
	subss	%xmm2, %xmm3
	mulss	(%rcx,%rsi,4), %xmm3
	addss	%xmm1, %xmm2
	movaps	%xmm2, %xmm1
	addss	%xmm3, %xmm1
	movss	%xmm1, (%rbx,%rsi,4)
	subss	%xmm3, %xmm2
	movss	%xmm2, (%rbx,%rdx,4)
	incq	%rsi
	decl	%edx
	cmpq	%rsi, %rax
	jne	LBB0_5
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dct_calc_III_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_III_c
_dct_calc_III_c:                        ; @dct_calc_III_c
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [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 w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	mov	w9, #1
	lsl	x21, x9, x8
	sub	w23, w21, #1
	ldr	s9, [x1, w23, sxtw #2]
	cmp	w21, #4
	b.lt	LBB0_3
; %bb.1:
	add	w24, w21, #2
	sub	w8, w21, #2
	add	x25, x19, w8, uxtw #2
	sub	w8, w21, #3
	add	x26, x19, w8, uxtw #2
	add	x27, x19, w23, uxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w22, w24, #4
	ldr	s10, [x25]
	ldr	s0, [x26], #-8
	ldr	s1, [x27]
	fsub	s11, s0, s1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_COS
	fmov	s8, s0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_SIN
	fmul	s1, s11, s0
	fmadd	s1, s8, s10, s1
	str	s1, [x25], #-8
	fneg	s1, s8
	fmul	s1, s11, s1
	fmadd	s0, s0, s10, s1
	str	s0, [x27], #-8
	sub	w24, w24, #2
	cmp	w24, #5
	b.hi	LBB0_2
LBB0_3:
	fadd	s0, s9, s9
	str	s0, [x19, #4]
	mov	x0, x20
	ldr	x8, [x0, #16]!
	mov	x1, x19
	blr	x8
	cmp	w21, #2
	b.lt	LBB0_6
; %bb.4:
	scvtf	s0, w21
	fmov	s1, #1.00000000
	fdiv	s0, s1, s0
	lsr	x8, x21, #1
	ldr	x9, [x20, #8]
	mov	x10, x19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x10]
	fmul	s1, s0, s1
	sbfiz	x11, x23, #2, #32
	ldr	s2, [x19, x11]
	fmul	s2, s0, s2
	ldr	s3, [x9], #4
	fsub	s4, s1, s2
	fmul	s3, s3, s4
	fadd	s1, s1, s2
	fadd	s2, s1, s3
	str	s2, [x10], #4
	fsub	s1, s1, s3
	str	s1, [x19, x11]
	sub	w23, w23, #1
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_6:
	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	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dct_calc_III_c
.subsections_via_symbols
