	.file	"extr_blk-exec.c_blk_execute_rq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	blk_execute_rq
	.type	blk_execute_rq, @function
blk_execute_rq:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14d, ecx
	push	r13
	.cfi_offset 13, -40
	mov	r13, rsi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	mov	edi, DWORD PTR wait[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	DECLARE_COMPLETION_ONSTACK@PLT
	movsx	rax, DWORD PTR SCSI_SENSE_BUFFERSIZE[rip]
	mov	rcx, rsp
	mov	r8, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L14:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L14
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L15
.L4:
	add	DWORD PTR 32[rbx], 1
	cmp	QWORD PTR [rbx], 0
	jne	.L5
	mov	edx, r8d
	xor	esi, esi
	mov	rdi, rsp
	call	memset@PLT
	mov	QWORD PTR [rbx], rsp
	mov	QWORD PTR 24[rbx], 0
.L5:
	lea	r15, wait[rip]
	mov	ecx, r14d
	mov	rdx, rbx
	mov	rsi, r13
	mov	QWORD PTR 16[rbx], r15
	mov	r8d, DWORD PTR blk_end_sync_rq[rip]
	mov	rdi, r12
	call	blk_execute_rq_nowait@PLT
	mov	rdi, r15
	call	wait_for_completion@PLT
	xor	eax, eax
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	mov	rsi, QWORD PTR -56[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L16
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	blk_execute_rq, .-blk_execute_rq
	.comm	wait,4,4
	.comm	blk_end_sync_rq,4,4
	.comm	SCSI_SENSE_BUFFERSIZE,4,4
	.comm	EIO,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-exec.c_blk_execute_rq.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	blk_execute_rq
	.syntax unified
	.arm
	.fpu softvfp
	.type	blk_execute_rq, %function
blk_execute_rq:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	mov	r4, r2
	ldr	r8, .L12
	mov	r7, r3
	ldr	r3, .L12+4
	mov	r5, r0
	ldr	r0, [r8]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r6, r1
	bl	DECLARE_COMPLETION_ONSTACK
	ldr	r2, .L12+8
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	ldr	r9, [r4]
	add	r0, r2, #7
	bic	r0, r0, #7
	add	r3, r3, #1
	cmp	r9, #0
	sub	sp, sp, r0
	str	r3, [r4, #16]
	beq	.L10
.L2:
	ldr	r3, .L12+12
	mov	r1, r6
	ldr	r2, [r3]
	str	r8, [r4, #8]
	mov	r3, r7
	str	r2, [sp]
	mov	r0, r5
	mov	r2, r4
	bl	blk_execute_rq_nowait
	ldr	r0, .L12
	bl	wait_for_completion
	ldr	r0, [r4, #4]
	cmp	r0, #0
	ldrne	r3, .L12+16
	ldrne	r0, [r3]
	ldr	r3, .L12+4
	rsbne	r0, r0, #0
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L10:
	add	r3, sp, #8
	mov	r1, r9
	mov	r0, r3
	bl	memset
	str	r9, [r4, #12]
	str	r0, [r4]
	b	.L2
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	wait
	.word	.LC0
	.word	SCSI_SENSE_BUFFERSIZE
	.word	blk_end_sync_rq
	.word	EIO
	.size	blk_execute_rq, .-blk_execute_rq
	.comm	wait,4,4
	.comm	blk_end_sync_rq,4,4
	.comm	SCSI_SENSE_BUFFERSIZE,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
