	.file	"extr_hq_hqa.c_hqa_decode_mb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hqa_decode_mb, @function
hqa_decode_mb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	mov	rdi, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 8[rsp], edx
	mov	DWORD PTR 12[rsp], r8d
	call	get_bits_left@PLT
	test	eax, eax
	jle	.L26
	mov	esi, DWORD PTR 8[r15]
	mov	ecx, 1
	mov	edx, 5
	xor	ebx, ebx
	mov	rdi, r12
	call	get_vlc2@PLT
	mov	ebp, eax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR [r15]
	mov	edx, 8
	xor	esi, esi
	mov	rdi, QWORD PTR [rax+rbx]
	add	rbx, 8
	call	memset@PLT
	cmp	rbx, 96
	jne	.L4
	mov	rsi, QWORD PTR [r15]
	mov	rax, rsi
	lea	rcx, 96[rsi]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, QWORD PTR [rax]
	add	rax, 8
	mov	DWORD PTR [rdx], -8192
	cmp	rcx, rax
	jne	.L5
	test	ebp, ebp
	je	.L6
	mov	rdi, r12
	call	get_bits1@PLT
	mov	r11d, ebp
	mov	rsi, QWORD PTR [r15]
	sal	r11d, 4
	mov	ebx, eax
	or	r11d, ebp
	mov	eax, r11d
	or	ah, 5
	and	ebp, 3
	cmovne	r11d, eax
	mov	eax, r11d
	or	ah, 10
	test	r11b, 12
	cmovne	r11d, eax
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L10:
	bt	r11d, ebp
	jnc	.L9
	cmp	ebp, 7
	mov	rdx, QWORD PTR [rsi+rbp*8]
	mov	ecx, DWORD PTR 8[rsp]
	mov	rsi, r12
	setg	r8b
	mov	r9d, 1
	mov	rdi, r15
	mov	DWORD PTR 4[rsp], r11d
	movzx	r8d, r8b
	call	hq_decode_block@PLT
	test	eax, eax
	js	.L1
	mov	rsi, QWORD PTR [r15]
	mov	r11d, DWORD PTR 4[rsp]
.L9:
	add	rbp, 1
	cmp	rbp, 12
	jne	.L10
	mov	ebp, ebx
.L6:
	push	QWORD PTR 16[rsi]
	.cfi_def_cfa_offset 88
	mov	r9d, ebp
	mov	r8d, r14d
	mov	edx, 3
	push	QWORD PTR [rsi]
	.cfi_def_cfa_offset 96
	mov	rdi, r15
	mov	rsi, r13
	mov	ebx, DWORD PTR 28[rsp]
	mov	ecx, ebx
	lea	r12d, 8[rbx]
	call	put_blocks@PLT
	mov	rax, QWORD PTR [r15]
	mov	r9d, ebp
	mov	r8d, r14d
	mov	ecx, r12d
	mov	edx, 3
	mov	rsi, r13
	mov	rdi, r15
	push	QWORD PTR 24[rax]
	.cfi_def_cfa_offset 104
	push	QWORD PTR 8[rax]
	.cfi_def_cfa_offset 112
	call	put_blocks@PLT
	mov	rax, QWORD PTR [r15]
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	ecx, ebx
	mov	r9d, ebp
	mov	r8d, r14d
	xor	edx, edx
	mov	rsi, r13
	push	QWORD PTR 48[rax]
	.cfi_def_cfa_offset 88
	mov	rdi, r15
	sar	ebx
	push	QWORD PTR 32[rax]
	.cfi_def_cfa_offset 96
	call	put_blocks@PLT
	mov	rax, QWORD PTR [r15]
	mov	r9d, ebp
	mov	r8d, r14d
	mov	ecx, r12d
	xor	edx, edx
	mov	rsi, r13
	mov	rdi, r15
	push	QWORD PTR 56[rax]
	.cfi_def_cfa_offset 104
	push	QWORD PTR 40[rax]
	.cfi_def_cfa_offset 112
	call	put_blocks@PLT
	mov	rax, QWORD PTR [r15]
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r9d, ebp
	mov	r8d, r14d
	mov	ecx, ebx
	mov	edx, 2
	mov	rsi, r13
	push	QWORD PTR 72[rax]
	.cfi_def_cfa_offset 88
	mov	rdi, r15
	push	QWORD PTR 64[rax]
	.cfi_def_cfa_offset 96
	call	put_blocks@PLT
	mov	rax, QWORD PTR [r15]
	mov	r9d, ebp
	mov	r8d, r14d
	mov	ecx, ebx
	mov	edx, 1
	mov	rsi, r13
	mov	rdi, r15
	push	QWORD PTR 88[rax]
	.cfi_def_cfa_offset 104
	push	QWORD PTR 80[rax]
	.cfi_def_cfa_offset 112
	call	put_blocks@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	xor	eax, eax
