	.file	"extr_asvdec.c_asv1_decode_block.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"coded coeff pattern damaged\n"
	.text
	.p2align 4
	.type	asv1_decode_block, @function
asv1_decode_block:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	mov	esi, 8
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	lea	rbp, 8[rdi]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdi, rbp
	xor	ebx, ebx
	call	get_bits@PLT
	sal	eax, 3
	mov	DWORD PTR [r14], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L32:
	cmp	eax, 16
	je	.L12
	test	eax, eax
	js	.L13
	cmp	ebx, 9
	jg	.L13
	test	al, 8
	jne	.L28
.L6:
	test	r12b, 4
	jne	.L29
.L7:
	test	r12b, 2
	jne	.L30
.L8:
	and	r12d, 1
	jne	.L31
.L11:
	add	rbx, 1
.L10:
	mov	edx, DWORD PTR VLC_BITS[rip]
	mov	esi, DWORD PTR ccp_vlc[rip]
	mov	ecx, 1
	mov	rdi, rbp
	call	get_vlc2@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L32
	cmp	ebx, 10
	jne	.L11
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	rdi, rbp
	call	asv1_get_level@PLT
	mov	rdx, rbx
	sal	rdx, 5
	add	rdx, QWORD PTR 16[r13]
	mov	rcx, QWORD PTR 24[rdx]
	mov	rdx, rbx
	sal	rdx, 4
	add	rdx, QWORD PTR 0[r13]
	imul	eax, DWORD PTR 12[rdx]
	sar	eax, 4
	mov	DWORD PTR [r14+rcx*4], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, rbp
	call	asv1_get_level@PLT
	mov	rdx, rbx
	sal	rdx, 5
	add	rdx, QWORD PTR 16[r13]
	mov	rcx, QWORD PTR 16[rdx]
	mov	rdx, rbx
	sal	rdx, 4
	add	rdx, QWORD PTR 0[r13]
	imul	eax, DWORD PTR 8[rdx]
	sar	eax, 4
	mov	DWORD PTR [r14+rcx*4], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, rbp
	call	asv1_get_level@PLT
	mov	rdx, rbx
	sal	rdx, 5
	add	rdx, QWORD PTR 16[r13]
	mov	rcx, QWORD PTR 8[rdx]
	mov	rdx, rbx
	sal	rdx, 4
	add	rdx, QWORD PTR 0[r13]
	imul	eax, DWORD PTR 4[rdx]
	sar	eax, 4
	mov	DWORD PTR [r14+rcx*4], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, rbp
	call	asv1_get_level@PLT
	mov	rdx, rbx
	sal	rdx, 5
	add	rdx, QWORD PTR 16[r13]
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, rbx
	sal	rdx, 4
	add	rdx, QWORD PTR 0[r13]
	imul	eax, DWORD PTR [rdx]
	sar	eax, 4
	mov	DWORD PTR [r14+rcx*4], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	xor	r12d, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[r13]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	call	av_log@PLT
	mov	r12d, DWORD PTR AVERROR_INVALIDDATA[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	asv1_decode_block, .-asv1_decode_block
	.comm	ccp_vlc,4,4
	.comm	VLC_BITS,4,4
	.comm	AV_LOG_ERROR,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
	.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_asvdec.c_asv1_decode_block.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"coded coeff pattern damaged\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	asv1_decode_block, %function
asv1_decode_block:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	add	r6, r0, #4
	mov	r10, r1
	mov	r7, r0
	mov	r1, #8
	mov	r0, r6
	bl	get_bits
	lsl	r0, r0, #3
	mov	r5, #1
	ldr	r9, .L35
	ldr	r8, .L35+4
	str	r0, [r10]
	b	.L9
.L34:
	cmp	r4, #16
	beq	.L11
	sub	r3, r5, #1
	cmp	r3, #9
	movle	r3, #0
	movgt	r3, #1
	orrs	r3, r3, r4, lsr #31
	bne	.L29
	tst	r4, #8
	bne	.L30
.L5:
	tst	r4, #4
	bne	.L31
.L6:
	tst	r4, #2
	bne	.L32
.L7:
	tst	r4, #1
	bne	.L33
.L10:
	add	r5, r5, #1
.L9:
	mov	r3, #1
	mov	r0, r6
	ldr	r2, [r9]
	ldr	r1, [r8]
	bl	get_vlc2
	subs	r4, r0, #0
	bne	.L34
	cmp	r5, #11
	bne	.L10
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L33:
	mov	r0, r6
	bl	asv1_get_level
	ldr	r2, [r7]
	lsl	r3, r5, #4
	sub	r3, r3, #4
	ldr	r1, [r2, r3]
	ldr	r2, [r7, #8]
	mul	r0, r1, r0
	ldr	r3, [r2, r3]
	asr	r0, r0, #4
	str	r0, [r10, r3, lsl #2]
	b	.L10
.L32:
	mov	r0, r6
	bl	asv1_get_level
	ldr	r2, [r7]
	lsl	r3, r5, #4
	sub	r3, r3, #8
	ldr	r1, [r2, r3]
	ldr	r2, [r7, #8]
	mul	r0, r1, r0
	ldr	r3, [r2, r3]
	asr	r0, r0, #4
	str	r0, [r10, r3, lsl #2]
	b	.L7
.L31:
	mov	r0, r6
	bl	asv1_get_level
	ldr	r2, [r7]
	lsl	r3, r5, #4
	sub	r3, r3, #12
	ldr	r1, [r2, r3]
	ldr	r2, [r7, #8]
	mul	r0, r1, r0
	ldr	r3, [r2, r3]
	asr	r0, r0, #4
	str	r0, [r10, r3, lsl #2]
	b	.L6
.L30:
	mov	r0, r6
	bl	asv1_get_level
	ldr	r2, [r7]
	lsl	r3, r5, #4
	sub	r3, r3, #16
	ldr	r1, [r2, r3]
	ldr	r2, [r7, #8]
	mul	r0, r1, r0
	ldr	r3, [r2, r3]
	asr	r0, r0, #4
	str	r0, [r10, r3, lsl #2]
	b	.L5
.L11:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L29:
	ldr	r3, .L35+8
	ldr	r0, [r7, #12]
	ldr	r1, [r3]
	ldr	r2, .L35+12
	bl	av_log
	ldr	r3, .L35+16
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L36:
	.align	2
.L35:
	.word	VLC_BITS
	.word	ccp_vlc
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	AVERROR_INVALIDDATA
	.size	asv1_decode_block, .-asv1_decode_block
	.comm	ccp_vlc,4,4
	.comm	VLC_BITS,4,4
	.comm	AV_LOG_ERROR,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
