	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_bnx2x_fcoe_ofld1
_cnic_bnx2x_fcoe_ofld1:                 ## @cnic_bnx2x_fcoe_ofld1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$3, %edx
	jg	LBB0_2
## %bb.1:
	movl	%edx, (%rcx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_2:
	movq	%rdi, %r13
	movq	8(%rdi), %rdx
	movq	(%rsi), %r15
	movq	8(%rsi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	24(%rsi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	$4, (%rcx)
	movl	(%r15), %r14d
	cmpl	(%rdi), %r14d
	jge	LBB0_11
## %bb.3:
	movq	_BNX2X_FCOE_L5_CID_BASE@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	movq	(%rdx), %rbx
	movslq	%r14d, %r12
	movq	_CTX_FL_OFFLD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%rbx,%r12,8), %rsi
	addq	$4, %rsi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_cnic_alloc_bnx2x_conn_resc
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movl	(%rbx,%r12,8), %ebx
	leaq	-120(%rbp), %rcx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_cnic_get_bnx2x_ctx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%rax, %r12
	callq	_BNX2X_HW_CID
	movl	%eax, %edi
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_CDU_REGION_NUMBER_XCM_AG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FCOE_CONNECTION_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_CDU_RSRVD_VALUE_TYPE_A
	movl	%eax, 4(%r12)
	movq	_CDU_REGION_NUMBER_UCM_AG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FCOE_CONNECTION_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_CDU_RSRVD_VALUE_TYPE_A
	movl	%eax, (%r12)
LBB0_7:
	movq	_CNIC_KWQ16_DATA_SIZE@GOTPCREL(%rip), %rax
	cmpl	$27, (%rax)
	ja	LBB0_12
## %bb.8:
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_9
LBB0_12:
	leaq	-64(%rbp), %rdx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_cnic_get_kwqe_16_data
	testq	%rax, %rax
	je	LBB0_9
## %bb.13:
	movl	%ebx, %r14d
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	leaq	24(%rbx), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	20(%rbx), %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	leaq	16(%rbx), %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	addq	$12, %rbx
	movq	%rbx, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_BNX2X_HW_CID
	movq	_FCOE_RAMROD_CMD_ID_OFFLOAD_CONN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_FCOE_CONNECTION_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-64(%rbp), %r8
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_cnic_submit_kwqe_16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	_CTX_FL_OFFLD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_9:
	cmpl	$-1, %ebx
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_cnic_free_bnx2x_conn_resc
LBB0_11:
	leaq	-152(%rbp), %r14
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movq	_FCOE_KCQE_OPCODE_OFFLOAD_CONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	movl	(%r15), %eax
	movl	%eax, -152(%rbp)
	movq	_FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -148(%rbp)
	movq	%r14, -56(%rbp)
	movq	_CNIC_ULP_FCOE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_cnic_reply_bnx2x_kcqes
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BNX2X_FCOE_L5_CID_BASE,8,3     ## @BNX2X_FCOE_L5_CID_BASE
	.comm	_CTX_FL_OFFLD_START,4,2         ## @CTX_FL_OFFLD_START
	.comm	_CDU_REGION_NUMBER_XCM_AG,4,2   ## @CDU_REGION_NUMBER_XCM_AG
	.comm	_FCOE_CONNECTION_TYPE,4,2       ## @FCOE_CONNECTION_TYPE
	.comm	_CDU_REGION_NUMBER_UCM_AG,4,2   ## @CDU_REGION_NUMBER_UCM_AG
	.comm	_CNIC_KWQ16_DATA_SIZE,4,2       ## @CNIC_KWQ16_DATA_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fcoe_offload size too big\n"

	.comm	_FCOE_RAMROD_CMD_ID_OFFLOAD_CONN,4,2 ## @FCOE_RAMROD_CMD_ID_OFFLOAD_CONN
	.comm	_FCOE_KCQE_OPCODE_OFFLOAD_CONN,4,2 ## @FCOE_KCQE_OPCODE_OFFLOAD_CONN
	.comm	_FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE,4,2 ## @FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE
	.comm	_CNIC_ULP_FCOE,4,2              ## @CNIC_ULP_FCOE
	.no_dead_strip	_cnic_bnx2x_fcoe_ofld1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_bnx2x_fcoe_ofld1
_cnic_bnx2x_fcoe_ofld1:                 ; @cnic_bnx2x_fcoe_ofld1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	cmp	w2, #3
	b.gt	LBB0_2
; %bb.1:
	str	w2, [x3]
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_2:
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldp	x20, x25, [x1]
	ldp	x24, x23, [x1, #16]
	mov	w8, #4
	str	w8, [x3]
	ldr	w8, [x20]
	ldr	w9, [x0]
	cmp	w8, w9
	b.ge	LBB0_14
; %bb.3:
Lloh6:
	adrp	x9, _BNX2X_FCOE_L5_CID_BASE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNX2X_FCOE_L5_CID_BASE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w27, w8, w9
	ldr	x26, [x22]
Lloh9:
	adrp	x8, _CTX_FL_OFFLD_START@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CTX_FL_OFFLD_START@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x8, x26, w27, sxtw #3
	add	x21, x8, #4
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_14
; %bb.4:
	sxtw	x27, w27
	mov	x0, x19
	mov	x1, x27
	bl	_cnic_alloc_bnx2x_conn_resc
	cbnz	w0, LBB0_14
; %bb.5:
	lsl	x8, x27, #3
	ldr	w26, [x26, x8]
	add	x3, sp, #56
	mov	x0, x19
	mov	x1, x26
	mov	w2, #1
	bl	_cnic_get_bnx2x_ctx
	cbz	x0, LBB0_7
; %bb.6:
	mov	x28, x0
	mov	x0, x22
	mov	x1, x26
	bl	_BNX2X_HW_CID
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	mov	x26, x0
Lloh12:
	adrp	x8, _CDU_REGION_NUMBER_XCM_AG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CDU_REGION_NUMBER_XCM_AG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _FCOE_CONNECTION_TYPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FCOE_CONNECTION_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_CDU_RSRVD_VALUE_TYPE_A
	str	w0, [x28, #4]
Lloh18:
	adrp	x8, _CDU_REGION_NUMBER_UCM_AG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CDU_REGION_NUMBER_UCM_AG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _FCOE_CONNECTION_TYPE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FCOE_CONNECTION_TYPE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x26
	ldr	w26, [sp, #12]                  ; 4-byte Folded Reload
	bl	_CDU_RSRVD_VALUE_TYPE_A
	str	w0, [x28]
LBB0_7:
Lloh24:
	adrp	x8, _CNIC_KWQ16_DATA_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CNIC_KWQ16_DATA_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, #27
	b.hi	LBB0_9
; %bb.8:
	ldr	w0, [x19, #4]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_12
LBB0_9:
	add	x2, sp, #48
	mov	x0, x22
	mov	x1, x27
	bl	_cnic_get_kwqe_16_data
	cbz	x0, LBB0_12
; %bb.10:
	mov	x28, x0
	mov	w1, #0
	mov	w2, #28
	bl	_memset
	add	x0, x28, #24
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	add	x0, x28, #20
	mov	x1, x25
	mov	w2, #4
	bl	_memcpy
	add	x0, x28, #16
	mov	x1, x24
	mov	w2, #4
	bl	_memcpy
	add	x0, x28, #12
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
	mov	x0, x22
	mov	x1, x26
	bl	_BNX2X_HW_CID
	mov	x2, x0
Lloh29:
	adrp	x8, _FCOE_RAMROD_CMD_ID_OFFLOAD_CONN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FCOE_RAMROD_CMD_ID_OFFLOAD_CONN@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _FCOE_CONNECTION_TYPE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FCOE_CONNECTION_TYPE@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	add	x4, sp, #48
	mov	x0, x19
	bl	_cnic_submit_kwqe_16
	cbnz	w0, LBB0_16
; %bb.11:
Lloh35:
	adrp	x8, _CTX_FL_OFFLD_START@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CTX_FL_OFFLD_START@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	b	LBB0_15
LBB0_12:
	cmn	w26, #1
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x27
	bl	_cnic_free_bnx2x_conn_resc
LBB0_14:
	add	x21, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #28
	bl	_memset
Lloh38:
	adrp	x8, _FCOE_KCQE_OPCODE_OFFLOAD_CONN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FCOE_KCQE_OPCODE_OFFLOAD_CONN@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w8, [x20]
Lloh41:
	adrp	x9, _FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	str	x21, [sp, #64]
Lloh44:
	adrp	x8, _CNIC_ULP_FCOE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CNIC_ULP_FCOE@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	add	x2, sp, #64
	mov	x0, x19
	mov	w3, #1
	bl	_cnic_reply_bnx2x_kcqes
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldr	x8, [sp, #72]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BNX2X_FCOE_L5_CID_BASE,8,3     ; @BNX2X_FCOE_L5_CID_BASE
	.comm	_CTX_FL_OFFLD_START,4,2         ; @CTX_FL_OFFLD_START
	.comm	_CDU_REGION_NUMBER_XCM_AG,4,2   ; @CDU_REGION_NUMBER_XCM_AG
	.comm	_FCOE_CONNECTION_TYPE,4,2       ; @FCOE_CONNECTION_TYPE
	.comm	_CDU_REGION_NUMBER_UCM_AG,4,2   ; @CDU_REGION_NUMBER_UCM_AG
	.comm	_CNIC_KWQ16_DATA_SIZE,4,2       ; @CNIC_KWQ16_DATA_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fcoe_offload size too big\n"

	.comm	_FCOE_RAMROD_CMD_ID_OFFLOAD_CONN,4,2 ; @FCOE_RAMROD_CMD_ID_OFFLOAD_CONN
	.comm	_FCOE_KCQE_OPCODE_OFFLOAD_CONN,4,2 ; @FCOE_KCQE_OPCODE_OFFLOAD_CONN
	.comm	_FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE,4,2 ; @FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE
	.comm	_CNIC_ULP_FCOE,4,2              ; @CNIC_ULP_FCOE
	.no_dead_strip	_cnic_bnx2x_fcoe_ofld1
.subsections_via_symbols
