	.file	"extr_ring_buffer.c_rb_advance_iter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rb_advance_iter, @function
rb_advance_iter:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR [rdi]
	mov	r12, QWORD PTR 16[rdi]
	mov	rdi, QWORD PTR 8[rdi]
	call	rb_page_size@PLT
	cmp	rbx, rax
	jl	.L2
.L9:
	mov	rax, QWORD PTR [r12]
	cmp	QWORD PTR 8[rbp], rax
	jne	.L11
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L11:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	rb_inc_iter@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	rb_iter_head_event@PLT
	mov	rdi, rax
	mov	r13, rax
	call	rb_event_length@PLT
	xor	esi, esi
	mov	ebx, eax
	mov	rax, QWORD PTR [r12]
	cmp	QWORD PTR 8[rbp], rax
	je	.L12
.L5:
	mov	rdi, r12
	call	RB_WARN_ON@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, rbp
	mov	rsi, r13
	call	rb_update_iter_read_stamp@PLT
	add	rbx, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	mov	QWORD PTR 0[rbp], rbx
	call	rb_page_size@PLT
	cmp	rbx, rax
	jl	.L1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r12
	mov	r14d, ebx
	add	r14, QWORD PTR 0[rbp]
	call	rb_commit_index@PLT
	xor	esi, esi
	cmp	r14, rax
	setg	sil
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	rb_advance_iter, .-rb_advance_iter
	.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_ring_buffer.c_rb_advance_iter.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rb_advance_iter, %function
rb_advance_iter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	ldr	r5, [r4]
	ldr	r6, [r4, #8]
	bl	rb_page_size
	cmp	r5, r0
	blt	.L2
.L10:
	ldr	r3, [r6]
	ldr	r2, [r4, #4]
	cmp	r2, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	rb_inc_iter
.L2:
	mov	r0, r4
	bl	rb_iter_head_event
	mov	r7, r0
	bl	rb_event_length
	ldr	r2, [r4, #4]
	ldr	r3, [r6]
	mov	r5, r0
	cmp	r2, r3
	movne	r1, #0
	beq	.L12
.L5:
	mov	r0, r6
	bl	RB_WARN_ON
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r1, r7
	mov	r0, r4
	bl	rb_update_iter_read_stamp
	ldr	r3, [r4]
	ldr	r0, [r4, #4]
	add	r5, r5, r3
	str	r5, [r4]
	bl	rb_page_size
	cmp	r5, r0
	poplt	{r4, r5, r6, r7, r8, pc}
	b	.L10
.L12:
	ldr	r1, [r4]
	mov	r0, r6
	add	r8, r5, r1
	bl	rb_commit_index
	cmp	r8, r0
	movls	r1, #0
	movhi	r1, #1
	b	.L5
	.size	rb_advance_iter, .-rb_advance_iter
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
