	.file	"extr_bnx2i_hwi.c_bnx2i_process_text_resp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnx2i_process_text_resp, @function
bnx2i_process_text_resp:
.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, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 24[rsi]
	mov	r13, QWORD PTR [rax]
	call	spin_lock@PLT
	mov	esi, DWORD PTR 0[rbp]
	and	esi, DWORD PTR ISCSI_LOGIN_RESPONSE_INDEX[rip]
	mov	rdi, r13
	call	iscsi_itt_to_task@PLT
	test	rax, rax
	je	.L2
	lea	r15, 16[rbx]
	mov	edx, 4
	xor	esi, esi
	mov	r14, rax
	mov	rdi, r15
	call	memset@PLT
	mov	eax, DWORD PTR 24[rbp]
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 52[rbx]
	mov	DWORD PTR 68[rbx], eax
	mov	eax, DWORD PTR 20[rbp]
	mov	QWORD PTR 56[rbx], 0
	mov	DWORD PTR 64[rbx], eax
	call	hton24@PLT
	mov	rax, QWORD PTR [r14]
	mov	edi, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR 48[rbx], eax
	call	cpu_to_be32@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	QWORD PTR 40[rbx], rax
	mov	rax, QWORD PTR [r14]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 32[rbx], eax
	call	cpu_to_be32@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	QWORD PTR 24[rbx], rax
	call	cpu_to_be32@PLT
	mov	r8, QWORD PTR [rbx]
	mov	QWORD PTR 16[rbx], rax
	movsx	rax, DWORD PTR 4[rbp]
	lea	rcx, [r8+rax*8]
	mov	rdx, rax
	mov	QWORD PTR 8[rbx], rcx
	test	al, 3
	je	.L3
	mov	esi, edx
	mov	rax, rcx
	sar	esi, 31
	shr	esi, 30
	add	edx, esi
	and	edx, 3
	sub	esi, edx
	add	esi, 3
	lea	rdx, 8[rcx+rsi*8]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	QWORD PTR [rax], 0
	add	rax, 8
	cmp	rax, rdx
	jne	.L4
	lea	rcx, 8[rcx+rsi*8]
	mov	QWORD PTR 8[rbx], rcx
.L3:
	sub	rcx, r8
	mov	rdx, r8
	mov	rsi, r15
	mov	rdi, r13
	sar	rcx, 3
	call	__iscsi_complete_pdu@PLT
.L2:
	mov	rdi, r12
	call	spin_unlock@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	bnx2i_process_text_resp, .-bnx2i_process_text_resp
	.comm	ISCSI_LOGIN_RESPONSE_INDEX,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_bnx2i_hwi.c_bnx2i_process_text_resp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2i_process_text_resp, %function
bnx2i_process_text_resp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	ldr	r3, [r1, #12]
	mov	r4, r1
	ldr	r9, [r3]
	mov	r7, r0
	bl	spin_lock
	ldr	r3, .L14
	ldr	r1, [r5]
	ldr	r3, [r3]
	mov	r0, r9
	and	r1, r1, r3
	bl	iscsi_itt_to_task
	subs	r10, r0, #0
	beq	.L2
	mov	r6, #0
	add	r8, r4, #8
	strb	r6, [r4, #8]
	strb	r6, [r8, #1]
	strb	r6, [r8, #2]
	strb	r6, [r8, #3]
	ldr	r2, [r5, #24]
	ldr	r3, [r5, #20]
	ldr	r1, [r5, #4]
	str	r2, [r4, #40]
	str	r3, [r4, #36]
	ldr	r0, [r4, #28]
	str	r6, [r4, #32]
	bl	hton24
	ldr	r3, [r10]
	ldr	r0, [r5, #16]
	ldr	r3, [r3, #4]
	str	r3, [r4, #24]
	bl	cpu_to_be32
	ldr	r3, [r10]
	str	r0, [r4, #20]
	ldr	r3, [r3]
	ldr	r0, [r5, #12]
	str	r3, [r4, #16]
	bl	cpu_to_be32
	mov	r3, r0
	ldr	r0, [r5, #8]
	str	r3, [r4, #12]
	bl	cpu_to_be32
	ldr	ip, [r5, #4]
	ldr	r2, [r4]
	ands	r1, ip, #3
	add	r3, r2, ip, lsl #2
	str	r0, [r4, #8]
	str	r3, [r4, #4]
	beq	.L3
	subs	ip, r6, ip
	and	ip, ip, #3
	rsbpl	r1, ip, #0
	rsb	r1, r1, #4
	add	r1, r3, r1, lsl #2
.L4:
	str	r6, [r3], #4
	cmp	r3, r1
	bne	.L4
	str	r3, [r4, #4]
.L3:
	sub	r3, r3, r2
	mov	r1, r8
	mov	r0, r9
	asr	r3, r3, #2
	bl	__iscsi_complete_pdu
.L2:
	mov	r0, r7
	bl	spin_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	ISCSI_LOGIN_RESPONSE_INDEX
	.size	bnx2i_process_text_resp, .-bnx2i_process_text_resp
	.comm	ISCSI_LOGIN_RESPONSE_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
