	.file	"extr_dwt.c_opj_idwt3_v_cas1.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	opj_idwt3_v_cas1, @function
opj_idwt3_v_cas1:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rsi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	lea	r12, 0[0+r8*4]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	imul	rsi, r12
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	xor	edi, edi
	lea	r14, [rcx+rsi]
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	edx, 2
	setg	dil
	call	assert@PLT
	lea	r8, [r14+r12]
	mov	eax, DWORD PTR [r14]
	mov	esi, DWORD PTR 0[rbp]
	mov	ecx, DWORD PTR [r8]
	mov	r14d, r13d
	and	r14d, 1
	lea	edx, 2[rax+rcx]
	sar	edx, 2
	sub	esi, edx
	lea	edx, -2[r13]
	add	eax, esi
	mov	DWORD PTR [rbx], eax
	mov	eax, r14d
	xor	eax, 1
	sub	edx, eax
	cmp	edx, 1
	jle	.L9
	sub	edx, 2
	lea	rdi, 4[rbx]
	add	r8, r12
	xor	r9d, r9d
	shr	edx
	lea	r10, 0[rbp+r12]
	mov	eax, edx
	mov	DWORD PTR 12[rsp], eax
	lea	r11, 12[rbx+rax*8]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r15d, ecx
	mov	ecx, DWORD PTR [r8+r9]
	mov	edx, DWORD PTR [r10+r9]
	mov	eax, esi
	mov	DWORD PTR [rdi], eax
	add	rdi, 8
	add	r9, r12
	lea	esi, 2[r15+rcx]
	sar	esi, 2
	sub	edx, esi
	add	eax, edx
	mov	esi, edx
	sar	eax
	add	eax, r15d
	mov	DWORD PTR -4[rdi], eax
	cmp	rdi, r11
	jne	.L3
	mov	eax, DWORD PTR 12[rsp]
	lea	eax, 3[rax+rax]
	cdqe
	sal	rax, 2
.L2:
	movsx	rdi, r13d
	mov	DWORD PTR [rbx+rax], esi
	sal	rdi, 2
	lea	rdx, -4[rbx+rdi]
	test	r14d, r14d
	jne	.L4
	mov	eax, r13d
	lea	r8d, 1[rcx]
	shr	eax, 31
	sar	r8d
	add	eax, r13d
	sar	eax
	sub	eax, 1
	cdqe
	imul	rax, r12
	mov	eax, DWORD PTR 0[rbp+rax]
	sub	eax, r8d
	add	esi, eax
	sar	esi
	add	ecx, esi
	mov	DWORD PTR -8[rbx+rdi], ecx
	mov	DWORD PTR [rdx], eax
.L6:
	test	r13d, r13d
	jle	.L1
	lea	eax, -1[r13]
	lea	rdx, 4[rbx+rax*4]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR [rbx]
	add	rbx, 4
	mov	DWORD PTR 0[rbp], eax
	add	rbp, r12
	cmp	rdx, rbx
	jne	.L7
.L1:
	add	rsp, 24
	.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
.L4:
	.cfi_restore_state
	add	esi, ecx
	mov	DWORD PTR [rdx], esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, 4
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	opj_idwt3_v_cas1, .-opj_idwt3_v_cas1
	.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_dwt.c_opj_idwt3_v_cas1.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	opj_idwt3_v_cas1, %function
opj_idwt3_v_cas1:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r3
	mov	r9, r2
	mov	r4, r0
	sub	sp, sp, #12
	ldr	r5, [sp, #48]
	cmp	r2, #2
	lsl	r8, r5, #2
	mul	r10, r8, r1
	movle	r0, #0
	add	r7, r3, r10
	movgt	r0, #1
	bl	assert
	ldr	r0, [r6, r10]
	ldr	r5, [r7, r5, lsl #2]
	and	r3, r9, #1
	ldr	r1, [r6]
	add	r2, r0, r5
	add	r2, r2, #2
	eor	ip, r3, #1
	str	r3, [sp]
	sub	r3, r9, #2
	sub	r1, r1, r2, asr #2
	sub	r3, r3, ip
	add	r0, r0, r1
	cmp	r3, #1
	add	r2, r7, r8
	str	r0, [r4]
	ble	.L9
	mov	lr, r4
	mov	r0, #0
	sub	r3, r3, #2
	lsr	r3, r3, #1
	add	r10, r4, #8
	str	r3, [sp, #4]
	add	r2, r2, r8
	add	r10, r10, r3, lsl #3
	add	fp, r6, r8
.L3:
	mov	r3, r5
	mov	ip, r1
	ldr	r5, [r2, r0]
	ldr	r7, [fp, r0]
	add	r1, r5, r3
	add	r1, r1, #2
	sub	r1, r7, r1, asr #2
	add	r7, r1, ip
	add	r3, r3, r7, asr #1
	str	ip, [lr, #4]
	str	r3, [lr, #8]!
	cmp	lr, r10
	add	r0, r0, r8
	bne	.L3
	ldr	r3, [sp, #4]
	lsl	r3, r3, #3
	add	r3, r3, #12
.L2:
	ldr	r2, [sp]
	sub	r0, r9, #-1073741823
	cmp	r2, #0
	str	r1, [r4, r3]
	addne	r1, r5, r1
	lsl	r2, r0, #2
	add	ip, r4, r0, lsl #2
	strne	r1, [r4, r0, lsl #2]
	bne	.L6
	add	r3, r9, r9, lsr #31
	asr	r3, r3, #1
	sub	r3, r3, #1
	mul	r3, r8, r3
	ldr	r3, [r6, r3]
	add	lr, r5, #1
	sub	r3, r3, lr, asr #1
	add	r1, r3, r1
	add	r5, r5, r1, asr #1
	str	r5, [ip, #-4]
	str	r3, [r4, r0, lsl #2]
.L6:
	cmp	r9, #0
	addgt	r2, r4, r2
	subgt	r4, r4, #4
	ble	.L1
.L7:
	ldr	r3, [r4, #4]!
	cmp	r2, r4
	str	r3, [r6], r8
	bne	.L7
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r3, #4
	b	.L2
	.size	opj_idwt3_v_cas1, .-opj_idwt3_v_cas1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
