	.file	"extr_vv-tl-parse.c_tl_binlog_wait_time_on_complete.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tl_binlog_wait_time_on_complete
	.type	tl_binlog_wait_time_on_complete, @function
tl_binlog_wait_time_on_complete:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 24[rdi]
	mov	rbx, rdi
	add	rdi, 20
	call	remove_event_timer@PLT
	sub	DWORD PTR 4[r12], 1
	mov	edi, DWORD PTR 16[rbx]
	call	lookup_binlog_time@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	setg	dil
	call	assert@PLT
	xor	eax, eax
	call	log_last_pos@PLT
	cmp	rax, rbp
	jge	.L2
	mov	ecx, DWORD PTR [r12]
	test	ecx, ecx
	je	.L6
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdx, QWORD PTR [rbx]
	mov	rsi, rbp
	add	rdx, QWORD PTR 8[rbx]
	mov	rdi, r12
	sub	rdx, QWORD PTR precise_now[rip]
	call	tl_binlog_wait_pos_add@PLT
.L2:
	mov	edx, DWORD PTR 4[r12]
	test	edx, edx
	jne	.L1
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jne	.L1
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	add_finished_query@PLT
	.cfi_endproc
.LFE0:
	.size	tl_binlog_wait_time_on_complete, .-tl_binlog_wait_time_on_complete
	.comm	precise_now,8,8
	.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_vv-tl-parse.c_tl_binlog_wait_time_on_complete.c"
	.text
	.align	2
	.global	tl_binlog_wait_time_on_complete
	.syntax unified
	.arm
	.fpu softvfp
	.type	tl_binlog_wait_time_on_complete, %function
tl_binlog_wait_time_on_complete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r5, [r0, #16]
	sub	sp, sp, #12
	add	r0, r0, #12
	bl	remove_event_timer
	ldr	r3, [r5, #4]
	ldr	r0, [r4, #8]
	sub	r3, r3, #1
	str	r3, [r5, #4]
	bl	lookup_binlog_time
	cmp	r0, #1
	sbcs	r3, r1, #0
	mov	r6, r0
	movge	r0, #1
	movlt	r0, #0
	mov	r7, r1
	bl	assert
	bl	log_last_pos
	cmp	r0, r6
	sbcs	r3, r1, r7
	bge	.L2
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L6
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	ldr	r3, .L7
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	add	r1, r1, r2
	sub	r1, r1, r3
	mov	r2, r6
	mov	r3, r7
	mov	r0, r5
	str	r1, [sp]
	bl	tl_binlog_wait_pos_add
.L2:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L1
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L1
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	add_finished_query
.L8:
	.align	2
.L7:
	.word	precise_now
	.size	tl_binlog_wait_time_on_complete, .-tl_binlog_wait_time_on_complete
	.comm	precise_now,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
