	.file	"extr_target_core_transport.c_transport_generic_new_cmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Handling write_pending QUEUE__FULL: se_cmd: %p\n"
	.text
	.p2align 4
	.globl	transport_generic_new_cmd
	.type	transport_generic_new_cmd, @function
transport_generic_new_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC[rip], eax
	jne	.L2
	cmp	QWORD PTR 40[rdi], 0
	jne	.L11
.L2:
	lea	rdi, 36[rbp]
	call	atomic_inc@PLT
	mov	rdi, rbp
	call	target_add_to_state_list@PLT
	mov	rax, QWORD PTR DMA_TO_DEVICE[rip]
	cmp	QWORD PTR 8[rbp], rax
	jne	.L12
	lea	r12, 32[rbp]
	mov	rdi, r12
	call	spin_lock_irq@PLT
	mov	eax, DWORD PTR TRANSPORT_WRITE_PENDING[rip]
	mov	rdi, r12
	mov	DWORD PTR 20[rbp], eax
	call	spin_unlock_irq@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	transport_cmd_check_stop@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	add	eax, DWORD PTR EAGAIN[rip]
	je	.L5
	mov	eax, r12d
	add	eax, DWORD PTR ENOMEM[rip]
	je	.L5
	mov	edi, r12d
	call	WARN_ON@PLT
	test	r12d, r12d
	cmovne	r12d, DWORD PTR TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	xor	r12d, r12d
	call	target_execute_cmd@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	transport_generic_get_mem@PLT
	mov	r12d, DWORD PTR TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE[rip]
	test	eax, eax
	jns	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	xor	r12d, r12d
	call	pr_debug@PLT
	mov	eax, DWORD PTR TRANSPORT_COMPLETE_QF_WP[rip]
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, rbp
	mov	DWORD PTR 20[rbp], eax
	call	transport_handle_queue_full@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	transport_generic_new_cmd, .-transport_generic_new_cmd
	.comm	TRANSPORT_WRITE_PENDING,4,4
	.comm	TRANSPORT_COMPLETE_QF_WP,4,4
	.comm	TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE,4,4
	.comm	SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC,4,4
	.comm	ENOMEM,4,4
	.comm	EAGAIN,4,4
	.comm	DMA_TO_DEVICE,8,8
	.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_target_core_transport.c_transport_generic_new_cmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Handling write_pending QUEUE__FULL: se_cmd: %p\012\000"
	.text
	.align	2
	.global	transport_generic_new_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	transport_generic_new_cmd, %function
transport_generic_new_cmd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L18
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	tst	r2, r3
	mov	r4, r0
	bne	.L2
	ldr	r3, [r0, #28]
	cmp	r3, #0
	bne	.L16
.L2:
	add	r0, r4, #24
	bl	atomic_inc
	mov	r0, r4
	bl	target_add_to_state_list
	ldr	r3, .L18+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L17
	add	r5, r4, #20
	mov	r0, r5
	bl	spin_lock_irq
	ldr	r3, .L18+8
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [r4, #12]
	bl	spin_unlock_irq
	mov	r1, #0
	mov	r0, r4
	bl	transport_cmd_check_stop
	ldr	r3, [r4, #16]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	ldr	r3, .L18+12
	mov	r5, r0
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L5
	ldr	r3, .L18+16
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L5
	bl	WARN_ON
	cmp	r5, #0
	beq	.L1
.L14:
	ldr	r3, .L18+20
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L17:
	mov	r0, r4
	bl	target_execute_cmd
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L16:
	bl	transport_generic_get_mem
	cmp	r0, #0
	bge	.L2
	b	.L14
.L5:
	mov	r5, #0
	mov	r1, r4
	ldr	r0, .L18+24
	bl	pr_debug
	ldr	r3, .L18+28
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r1, [r4, #8]
	str	r3, [r4, #12]
	bl	transport_handle_queue_full
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L19:
	.align	2
.L18:
	.word	SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC
	.word	DMA_TO_DEVICE
	.word	TRANSPORT_WRITE_PENDING
	.word	EAGAIN
	.word	ENOMEM
	.word	TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE
	.word	.LC0
	.word	TRANSPORT_COMPLETE_QF_WP
	.size	transport_generic_new_cmd, .-transport_generic_new_cmd
	.comm	TRANSPORT_WRITE_PENDING,4,4
	.comm	TRANSPORT_COMPLETE_QF_WP,4,4
	.comm	TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE,4,4
	.comm	SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC,4,4
	.comm	ENOMEM,4,4
	.comm	EAGAIN,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
