	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_imdct_calc_c                ## -- Begin function ff_imdct_calc_c
	.p2align	4, 0x90
_ff_imdct_calc_c:                       ## @ff_imdct_calc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movb	(%rdi), %cl
	movl	$1, %r15d
	shlq	%cl, %r15
	movq	%rsi, %r13
	movl	%r15d, %r14d
	movl	%r15d, %ebx
	sarl	$2, %ebx
	movslq	%ebx, %rax
	leaq	(%rsi,%rax,4), %rsi
	callq	_ff_imdct_half_c
	cmpl	$4, %r15d
	jl	LBB0_27
## %bb.1:
	shrq	%r15
	cmpl	$2, %ebx
	movl	$1, %r9d
	cmovgel	%ebx, %r9d
	cmpl	$4, %r9d
	jae	LBB0_3
## %bb.2:
	xorl	%r12d, %r12d
LBB0_22:
	movq	%r12, %rax
	notq	%rax
	testb	$1, %r9b
	je	LBB0_24
## %bb.23:
	leaq	(%r15,%rax), %rcx
	xorl	%edx, %edx
	subl	(%r13,%rcx,4), %edx
	movl	%edx, (%r13,%r12,4)
	leaq	(%r12,%r15), %rcx
	movl	(%r13,%rcx,4), %ecx
	leal	(%r14,%rax), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%r13,%rdx,4)
	orq	$1, %r12
LBB0_24:
	addq	%r9, %rax
	je	LBB0_27
## %bb.25:
	movq	%r12, %r8
	subq	%r9, %r8
	leaq	(,%r15,4), %rcx
	addq	%r13, %rcx
	subq	%r12, %r15
	leaq	-4(,%r15,4), %rsi
	addq	%r13, %rsi
	movl	%r14d, %r9d
	subl	%r12d, %r9d
	addl	$-2, %r9d
	movq	%r12, %rdx
	incq	%rdx
	notl	%r12d
	addl	%r14d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	subl	(%rsi,%rbx,4), %eax
	movl	%eax, -4(%r13,%rdx,4)
	movl	-4(%rcx,%rdx,4), %eax
	leal	(%r12,%rbx), %edi
	movslq	%edi, %rdi
	movl	%eax, (%r13,%rdi,4)
	xorl	%eax, %eax
	subl	-4(%rsi,%rbx,4), %eax
	movl	%eax, (%r13,%rdx,4)
	movl	(%rcx,%rdx,4), %eax
	leal	(%r9,%rbx), %edi
	movslq	%edi, %rdi
	movl	%eax, (%r13,%rdi,4)
	addq	$-2, %rbx
	addq	$2, %rdx
	cmpq	%rbx, %r8
	jne	LBB0_26
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	-1(%r9), %rcx
	leal	-1(%r14), %r11d
	movl	%r11d, %esi
	subl	%ecx, %esi
	movl	$4, %edx
	movq	%rcx, %rax
	mulq	%rdx
	seto	%dl
	xorl	%r12d, %r12d
	cmpl	%r11d, %esi
	jg	LBB0_22
## %bb.4:
	shrq	$32, %rcx
	jne	LBB0_22
## %bb.5:
	movslq	%r11d, %rcx
	leaq	(,%rcx,4), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rsi
	subq	%rax, %rsi
	cmpq	%rbx, %rsi
	ja	LBB0_22
## %bb.6:
	testb	%dl, %dl
	jne	LBB0_22
## %bb.7:
	leaq	-4(,%r15,4), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rsi
	subq	%rax, %rsi
	cmpq	%rbx, %rsi
	ja	LBB0_22
## %bb.8:
	testb	%dl, %dl
	jne	LBB0_22
