	.file	"extr_iscsi_target.c___iscsit_check_dataout_hdr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Got DataOut ITT: 0x%08x, TTT: 0x%08x, DataSN: 0x%08x, Offset: %u, Length: %u, CID: %hu\n"
	.align 8
.LC1:
	.string	"Command ITT: 0x%08x received DataOUT after last DataOUT received, dumping payload\n"
	.align 8
.LC2:
	.string	"Command ITT: 0x%08x received DataOUT for a NON-WRITE command.\n"
	.align 8
.LC3:
	.string	"DataOut Offset: %u, Length %u greater than iSCSI Command EDTL %u, protocol error.\n"
	.align 8
.LC4:
	.string	"Received unexpected unsolicited data while InitialR2T=Yes, protocol error.\n"
	.text
	.p2align 4
	.globl	__iscsit_check_dataout_hdr
	.type	__iscsit_check_dataout_hdr, @function
__iscsit_check_dataout_hdr:
.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
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [rdi]
	mov	rdi, rcx
	lea	rsi, 8[rax]
	call	atomic_long_add@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	r15d, DWORD PTR 8[r14]
	call	ntohl@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	ecx, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 12[rbp]
	push	r15
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR 16[rbp]
	mov	r8d, eax
	mov	r9, r13
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR [r12]
	pop	rcx
	.cfi_def_cfa_offset 80
	and	eax, DWORD PTR ICF_GOT_LAST_DATAOUT[rip]
	jne	.L23
	mov	r15d, eax
	mov	rax, QWORD PTR DMA_TO_DEVICE[rip]
	cmp	QWORD PTR 8[r12], rax
	je	.L3
	mov	esi, DWORD PTR 56[r12]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	pr_err@PLT
.L11:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, r13
	mov	rdi, r14
	mov	edx, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	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
	jmp	iscsit_dump_data_payload@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, r12
	call	iscsit_mod_dataout_timer@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	be32_to_cpu@PLT
	mov	rcx, QWORD PTR 24[r12]
	add	rax, r13
	cmp	rax, rcx
	jg	.L24
	cmp	QWORD PTR 48[r12], 0
	jne	.L25
	mov	eax, DWORD PTR 44[r12]
	test	DWORD PTR CMD_T_ABORTED[rip], eax
	jne	.L26
