	.file	"extr_wait.c_prepare_to_wait_exclusive.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	prepare_to_wait_exclusive
	.type	prepare_to_wait_exclusive, @function
prepare_to_wait_exclusive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	eax, DWORD PTR WQ_FLAG_EXCLUSIVE[rip]
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	or	DWORD PTR 4[rsi], eax
	xor	esi, esi
	call	spin_lock_irqsave@PLT
	mov	rdi, rbp
	call	list_empty@PLT
	test	rax, rax
	jne	.L8
.L2:
	mov	edi, r13d
	call	set_current_state@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	xor	esi, esi
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	call	__add_wait_queue_entry_tail@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	prepare_to_wait_exclusive, .-prepare_to_wait_exclusive
	.comm	WQ_FLAG_EXCLUSIVE,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_wait.c_prepare_to_wait_exclusive.c"
	.text
	.align	2
	.global	prepare_to_wait_exclusive
	.syntax unified
	.arm
	.fpu softvfp
	.type	prepare_to_wait_exclusive, %function
prepare_to_wait_exclusive:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r1, .L9
	ldr	r3, [r4, #4]
	ldr	r1, [r1]
	mov	r6, r2
	orr	r3, r3, r1
	str	r3, [r4, #4]
	mov	r1, #0
	mov	r5, r0
	bl	spin_lock_irqsave
	mov	r0, r4
	bl	list_empty
	cmp	r0, #0
	bne	.L8
.L2:
	mov	r0, r6
	bl	set_current_state
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L8:
	mov	r1, r4
	mov	r0, r5
	bl	__add_wait_queue_entry_tail
	b	.L2
.L10:
	.align	2
.L9:
	.word	WQ_FLAG_EXCLUSIVE
	.size	prepare_to_wait_exclusive, .-prepare_to_wait_exclusive
	.comm	WQ_FLAG_EXCLUSIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
