	.file	"extr_twinvq.c_imdct_and_window.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	imdct_and_window, @function
imdct_and_window:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, esi
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	rbx, 0[0+rsi*4]
	sub	rsp, 184
	.cfi_def_cfa_offset 240
	mov	QWORD PTR 80[rsp], rdi
	mov	DWORD PTR 76[rsp], edx
	mov	QWORD PTR 104[rsp], rcx
	mov	rcx, rdi
	mov	DWORD PTR 140[rsp], r9d
	mov	r10, QWORD PTR [rcx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 168[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 40[rdi]
	mov	rdi, QWORD PTR 32[rdi]
	mov	QWORD PTR 8[rsp], rsi
	mov	QWORD PTR 88[rsp], rbx
	mov	QWORD PTR 96[rsp], rdi
	lea	r11, [rax+rsi*8]
	mov	eax, DWORD PTR [rdi]
	mov	rdi, QWORD PTR 8[rdi]
	mov	QWORD PTR 16[rsp], r10
	cdq
	mov	r14d, eax
	mov	esi, DWORD PTR [rdi+rsi*4]
	mov	DWORD PTR 132[rsp], r14d
	idiv	esi
	mov	rdx, QWORD PTR 8[rcx]
	mov	rcx, QWORD PTR TWINVQ_FT_LONG[rip]
	mov	DWORD PTR 4[rsp], eax
	mov	eax, r14d
	imul	eax, r9d
	add	eax, eax
	cdqe
	lea	r13, [rdx+rax*4]
	mov	eax, r14d
	cdq
	idiv	DWORD PTR [rdi+rcx*4]
	mov	rcx, QWORD PTR TWINVQ_FT_MEDIUM[rip]
	mov	DWORD PTR 156[rsp], eax
	mov	eax, r14d
	cdq
	idiv	DWORD PTR [rdi+rcx*4]
	mov	ebx, DWORD PTR 4[rsp]
	mov	DWORD PTR 160[rsp], eax
	mov	rax, QWORD PTR TWINVQ_FT_SHORT[rip]
	mov	edi, DWORD PTR [rdi+rax*4]
	mov	eax, r14d
	cdq
	add	edi, edi
	idiv	edi
	mov	rdi, QWORD PTR wtype_to_wsize[rip]
	mov	edx, DWORD PTR 132[rsp]
	sub	edx, ebx
	mov	DWORD PTR 164[rsp], eax
	movsx	rax, r15d
	mov	rax, QWORD PTR [rdi+rax*8]
	mov	r14d, DWORD PTR 156[rsp+rax*4]
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	mov	DWORD PTR 136[rsp], r14d
	sar	eax
	cdqe
	lea	rax, [r8+rax*4]
	mov	QWORD PTR 24[rsp], rax
	test	esi, esi
	jle	.L2
	movsx	rax, ebx
	cmp	r15d, 4
	mov	QWORD PTR 120[rsp], rax
	mov	eax, ebx
	sete	BYTE PTR 131[rsp]
	shr	eax, 31
	xor	r9d, r9d
	xor	r14d, r14d
	add	eax, ebx
	mov	r15d, r9d
	sar	eax
	cdqe
	lea	rax, [r10+rax*4]
	mov	QWORD PTR 112[rsp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR [rdi+rdx]
	mov	rdi, QWORD PTR 104[rsp]
	mov	QWORD PTR 64[rsp], r11
	lea	r9, 0[0+r14*4]
	mov	QWORD PTR 56[rsp], r9
	movsx	r12, DWORD PTR 156[rsp+rax*4]
	mov	rax, QWORD PTR 16[rsp]
	lea	rdx, [rdi+r9]
	mov	rdi, r11
	lea	rsi, [rax+r9]
	mov	QWORD PTR 48[rsp], rsi
	call	[QWORD PTR [r11]]
	mov	rcx, QWORD PTR 80[rsp]
	mov	r8d, r12d
	mov	rdx, QWORD PTR ff_sine_windows[rip]
	shr	r8d, 31
	mov	rax, QWORD PTR 24[rcx]
	add	r8d, r12d
	mov	QWORD PTR 40[rsp], rdx
	sar	r8d
	mov	rdi, QWORD PTR [rax]
	mov	DWORD PTR 72[rsp], r8d
	mov	QWORD PTR 32[rsp], rdi
	mov	edi, r12d
	call	av_log2@PLT
	mov	ebp, DWORD PTR 4[rsp]
	mov	r10, QWORD PTR 24[rsp]
	mov	rdi, r13
	mov	rdx, QWORD PTR 40[rsp]
	mov	r8d, DWORD PTR 72[rsp]
	lea	r13, 0[r13+r12*4]
	sub	ebp, r12d
	mov	rsi, QWORD PTR 48[rsp]
	mov	r11, QWORD PTR 32[rsp]
	mov	ebx, ebp
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR 24[rsp], r8d
	shr	ebx, 31
	mov	rdx, rsi
	add	ebx, ebp
	movsx	rbp, ebp
	sar	ebx
	sal	rbp, 2
	movsx	rbx, ebx
	sal	rbx, 2
	add	r10, rbx
	mov	rsi, r10
	call	r11
	movsx	r8, DWORD PTR 24[rsp]
	mov	edx, DWORD PTR 4[rsp]
	mov	rdi, r13
	mov	rax, QWORD PTR 16[rsp]
	sub	edx, r8d
	add	r8, r14
	sal	edx, 2
	lea	rsi, [rax+r8*4]
	call	memcpy@PLT
	mov	rax, QWORD PTR 96[rsp]
	mov	rdi, QWORD PTR 88[rsp]
	mov	rcx, QWORD PTR TWINVQ_FT_MEDIUM[rip]
	cmp	QWORD PTR 8[rsp], rcx
	mov	rax, QWORD PTR 8[rax]
	cmovne	rbx, rbp
	mov	r9, QWORD PTR 56[rsp]
	add	r15d, 1
	add	r9, QWORD PTR 112[rsp]
	add	r14, QWORD PTR 120[rsp]
	mov	esi, DWORD PTR [rax+rdi]
	mov	QWORD PTR 24[rsp], r9
	add	r13, rbx
	cmp	esi, r15d
	jle	.L2
	mov	rdi, QWORD PTR wtype_to_wsize[rip]
	mov	r11, QWORD PTR 64[rsp]
.L8:
	cmp	QWORD PTR 8[rsp], rcx
	mov	eax, 8
	cmovne	eax, DWORD PTR 76[rsp]
	test	r15d, r15d
	jne	.L13
	cmp	BYTE PTR 131[rsp], 0
	mov	edx, 32
	jne	.L4
.L13:
	sub	esi, 1
	cmp	esi, r15d
	jne	.L14
	cmp	DWORD PTR 76[rsp], 7
	je	.L12
.L14:
	cdqe
	lea	rdx, 0[0+rax*8]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 80[rsp]
	movsx	r9, DWORD PTR 140[rsp]
	mov	rcx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 132[rsp]
	add	eax, DWORD PTR 136[rsp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR [rcx+r9*4], eax
	mov	rax, QWORD PTR 168[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 184
	.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
.L12:
	.cfi_restore_state
	mov	edx, 56
	jmp	.L4
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	imdct_and_window, .-imdct_and_window
	.comm	wtype_to_wsize,8,8
	.comm	ff_sine_windows,8,8
	.comm	TWINVQ_FT_SHORT,8,8
	.comm	TWINVQ_FT_MEDIUM,8,8
	.comm	TWINVQ_FT_LONG,8,8
	.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_twinvq.c_imdct_and_window.c"
	.text
	.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	imdct_and_window, %function
imdct_and_window:
	@ args = 8, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	mov	r9, r1
	sub	sp, sp, #92
	str	r0, [sp, #32]
	ldr	r0, [r0, #16]
	ldr	ip, [r7, #20]
	ldm	r0, {r4, r5}
	ldr	r10, [r5, r1, lsl #2]
	str	r3, [sp, #48]
	ldr	r3, .L15
	str	r1, [sp, #24]
	str	r0, [sp, #44]
	str	r4, [sp, #64]
	str	r2, [sp, #36]
	mov	r0, r4
	mov	r1, r10
	ldr	r3, [r3]
	str	r3, [sp, #84]
	mov	r3,#0
	add	fp, ip, r9, lsl #2
	bl	__aeabi_idiv
	mov	r2, r0
	ldr	r3, [sp, #132]
	ldr	r1, .L15+4
	mul	r3, r4, r3
	mov	r6, r4
	mov	r0, r4
	ldr	r1, [r1]
	ldr	r4, [r7, #4]
	ldr	r1, [r5, r1, lsl #2]
	add	r3, r4, r3, lsl #3
	str	r2, [sp, #12]
	str	r3, [sp, #20]
	bl	__aeabi_idiv
	mov	r3, r0
	ldr	r1, .L15+8
	mov	r0, r6
	ldr	r8, [r1]
	str	r3, [sp, #72]
	ldr	r1, [r5, r8, lsl #2]
	bl	__aeabi_idiv
	mov	r2, r0
	ldr	r3, .L15+12
	mov	r0, r6
	ldr	r3, [r3]
	str	r2, [sp, #76]
	ldr	r1, [r5, r3, lsl #2]
	lsl	r1, r1, #1
	bl	__aeabi_idiv
	ldr	r3, .L15+16
	ldr	lr, [sp, #36]
	ldr	r3, [r3]
	ldr	ip, [sp, #12]
	ldr	r2, [r3, lr, lsl #2]
	str	r0, [sp, #80]
	sub	r5, r6, ip
	add	r0, sp, #88
	ldr	r1, [sp, #128]
	add	r5, r5, r5, lsr #31
	add	r2, r0, r2, lsl #2
	ldr	r2, [r2, #-16]
	asr	r5, r5, #1
	add	r5, r1, r5, lsl #2
	ldr	r1, [r7]
	str	r2, [sp, #68]
	cmp	r10, #0
	lsl	r2, r9, #2
	str	r2, [sp, #40]
	str	r1, [sp, #16]
	ble	.L2
	sub	r2, lr, #4
	clz	r2, r2
	mov	r7, #0
	lsr	r2, r2, #5
	str	r2, [sp, #56]
	add	r2, ip, ip, lsr #31
	asr	r2, r2, #1
	add	r2, r1, r2, lsl #2
	mov	r9, r7
	str	r2, [sp, #52]
	str	fp, [sp, #60]
	b	.L6
.L13:
	ldr	r3, .L15+16
	ldr	r3, [r3]
.L6:
	ldr	ip, [sp, #24]
	cmp	r9, #0
	ldr	r1, [sp, #36]
	ldr	r2, [sp, #56]
	movne	r2, #0
	cmp	ip, r8
	mov	r0, r1
	moveq	r0, #8
	cmp	r2, #0
	mov	r8, r0
	movne	r8, #16
	bne	.L4
	sub	r10, r10, #1
	cmp	r10, r9
	cmpeq	r1, #7
	moveq	r8, #28
	lslne	r8, r8, #2
.L4:
	ldr	r3, [r3, r8]
	add	r1, sp, #88
	ldr	r2, [sp, #16]
	add	r3, r1, r3, lsl #2
	ldr	r4, [r3, #-16]
	ldr	ip, [sp, #60]
	ldr	lr, [sp, #48]
	ldr	r0, [sp, #12]
	add	r8, r2, r7, lsl #2
	ldr	r3, [ip]
	add	r2, lr, r7, lsl #2
	sub	r10, r0, r4
	mov	r1, r8
	mov	r0, ip
	blx	r3
	add	fp, r10, r10, lsr #31
	ldr	r1, [sp, #32]
	asr	fp, fp, #1
	ldr	r3, [r1, #12]
	add	r1, r5, fp, lsl #2
	str	r1, [sp, #28]
	ldr	r1, .L15+20
	mov	r0, r4
	ldr	r5, [r3]
	ldr	r6, [r1]
	bl	av_log2
	ldr	r3, [r6, r0, lsl #2]
	add	r6, r4, r4, lsr #31
	asr	r6, r6, #1
	ldr	r0, [sp, #20]
	mov	r2, r8
	ldr	r1, [sp, #28]
	str	r6, [sp]
	add	r4, r0, r4, lsl #2
	blx	r5
	ldr	r0, [sp, #12]
	ldr	r3, [sp, #16]
	sub	r2, r0, r6
	add	r1, r6, r7
	lsl	r2, r2, #2
	add	r1, r3, r1, lsl #2
	mov	r0, r4
	bl	memcpy
	ldr	r3, .L15+8
	ldr	r2, [sp, #40]
	ldr	r8, [r3]
	ldr	r3, [sp, #24]
	lsl	fp, fp, #2
	cmp	r8, r3
	ldr	r3, [sp, #44]
	lslne	fp, r10, #2
	ldr	r3, [r3, #4]
	lsl	r5, r7, #2
	ldr	r10, [r3, r2]
	add	r3, r4, fp
	str	r3, [sp, #20]
	ldr	r3, [sp, #52]
	add	r9, r9, #1
	add	r5, r5, r3
	ldr	r3, [sp, #12]
	cmp	r10, r9
	add	r7, r7, r3
	bgt	.L13
.L2:
	ldr	r2, [sp, #68]
	ldr	r3, [sp, #64]
	ldr	r1, [sp, #132]
	add	r3, r3, r2
	ldr	r2, [sp, #32]
	add	r3, r3, r3, lsr #31
	ldr	r2, [r2, #8]
	asr	r3, r3, #1
	str	r3, [r2, r1, lsl #2]
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	TWINVQ_FT_LONG
	.word	TWINVQ_FT_MEDIUM
	.word	TWINVQ_FT_SHORT
	.word	wtype_to_wsize
	.word	ff_sine_windows
	.size	imdct_and_window, .-imdct_and_window
	.comm	wtype_to_wsize,4,4
	.comm	ff_sine_windows,4,4
	.comm	TWINVQ_FT_SHORT,4,4
	.comm	TWINVQ_FT_MEDIUM,4,4
	.comm	TWINVQ_FT_LONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