.L8:
	mov	rsi, rbp
	mov	rdi, r12
	call	iscsit_check_pre_dataout@PLT
	cmp	DWORD PTR DATAOUT_WITHIN_COMMAND_RECOVERY[rip], eax
	je	.L1
	cmp	DWORD PTR DATAOUT_CANNOT_RECOVER[rip], eax
	je	.L13
	mov	DWORD PTR [rbx], 1
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	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
.L23:
	.cfi_restore_state
	mov	esi, DWORD PTR 56[r12]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pr_err@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rax, QWORD PTR [r14]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax], 0
	jne	.L27
	mov	rax, QWORD PTR TRANSPORT_WRITE_PENDING[rip]
	xor	edi, edi
	cmp	QWORD PTR 32[r12], rax
	setne	dil
	call	WARN_ON@PLT
	mov	eax, DWORD PTR 40[r12]
	test	DWORD PTR SCF_SUPPORTED_SAM_OPCODE[rip], eax
	jne	.L8
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR ISCSI_FLAG_CMD_FINAL[rip], eax
	je	.L11
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR 4[rbp]
	mov	QWORD PTR 8[rsp], rcx
	call	be32_to_cpu@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, r13
	lea	rdi, .LC3[rip]
	mov	rsi, rax
	xor	eax, eax
	call	pr_err@PLT
	mov	esi, DWORD PTR ISCSI_REASON_BOOKMARK_INVALID[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdx, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 40
	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
	jmp	iscsit_reject_cmd@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR ISCSI_FLAG_CMD_FINAL[rip], eax
	je	.L11
	mov	eax, DWORD PTR 16[r12]
	sub	eax, 1
	mov	DWORD PTR 16[r12], eax
	test	eax, eax
	jg	.L11
.L21:
	mov	rdi, r12
	call	iscsit_stop_dataout_timer@PLT
	jmp	.L11
.L27:
	lea	rdi, .LC4[rip]
	xor	eax, eax
	mov	r15d, -1
	call	pr_err@PLT
	mov	esi, DWORD PTR TCM_UNEXPECTED_UNSOLICITED_DATA[rip]
	lea	rdi, 24[r12]
	xor	edx, edx
	call	transport_send_check_condition_and_sense@PLT
	jmp	.L1
.L13:
	or	r15d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	__iscsit_check_dataout_hdr, .-__iscsit_check_dataout_hdr
	.comm	TRANSPORT_WRITE_PENDING,8,8
	.comm	TCM_UNEXPECTED_UNSOLICITED_DATA,4,4
	.comm	SCF_SUPPORTED_SAM_OPCODE,4,4
	.comm	ISCSI_REASON_BOOKMARK_INVALID,4,4
	.comm	ISCSI_FLAG_CMD_FINAL,4,4
	.comm	ICF_GOT_LAST_DATAOUT,4,4
	.comm	DMA_TO_DEVICE,8,8
	.comm	DATAOUT_WITHIN_COMMAND_RECOVERY,4,4
	.comm	DATAOUT_CANNOT_RECOVER,4,4
	.comm	CMD_T_ABORTED,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_iscsi_target.c___iscsit_check_dataout_hdr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Got DataOut ITT: 0x%08x, TTT: 0x%08x, DataSN: 0x%08"
	.ascii	"x, Offset: %u, Length: %u, CID: %hu\012\000"
	.align	2
.LC1:
	.ascii	"Command ITT: 0x%08x received DataOUT after last Dat"
	.ascii	"aOUT received, dumping payload\012\000"
	.align	2
.LC2:
	.ascii	"Command ITT: 0x%08x received DataOUT for a NON-WRIT"
	.ascii	"E command.\012\000"
	.align	2
.LC3:
	.ascii	"DataOut Offset: %u, Length %u greater than iSCSI Co"
	.ascii	"mmand EDTL %u, protocol error.\012\000"
	.align	2
.LC4:
	.ascii	"Received unexpected unsolicited data while InitialR"
	.ascii	"2T=Yes, protocol error.\012\000"
	.text
	.align	2
	.global	__iscsit_check_dataout_hdr
	.syntax unified
	.arm
	.fpu softvfp
	.type	__iscsit_check_dataout_hdr, %function
__iscsit_check_dataout_hdr:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r1, [r0]
	sub	sp, sp, #20
	add	r1, r1, #4
	mov	r7, r0
	mov	r0, r3
	mov	r6, r3
	mov	r5, r2
	ldr	r9, [sp, #56]
	bl	atomic_long_add
	ldr	r0, [r4, #4]
	ldr	r8, [r4, #16]
	ldr	r10, [r4, #12]
	ldr	fp, [r4, #8]
	bl	ntohl
	ldr	ip, [r7, #4]
	mov	r3, fp
	mov	r1, r8
	stm	sp, {r0, r6, ip}
	mov	r2, r10
	ldr	r0, .L28
	bl	pr_debug
	ldr	r3, .L28+4
	ldr	r0, [r5]
	ldr	r3, [r3]
	ands	r8, r0, r3
	bne	.L23
	ldr	r3, .L28+8
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
	ldr	r1, [r5, #32]
	ldr	r0, .L28+12
	bl	pr_err
.L11:
	mov	r1, r6
	mov	r0, r7
	mov	r2, #1
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	iscsit_dump_data_payload
.L3:
	mov	r0, r5
	bl	iscsit_mod_dataout_timer
	ldr	r0, [r4, #4]
	bl	be32_to_cpu
	ldr	r3, [r5, #12]
	add	r0, r0, r6
	cmp	r0, r3
	bgt	.L24
	ldr	r3, [r5, #28]
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L28+16
	ldr	r2, [r5, #24]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L26
.L8:
	mov	r1, r4
	mov	r0, r5
	bl	iscsit_check_pre_dataout
	ldr	r3, .L28+20
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L1
	ldr	r3, .L28+24
	ldr	r3, [r3]
	cmp	r3, r0
	movne	r3, #1
	mvneq	r8, #0
	strne	r3, [r9]
.L1:
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	ldr	r1, [r5, #32]
	ldr	r0, .L28+28
	bl	pr_err
	b	.L11
.L25:
	ldr	r3, [r7]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L28+32
	ldr	r0, [r5, #16]
	ldr	r3, [r3]
	subs	r0, r0, r3
	movne	r0, #1
	bl	WARN_ON
	ldr	r3, .L28+36
	ldr	r2, [r5, #20]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L8
	ldr	r3, .L28+40
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L11
	b	.L21
.L24:
	ldr	r0, [r4, #4]
	bl	be32_to_cpu
	mov	r2, r6
	mov	r1, r0
	ldr	r3, [r5, #12]
	ldr	r0, .L28+44
	bl	pr_err
	mov	r2, r4
	mov	r0, r5
	ldr	r3, .L28+48
	ldr	r1, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	iscsit_reject_cmd
.L26:
	ldr	r3, .L28+40
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L11
	ldr	r3, [r5, #8]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r5, #8]
	bgt	.L11
.L21:
	mov	r0, r5
	bl	iscsit_stop_dataout_timer
	b	.L11
.L27:
	ldr	r0, .L28+52
	bl	pr_err
	ldr	r3, .L28+56
	mov	r2, r8
	ldr	r1, [r3]
	add	r0, r5, #12
	bl	transport_send_check_condition_and_sense
	mvn	r8, #0
	b	.L1
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	ICF_GOT_LAST_DATAOUT
	.word	DMA_TO_DEVICE
	.word	.LC2
	.word	CMD_T_ABORTED
	.word	DATAOUT_WITHIN_COMMAND_RECOVERY
	.word	DATAOUT_CANNOT_RECOVER
	.word	.LC1
	.word	TRANSPORT_WRITE_PENDING
	.word	SCF_SUPPORTED_SAM_OPCODE
	.word	ISCSI_FLAG_CMD_FINAL
	.word	.LC3
	.word	ISCSI_REASON_BOOKMARK_INVALID
	.word	.LC4
	.word	TCM_UNEXPECTED_UNSOLICITED_DATA
	.size	__iscsit_check_dataout_hdr, .-__iscsit_check_dataout_hdr
	.comm	TRANSPORT_WRITE_PENDING,4,4
	.comm	TCM_UNEXPECTED_UNSOLICITED_DATA,4,4
	.comm	SCF_SUPPORTED_SAM_OPCODE,4,4
	.comm	ISCSI_REASON_BOOKMARK_INVALID,4,4
	.comm	ISCSI_FLAG_CMD_FINAL,4,4
	.comm	ICF_GOT_LAST_DATAOUT,4,4
	.comm	DMA_TO_DEVICE,4,4
	.comm	DATAOUT_WITHIN_COMMAND_RECOVERY,4,4
	.comm	DATAOUT_CANNOT_RECOVER,4,4
	.comm	CMD_T_ABORTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
