	.file	"extr_h264_nal.c_h264_AVC_to_AnnexB.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	h264_AVC_to_AnnexB
	.type	h264_AVC_to_AnnexB, @function
h264_AVC_to_AnnexB:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	edx, 4
	jne	.L1
	test	esi, esi
	je	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, rdi
	xor	ecx, ecx
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L4:
	add	ecx, 1
	sal	edx, 8
	mov	r8, rax
	or	edx, DWORD PTR [rax]
	mov	DWORD PTR [rax], 0
	add	rax, 4
	cmp	ecx, 3
	jg	.L7
	cmp	esi, ecx
	ja	.L4
.L7:
	cmp	ecx, 4
	jne	.L1
	sub	esi, 4
	mov	DWORD PTR [r8], 1
	cmp	DWORD PTR INT_MAX[rip], esi
	mov	eax, esi
	cmovbe	eax, DWORD PTR INT_MAX[rip]
	cmp	eax, edx
	jb	.L1
	mov	eax, edx
	lea	rdi, 16[rdi+rax*4]
	sub	esi, edx
	jne	.L6
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	h264_AVC_to_AnnexB, .-h264_AVC_to_AnnexB
	.comm	INT_MAX,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_h264_nal.c_h264_AVC_to_AnnexB.c"
	.text
	.align	2
	.global	h264_AVC_to_AnnexB
	.syntax unified
	.arm
	.fpu softvfp
	.type	h264_AVC_to_AnnexB, %function
h264_AVC_to_AnnexB:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #4
	bxne	lr
	cmp	r1, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, #0
	mov	r8, #1
	ldr	r7, .L16
.L5:
	mov	r3, #0
	mov	r2, r3
	sub	ip, r0, #4
.L4:
	mov	r5, r3
	add	r3, r3, #1
	cmp	r3, #3
	movgt	r4, #0
	movle	r4, #1
	cmp	r1, r3
	movls	r4, #0
	ldr	lr, [ip, #4]!
	cmp	r4, #0
	orr	r2, lr, r2, lsl #8
	str	r6, [ip]
	bne	.L4
	cmp	r3, #4
	popne	{r4, r5, r6, r7, r8, pc}
	str	r8, [r0, r5, lsl #2]
	ldr	r3, [r7]
	sub	r1, r1, #4
	cmp	r1, r3
	movcc	r3, r1
	cmp	r3, r2
	popcc	{r4, r5, r6, r7, r8, pc}
	subs	r1, r1, r2
	add	r2, r2, #4
	add	r0, r0, r2, lsl #2
	bne	.L5
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	INT_MAX
	.size	h264_AVC_to_AnnexB, .-h264_AVC_to_AnnexB
	.comm	INT_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
