	.file	"extr_tscc2.c_tscc2_decode_mb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tscc2_decode_mb, @function
tscc2_decode_mb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movsx	r12, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	lea	rbp, 28[rdi]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, rbp
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 32[rsp], rsi
	mov	QWORD PTR 8[rsp], rcx
	mov	DWORD PTR 28[rsp], r8d
	call	get_bits1@PLT
	test	rax, rax
	jne	.L2
	lea	eax, 0[0+r14*4]
	mov	DWORD PTR 24[rsp], 0
	lea	r15, 0[0+r12*4]
	cdqe
	mov	DWORD PTR 4[rsp], 0
	sal	rax, 2
	mov	QWORD PTR 40[rsp], rax
.L3:
	mov	QWORD PTR 16[rsp], 0
.L21:
	mov	eax, DWORD PTR 24[rsp]
	or	eax, DWORD PTR 16[rsp]
	jne	.L11
.L33:
	mov	esi, 8
	mov	rdi, rbp
	call	get_bits@PLT
.L12:
	add	eax, DWORD PTR 4[rsp]
	mov	edx, 9
	mov	rdi, rbp
	movzx	eax, al
	mov	ecx, eax
	mov	DWORD PTR 4[rsp], eax
	mov	rax, QWORD PTR [rbx]
	mov	DWORD PTR [rax], ecx
	mov	rax, QWORD PTR 16[rbx]
	mov	ecx, 1
	mov	esi, DWORD PTR [rax+r15]
	call	get_vlc2@PLT
	mov	DWORD PTR [rsp], eax
	cmp	eax, -1
	je	.L34
	mov	rax, QWORD PTR [rbx]
	mov	edx, 60
	xor	esi, esi
	lea	rdi, 4[rax]
	call	memset@PLT
	mov	eax, DWORD PTR [rsp]
	test	eax, eax
	jle	.L15
	xor	r12d, r12d
	mov	r13d, 1
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edx, eax
	and	edx, 15
	lea	r14d, [rdx+r13]
	cmp	r14d, 15
	jg	.L34
.L18:
	sar	eax, 4
	mov	esi, 8
	lea	r13d, 1[r14]
	add	r12d, 1
	mov	edi, eax
	call	sign_extend@PLT
	movsx	rdx, r14d
	mov	rdi, QWORD PTR [rbx]
	mov	r8d, eax
	mov	rax, QWORD PTR ff_zigzag_scan[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	DWORD PTR [rdi+rax*4], r8d
	cmp	DWORD PTR [rsp], r12d
	je	.L20
.L19:
	mov	rax, QWORD PTR 8[rbx]
	mov	ecx, 2
	mov	edx, 9
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+r15]
	call	get_vlc2@PLT
	cmp	eax, -1
	je	.L34
	cmp	eax, 4096
	jne	.L17
	mov	esi, 12
	mov	rdi, rbp
	call	get_bits@PLT
	mov	edx, eax
	and	edx, 15
	lea	r14d, [rdx+r13]
	cmp	r14d, 15
	jle	.L18
	.p2align 4,,10
	.p2align 3
.L34:
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
.L1:
	add	rsp, 56
	.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
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR 24[rbx]
	mov	ecx, 2
	mov	edx, 9
	mov	rdi, rbp
	call	get_vlc2@PLT
	cmp	eax, -1
	je	.L34
	cmp	eax, 256
	jne	.L12
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	call	get_bits1@PLT
	test	rax, rax
	jne	.L36
	mov	rdi, rbp
	call	get_bits_left@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	cmp	r8d, 1023
	jle	.L1
	movsx	r13, DWORD PTR 28[rsp]
	mov	r12, QWORD PTR 8[rsp]
	mov	r14d, 8
	sal	r13, 2
	add	r12, 64
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rbx, -64[r12]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, 8
	mov	rdi, rbp
	add	rbx, 4
	call	get_bits@PLT
	mov	DWORD PTR -4[rbx], eax
	cmp	r12, rbx
	jne	.L10
	add	r12, r13
	sub	r14d, 1
	jne	.L8
.L6:
	xor	eax, eax
.L37:
	add	rsp, 56
	.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
.L15:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r14, QWORD PTR 16[rsp]
	mov	r13, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 28[rsp]
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdx, r14
	add	r14, 1
	sal	rdx, 4
	add	rdx, r13
	call	tscc2_idct4_put@PLT
	mov	QWORD PTR 16[rsp], r14
	cmp	r14, 4
	jne	.L21
	mov	rax, QWORD PTR 40[rsp]
	add	r13, rax
	cmp	DWORD PTR 24[rsp], 1
	mov	QWORD PTR 8[rsp], r13
	je	.L6
	mov	DWORD PTR 24[rsp], 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdi, rbp
	mov	esi, 8
	mov	ebx, 8
	call	get_bits@PLT
	movsx	rbp, DWORD PTR 28[rsp]
	mov	r13, QWORD PTR 8[rsp]
	mov	r12d, eax
	sal	rbp, 2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r13
	mov	edx, 16
	mov	esi, r12d
	add	r13, rbp
	call	memset@PLT
	sub	ebx, 1
	jne	.L5
	xor	eax, eax
	jmp	.L37
	.cfi_endproc
