	.file	"extr_av1_obu.h_AV1_OBU_iterate_next.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	AV1_OBU_iterate_next, @function
AV1_OBU_iterate_next:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rbx]
	sub	rax, rdi
	sar	rax, 2
	mov	rsi, rax
	mov	r13, rax
	call	AV1_OBUIsValid@PLT
	test	eax, eax
	jne	.L2
.L5:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	call	AV1_OBUHasSizeField@PLT
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR [r12], r13
	mov	QWORD PTR 8[rbx], rax
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR 8[rbx]
	lea	rdx, 4[rsp]
	mov	rsi, r13
	call	AV1_OBUSize@PLT
	mov	rdi, QWORD PTR 8[rbx]
	add	eax, DWORD PTR 4[rsp]
	mov	r14d, eax
	call	AV1_OBUHasExtensionField@PLT
	mov	edx, DWORD PTR 4[rsp]
	test	eax, eax
	setne	al
	movzx	eax, al
	lea	eax, 1[r14+rax]
	cdqe
	test	edx, edx
	je	.L5
	cmp	r13, rax
	jb	.L5
	mov	rdx, QWORD PTR 8[rbx]
	mov	QWORD PTR [r12], rax
	sal	rax, 2
	mov	QWORD PTR 0[rbp], rdx
	add	QWORD PTR 8[rbx], rax
	mov	eax, 1
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	AV1_OBU_iterate_next, .-AV1_OBU_iterate_next
	.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_av1_obu.h_AV1_OBU_iterate_next.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	AV1_OBU_iterate_next, %function
AV1_OBU_iterate_next:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0, #4]
	ldr	r4, [r5]
	ldr	r3, .L10
	sub	r4, r4, r0
	asr	r4, r4, #2
	sub	sp, sp, #8
	mov	r6, r1
	mov	r1, r4
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	AV1_OBUIsValid
	cmp	r0, #0
	bne	.L2
.L5:
	mov	r0, #0
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r5, #4]
	bl	AV1_OBUHasSizeField
	cmp	r0, #0
	bne	.L4
	ldr	r3, [r5, #4]
	mov	r0, #1
	str	r3, [r6]
	ldr	r3, [r5]
	str	r4, [r7]
	str	r3, [r5, #4]
	b	.L1
.L4:
	mov	r1, r4
	mov	r2, sp
	ldr	r0, [r5, #4]
	bl	AV1_OBUSize
	mov	r8, r0
	ldr	r3, [sp]
	ldr	r0, [r5, #4]
	add	r8, r8, r3
	bl	AV1_OBUHasExtensionField
	cmp	r0, #0
	moveq	r3, r8
	addne	r3, r8, #1
	ldr	r1, [sp]
	add	r3, r3, #1
	cmp	r4, r3
	movcs	r4, #0
	movcc	r4, #1
	cmp	r1, #0
	moveq	r4, #1
	cmp	r4, #0
	bne	.L5
	ldr	r2, [r5, #4]
	str	r3, [r7]
	str	r2, [r6]
	ldr	r2, [r5, #4]
	mov	r0, #1
	add	r3, r2, r3, lsl #2
	str	r3, [r5, #4]
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	AV1_OBU_iterate_next, .-AV1_OBU_iterate_next
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
