	.file	"extr_mqueue.c_pipelined_receive.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pipelined_receive, @function
pipelined_receive:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR SEND[rip]
	call	wq_get_first_waiter@PLT
	test	rax, rax
	je	.L6
	mov	edi, DWORD PTR 12[rax]
	mov	rsi, rbp
	mov	rbx, rax
	call	msg_insert@PLT
	test	rax, rax
	je	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, 8[rbx]
	call	list_del@PLT
	mov	eax, DWORD PTR STATE_PENDING[rip]
	mov	edi, DWORD PTR 4[rbx]
	mov	DWORD PTR [rbx], eax
	call	wake_up_process@PLT
	xor	eax, eax
	call	smp_wmb@PLT
	mov	eax, DWORD PTR STATE_READY[rip]
	mov	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	wake_up_interruptible@PLT
	.cfi_endproc
.LFE0:
	.size	pipelined_receive, .-pipelined_receive
	.comm	STATE_READY,4,4
	.comm	STATE_PENDING,4,4
	.comm	SEND,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_mqueue.c_pipelined_receive.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pipelined_receive, %function
pipelined_receive:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r5, r0
	bl	wq_get_first_waiter
	subs	r4, r0, #0
	beq	.L6
	mov	r1, r5
	ldr	r0, [r4, #12]
	bl	msg_insert
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	add	r0, r4, #8
	bl	list_del
	ldr	r3, .L7+4
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	str	r3, [r4]
	bl	wake_up_process
	bl	smp_wmb
	ldr	r3, .L7+8
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	wake_up_interruptible
.L8:
	.align	2
.L7:
	.word	SEND
	.word	STATE_PENDING
	.word	STATE_READY
	.size	pipelined_receive, .-pipelined_receive
	.comm	STATE_READY,4,4
	.comm	STATE_PENDING,4,4
	.comm	SEND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