.LFE0:
	.size	tscc2_decode_mb, .-tscc2_decode_mb
	.comm	ff_zigzag_scan,8,8
	.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_tscc2.c_tscc2_decode_mb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tscc2_decode_mb, %function
tscc2_decode_mb:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	r5, r0, #16
	sub	sp, sp, #28
	mov	r6, r0
	mov	r0, r5
	mov	r8, r2
	mov	fp, r3
	str	r1, [sp, #12]
	bl	get_bits1
	cmp	r0, #0
	bne	.L2
	ldr	r3, [sp, #64]
	ldr	r10, .L38
	lsl	r3, r3, #4
	str	r0, [sp, #8]
	lsl	r8, r8, #2
	str	r0, [sp, #4]
	str	r3, [sp, #20]
	str	fp, [sp, #16]
.L3:
	mov	fp, #0
.L21:
	ldr	r3, [sp, #8]
	orrs	r3, r3, fp
	bne	.L11
.L33:
	mov	r1, #8
	mov	r0, r5
	bl	get_bits
.L12:
	ldr	r3, [sp, #4]
	ldr	r2, [r6]
	add	r0, r0, r3
	and	r3, r0, #255
	mov	r1, r3
	str	r3, [sp, #4]
	ldr	r3, [r6, #8]
	str	r1, [r2]
	ldr	r1, [r3, r8]
	mov	r2, #9
	mov	r3, #1
	mov	r0, r5
	bl	get_vlc2
	cmn	r0, #1
	mov	r9, r0
	beq	.L34
	ldr	r0, [r6]
	mov	r2, #60
	mov	r1, #0
	add	r0, r0, #4
	bl	memset
	cmp	r9, #0
	ble	.L15
	mov	r7, #0
	mov	r4, #1
	b	.L19
.L17:
	asr	r0, r3, #4
	and	r3, r3, #15
	add	r4, r3, r4
	cmp	r4, #15
	bgt	.L34
	mov	r1, #8
	bl	sign_extend
	ldr	r2, [r10]
	ldr	r3, [r6]
	ldr	r2, [r2, r4, lsl #2]
	cmp	r9, r7
	add	r4, r4, #1
	str	r0, [r3, r2, lsl #2]
	beq	.L20
.L19:
	ldr	r2, [r6, #4]
	mov	r3, #2
	ldr	r1, [r2, r8]
	mov	r0, r5
	mov	r2, #9
	bl	get_vlc2
	cmn	r0, #1
	mov	r3, r0
	add	r7, r7, #1
	beq	.L34
	cmp	r0, #4096
	bne	.L17
	mov	r1, #12
	mov	r0, r5
	bl	get_bits
	mov	r3, r0
	b	.L17
.L11:
	mov	r3, #2
	mov	r2, #9
	mov	r0, r5
	ldr	r1, [r6, #12]
	bl	get_vlc2
	cmn	r0, #1
	beq	.L34
	cmp	r0, #256
	bne	.L12
	b	.L33
.L2:
	mov	r0, r5
	bl	get_bits1
	cmp	r0, #0
	mov	r0, r5
	bne	.L36
	bl	get_bits_left
	cmp	r0, #1024
	bge	.L37
.L34:
	ldr	r3, .L38+4
	ldr	r0, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L37:
	mov	r8, #8
	ldr	r3, [sp, #64]
	add	r6, fp, #60
	lsl	r7, r3, #2
.L8:
	sub	r4, r6, #64
.L10:
	mov	r1, #8
	mov	r0, r5
	bl	get_bits
	str	r0, [r4, #4]!
	cmp	r6, r4
	bne	.L10
	subs	r8, r8, #1
	add	r6, r6, r7
	bne	.L8
.L6:
	mov	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, [r6]
.L20:
	ldr	r4, [sp, #16]
	mov	r0, r3
	add	r2, r4, fp, lsl #4
	ldr	r3, [sp, #64]
	ldr	r1, [sp, #12]
	add	fp, fp, #1
	bl	tscc2_idct4_put
	cmp	fp, #4
	bne	.L21
	ldr	r3, [sp, #8]
	cmp	r3, #1
	ldr	r3, [sp, #20]
	add	r3, r4, r3
	str	r3, [sp, #16]
	beq	.L6
	mov	r3, #1
	str	r3, [sp, #8]
	b	.L3
.L36:
	mov	r1, #8
	bl	get_bits
	mov	r4, #8
	mov	r5, r0
	ldr	r3, [sp, #64]
	lsl	r6, r3, #2
.L5:
	mov	r0, fp
	mov	r2, #16
	mov	r1, r5
	bl	memset
	subs	r4, r4, #1
	add	fp, fp, r6
	bne	.L5
	b	.L6
.L39:
	.align	2
.L38:
	.word	ff_zigzag_scan
	.word	AVERROR_INVALIDDATA
	.size	tscc2_decode_mb, .-tscc2_decode_mb
	.comm	ff_zigzag_scan,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
