	.file	"extr_blk-sysfs.c_queue_requests_store.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	queue_requests_store, @function
queue_requests_store:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 12[rdi]
	test	eax, eax
	jne	.L2
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbx, rdi
	mov	rdi, rsp
	call	queue_var_store@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR BLKDEV_MIN_RQ[rip]
	cmp	QWORD PTR [rsp], rax
	jnb	.L4
	mov	QWORD PTR [rsp], rax
.L4:
	mov	edi, DWORD PTR 8[rbx]
	call	spin_lock_irq@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rdi, rbx
	mov	QWORD PTR [rbx], rax
	call	blk_queue_congestion_threshold@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR BLK_RW_SYNC[rip]
	mov	rdi, rbx
	mov	ebp, DWORD PTR [rax+rdx*4]
	call	queue_congestion_on_threshold@PLT
	cmp	ebp, eax
	jl	.L5
	mov	rsi, QWORD PTR BLK_RW_SYNC[rip]
	mov	rdi, rbx
	call	blk_set_queue_congested@PLT
.L6:
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR BLK_RW_ASYNC[rip]
	mov	rdi, rbx
	mov	ebp, DWORD PTR [rax+rdx*4]
	call	queue_congestion_on_threshold@PLT
	cmp	ebp, eax
	jl	.L7
	mov	rsi, QWORD PTR BLK_RW_ASYNC[rip]
	mov	rdi, rbx
	call	blk_set_queue_congested@PLT
.L8:
	mov	rcx, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR BLK_RW_SYNC[rip]
	mov	rdx, QWORD PTR [rbx]
	movsx	rdi, DWORD PTR [rcx+rsi*4]
	mov	rax, rdi
	cmp	rdi, rdx
	jnb	.L17
	add	eax, 1
	cdqe
	cmp	rdx, rax
	jnb	.L18
.L10:
	mov	rsi, QWORD PTR BLK_RW_ASYNC[rip]
	movsx	rcx, DWORD PTR [rcx+rsi*4]
	mov	rax, rcx
	cmp	rcx, rdx
	jnb	.L19
	add	eax, 1
	cdqe
	cmp	rax, rdx
	jbe	.L20
.L12:
	mov	edi, DWORD PTR 8[rbx]
	call	spin_unlock_irq@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR BLK_RW_SYNC[rip]
	mov	rdi, rbx
	mov	ebp, DWORD PTR [rax+rdx*4]
	call	queue_congestion_off_threshold@PLT
	cmp	ebp, eax
	jge	.L6
	mov	rsi, QWORD PTR BLK_RW_SYNC[rip]
	mov	rdi, rbx
	call	blk_clear_queue_congested@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR BLK_RW_ASYNC[rip]
	mov	rdi, rbx
	mov	ebp, DWORD PTR [rax+rdx*4]
	call	queue_congestion_off_threshold@PLT
	cmp	ebp, eax
	jge	.L8
	mov	rsi, QWORD PTR BLK_RW_ASYNC[rip]
	mov	rdi, rbx
	call	blk_clear_queue_congested@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbx
	call	blk_set_queue_full@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbx
	call	blk_set_queue_full@PLT
	mov	rcx, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR [rbx]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbx
	call	blk_clear_queue_full@PLT
	mov	rax, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR BLK_RW_ASYNC[rip]
	lea	rdi, [rax+rdx*4]
	call	wake_up@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbx
	call	blk_clear_queue_full@PLT
	mov	rdx, QWORD PTR BLK_RW_SYNC[rip]
	mov	rax, QWORD PTR 24[rbx]
	lea	rdi, [rax+rdx*4]
	call	wake_up@PLT
	mov	rcx, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR [rbx]
	jmp	.L10
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	queue_requests_store, .-queue_requests_store
	.comm	EINVAL,4,4
	.comm	BLK_RW_SYNC,8,8
	.comm	BLK_RW_ASYNC,8,8
	.comm	BLKDEV_MIN_RQ,8,8
	.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-sysfs.c_queue_requests_store.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_requests_store, %function
