	.file	"extr_target_core_transport.c_transport_complete_qf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	transport_complete_qf, @function
transport_complete_qf:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	transport_complete_task_attr@PLT
	mov	rax, QWORD PTR TRANSPORT_COMPLETE_QF_ERR[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L32
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR SCF_TREAT_READ_AS_NORMAL[rip], eax
	je	.L33
	mov	edx, DWORD PTR 12[rbp]
	cmp	edx, 129
	je	.L3
	cmp	edx, 130
	je	.L9
.L30:
	cmp	edx, 128
	je	.L34
.L7:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	transport_cmd_check_stop_to_fabric@PLT
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	test	DWORD PTR SCF_TRANSPORT_TASK_SENSE[rip], eax
	jne	.L3
	mov	edx, DWORD PTR 12[rbp]
	cmp	edx, 129
	je	.L3
	cmp	edx, 130
	jne	.L30
	cmp	QWORD PTR 32[rbp], 0
	je	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	trace_target_cmd_complete@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	call	[QWORD PTR 8[rax]]
.L8:
	test	eax, eax
	jns	.L7
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, rbp
	xor	ecx, ecx
	mov	edx, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	transport_handle_queue_full@PLT
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	cmp	QWORD PTR 32[rbp], 0
	jne	.L3
	mov	esi, DWORD PTR TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE[rip]
	mov	rdi, rbp
	call	translate_sense_reason@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbp
	call	trace_target_cmd_complete@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L34:
	test	DWORD PTR SCF_BIDI[rip], eax
	je	.L3
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	transport_complete_qf, .-transport_complete_qf
	.comm	TRANSPORT_COMPLETE_QF_ERR,8,8
	.comm	TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE,4,4
	.comm	SCF_TREAT_READ_AS_NORMAL,4,4
	.comm	SCF_TRANSPORT_TASK_SENSE,4,4
	.comm	SCF_BIDI,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_target_core_transport.c_transport_complete_qf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	transport_complete_qf, %function
transport_complete_qf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	transport_complete_task_attr
	ldr	r3, .L35
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L32
	ldr	r2, .L35+4
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L33
	ldr	r2, [r4, #8]
	cmp	r2, #129
	beq	.L3
	cmp	r2, #130
	beq	.L9
.L30:
	cmp	r2, #128
	beq	.L34
.L7:
	mov	r0, r4
	pop	{r4, lr}
	b	transport_cmd_check_stop_to_fabric
.L33:
	ldr	r2, .L35+8
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L3
	ldr	r2, [r4, #8]
	cmp	r2, #129
	beq	.L3
	cmp	r2, #130
	bne	.L30
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L9
.L3:
	mov	r0, r4
	bl	trace_target_cmd_complete
	ldr	r3, [r4, #16]
	mov	r0, r4
	ldr	r3, [r3, #4]
	blx	r3
.L8:
	cmp	r0, #0
	bge	.L7
	mov	r2, r0
	ldr	r1, [r4, #12]
	mov	r0, r4
	pop	{r4, lr}
	mov	r3, #0
	b	transport_handle_queue_full
.L32:
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L35+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	translate_sense_reason
	b	.L3
.L9:
	mov	r0, r4
	bl	trace_target_cmd_complete
	ldr	r3, [r4, #16]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	b	.L8
.L34:
	ldr	r2, .L35+16
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L3
	ldr	r3, [r4, #16]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	b	.L8
.L36:
	.align	2
.L35:
	.word	TRANSPORT_COMPLETE_QF_ERR
	.word	SCF_TREAT_READ_AS_NORMAL
	.word	SCF_TRANSPORT_TASK_SENSE
	.word	TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE
	.word	SCF_BIDI
	.size	transport_complete_qf, .-transport_complete_qf
	.comm	TRANSPORT_COMPLETE_QF_ERR,4,4
	.comm	TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE,4,4
	.comm	SCF_TREAT_READ_AS_NORMAL,4,4
	.comm	SCF_TRANSPORT_TASK_SENSE,4,4
	.comm	SCF_BIDI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