## %bb.9:
	leaq	(,%r9,4), %rsi
	addq	%r13, %rsi
	leaq	(%r13,%r15,4), %rax
	leaq	(%r15,%r9), %rdx
	leaq	(,%rdx,4), %r12
	addq	%r13, %r12
	leaq	1(%rcx), %rdx
	subq	%r9, %rdx
	leaq	(,%rdx,4), %rbx
	addq	%r13, %rbx
	leaq	4(,%rcx,4), %rdx
	addq	%r13, %rdx
	movq	%r15, %rcx
	subq	%r9, %rcx
	leaq	(,%rcx,4), %rdi
	addq	%r13, %rdi
	cmpq	%r13, %r12
	seta	-45(%rbp)                       ## 1-byte Folded Spill
	cmpq	%rsi, %rax
	setb	-44(%rbp)                       ## 1-byte Folded Spill
	cmpq	%r13, %rdx
	seta	%cl
	cmpq	%rsi, %rbx
	setb	-43(%rbp)                       ## 1-byte Folded Spill
	cmpq	%r13, %rax
	seta	%r8b
	cmpq	%rsi, %rdi
	setb	-42(%rbp)                       ## 1-byte Folded Spill
	cmpq	%rdx, %rax
	setb	%r10b
	cmpq	%r12, %rbx
	setb	-41(%rbp)                       ## 1-byte Folded Spill
	cmpq	%rax, %rbx
	setb	%sil
	cmpq	%rdx, %rdi
	setb	%bl
	xorl	%r12d, %r12d
	movb	-44(%rbp), %dl                  ## 1-byte Reload
	testb	%dl, -45(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_22
## %bb.10:
	andb	-43(%rbp), %cl                  ## 1-byte Folded Reload
	jne	LBB0_22
## %bb.11:
	andb	-42(%rbp), %r8b                 ## 1-byte Folded Reload
	jne	LBB0_22
## %bb.12:
	andb	-41(%rbp), %r10b                ## 1-byte Folded Reload
	jne	LBB0_22
## %bb.13:
	andb	%bl, %sil
	jne	LBB0_22
## %bb.14:
	movl	%r9d, %r12d
	andl	$2147483644, %r12d              ## imm = 0x7FFFFFFC
	leaq	-4(%r12), %rcx
	movq	%rcx, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.16:
	movq	%r8, %rcx
	andq	$-2, %rcx
	leaq	16(%r13), %rsi
	leal	-5(%r14), %r10d
	movl	%r11d, %r11d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rax,%rdi,4), %xmm0
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	pxor	%xmm1, %xmm1
	psubd	%xmm0, %xmm1
	movdqu	%xmm1, -16(%rsi)
	movdqu	-16(%rsi,%r15,4), %xmm0
	leal	(%r11,%rdi), %edx
	movslq	%edx, %rdx
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, -12(%r13,%rdx,4)
	movdqu	-32(%rax,%rdi,4), %xmm0
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	pxor	%xmm1, %xmm1
	psubd	%xmm0, %xmm1
	movdqu	%xmm1, (%rsi)
	movdqu	(%rsi,%r15,4), %xmm0
	leal	(%r10,%rdi), %edx
	movslq	%edx, %rdx
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, -12(%r13,%rdx,4)
	addq	$32, %rsi
	addq	$-8, %rdi
	addq	$-2, %rcx
	jne	LBB0_17
## %bb.18:
	negq	%rdi
	testb	$1, %r8b
	je	LBB0_21
LBB0_20:
	movq	%rdi, %rax
	notq	%rax
	leaq	(%r15,%rax), %rcx
	movdqu	-12(%r13,%rcx,4), %xmm0
	pxor	%xmm1, %xmm1
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	psubd	%xmm0, %xmm1
	movdqu	%xmm1, (%r13,%rdi,4)
	addq	%r15, %rdi
	movdqu	(%r13,%rdi,4), %xmm0
	addl	%r14d, %eax
	cltq
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, -12(%r13,%rax,4)
LBB0_21:
	cmpq	%r9, %r12
	jne	LBB0_22
	jmp	LBB0_27
LBB0_15:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_imdct_calc_c                ; -- Begin function ff_imdct_calc_c
	.p2align	2
