	.file	"extr_opus_pvq.c_celt_exp_rotation.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	celt_exp_rotation, @function
celt_exp_rotation:
.LFB0:
	.cfi_startproc
	endbr64
	lea	eax, [rcx+rcx]
	cmp	eax, esi
	jge	.L22
	cmp	DWORD PTR CELT_SPREAD_NONE[rip], r8d
	je	.L22
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	eax, 20
	pxor	xmm0, xmm0
	pxor	xmm1, xmm1
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	cvtsi2ss	xmm0, esi
	xor	r15d, r15d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r9d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	lea	edx, [r8+r8*4]
	sub	eax, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	imul	ecx, eax
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	lea	eax, [rcx+rsi]
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	cvtsi2ss	xmm1, rax
	lea	rdi, 28[rsp]
	lea	rsi, 24[rsp]
	divss	xmm0, xmm1
	movss	xmm1, DWORD PTR M_PI[rip]
	mulss	xmm1, xmm0
	mulss	xmm0, xmm1
	mulss	xmm0, DWORD PTR .LC0[rip]
	call	sincosf@PLT
	movss	xmm2, DWORD PTR 24[rsp]
	movss	xmm3, DWORD PTR 28[rsp]
	lea	eax, 0[0+r12*8]
	movss	DWORD PTR 8[rsp], xmm2
	movss	DWORD PTR 12[rsp], xmm3
	cmp	eax, ebp
	jg	.L6
	mov	esi, r12d
	mov	edx, 1
	sar	esi, 2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r15d, edx
	add	edx, 1
	mov	eax, edx
	imul	eax, r15d
	imul	eax, r12d
	add	eax, esi
	cmp	eax, ebp
	jl	.L7
.L6:
	mov	eax, ebp
	cdq
	idiv	r12d
	mov	ebp, eax
	test	r12d, r12d
	jle	.L1
	cdqe
	xor	r14d, r14d
	sal	rax, 2
	mov	QWORD PTR 16[rsp], rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	test	r15d, r15d
	jne	.L26
.L10:
	movss	xmm1, DWORD PTR 12[rsp]
	mov	edx, 1
	mov	esi, ebp
	mov	rdi, rbx
	movss	xmm0, DWORD PTR 8[rsp]
	call	celt_exp_rotation_impl@PLT
.L9:
	add	r14d, 1
	add	rbx, QWORD PTR 16[rsp]
	cmp	r12d, r14d
	je	.L1
.L11:
	test	r13d, r13d
	je	.L8
	movss	xmm1, DWORD PTR 12[rsp]
	mov	edx, 1
	mov	esi, ebp
	mov	rdi, rbx
	xorps	xmm1, XMMWORD PTR .LC1[rip]
	movss	xmm0, DWORD PTR 8[rsp]
	call	celt_exp_rotation_impl@PLT
	test	r15d, r15d
	je	.L9
	movss	xmm1, DWORD PTR 8[rsp]
	mov	rdi, rbx
	mov	edx, r15d
	mov	esi, ebp
	xorps	xmm1, XMMWORD PTR .LC1[rip]
	movss	xmm0, DWORD PTR 12[rsp]
	add	r14d, 1
	call	celt_exp_rotation_impl@PLT
	add	rbx, QWORD PTR 16[rsp]
	cmp	r12d, r14d
	jne	.L11
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	movss	xmm1, DWORD PTR 8[rsp]
	mov	edx, r15d
	mov	esi, ebp
	mov	rdi, rbx
	movss	xmm0, DWORD PTR 12[rsp]
	call	celt_exp_rotation_impl@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE0:
	.size	celt_exp_rotation, .-celt_exp_rotation
	.comm	M_PI,4,4
	.comm	CELT_SPREAD_NONE,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1048576000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	2147483648
	.long	0
	.long	0
	.long	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_opus_pvq.c_celt_exp_rotation.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_ui2f
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	celt_exp_rotation, %function
celt_exp_rotation:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r1, r3, lsl #1
	mov	r8, r3
	ldr	r3, .L24
	sub	sp, sp, #36
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r7, [sp, #72]
	ble	.L1
	ldr	r3, .L24+4
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L1
	mov	r4, r0
	mov	r0, r1
	mov	r6, r2
	mov	r5, r1
	bl	__aeabi_i2f
	mov	r3, r0
	add	r7, r7, r7, lsl #2
	rsb	r7, r7, #20
	mla	r0, r8, r7, r5
	mov	r7, r3
	bl	__aeabi_ui2f
	mov	r1, r0
	mov	r0, r7
	bl	__aeabi_fdiv
	mov	r7, r0
	ldr	r3, .L24+8
	ldr	r1, [r3]	@ float
	bl	__aeabi_fmul
	mov	r1, r7
	bl	__aeabi_fmul
	mov	r1, #1048576000
	bl	__aeabi_fmul
	add	r2, sp, #16
	add	r1, sp, #20
	bl	sincosf
	cmp	r5, r6, lsl #3
	movlt	r7, #0
	ldr	r8, [sp, #16]	@ float
	ldr	r10, [sp, #20]	@ float
	blt	.L4
	mov	r3, #1
	asr	r1, r6, #2
.L5:
	mov	r7, r3
	add	r3, r3, #1
	mul	r2, r7, r3
	mla	r2, r6, r2, r1
	cmp	r2, r5
	blt	.L5
.L4:
	mov	r0, r5
	mov	r1, r6
	bl	__aeabi_idiv
	cmp	r6, #0
	mov	r9, r0
	ble	.L1
	add	r3, r10, #-2147483648
	str	r3, [sp, #8]
	add	r3, r8, #-2147483648
	mov	r5, #0
	lsl	fp, r0, #2
	str	r3, [sp, #12]
	b	.L9
.L6:
	cmp	r7, #0
	bne	.L22
.L8:
	mov	r3, r8
	mov	r2, #1
	mov	r1, r9
	mov	r0, r4
	str	r10, [sp]	@ float
	bl	celt_exp_rotation_impl
.L7:
	add	r5, r5, #1
	cmp	r6, r5
	add	r4, r4, fp
	beq	.L1
.L9:
	ldr	r3, [sp, #76]
	cmp	r3, #0
	beq	.L6
	ldr	r2, [sp, #8]
	mov	r3, r8
	str	r2, [sp]	@ float
	mov	r1, r9
	mov	r2, #1
	mov	r0, r4
	bl	celt_exp_rotation_impl
	cmp	r7, #0
	beq	.L7
	ldr	r2, [sp, #12]
	mov	r0, r4
	str	r2, [sp]	@ float
	mov	r3, r10
	mov	r2, r7
	mov	r1, r9
	add	r5, r5, #1
	bl	celt_exp_rotation_impl
	cmp	r6, r5
	add	r4, r4, fp
	bne	.L9
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	mov	r3, r10
	mov	r2, r7
	mov	r1, r9
	mov	r0, r4
	str	r8, [sp]	@ float
	bl	celt_exp_rotation_impl
	b	.L8
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	CELT_SPREAD_NONE
	.word	M_PI
	.size	celt_exp_rotation, .-celt_exp_rotation
	.comm	M_PI,4,4
	.comm	CELT_SPREAD_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
