	.file	"extr_blk-wbt.c_wbt_rqw_done.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wbt_rqw_done, @function
wbt_rqw_done:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	lea	rdi, 4[rsi]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	atomic_dec_return@PLT
	mov	rdi, rbp
	mov	ebx, eax
	call	rwb_enabled@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L25
	test	DWORD PTR WBT_DISCARD[rip], r13d
	jne	.L26
	cmp	QWORD PTR 8[rbp], 0
	jne	.L5
.L6:
	mov	r13d, DWORD PTR 4[rbp]
.L4:
	test	ebx, ebx
	je	.L7
.L27:
	cmp	r13d, ebx
	jg	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	r13d, DWORD PTR 0[rbp]
	test	ebx, ebx
	jne	.L27
.L7:
	mov	rdi, r12
	call	wq_has_sleeper@PLT
	test	rax, rax
	je	.L1
	test	ebx, ebx
	je	.L10
	mov	edx, DWORD PTR 0[rbp]
	sub	r13d, ebx
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	cmp	eax, r13d
	jg	.L1
.L10:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	wake_up_all@PLT
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	rwb_wake_all@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	wb_recent_wait@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L6
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	wbt_rqw_done, .-wbt_rqw_done
	.comm	WBT_DISCARD,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_blk-wbt.c_wbt_rqw_done.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wbt_rqw_done, %function
wbt_rqw_done:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	add	r0, r1, #4
	mov	r6, r1
	mov	r7, r2
	bl	atomic_dec_return
	mov	r5, r0
	mov	r0, r4
	bl	rwb_enabled
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L19
	ldr	r3, .L21
	ldr	r3, [r3]
	tst	r7, r3
	bne	.L20
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L5
.L6:
	ldr	r7, [r4, #4]
.L4:
	cmp	r7, r5
	movgt	r3, #0
	movle	r3, #1
	cmp	r5, #0
	moveq	r3, #0
	cmp	r3, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r6
	bl	wq_has_sleeper
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	cmp	r5, #0
	beq	.L10
	ldr	r3, [r4]
	sub	r5, r7, r5
	add	r3, r3, r3, lsr #31
	cmp	r5, r3, asr #1
	poplt	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	wake_up_all
.L20:
	ldr	r7, [r4]
	b	.L4
.L19:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	rwb_wake_all
.L5:
	mov	r0, r4
	bl	wb_recent_wait
	subs	r7, r0, #0
	bne	.L6
	b	.L4
.L22:
	.align	2
.L21:
	.word	WBT_DISCARD
	.size	wbt_rqw_done, .-wbt_rqw_done
	.comm	WBT_DISCARD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
