	.file	"extr_aio.c_put_reqs_available.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	put_reqs_available, @function
put_reqs_available:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	local_irq_save@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	this_cpu_ptr@PLT
	mov	edi, DWORD PTR 0[rbp]
	add	ebx, DWORD PTR [rax]
	mov	r12, rax
	mov	DWORD PTR [rax], ebx
	mov	esi, ebx
	lea	eax, [rdi+rdi]
	lea	rbx, 4[rbp]
	cmp	esi, eax
	jl	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	sub	esi, edi
	mov	DWORD PTR [r12], esi
	mov	rsi, rbx
	call	atomic_add@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR [r12]
	lea	eax, [rdi+rdi]
	cmp	esi, eax
	jge	.L3
.L4:
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	edi, edi
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	local_irq_restore@PLT
	.cfi_endproc
.LFE0:
	.size	put_reqs_available, .-put_reqs_available
	.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_aio.c_put_reqs_available.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	put_reqs_available, %function
put_reqs_available:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	r0, #0
	mov	r4, r1
	bl	local_irq_save
	ldr	r0, [r6, #8]
	bl	this_cpu_ptr
	mov	r5, r0
	ldr	r3, [r0]
	ldr	r0, [r6]
	add	r3, r4, r3
	cmp	r3, r0, lsl #1
	str	r3, [r5]
	addge	r4, r6, #4
	blt	.L4
.L3:
	sub	r3, r3, r0
	str	r3, [r5]
	mov	r1, r4
	bl	atomic_add
	ldr	r3, [r5]
	ldr	r0, [r6]
	cmp	r3, r0, lsl #1
	bge	.L3
.L4:
	pop	{r4, r5, r6, lr}
	mov	r0, #0
	b	local_irq_restore
	.size	put_reqs_available, .-put_reqs_available
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
