	.file	"extr_mpeg4videodec.c_read_quant_matrix_ext.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	read_quant_matrix_ext, @function
read_quant_matrix_ext:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, rsi
	call	get_bits1@PLT
	test	rax, rax
	je	.L2
	mov	rdi, r12
	xor	ebp, ebp
	call	get_bits_left@PLT
	cmp	eax, 511
	jle	.L36
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, 8
	mov	rdi, r12
	call	get_bits@PLT
	mov	rdx, QWORD PTR ff_zigzag_direct[rip]
	mov	rcx, QWORD PTR [rdx+rbp]
	mov	rdx, QWORD PTR 16[rbx]
	add	rbp, 8
	movsx	rdx, DWORD PTR [rdx+rcx*4]
	mov	rcx, QWORD PTR [rbx]
	mov	DWORD PTR [rcx+rdx*4], eax
	mov	rcx, QWORD PTR 8[rbx]
	mov	DWORD PTR [rcx+rdx*4], eax
	cmp	rbp, 512
	jne	.L3
.L2:
	mov	rdi, r12
	call	get_bits1@PLT
	test	rax, rax
	je	.L5
	mov	rdi, r12
	mov	ebp, 64
	call	get_bits_left@PLT
	cmp	eax, 511
	jle	.L36
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, 8
	mov	rdi, r12
	call	get_bits@PLT
	sub	ebp, 1
	jne	.L6
.L5:
	mov	rdi, r12
	call	get_bits1@PLT
	test	rax, rax
	je	.L7
	mov	rdi, r12
	xor	ebp, ebp
	call	get_bits_left@PLT
	cmp	eax, 511
	jle	.L36
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, 8
	mov	rdi, r12
	call	get_bits@PLT
	mov	rdx, QWORD PTR ff_zigzag_direct[rip]
	mov	rcx, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR [rdx+rbp]
	add	rbp, 8
	movsx	rdx, DWORD PTR [rcx+rdx*4]
	mov	rcx, QWORD PTR 8[rbx]
	mov	DWORD PTR [rcx+rdx*4], eax
	cmp	rbp, 512
	jne	.L8
.L7:
	mov	rdi, r12
	call	get_bits1@PLT
	test	rax, rax
	je	.L9
	mov	rdi, r12
	mov	ebx, 64
	call	get_bits_left@PLT
	cmp	eax, 511
	jle	.L36
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, 8
	mov	rdi, r12
	call	get_bits@PLT
	sub	ebx, 1
	jne	.L10
.L9:
	mov	rdi, r12
	call	next_start_code_studio@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	read_quant_matrix_ext, .-read_quant_matrix_ext
	.comm	ff_zigzag_direct,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_mpeg4videodec.c_read_quant_matrix_ext.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_quant_matrix_ext, %function
read_quant_matrix_ext:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r6, r1
	bl	get_bits1
	cmp	r0, #0
	beq	.L2
	mov	r0, r6
	bl	get_bits_left
	cmp	r0, #512
	blt	.L33
	mov	r5, #0
	ldr	r7, .L35
.L3:
	mov	r1, #8
	mov	r0, r6
	bl	get_bits
	ldr	r2, [r7]
	ldr	r3, [r4, #8]
	ldr	r2, [r2, r5]
	ldr	r1, [r4]
	ldr	r3, [r3, r2, lsl #2]
	add	r5, r5, #4
	ldr	r2, [r4, #4]
	cmp	r5, #256
	str	r0, [r1, r3, lsl #2]
	str	r0, [r2, r3, lsl #2]
	bne	.L3
.L2:
	mov	r0, r6
	bl	get_bits1
	cmp	r0, #0
	beq	.L5
	mov	r0, r6
	bl	get_bits_left
	cmp	r0, #512
	movge	r5, #64
	blt	.L33
.L6:
	mov	r1, #8
	mov	r0, r6
	bl	get_bits
	subs	r5, r5, #1
	bne	.L6
.L5:
	mov	r0, r6
	bl	get_bits1
	cmp	r0, #0
	beq	.L7
	mov	r0, r6
	bl	get_bits_left
	cmp	r0, #512
	blt	.L33
	mov	r5, #0
	ldr	r7, .L35
.L8:
	mov	r1, #8
	mov	r0, r6
	bl	get_bits
	ldr	r3, [r7]
	ldr	r2, [r4, #8]
	ldr	r1, [r3, r5]
	ldr	r3, [r4, #4]
	ldr	r2, [r2, r1, lsl #2]
	add	r5, r5, #4
	cmp	r5, #256
	str	r0, [r3, r2, lsl #2]
	bne	.L8
.L7:
	mov	r0, r6
	bl	get_bits1
	cmp	r0, #0
	beq	.L9
	mov	r0, r6
	bl	get_bits_left
	cmp	r0, #512
	movge	r4, #64
	blt	.L33
.L10:
	mov	r1, #8
	mov	r0, r6
	bl	get_bits
	subs	r4, r4, #1
	bne	.L10
.L9:
	mov	r0, r6
	bl	next_start_code_studio
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L33:
	ldr	r3, .L35+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L36:
	.align	2
.L35:
	.word	ff_zigzag_direct
	.word	AVERROR_INVALIDDATA
	.size	read_quant_matrix_ext, .-read_quant_matrix_ext
	.comm	ff_zigzag_direct,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
