	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_bnx2x_fcoe_init1
_cnic_bnx2x_fcoe_init1:                 ## @cnic_bnx2x_fcoe_init1
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movl	(%rdi), %edi
	callq	_netdev_priv
	cmpl	$2, %ebx
	jg	LBB0_4
## %bb.1:
	movl	%ebx, (%r14)
	jmp	LBB0_2
LBB0_4:
	movq	%r13, %rbx
	movq	8(%r12), %r13
	movq	(%r13), %rdx
	movq	_FCOE_KWQE_OPCODE_INIT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_5
## %bb.6:
	movq	16(%r12), %rsi
	movq	(%rsi), %rdx
	movq	_FCOE_KWQE_OPCODE_INIT3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_7
## %bb.8:
	movq	_CNIC_KWQ16_DATA_SIZE@GOTPCREL(%rip), %rcx
	cmpl	$35, (%rcx)
	ja	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movl	$1, (%r14)
	jmp	LBB0_2
LBB0_7:
	movl	$2, (%r14)
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r12
	movq	_BNX2X_FCOE_L5_CID_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_cnic_get_kwqe_16_data
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$36, %edx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	callq	_memset
	leaq	32(%r12), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy
	leaq	28(%r12), %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r12, %rdi
	addq	$24, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy
	movl	16(%rbx), %eax
	movl	%eax, 16(%r12)
	movl	20(%rbx), %eax
	movl	%eax, 12(%r12)
	movl	24(%rbx), %eax
	movl	%eax, 8(%r12)
	movq	_MAX_KCQ_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_HC_INDEX_FCOE_EQ_CONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	$0, 8(%rbx)
	movl	(%rbx), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_BNX2X_HW_CID
	movq	_FCOE_RAMROD_CMD_ID_INIT_FUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_FCOE_CONNECTION_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_cnic_submit_kwqe_16
	movl	$3, (%r14)
	jmp	LBB0_13
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FCOE_KWQE_OPCODE_INIT2,8,3     ## @FCOE_KWQE_OPCODE_INIT2
	.comm	_FCOE_KWQE_OPCODE_INIT3,8,3     ## @FCOE_KWQE_OPCODE_INIT3
	.comm	_CNIC_KWQ16_DATA_SIZE,4,2       ## @CNIC_KWQ16_DATA_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fcoe_init size too big\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BNX2X_FCOE_L5_CID_BASE,4,2     ## @BNX2X_FCOE_L5_CID_BASE
	.comm	_MAX_KCQ_IDX,4,2                ## @MAX_KCQ_IDX
	.comm	_HC_INDEX_FCOE_EQ_CONS,4,2      ## @HC_INDEX_FCOE_EQ_CONS
	.comm	_FCOE_RAMROD_CMD_ID_INIT_FUNC,4,2 ## @FCOE_RAMROD_CMD_ID_INIT_FUNC
	.comm	_FCOE_CONNECTION_TYPE,4,2       ## @FCOE_CONNECTION_TYPE
	.no_dead_strip	_cnic_bnx2x_fcoe_init1
.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_init1
_cnic_bnx2x_fcoe_init1:                 ; @cnic_bnx2x_fcoe_init1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	mov	x23, x2
	mov	x25, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x0]
	bl	_netdev_priv
	cmp	w23, #2
	b.gt	LBB0_2
; %bb.1:
	str	w23, [x19]
	b	LBB0_9
LBB0_2:
	ldr	x23, [x25, #8]
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _FCOE_KWQE_OPCODE_INIT2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FCOE_KWQE_OPCODE_INIT2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x24, [x25, #16]
	ldr	x8, [x24]
Lloh3:
	adrp	x9, _FCOE_KWQE_OPCODE_INIT3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FCOE_KWQE_OPCODE_INIT3@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh6:
	adrp	x8, _CNIC_KWQ16_DATA_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CNIC_KWQ16_DATA_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #35
	b.hi	LBB0_12
; %bb.5:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_14
LBB0_6:
	mov	w8, #1
	b	LBB0_8
LBB0_7:
	mov	w8, #2
LBB0_8:
	str	w8, [x19]
LBB0_9:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	mov	x22, x0
	ldr	x26, [x25]
Lloh13:
	adrp	x8, _BNX2X_FCOE_L5_CID_BASE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNX2X_FCOE_L5_CID_BASE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_cnic_get_kwqe_16_data
	cbz	x0, LBB0_14
; %bb.13:
	mov	x25, x0
	mov	w1, #0
	mov	w2, #36
	bl	_memset
	add	x0, x25, #32
	mov	x1, x26
	mov	w2, #8
	bl	_memcpy
	add	x0, x25, #28
	mov	x1, x23
	mov	w2, #8
	bl	_memcpy
	add	x0, x25, #24
	mov	x1, x24
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x21, #16]
	str	w8, [x25, #16]
	ldur	d0, [x21, #20]
	rev64.2s	v0, v0
	str	d0, [x25, #8]
Lloh16:
	adrp	x8, _MAX_KCQ_IDX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAX_KCQ_IDX@GOTPAGEOFF]
Lloh18:
	adrp	x9, _HC_INDEX_FCOE_EQ_CONS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HC_INDEX_FCOE_EQ_CONS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x25]
	str	xzr, [x21, #8]
	ldr	w1, [x21]
	mov	x0, x22
	bl	_BNX2X_HW_CID
	mov	x2, x0
Lloh22:
	adrp	x8, _FCOE_RAMROD_CMD_ID_INIT_FUNC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FCOE_RAMROD_CMD_ID_INIT_FUNC@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _FCOE_CONNECTION_TYPE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FCOE_CONNECTION_TYPE@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x20
	bl	_cnic_submit_kwqe_16
	mov	w8, #3
	str	w8, [x19]
	b	LBB0_11
LBB0_14:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FCOE_KWQE_OPCODE_INIT2,8,3     ; @FCOE_KWQE_OPCODE_INIT2
	.comm	_FCOE_KWQE_OPCODE_INIT3,8,3     ; @FCOE_KWQE_OPCODE_INIT3
	.comm	_CNIC_KWQ16_DATA_SIZE,4,2       ; @CNIC_KWQ16_DATA_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fcoe_init size too big\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BNX2X_FCOE_L5_CID_BASE,4,2     ; @BNX2X_FCOE_L5_CID_BASE
	.comm	_MAX_KCQ_IDX,4,2                ; @MAX_KCQ_IDX
	.comm	_HC_INDEX_FCOE_EQ_CONS,4,2      ; @HC_INDEX_FCOE_EQ_CONS
	.comm	_FCOE_RAMROD_CMD_ID_INIT_FUNC,4,2 ; @FCOE_RAMROD_CMD_ID_INIT_FUNC
	.comm	_FCOE_CONNECTION_TYPE,4,2       ; @FCOE_CONNECTION_TYPE
	.no_dead_strip	_cnic_bnx2x_fcoe_init1
.subsections_via_symbols
