	.file	"extr_buffer.c_advance_last_with_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	advance_last_with_data, @function
advance_last_with_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	ASSERT_EVBUFFER_LOCKED@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L5
	mov	rdx, QWORD PTR [rax]
	xor	r8d, r8d
	test	rdx, rdx
	jne	.L3
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR [rax]
	add	r8d, 1
	mov	rdx, QWORD PTR [rax]
	test	rdx, rdx
	je	.L1
.L3:
	cmp	QWORD PTR 8[rdx], 0
	jne	.L4
.L1:
	mov	eax, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	r8d, r8d
	pop	rbx
	.cfi_def_cfa_offset 8
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	advance_last_with_data, .-advance_last_with_data
	.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_buffer.c_advance_last_with_data.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	advance_last_with_data, %function
advance_last_with_data:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	ASSERT_EVBUFFER_LOCKED
	ldr	r3, [r4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r2, [r3]
	cmp	r2, #0
	movne	r0, #0
	beq	.L14
.L3:
	ldr	r2, [r2, #4]
	cmp	r2, #0
	popeq	{r4, pc}
	str	r3, [r4]
	ldr	r3, [r3]
	add	r0, r0, #1
	ldr	r2, [r3]
	cmp	r2, #0
	bne	.L3
	pop	{r4, pc}
.L5:
	mov	r0, r3
	pop	{r4, pc}
.L14:
	mov	r0, r2
	pop	{r4, pc}
	.size	advance_last_with_data, .-advance_last_with_data
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
