	.file	"extr_closure.c_closure_wait.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	closure_wait
	.type	closure_wait, @function
closure_wait:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r12, 4[rsi]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rdi, r12
	mov	rbp, rsi
	call	atomic_read@PLT
	mov	r8d, eax
	xor	eax, eax
	test	DWORD PTR CLOSURE_WAITING[rip], r8d
	jne	.L1
	mov	esi, DWORD PTR _RET_IP_[rip]
	mov	rdi, rbp
	call	closure_set_waiting@PLT
	mov	eax, DWORD PTR CLOSURE_WAITING[rip]
	mov	rsi, r12
	lea	edi, 1[rax]
	call	atomic_add@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	llist_add@PLT
	mov	eax, 1
.L1:
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	closure_wait, .-closure_wait
	.comm	_RET_IP_,4,4
	.comm	CLOSURE_WAITING,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_closure.c_closure_wait.c"
	.text
	.align	2
	.global	closure_wait
	.syntax unified
	.arm
	.fpu softvfp
	.type	closure_wait, %function
closure_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	add	r6, r1, #4
	mov	r5, r0
	mov	r0, r6
	mov	r4, r1
	bl	atomic_read
	ldr	r7, .L7
	ldr	r3, [r7]
	tst	r0, r3
	beq	.L6
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, .L7+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	closure_set_waiting
	ldr	r0, [r7]
	mov	r1, r6
	add	r0, r0, #1
	bl	atomic_add
	mov	r1, r5
	mov	r0, r4
	bl	llist_add
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	CLOSURE_WAITING
	.word	_RET_IP_
	.size	closure_wait, .-closure_wait
	.comm	_RET_IP_,4,4
	.comm	CLOSURE_WAITING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
