	.file	"extr_cnic.c_cnic_bnx2x_fcoe_ofld1.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fcoe_offload size too big\n"
	.text
	.p2align 4
	.type	cnic_bnx2x_fcoe_ofld1, @function
cnic_bnx2x_fcoe_ofld1:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	r13, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR 4[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	cmp	r12d, 3
	jle	.L22
	mov	rbp, rax
	mov	rax, QWORD PTR 8[rbx]
	mov	r12, QWORD PTR [rbx]
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR 24[rbx]
	mov	DWORD PTR [r15], 4
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR [r12]
	cmp	DWORD PTR [r14], eax
	jg	.L23
.L5:
	lea	rbx, 64[rsp]
	mov	edx, 28
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	eax, DWORD PTR FCOE_KCQE_OPCODE_OFFLOAD_CONN[rip]
	mov	esi, DWORD PTR CNIC_ULP_FCOE[rip]
	mov	rdi, r14
	lea	rdx, 96[rsp]
	mov	ecx, 1
	mov	DWORD PTR 72[rsp], eax
	mov	eax, DWORD PTR [r12]
	xor	r12d, r12d
	mov	QWORD PTR 96[rsp], rbx
	mov	DWORD PTR 64[rsp], eax
	mov	eax, DWORD PTR FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE[rip]
	mov	DWORD PTR 68[rsp], eax
	call	cnic_reply_bnx2x_kcqes@PLT
.L1:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	add	eax, DWORD PTR BNX2X_FCOE_L5_CID_BASE[rip]
	mov	edi, DWORD PTR CTX_FL_OFFLD_START[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR 0[r13]
	mov	r15, rdx
	lea	rbx, [rax+rdx*8]
	lea	rax, 4[rbx]
	mov	rsi, rax
	mov	QWORD PTR 24[rsp], rax
	call	test_bit@PLT
	test	rax, rax
	jne	.L5
	mov	esi, r15d
	mov	rdi, r14
	call	cnic_alloc_bnx2x_conn_resc@PLT
	test	eax, eax
	jne	.L5
	mov	ebx, DWORD PTR [rbx]
	lea	rcx, 56[rsp]
	mov	edx, 1
	mov	rdi, r14
	mov	esi, ebx
	call	cnic_get_bnx2x_ctx@PLT
	test	rax, rax
	mov	QWORD PTR 32[rsp], rax
	je	.L7
	mov	esi, ebx
	mov	rdi, rbp
	call	BNX2X_HW_CID@PLT
	mov	edx, DWORD PTR FCOE_CONNECTION_TYPE[rip]
	mov	esi, DWORD PTR CDU_REGION_NUMBER_XCM_AG[rip]
	mov	edi, eax
	mov	DWORD PTR 44[rsp], eax
	call	CDU_RSRVD_VALUE_TYPE_A@PLT
	mov	rcx, QWORD PTR 32[rsp]
	mov	edx, DWORD PTR FCOE_CONNECTION_TYPE[rip]
	mov	esi, DWORD PTR CDU_REGION_NUMBER_UCM_AG[rip]
	mov	edi, DWORD PTR 44[rsp]
	mov	DWORD PTR 4[rcx], eax
	call	CDU_RSRVD_VALUE_TYPE_A@PLT
	mov	rcx, QWORD PTR 32[rsp]
	mov	DWORD PTR [rcx], eax
.L7:
	cmp	DWORD PTR CNIC_KWQ16_DATA_SIZE[rip], 27
	jbe	.L25
	lea	r8, 60[rsp]
	mov	rdi, r13
	mov	esi, r15d
	mov	rdx, r8
	mov	QWORD PTR 32[rsp], r8
	call	cnic_get_kwqe_16_data@PLT
	mov	r13, rax
	test	rax, rax
	je	.L9
	mov	edx, 28
	xor	esi, esi
	mov	rdi, rax
	call	memset@PLT
	mov	rsi, r12
	lea	rdi, 24[r13]
	mov	edx, 4
	call	memcpy@PLT
	mov	rsi, QWORD PTR [rsp]
	lea	rdi, 20[r13]
	mov	edx, 4
	call	memcpy@PLT
	mov	rsi, QWORD PTR 8[rsp]
	lea	rdi, 16[r13]
	mov	edx, 4
	call	memcpy@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	edx, 4
	lea	rdi, 12[r13]
	call	memcpy@PLT
	mov	esi, ebx
	mov	rdi, rbp
	call	BNX2X_HW_CID@PLT
	mov	r8, QWORD PTR 32[rsp]
	mov	ecx, DWORD PTR FCOE_CONNECTION_TYPE[rip]
	mov	rdi, r14
	mov	esi, DWORD PTR FCOE_RAMROD_CMD_ID_OFFLOAD_CONN[rip]
	mov	edx, eax
	call	cnic_submit_kwqe_16@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rsi, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR CTX_FL_OFFLD_START[rip]
	call	set_bit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	DWORD PTR [r15], r12d
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, DWORD PTR 4[r14]
	lea	rsi, .LC0[rip]
	call	netdev_err@PLT
.L9:
	cmp	ebx, -1
	je	.L5
	mov	esi, r15d
	mov	rdi, r14
	call	cnic_free_bnx2x_conn_resc@PLT
	jmp	.L5
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cnic_bnx2x_fcoe_ofld1, .-cnic_bnx2x_fcoe_ofld1
	.comm	FCOE_RAMROD_CMD_ID_OFFLOAD_CONN,4,4
	.comm	FCOE_KCQE_OPCODE_OFFLOAD_CONN,4,4
	.comm	FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE,4,4
	.comm	FCOE_CONNECTION_TYPE,4,4
	.comm	EINVAL,4,4
	.comm	CTX_FL_OFFLD_START,4,4
	.comm	CNIC_ULP_FCOE,4,4
	.comm	CNIC_KWQ16_DATA_SIZE,4,4
	.comm	CDU_REGION_NUMBER_XCM_AG,4,4
	.comm	CDU_REGION_NUMBER_UCM_AG,4,4
	.comm	BNX2X_FCOE_L5_CID_BASE,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_cnic.c_cnic_bnx2x_fcoe_ofld1.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fcoe_offload size too big\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cnic_bnx2x_fcoe_ofld1, %function
cnic_bnx2x_fcoe_ofld1:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	mov	r7, r2
	mov	r9, r3
	ldr	r3, .L26
	sub	sp, sp, #76
	ldr	r0, [r0, #4]
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	ldr	r8, [r4, #8]
	bl	netdev_priv
	cmp	r7, #3
	ble	.L22
	ldm	r6, {r7, fp}
	mov	r3, #4
	ldr	r2, [r6, #8]
	str	r2, [sp, #8]
	ldr	r2, [r6, #12]
	str	r3, [r9]
	ldr	r6, [r7]
	ldr	r3, [r4]
	str	r2, [sp, #12]
	cmp	r3, r6
	bgt	.L23
.L5:
	mov	r2, #0
	ldr	r1, .L26+4
	ldr	r0, .L26+8
	str	r2, [sp, #36]
	str	r2, [sp, #40]
	ldr	ip, [r1]
	str	r2, [sp, #48]
	str	r2, [sp, #52]
	str	r2, [sp, #56]
	str	r2, [sp, #60]
	ldr	r1, .L26+12
	ldr	r5, [r7]
	ldr	lr, [r0]
	add	r3, sp, #36
	mov	r0, r4
	str	r3, [sp, #64]
	mov	r4, r2
	mov	r3, #1
	ldr	r1, [r1]
	add	r2, sp, #64
	str	r5, [sp, #36]
	str	lr, [sp, #44]
	str	ip, [sp, #40]
	bl	cnic_reply_bnx2x_kcqes
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	ldr	r3, .L26+16
	ldr	r10, [r8]
	ldr	r3, [r3]
	mov	r5, r0
	add	r6, r6, r3
	add	r9, r10, r6, lsl #3
	ldr	r3, .L26+20
	add	r9, r9, #4
	mov	r1, r9
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L5
	mov	r1, r6
	mov	r0, r4
	bl	cnic_alloc_bnx2x_conn_resc
	cmp	r0, #0
	bne	.L5
	ldr	r10, [r10, r6, lsl #3]
	add	r3, sp, #28
	mov	r1, r10
	mov	r2, #1
	mov	r0, r4
	bl	cnic_get_bnx2x_ctx
	subs	r3, r0, #0
	str	r3, [sp, #16]
	beq	.L7
	mov	r1, r10
	mov	r0, r5
	bl	BNX2X_HW_CID
	ldr	r3, .L26+24
	ldr	r2, .L26+28
	ldr	r1, [r3]
	ldr	r2, [r2]
	str	r0, [sp, #20]
	bl	CDU_RSRVD_VALUE_TYPE_A
	mov	ip, r0
	ldr	r3, [sp, #20]
	ldr	r1, .L26+32
	mov	r0, r3
	ldr	r2, .L26+28
	ldr	r3, [sp, #16]
	ldr	r2, [r2]
	str	ip, [r3, #4]
	ldr	r1, [r1]
	bl	CDU_RSRVD_VALUE_TYPE_A
	ldr	r3, [sp, #16]
	str	r0, [r3]
.L7:
	ldr	r3, .L26+36
	ldr	r3, [r3]
	cmp	r3, #27
	bls	.L25
	mov	r0, r8
	mov	r1, r6
	add	r2, sp, #32
	bl	cnic_get_kwqe_16_data
	subs	r8, r0, #0
	beq	.L9
	mov	r2, #28
	mov	r1, #0
	bl	memset
	mov	r1, r7
	mov	r2, #4
	add	r0, r8, #24
	bl	memcpy
	mov	r1, fp
	mov	r2, #4
	add	r0, r8, #20
	bl	memcpy
	mov	r2, #4
	ldr	r1, [sp, #8]
	add	r0, r8, #16
	bl	memcpy
	mov	r2, #4
	ldr	r1, [sp, #12]
	add	r0, r8, #12
	bl	memcpy
	mov	r1, r10
	mov	r0, r5
	bl	BNX2X_HW_CID
	ldr	r3, .L26+28
	mov	r2, r0
	ldr	r1, .L26+40
	add	r0, sp, #32
	str	r0, [sp]
	ldr	r3, [r3]
	mov	r0, r4
	ldr	r1, [r1]
	bl	cnic_submit_kwqe_16
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L26+20
	mov	r1, r9
	ldr	r0, [r3]
	bl	set_bit
	b	.L1
.L22:
	ldr	r3, .L26+44
	str	r7, [r9]
	ldr	r2, [r3]
	rsb	r4, r2, #0
	b	.L1
.L25:
	ldr	r1, .L26+48
	ldr	r0, [r4, #4]
	bl	netdev_err
.L9:
	cmn	r10, #1
	beq	.L5
	mov	r1, r6
	mov	r0, r4
	bl	cnic_free_bnx2x_conn_resc
	b	.L5
.L24:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC1
	.word	FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE
	.word	FCOE_KCQE_OPCODE_OFFLOAD_CONN
	.word	CNIC_ULP_FCOE
	.word	BNX2X_FCOE_L5_CID_BASE
	.word	CTX_FL_OFFLD_START
	.word	CDU_REGION_NUMBER_XCM_AG
	.word	FCOE_CONNECTION_TYPE
	.word	CDU_REGION_NUMBER_UCM_AG
	.word	CNIC_KWQ16_DATA_SIZE
	.word	FCOE_RAMROD_CMD_ID_OFFLOAD_CONN
	.word	EINVAL
	.word	.LC0
	.size	cnic_bnx2x_fcoe_ofld1, .-cnic_bnx2x_fcoe_ofld1
	.comm	FCOE_RAMROD_CMD_ID_OFFLOAD_CONN,4,4
	.comm	FCOE_KCQE_OPCODE_OFFLOAD_CONN,4,4
	.comm	FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE,4,4
	.comm	FCOE_CONNECTION_TYPE,4,4
	.comm	EINVAL,4,4
	.comm	CTX_FL_OFFLD_START,4,4
	.comm	CNIC_ULP_FCOE,4,4
	.comm	CNIC_KWQ16_DATA_SIZE,4,4
	.comm	CDU_REGION_NUMBER_XCM_AG,4,4
	.comm	CDU_REGION_NUMBER_UCM_AG,4,4
	.comm	BNX2X_FCOE_L5_CID_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
