	.file	"extr_be_main.c_beiscsi_offload_connection.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	beiscsi_offload_connection
	.type	beiscsi_offload_connection, @function
beiscsi_offload_connection:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r14, QWORD PTR 16[rdi]
	mov	rbx, rdi
	mov	r12, QWORD PTR 24[rdi]
	mov	rax, QWORD PTR [r14]
	mov	rbp, QWORD PTR [rax]
	mov	QWORD PTR 8[rdi], 0
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	rdi, r14
	call	beiscsi_cleanup_task@PLT
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r12
	call	alloc_wrb_handle@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	is_chip_be2_be3r@PLT
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR 8[r12]
	mov	rsi, rbp
	mov	rdi, r13
	call	beiscsi_offload_cxn_v0@PLT
.L3:
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, 4
	call	be_dws_le_to_cpu@PLT
	mov	eax, DWORD PTR DB_DEF_PDU_NUM_POSTED_SHIFT[rip]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, DWORD PTR DB_DEF_PDU_WRB_INDEX_SHIFT[rip]
	and	edi, DWORD PTR DB_WRB_POST_CID_MASK[rip]
	bts	edi, eax
	mov	eax, DWORD PTR 0[rbp]
	and	eax, DWORD PTR DB_DEF_PDU_WRB_INDEX_MASK[rip]
	sal	eax, cl
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, QWORD PTR DB_TXULP0_OFFSET[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	add	rsi, QWORD PTR [r12]
	or	edi, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	iowrite32@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r13
	call	beiscsi_offload_cxn_v2@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	beiscsi_offload_connection, .-beiscsi_offload_connection
	.comm	DB_WRB_POST_CID_MASK,4,4
	.comm	DB_TXULP0_OFFSET,8,8
	.comm	DB_DEF_PDU_WRB_INDEX_SHIFT,4,4
	.comm	DB_DEF_PDU_WRB_INDEX_MASK,4,4
	.comm	DB_DEF_PDU_NUM_POSTED_SHIFT,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_be_main.c_beiscsi_offload_connection.c"
	.text
	.align	2
	.global	beiscsi_offload_connection
	.syntax unified
	.arm
	.fpu softvfp
	.type	beiscsi_offload_connection, %function
beiscsi_offload_connection:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r8, [r0, #8]
	ldr	r6, [r0, #12]
	ldr	r2, [r8]
	mov	r7, r1
	ldr	r5, [r2]
	str	r3, [r0, #4]
	mov	r0, r5
	bl	spin_lock_bh
	mov	r0, r8
	bl	beiscsi_cleanup_task
	mov	r0, r5
	bl	spin_unlock_bh
	ldr	r1, [r4]
	mov	r0, r6
	bl	alloc_wrb_handle
	mov	r5, r0
	mov	r0, r6
	bl	is_chip_be2_be3r
	cmp	r0, #0
	mov	r0, r7
	beq	.L2
	mov	r1, r5
	ldr	r2, [r6, #4]
	bl	beiscsi_offload_cxn_v0
.L3:
	mov	r1, #4
	ldr	r0, [r5, #4]
	bl	be_dws_le_to_cpu
	mov	r1, #1
	ldr	r2, .L6
	ldr	r0, .L6+4
	ldr	r3, [r4]
	ldr	r4, [r2]
	ldr	r0, [r0]
	ldr	ip, .L6+8
	and	r3, r3, r4
	orr	r3, r3, r1, lsl r0
	ldr	r4, .L6+12
	ldr	r1, .L6+16
	ldr	lr, [ip]
	ldr	r2, [r5]
	ldr	ip, [r6]
	ldr	r0, [r4]
	ldr	r1, [r1]
	and	r2, r2, lr
	orr	r0, r3, r2, lsl r0
	add	r1, ip, r1
	pop	{r4, r5, r6, r7, r8, lr}
	b	iowrite32
.L2:
	mov	r1, r5
	bl	beiscsi_offload_cxn_v2
	b	.L3
.L7:
	.align	2
.L6:
	.word	DB_WRB_POST_CID_MASK
	.word	DB_DEF_PDU_NUM_POSTED_SHIFT
	.word	DB_DEF_PDU_WRB_INDEX_MASK
	.word	DB_DEF_PDU_WRB_INDEX_SHIFT
	.word	DB_TXULP0_OFFSET
	.size	beiscsi_offload_connection, .-beiscsi_offload_connection
	.comm	DB_WRB_POST_CID_MASK,4,4
	.comm	DB_TXULP0_OFFSET,4,4
	.comm	DB_DEF_PDU_WRB_INDEX_SHIFT,4,4
	.comm	DB_DEF_PDU_WRB_INDEX_MASK,4,4
	.comm	DB_DEF_PDU_NUM_POSTED_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
