	.file	"extr_blkfront.c_xbd_startio.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"xbd_queue_request returned %d\n"
	.text
	.p2align 4
	.type	xbd_startio, @function
xbd_startio:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	add	rdi, 20
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR MA_OWNED[rip]
	call	mtx_assert@PLT
	mov	rax, QWORD PTR XBD_STATE_CONNECTED[rip]
	cmp	QWORD PTR [r12], rax
	jne	.L1
	lea	r13, 16[r12]
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, rbp
	mov	rdi, r12
	call	xbd_queue_request@PLT
	test	eax, eax
	jne	.L25
.L10:
	add	ebx, 1
.L4:
	mov	rdi, r13
	call	RING_FULL@PLT
	test	eax, eax
	jne	.L6
	cmp	QWORD PTR 8[r12], 0
	jne	.L6
	mov	esi, DWORD PTR XBD_Q_READY[rip]
	mov	rdi, r12
	call	xbd_dequeue_cm@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L26
.L7:
	mov	edx, DWORD PTR XBDCF_Q_FREEZE[rip]
	test	DWORD PTR 0[rbp], edx
	je	.L9
	mov	rsi, rbp
	mov	rdi, r12
	call	xbd_cm_freeze@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	xbd_queue_request@PLT
	test	eax, eax
	je	.L10
.L25:
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	printf@PLT
.L6:
	test	ebx, ebx
	jne	.L27
.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	rdi, r12
	call	xbd_bio_command@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L7
	test	ebx, ebx
	je	.L1
.L27:
	add	rsp, 8
	.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	xbd_flush_requests@PLT
	.cfi_endproc
.LFE0:
	.size	xbd_startio, .-xbd_startio
	.comm	XBD_STATE_CONNECTED,8,8
	.comm	XBD_Q_READY,4,4
	.comm	XBDCF_Q_FREEZE,4,4
	.comm	MA_OWNED,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_blkfront.c_xbd_startio.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"xbd_queue_request returned %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xbd_startio, %function
xbd_startio:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r3, .L27
	add	r0, r0, #12
	ldr	r1, [r3]
	bl	mtx_assert
	ldr	r3, .L27+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r6, #0
	ldr	r8, .L27+8
	ldr	r9, .L27+12
	add	r7, r5, #8
	b	.L4
.L9:
	mov	r1, r4
	mov	r0, r5
	bl	xbd_queue_request
	cmp	r0, #0
	bne	.L24
	add	r6, r6, #1
.L4:
	mov	r0, r7
	bl	RING_FULL
	cmp	r0, #0
	bne	.L6
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L6
	mov	r0, r5
	ldr	r1, [r8]
	bl	xbd_dequeue_cm
	subs	r4, r0, #0
	beq	.L25
.L7:
	ldr	r2, [r9]
	ldr	r3, [r4]
	tst	r2, r3
	beq	.L9
	mov	r1, r4
	mov	r0, r5
	bl	xbd_cm_freeze
	b	.L9
.L25:
	mov	r0, r5
	bl	xbd_bio_command
	subs	r4, r0, #0
	bne	.L7
.L6:
	cmp	r6, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	xbd_flush_requests
.L24:
	mov	r1, r0
	ldr	r0, .L27+16
	bl	printf
	cmp	r6, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	b	.L26
.L28:
	.align	2
.L27:
	.word	MA_OWNED
	.word	XBD_STATE_CONNECTED
	.word	XBD_Q_READY
	.word	XBDCF_Q_FREEZE
	.word	.LC0
	.size	xbd_startio, .-xbd_startio
	.comm	XBD_STATE_CONNECTED,4,4
	.comm	XBD_Q_READY,4,4
	.comm	XBDCF_Q_FREEZE,4,4
	.comm	MA_OWNED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
