	.file	"extr_NCR5380.c_generic_NCR5380_queue_command.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"head"
.LC1:
	.string	"tail"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"command %p added to %s of queue\n"
	.text
	.p2align 4
	.type	NCR5380_queue_command, @function
NCR5380_queue_command:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	call	shost_priv@PLT
	mov	rdi, r12
	mov	r13, rax
	call	scsi_cmd_priv@PLT
	mov	rdi, rbp
	mov	DWORD PTR 8[r12], 0
	mov	r14, rax
	call	NCR5380_acquire_dma_irq@PLT
	test	eax, eax
	jne	.L2
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR SCSI_MLQUEUE_HOST_BUSY[rip]
	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
.L2:
	.cfi_restore_state
	lea	r15, 8[r13]
	xor	esi, esi
	mov	rdi, r15
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR [r12]
	lea	rsi, 12[r13]
	mov	rdi, r14
	mov	edx, DWORD PTR REQUEST_SENSE[rip]
	cmp	DWORD PTR [rax], edx
	je	.L10
	call	list_add_tail@PLT
.L5:
	xor	esi, esi
	mov	rdi, r15
	call	spin_unlock_irqrestore@PLT
	mov	rax, QWORD PTR [r12]
	mov	rsi, rbp
	mov	ecx, DWORD PTR REQUEST_SENSE[rip]
	lea	r8, .LC0[rip]
	mov	edi, DWORD PTR NDEBUG_QUEUES[rip]
	lea	rdx, .LC2[rip]
	cmp	DWORD PTR [rax], ecx
	lea	rax, .LC1[rip]
	mov	rcx, r12
	cmovne	r8, rax
	call	dsprintk@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	rsi, r13
	call	queue_work@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L10:
	.cfi_restore_state
	call	list_add@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	NCR5380_queue_command, .-NCR5380_queue_command
	.comm	SCSI_MLQUEUE_HOST_BUSY,4,4
	.comm	REQUEST_SENSE,4,4
	.comm	NDEBUG_QUEUES,4,4
	.comm	KERN_DEBUG,4,4
	.comm	DID_ERROR,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_NCR5380.c_generic_NCR5380_queue_command.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"head\000"
	.align	2
.LC1:
	.ascii	"tail\000"
	.align	2
.LC2:
	.ascii	"command %p added to %s of queue\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	NCR5380_queue_command, %function
NCR5380_queue_command:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r4, r1
	mov	r5, r0
	bl	shost_priv
	mov	r6, r0
	mov	r0, r4
	bl	scsi_cmd_priv
	mov	r2, #0
	mov	r7, r0
	str	r2, [r4, #4]
	mov	r0, r5
	bl	NCR5380_acquire_dma_irq
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L11
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	add	r9, r6, #8
	mov	r1, #0
	mov	r0, r9
	bl	spin_lock_irqsave
	ldr	r8, .L11+4
	ldr	r2, [r4]
	ldr	r3, [r8]
	ldr	r2, [r2]
	mov	r0, r7
	cmp	r2, r3
	add	r1, r6, #12
	beq	.L10
	bl	list_add_tail
.L5:
	mov	r0, r9
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, [r4]
	ldr	r0, [r8]
	ldr	ip, [r3]
	ldr	r3, .L11+8
	cmp	ip, r0
	ldr	r2, .L11+12
	movne	r2, r3
	ldr	r0, .L11+16
	str	r2, [sp]
	mov	r1, r5
	mov	r3, r4
	ldr	r2, .L11+20
	ldr	r0, [r0]
	bl	dsprintk
	mov	r1, r6
	ldr	r0, [r6, #4]
	bl	queue_work
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	bl	list_add
	b	.L5
.L12:
	.align	2
.L11:
	.word	SCSI_MLQUEUE_HOST_BUSY
	.word	REQUEST_SENSE
	.word	.LC1
	.word	.LC0
	.word	NDEBUG_QUEUES
	.word	.LC2
	.size	NCR5380_queue_command, .-NCR5380_queue_command
	.comm	SCSI_MLQUEUE_HOST_BUSY,4,4
	.comm	REQUEST_SENSE,4,4
	.comm	NDEBUG_QUEUES,4,4
	.comm	KERN_DEBUG,4,4
	.comm	DID_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
