	.file	"extr_scsi_lib.c_scsi_host_queue_ready.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"scsi%d unblocking host at zero depth\n"
	.text
	.p2align 4
	.type	scsi_host_queue_ready, @function
scsi_host_queue_ready:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	scsi_host_in_recovery@PLT
	test	rax, rax
	jne	.L15
	cmp	QWORD PTR [rbx], 0
	jne	.L4
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L4
	sub	rax, 1
	mov	QWORD PTR 8[rbx], rax
	je	.L17
	.p2align 4,,10
	.p2align 3
.L15:
	xor	r12d, r12d
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.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
.L17:
	.cfi_restore_state
	mov	esi, DWORD PTR 20[rbx]
	lea	rdi, .LC0[rip]
	call	printk@PLT
	mov	edi, 3
	mov	esi, eax
	call	SCSI_LOG_MLQUEUE@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbx
	call	scsi_host_is_busy@PLT
	mov	rdi, rbp
	test	rax, rax
	jne	.L18
	call	list_empty@PLT
	mov	r12d, 1
	test	rax, rax
	jne	.L1
	mov	rdi, rbp
	call	list_del_init@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.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
.L18:
	.cfi_restore_state
	call	list_empty@PLT
	test	rax, rax
	je	.L15
	lea	rsi, 16[rbx]
	mov	rdi, rbp
	call	list_add_tail@PLT
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	scsi_host_queue_ready, .-scsi_host_queue_ready
	.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_scsi_lib.c_scsi_host_queue_ready.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"scsi%d unblocking host at zero depth\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scsi_host_queue_ready, %function
scsi_host_queue_ready:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, r1
	mov	r4, r1
	mov	r6, r2
	bl	scsi_host_in_recovery
	subs	r5, r0, #0
	bne	.L5
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L4
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4, #4]
	beq	.L16
.L5:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r1, [r4, #12]
	ldr	r0, .L18
	bl	printk
	mov	r1, r0
	mov	r0, #3
	bl	SCSI_LOG_MLQUEUE
.L4:
	mov	r0, r4
	bl	scsi_host_is_busy
	cmp	r0, #0
	mov	r0, r6
	bne	.L17
	bl	list_empty
	cmp	r0, #0
	movne	r5, #1
	bne	.L1
	mov	r5, #1
	mov	r0, r6
	bl	list_del_init
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L17:
	bl	list_empty
	cmp	r0, #0
	beq	.L5
	mov	r0, r6
	add	r1, r4, #8
	bl	list_add_tail
	b	.L1
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	scsi_host_queue_ready, .-scsi_host_queue_ready
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
