	.file	"extr_virtio_blk.c_virtblk_add_req.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	virtblk_add_req, @function
virtblk_add_req:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	mov	edx, 4
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	add	rsi, 4
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r14, 8[rsp]
	mov	rdi, r14
	call	sg_init_one@PLT
	mov	QWORD PTR 16[rsp], r14
	test	r12d, r12d
	jne	.L8
	mov	r15d, 1
	mov	r12d, 1
	mov	r14d, 1
.L2:
	lea	r13, 12[rsp]
	mov	edx, 4
	mov	rsi, rbx
	mov	rdi, r13
	call	sg_init_one@PLT
	mov	ecx, r15d
	lea	rsi, 16[rsp]
	mov	r8, rbx
	mov	r9d, DWORD PTR GFP_ATOMIC[rip]
	mov	edx, r14d
	mov	rdi, rbp
	mov	QWORD PTR 16[rsp+r12*8], r13
	call	virtqueue_add_sgs@PLT
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR VIRTIO_BLK_T_OUT[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	r12d, DWORD PTR 4[rbx]
	call	cpu_to_virtio32@PLT
	mov	QWORD PTR 24[rsp], r13
	test	r12d, eax
	je	.L3
	mov	r15d, 1
	mov	r12d, 2
	mov	r14d, 2
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r15d, 2
	mov	r12d, 2
	mov	r14d, 1
	jmp	.L2
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	virtblk_add_req, .-virtblk_add_req
	.comm	VIRTIO_BLK_T_OUT,4,4
	.comm	GFP_ATOMIC,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_virtio_blk.c_virtblk_add_req.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	virtblk_add_req, %function
virtblk_add_req:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r3
	sub	sp, sp, #36
	add	r7, sp, #8
	ldr	r3, .L10
	mov	r4, r1
	mov	r5, r0
	mov	r8, r2
	mov	r0, r7
	mov	r2, #4
	add	r1, r1, #4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	sg_init_one
	cmp	r6, #0
	str	r7, [sp, #16]
	moveq	r7, #1
	moveq	r6, r7
	moveq	r9, r7
	bne	.L8
.L2:
	add	r8, sp, #12
	mov	r2, #4
	mov	r1, r4
	mov	r0, r8
	bl	sg_init_one
	ldr	r3, .L10+4
	add	r2, sp, #32
	ldr	r1, [r3]
	add	r6, r2, r6, lsl #2
	str	r1, [sp, #4]
	mov	r3, r7
	mov	r2, r9
	str	r4, [sp]
	mov	r0, r5
	add	r1, sp, #16
	str	r8, [r6, #-16]
	bl	virtqueue_add_sgs
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L8:
	ldr	r3, .L10+8
	ldr	r0, [r5]
	ldr	r1, [r3]
	ldr	r6, [r4, #4]
	bl	cpu_to_virtio32
	tst	r6, r0
	movne	r6, #2
	moveq	r7, #2
	movne	r9, r6
	movne	r7, #1
	moveq	r6, r7
	moveq	r9, #1
	strne	r8, [sp, #20]
	streq	r8, [sp, #20]
	b	.L2
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	GFP_ATOMIC
	.word	VIRTIO_BLK_T_OUT
	.size	virtblk_add_req, .-virtblk_add_req
	.comm	VIRTIO_BLK_T_OUT,4,4
	.comm	GFP_ATOMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