_ff_imdct_calc_c:                       ; @ff_imdct_calc_c
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	w8, [x0]
	mov	w9, #1
	lsl	x20, x9, x8
	asr	w21, w20, #2
	add	x1, x1, w21, sxtw #2
	bl	_ff_imdct_half_c
	cmp	w20, #4
	b.lt	LBB0_5
; %bb.1:
	lsr	x9, x20, #1
	cmp	w21, #1
	csinc	w8, w21, wzr, gt
	cmp	w8, #8
	b.hs	LBB0_6
; %bb.2:
	mov	x10, #0
LBB0_3:
	add	x11, x10, x9
	add	x11, x19, x11, lsl #2
	mvn	w12, w10
	add	w12, w12, w20
	sub	x9, x9, x10
	add	x9, x19, x9, lsl #2
	sub	x9, x9, #4
	add	x13, x19, x10, lsl #2
	sub	x8, x8, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #-4
	neg	w10, w10
	str	w10, [x13], #4
	ldr	w10, [x11], #4
	str	w10, [x19, w12, sxtw #2]
	sub	w12, w12, #1
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x10, #0
	sub	x14, x8, #1
	sub	w11, w20, #1
	add	x15, x19, w11, sxtw #2
	cmp	xzr, x14, lsr #62
	cset	w12, ne
	lsl	x13, x14, #2
	sub	x16, x15, x13
	sub	w17, w11, w14
	cmp	w17, w11
	lsr	x14, x14, #32
	ccmp	x14, #0, #0, le
	ccmp	x16, x15, #2, eq
	b.hi	LBB0_3
; %bb.7:
	tbnz	w12, #0, LBB0_3
; %bb.8:
	add	x14, x19, x9, lsl #2
	sub	x14, x14, #4
	sub	x13, x14, x13
	cmp	x13, x14
	b.hi	LBB0_3
; %bb.9:
	tbnz	w12, #0, LBB0_3
; %bb.10:
	mov	x10, #0
	add	x16, x19, x8, lsl #2
	add	x17, x19, x9, lsl #2
	add	x12, x9, x8
	add	x0, x19, x12, lsl #2
	sxtw	x12, w11
	add	x12, x12, #1
	sub	x13, x12, x8
	add	x15, x19, x13, lsl #2
	add	x1, x19, x12, lsl #2
	sub	x12, x9, x8
	add	x2, x19, x12, lsl #2
	cmp	x1, x19
	ccmp	x15, x16, #2, hi
	cset	w12, lo
	cmp	x17, x19
	ccmp	x2, x16, #2, hi
	cset	w13, lo
	cmp	x17, x1
	ccmp	x15, x0, #2, lo
	cset	w14, lo
	cmp	x15, x17
	ccmp	x2, x1, #2, lo
	cset	w15, lo
	cmp	x17, x16
	ccmp	x0, x19, #0, lo
	b.hi	LBB0_3
; %bb.11:
	tbnz	w12, #0, LBB0_3
; %bb.12:
	tbnz	w13, #0, LBB0_3
; %bb.13:
	tbnz	w14, #0, LBB0_3
; %bb.14:
	tbnz	w15, #0, LBB0_3
; %bb.15:
	and	x10, x8, #0x7ffffff8
	lsl	x12, x9, #2
	add	x13, x12, x19
	sub	x13, x13, #16
	add	x14, x19, #16
	mov	x15, x10
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q0, [x13, #-16]
	neg.4s	v0, v0
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	neg.4s	v1, v1
	rev64.4s	v1, v1
	ext.16b	v1, v1, v1, #8
	stp	q0, q1, [x14, #-16]
	add	x16, x14, x12
	ldp	q0, q1, [x16, #-16]
	add	x16, x19, w11, sxtw #2
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	stur	q0, [x16, #-12]
	rev64.4s	v0, v1
	ext.16b	v0, v0, v0, #8
	stur	q0, [x16, #-28]
	sub	w11, w11, #8
	sub	x13, x13, #32
	add	x14, x14, #32
	sub	x15, x15, #8
	cbnz	x15, LBB0_16
; %bb.17:
	cmp	x10, x8
	b.ne	LBB0_3
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