.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
.L26:
	.cfi_restore_state
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	hqa_decode_mb, .-hqa_decode_mb
	.comm	AVERROR_INVALIDDATA,4,4
	.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_hq_hqa.c_hqa_decode_mb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hqa_decode_mb, %function
hqa_decode_mb:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #28
	mov	r0, r3
	mov	r7, r3
	mov	r8, r1
	mov	r10, r2
	ldr	r9, [sp, #64]
	ldr	fp, [sp, #68]
	bl	get_bits_left
	cmp	r0, #0
	ble	.L29
	mov	r2, #5
	ldr	r1, [r4, #4]
	mov	r3, #1
	mov	r0, r7
	bl	get_vlc2
	mov	r2, #0
	mov	r6, r0
	mov	r1, r2
.L4:
	ldr	r3, [r4]
	ldr	r3, [r3, r2]
	add	r2, r2, #4
	cmp	r2, #48
	strb	r1, [r3]
	strb	r1, [r3, #1]
	strb	r1, [r3, #2]
	strb	r1, [r3, #3]
	bne	.L4
	ldr	ip, [r4]
	ldr	r0, .L30
	sub	r3, ip, #4
	add	r1, ip, #44
.L5:
	ldr	r2, [r3, #4]!
	cmp	r1, r3
	str	r0, [r2]
	bne	.L5
	cmp	r6, #0
	beq	.L6
	mov	r0, r7
	bl	get_bits1
	mov	r5, #0
	tst	r6, #3
	orr	r6, r6, r6, lsl #4
	orrne	r6, r6, #1280
	tst	r6, #12
	ldr	ip, [r4]
	str	r0, [sp, #20]
	orrne	r6, r6, #2560
.L10:
	asr	r2, r6, r5
	tst	r2, #1
	beq	.L9
	cmp	r5, #7
	movle	r1, #0
	movgt	r1, #1
	mov	r0, #1
	ldr	r2, [ip, r5, lsl #2]
	mov	r3, r10
	str	r0, [sp, #4]
	str	r1, [sp]
	mov	r0, r4
	mov	r1, r7
	bl	hq_decode_block
	cmp	r0, #0
	blt	.L1
	ldr	ip, [r4]
.L9:
	add	r5, r5, #1
	cmp	r5, #12
	bne	.L10
	ldr	r6, [sp, #20]
.L6:
	ldr	r2, [ip, #8]
	mov	r3, r9
	str	r2, [sp, #12]
	ldr	r1, [ip]
	mov	r2, #3
	str	r1, [sp, #8]
	mov	r0, r4
	mov	r1, r8
	str	r6, [sp, #4]
	str	fp, [sp]
	bl	put_blocks
	ldr	r2, [r4]
	add	r5, r9, #8
	ldr	r1, [r2, #12]
	mov	r3, r5
	str	r1, [sp, #12]
	ldr	r1, [r2, #4]
	mov	r0, r4
	mov	r2, #3
	str	r1, [sp, #8]
	str	r6, [sp, #4]
	mov	r1, r8
	str	fp, [sp]
	bl	put_blocks
	ldr	r1, [r4]
	mov	r3, r9
	ldr	r0, [r1, #24]
	mov	r2, #0
	str	r0, [sp, #12]
	ldr	r0, [r1, #16]
	mov	r1, r8
	str	r0, [sp, #8]
	str	r6, [sp, #4]
	mov	r0, r4
	str	fp, [sp]
	bl	put_blocks
	ldr	r1, [r4]
	mov	r3, r5
	ldr	r0, [r1, #28]
	mov	r2, #0
	str	r0, [sp, #12]
	ldr	r0, [r1, #20]
	mov	r1, r8
	str	r0, [sp, #8]
	str	r6, [sp, #4]
	mov	r0, r4
	str	fp, [sp]
	bl	put_blocks
	ldr	r2, [r4]
	asr	r9, r9, #1
	ldr	r1, [r2, #36]
	mov	r3, r9
	str	r1, [sp, #12]
	ldr	r1, [r2, #32]
	mov	r0, r4
	mov	r2, #2
	str	r1, [sp, #8]
	str	r6, [sp, #4]
	mov	r1, r8
	str	fp, [sp]
	bl	put_blocks
	ldr	r2, [r4]
	mov	r3, r9
	ldr	r0, [r2, #44]
	mov	r1, r8
	str	r0, [sp, #12]
	ldr	r2, [r2, #40]
	mov	r0, r4
	str	r2, [sp, #8]
	str	r6, [sp, #4]
	mov	r2, #1
	str	fp, [sp]
	bl	put_blocks
	mov	r0, #0
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	ldr	r3, .L30+4
	ldr	r0, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	.align	2
.L30:
	.word	-8192
	.word	AVERROR_INVALIDDATA
	.size	hqa_decode_mb, .-hqa_decode_mb
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
