	.file	"extr_cond.c___lwp_cond_waitsupp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__lwp_cond_waitsupp, @function
__lwp_cond_waitsupp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	__lwp_cond_open@PLT
	test	rax, rax
	je	.L7
	mov	rbx, rax
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR LWP_MUTEX_NULL[rip], rax
	je	.L3
	cmp	rax, r12
	jne	.L19
.L3:
	mov	rdi, r12
	call	LWP_MutexUnlock@PLT
	test	ebp, ebp
	je	.L20
	xor	eax, eax
	call	__lwp_thread_dispatchenable@PLT
	mov	rbx, QWORD PTR ETIMEDOUT[rip]
.L5:
	mov	rdi, r12
	call	LWP_MutexLock@PLT
	test	rax, rax
	mov	eax, ebx
	cmovne	eax, DWORD PTR EINVAL[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	QWORD PTR [rbx], r12
	xor	r15d, r15d
	lea	rbp, 8[rbx]
	mov	rdi, r15
	call	_CPU_ISR_Disable@PLT
	mov	rdi, rbp
	call	__lwp_threadqueue_csenter@PLT
	mov	rax, QWORD PTR _thr_executing[rip]
	mov	rdi, r15
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 16[rax], rbp
	mov	DWORD PTR 8[rax], r13d
	call	_CPU_ISR_Restore@PLT
	mov	esi, r14d
	mov	rdi, rbp
	call	__lwp_threadqueue_enqueue@PLT
	xor	eax, eax
	call	__lwp_thread_dispatchenable@PLT
	mov	rax, QWORD PTR _thr_executing[rip]
	mov	rbx, QWORD PTR [rax]
	test	rbx, rbx
	je	.L5
	cmp	QWORD PTR ETIMEDOUT[rip], rbx
	mov	eax, ebx
	jne	.L1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	xor	eax, eax
	call	__lwp_thread_dispatchenable@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	__lwp_cond_waitsupp, .-__lwp_cond_waitsupp
	.comm	_thr_executing,8,8
	.comm	LWP_MUTEX_NULL,8,8
	.comm	ETIMEDOUT,8,8
	.comm	EINVAL,4,4
	.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_cond.c___lwp_cond_waitsupp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__lwp_cond_waitsupp, %function
__lwp_cond_waitsupp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r7, r2
	mov	r6, r3
	mov	r8, r0
	bl	__lwp_cond_open
	subs	r4, r0, #0
	beq	.L6
	ldr	r2, .L17
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r2, r3
	cmpne	r3, r5
	bne	.L15
	mov	r0, r5
	bl	LWP_MutexUnlock
	cmp	r6, #0
	beq	.L16
	bl	__lwp_thread_dispatchenable
	ldr	r3, .L17+4
	ldr	r4, [r3]
.L5:
	mov	r0, r5
	bl	LWP_MutexLock
	cmp	r0, #0
	ldrne	r3, .L17+8
	ldrne	r4, [r3]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	mov	r10, #0
	str	r5, [r4], #4
	ldr	r9, .L17+12
	mov	r0, r10
	bl	_CPU_ISR_Disable
	mov	r0, r4
	bl	__lwp_threadqueue_csenter
	ldr	r3, [r9]
	mov	r0, r10
	str	r4, [r3, #8]
	stm	r3, {r6, r8}
	bl	_CPU_ISR_Restore
	mov	r1, r7
	mov	r0, r4
	bl	__lwp_threadqueue_enqueue
	bl	__lwp_thread_dispatchenable
	ldr	r3, [r9]
	ldr	r4, [r3]
	cmp	r4, r10
	beq	.L5
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L1
	b	.L5
.L15:
	bl	__lwp_thread_dispatchenable
	ldr	r3, .L17+8
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mvn	r4, #0
	b	.L1
.L18:
	.align	2
.L17:
	.word	LWP_MUTEX_NULL
	.word	ETIMEDOUT
	.word	EINVAL
	.word	_thr_executing
	.size	__lwp_cond_waitsupp, .-__lwp_cond_waitsupp
	.comm	_thr_executing,4,4
	.comm	LWP_MUTEX_NULL,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