queue_requests_store:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0, #8]
	mov	r4, r0
	ldr	r0, .L21
	sub	sp, sp, #8
	cmp	r3, #0
	ldr	r0, [r0]
	str	r0, [sp, #4]
	mov	r0,#0
	bne	.L2
	ldr	r3, .L21+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, sp
	bl	queue_var_store
	ldr	r3, .L21+8
	ldr	r2, [sp]
	ldr	r3, [r3]
	mov	r5, r0
	cmp	r2, r3
	ldr	r0, [r4, #4]
	strcc	r3, [sp]
	bl	spin_lock_irq
	ldr	r3, [sp]
	ldr	r7, .L21+12
	str	r3, [r4]
	mov	r0, r4
	bl	blk_queue_congestion_threshold
	ldr	r2, [r7]
	ldr	r3, [r4, #12]
	mov	r0, r4
	ldr	r6, [r3, r2, lsl #2]
	bl	queue_congestion_on_threshold
	cmp	r6, r0
	blt	.L5
	mov	r0, r4
	ldr	r1, [r7]
	bl	blk_set_queue_congested
.L6:
	ldr	r6, .L21+16
	ldr	r3, [r4, #12]
	ldr	r2, [r6]
	mov	r0, r4
	ldr	r8, [r3, r2, lsl #2]
	bl	queue_congestion_on_threshold
	cmp	r8, r0
	blt	.L7
	mov	r0, r4
	ldr	r1, [r6]
	bl	blk_set_queue_congested
.L8:
	ldr	r0, [r4, #12]
	ldr	r1, [r7]
	ldr	r3, [r4]
	ldr	r2, [r0, r1, lsl #2]
	cmp	r2, r3
	bcs	.L17
	add	r2, r2, #1
	cmp	r3, r2
	bcs	.L18
.L10:
	ldr	r1, [r6]
	ldr	r2, [r0, r1, lsl #2]
	cmp	r2, r3
	bcs	.L19
	add	r2, r2, #1
	cmp	r2, r3
	bls	.L20
.L12:
	ldr	r0, [r4, #4]
	bl	spin_unlock_irq
	b	.L1
.L5:
	ldr	r2, [r7]
	ldr	r3, [r4, #12]
	mov	r0, r4
	ldr	r6, [r3, r2, lsl #2]
	bl	queue_congestion_off_threshold
	cmp	r6, r0
	bge	.L6
	mov	r0, r4
	ldr	r1, [r7]
	bl	blk_clear_queue_congested
	b	.L6
.L7:
	ldr	r2, [r6]
	ldr	r3, [r4, #12]
	mov	r0, r4
	ldr	r8, [r3, r2, lsl #2]
	bl	queue_congestion_off_threshold
	cmp	r8, r0
	bge	.L8
	mov	r0, r4
	ldr	r1, [r6]
	bl	blk_clear_queue_congested
	b	.L8
.L19:
	mov	r0, r4
	bl	blk_set_queue_full
	b	.L12
.L17:
	mov	r0, r4
	bl	blk_set_queue_full
	ldr	r0, [r4, #12]
	ldr	r3, [r4]
	b	.L10
.L20:
	mov	r0, r4
	bl	blk_clear_queue_full
	ldr	r0, [r6]
	ldr	r3, [r4, #16]
	add	r0, r3, r0, lsl #2
	bl	wake_up
	b	.L12
.L18:
	mov	r0, r4
	bl	blk_clear_queue_full
	ldr	r3, [r4, #16]
	ldr	r0, [r7]
	add	r0, r3, r0, lsl #2
	bl	wake_up
	ldr	r0, [r4, #12]
	ldr	r3, [r4]
	b	.L10
.L16:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	EINVAL
	.word	BLKDEV_MIN_RQ
	.word	BLK_RW_SYNC
	.word	BLK_RW_ASYNC
	.size	queue_requests_store, .-queue_requests_store
	.comm	EINVAL,4,4
	.comm	BLK_RW_SYNC,4,4
	.comm	BLK_RW_ASYNC,4,4
	.comm	BLKDEV_MIN_RQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
