	.file	"extr_msmpeg4dec.c_ff_msmpeg4_decode_ext_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ext header missing, %d left\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"I-frame too long, ignoring ext header\n"
	.text
	.p2align 4
	.globl	ff_msmpeg4_decode_ext_header
	.type	ff_msmpeg4_decode_ext_header, @function
ff_msmpeg4_decode_ext_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 24[rdi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	get_bits_count@PLT
	lea	ecx, 0[0+rbx*8]
	sub	ecx, eax
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 2
	jg	.L2
	cmp	ecx, 15
	jle	.L3
	mov	eax, 16
	cmp	eax, 16
	setne	al
	movzx	eax, al
	add	eax, 23
	cmp	eax, ecx
	jge	.L18
.L4:
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC1[rip]
	xor	eax, eax
	call	av_log@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
.L2:
	.cfi_restore_state
	cmp	ecx, 16
	jg	.L10
	mov	QWORD PTR 16[rbp], 0
.L7:
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	av_log@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
.L3:
	.cfi_restore_state
	mov	QWORD PTR 16[rbp], 0
	cmp	eax, 2
	jne	.L7
.L12:
	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
.L10:
	.cfi_restore_state
	mov	eax, 17
	cmp	eax, 16
	setne	al
	movzx	eax, al
	add	eax, 23
	cmp	eax, ecx
	jl	.L4
.L18:
	mov	esi, 5
	mov	rdi, r12
	call	skip_bits@PLT
	mov	esi, 11
	mov	rdi, r12
	call	get_bits@PLT
	sal	eax, 10
	cmp	DWORD PTR 0[rbp], 2
	mov	DWORD PTR 4[rbp], eax
	jg	.L19
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	QWORD PTR 16[rbp], 0
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, r12
	call	get_bits1@PLT
	mov	QWORD PTR 16[rbp], rax
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	ff_msmpeg4_decode_ext_header, .-ff_msmpeg4_decode_ext_header
	.comm	AV_LOG_ERROR,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_msmpeg4dec.c_ff_msmpeg4_decode_ext_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ext header missing, %d left\012\000"
	.align	2
.LC1:
	.ascii	"I-frame too long, ignoring ext header\012\000"
	.text
	.align	2
	.global	ff_msmpeg4_decode_ext_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_msmpeg4_decode_ext_header, %function
ff_msmpeg4_decode_ext_header:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r6, r0, #16
	mov	r0, r6
	mov	r5, r1
	bl	get_bits_count
	ldr	r2, [r4]
	rsb	r3, r0, r5, lsl #3
	cmp	r2, #2
	bgt	.L2
	cmp	r3, #15
	movgt	r2, #16
	bgt	.L8
	mov	r1, #0
	cmp	r2, #2
	str	r1, [r4, #12]
	bne	.L7
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r3, #16
	ble	.L19
	mov	r2, #17
.L8:
	cmp	r2, #16
	moveq	r2, #23
	movne	r2, #24
	cmp	r2, r3
	bge	.L20
	ldr	r3, .L21
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	ldr	r2, .L21+4
	bl	av_log
.L13:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L19:
	mov	r2, #0
	str	r2, [r4, #12]
.L7:
	ldr	r2, .L21
	ldr	r0, [r4, #8]
	ldr	r1, [r2]
	ldr	r2, .L21+8
	bl	av_log
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L20:
	mov	r1, #5
	mov	r0, r6
	bl	skip_bits
	mov	r1, #11
	mov	r0, r6
	bl	get_bits
	ldr	r3, [r4]
	lsl	r0, r0, #10
	cmp	r3, #2
	movle	r3, #0
	str	r0, [r4, #4]
	strle	r3, [r4, #12]
	ble	.L13
	mov	r0, r6
	bl	get_bits1
	str	r0, [r4, #12]
	b	.L13
.L22:
	.align	2
.L21:
	.word	AV_LOG_ERROR
	.word	.LC1
	.word	.LC0
	.size	ff_msmpeg4_decode_ext_header, .-ff_msmpeg4_decode_ext_header
	.comm	AV_LOG_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
