	.file	"extr_mpeg4videodec.c_mpeg4_is_resync.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mpeg4_is_resync, @function
mpeg4_is_resync:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 20[rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	rdi, r13
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	get_bits_count@PLT
	mov	esi, 16
	mov	rdi, r13
	mov	ebx, eax
	call	show_bits@PLT
	mov	edx, DWORD PTR 8[r12]
	test	DWORD PTR FF_BUG_NO_PADDING[rip], edx
	je	.L2
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	je	.L7
.L2:
	cmp	eax, 255
	jg	.L4
	mov	ebp, 8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	mov	ecx, ebp
	mov	edx, eax
	sub	ecx, esi
	sar	edx, cl
	cmp	edx, 1
	jne	.L4
	cmp	QWORD PTR 24[r12], 0
	jne	.L4
	add	esi, 8
	mov	rdi, r13
	call	skip_bits@PLT
	mov	eax, DWORD PTR 12[r12]
	mov	esi, 16
	mov	rdi, r13
	lea	ebx, 8[rbx+rax]
	call	show_bits@PLT
	cmp	eax, 255
	jg	.L4
.L5:
	mov	esi, DWORD PTR 12[r12]
	cmp	esi, DWORD PTR AV_PICTURE_TYPE_B[rip]
	jne	.L22
.L4:
	lea	edx, 8[rbx]
	cmp	edx, DWORD PTR 20[r12]
	jl	.L6
	not	ebx
	mov	edx, 127
	sar	eax, 8
	mov	ecx, ebx
	and	ecx, 7
	sar	edx, cl
	or	eax, edx
	cmp	eax, 127
	je	.L23
.L7:
	xor	r14d, r14d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L6:
	.cfi_restore_state
	mov	rdx, QWORD PTR ff_mpeg4_resync_prefix[rip]
	and	ebx, 7
	cmp	DWORD PTR [rdx+rbx*4], eax
	jne	.L7
	mov	eax, DWORD PTR 16[r12]
	xor	ebx, ebx
	lea	edi, -1[rax]
	call	av_log2@PLT
	mov	esi, 1
	mov	rdi, r13
	mov	ebp, DWORD PTR 20[r12]
	lea	r14d, 1[rax]
	call	skip_bits@PLT
	mov	rdi, r13
	call	align_get_bits@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	add	ebx, 1
	cmp	ebx, 32
	je	.L8
.L9:
	mov	rdi, r13
	call	get_bits1@PLT
	test	rax, rax
	je	.L24
.L8:
	mov	esi, r14d
	mov	rdi, r13
	call	get_bits@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L25
.L10:
	mov	r14d, -1
.L11:
	mov	DWORD PTR 20[r12], ebp
	lea	rdi, 8[r12]
	call	ff_mpeg4_get_video_packet_prefix_length@PLT
	cmp	eax, ebx
	jg	.L7
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	r14d, DWORD PTR 16[r12]
	jmp	.L1
.L25:
	cmp	DWORD PTR 16[r12], eax
	jl	.L10
	mov	rdi, r13
	call	get_bits_count@PLT
	add	eax, 5
	cmp	eax, DWORD PTR 20[r12]
	jl	.L11
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	mpeg4_is_resync, .-mpeg4_is_resync
	.comm	ff_mpeg4_resync_prefix,8,8
	.comm	FF_BUG_NO_PADDING,4,4
	.comm	AV_PICTURE_TYPE_B,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_mpeg4_is_resync.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpeg4_is_resync, %function
mpeg4_is_resync:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	add	r6, r0, #16
	mov	r4, r0
	mov	r0, r6
	bl	get_bits_count
	mov	r1, #16
	mov	r5, r0
	mov	r0, r6
	bl	show_bits
	ldr	r3, .L25
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L2
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L7
.L2:
	cmp	r0, #255
	bgt	.L4
	ldr	r7, .L25+4
	b	.L5
.L22:
	cmp	r2, #1
	bne	.L4
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L4
	mov	r0, r6
	bl	skip_bits
	ldr	r3, [r4, #8]
	mov	r1, #16
	add	r3, r3, #8
	mov	r0, r6
	add	r5, r5, r3
	bl	show_bits
	cmp	r0, #255
	bgt	.L4
.L5:
	ldr	r3, [r4, #8]
	ldr	ip, [r7]
	rsb	r2, r3, #8
	cmp	r3, ip
	add	r1, r3, #8
	asr	r2, r0, r2
	bne	.L22
.L4:
	ldr	r3, [r4, #16]
	add	r2, r5, #8
	cmp	r2, r3
	blt	.L6
	mvn	r5, r5
	mov	r3, #127
	and	r5, r5, #7
	asr	r3, r3, r5
	orr	r0, r3, r0, asr #8
	cmp	r0, #127
	ldreq	r7, [r4, #12]
	beq	.L1
.L7:
	mov	r7, #0
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, .L25+8
	and	r5, r5, #7
	ldr	r3, [r3]
	ldr	r3, [r3, r5, lsl #2]
	cmp	r3, r0
	bne	.L7
	ldr	r0, [r4, #12]
	mov	r5, #0
	sub	r0, r0, #1
	bl	av_log2
	mov	r1, #1
	mov	r7, r0
	mov	r0, r6
	ldr	r8, [r4, #16]
	add	r7, r7, r1
	bl	skip_bits
	mov	r0, r6
	bl	align_get_bits
	b	.L9
.L23:
	add	r5, r5, #1
	cmp	r5, #32
	beq	.L8
.L9:
	mov	r0, r6
	bl	get_bits1
	cmp	r0, #0
	beq	.L23
.L8:
	mov	r1, r7
	mov	r0, r6
	bl	get_bits
	subs	r7, r0, #0
	bne	.L24
.L10:
	mvn	r7, #0
.L11:
	str	r8, [r4, #16]
	add	r0, r4, #4
	bl	ff_mpeg4_get_video_packet_prefix_length
	cmp	r0, r5
	bgt	.L7
	b	.L1
.L24:
	ldr	r3, [r4, #12]
	cmp	r3, r7
	blt	.L10
	mov	r0, r6
	bl	get_bits_count
	ldr	r2, [r4, #16]
	add	r3, r0, #5
	cmp	r3, r2
	blt	.L11
	b	.L10
.L26:
	.align	2
.L25:
	.word	FF_BUG_NO_PADDING
	.word	AV_PICTURE_TYPE_B
	.word	ff_mpeg4_resync_prefix
	.size	mpeg4_is_resync, .-mpeg4_is_resync
	.comm	ff_mpeg4_resync_prefix,4,4
	.comm	FF_BUG_NO_PADDING,4,4
	.comm	AV_PICTURE_TYPE_B,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
