	.file	"extr_regress_thread.c_wait_for_condition.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wait_for_condition, @function
wait_for_condition:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR [rax]
	call	EVLOCK_LOCK@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 24[rbx], 0
	mov	esi, DWORD PTR [rax]
	mov	edi, DWORD PTR 4[rax]
	jne	.L3
	cmp	QWORD PTR 16[rbx], 0
	je	.L4
.L3:
	lea	rdx, 16[rbx]
	call	EVTHREAD_COND_WAIT_TIMED@PLT
	mov	ebp, eax
.L5:
	mov	rax, QWORD PTR 8[rbx]
	xor	esi, esi
	mov	edi, DWORD PTR [rax]
	call	EVLOCK_UNLOCK@PLT
	xor	esi, esi
	lea	rdi, 4[rbx]
	call	evutil_gettimeofday@PLT
	cmp	ebp, 1
	jne	.L6
	mov	DWORD PTR [rbx], 1
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	THREAD_RETURN@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	call	EVTHREAD_COND_WAIT@PLT
	mov	ebp, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	wait_for_condition, .-wait_for_condition
	.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_regress_thread.c_wait_for_condition.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_for_condition, %function
wait_for_condition:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, [r0, #8]
	mov	r1, #0
	ldr	r0, [r3]
	bl	EVLOCK_LOCK
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L9
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #8]
	cmp	r2, #0
	ldr	r0, [r3, #4]
	ldr	r1, [r3]
	beq	.L4
.L3:
	add	r2, r4, #12
	bl	EVTHREAD_COND_WAIT_TIMED
	mov	r5, r0
.L5:
	ldr	r3, [r4, #8]
	mov	r1, #0
	ldr	r0, [r3]
	bl	EVLOCK_UNLOCK
	add	r0, r4, #4
	mov	r1, #0
	bl	evutil_gettimeofday
	cmp	r5, #1
	streq	r5, [r4]
	pop	{r4, r5, r6, lr}
	b	THREAD_RETURN
.L4:
	bl	EVTHREAD_COND_WAIT
	mov	r5, r0
	b	.L5
.L9:
	ldr	r3, [r4, #8]
	ldr	r0, [r3, #4]
	ldr	r1, [r3]
	b	.L3
	.size	wait_for_condition, .-wait_for_condition
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
