	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_bnx2x_cnic
_init_bnx2x_cnic:                       ## @init_bnx2x_cnic
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	*%rcx
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r12
	movq	40(%rax), %r13
	testq	%r13, %r13
	je	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_dev_hold
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_cnic_alloc_dev
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r15
	movq	_CNIC_F_BNX2X_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$44, %rsi
	callq	_set_bit
	movq	_cnic_submit_bnx2x_kwqes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	32(%r15), %rbx
	movq	%r12, 64(%rbx)
	movq	%r13, 24(%r15)
	movl	32(%r12), %eax
	movl	%eax, 56(%rbx)
	movl	28(%r12), %eax
	movl	%eax, 20(%r15)
	movq	_CNIC_DRV_STATE_NO_ISCSI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_6
## %bb.5:
	movl	24(%r12), %eax
	movl	%eax, 16(%r15)
LBB0_6:
	movq	%r14, %rdi
	callq	_CNIC_SUPPORTS_FCOE
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	8(%r12), %rax
	movq	%rax, (%r15)
	movl	20(%r12), %ecx
	movl	%ecx, 12(%r15)
	jmp	LBB0_13
LBB0_8:
	xorl	%r15d, %r15d
LBB0_16:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	callq	_dev_put
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_12:
	movq	(%r15), %rax
LBB0_13:
	movq	_BNX2X_FCOE_NUM_CONNECTIONS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_15
## %bb.14:
	movq	%rcx, (%r15)
LBB0_15:
	movl	8(%r15), %edi
	movl	16(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_cnic_bnx2x_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	_cnic_start_bnx2x_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_cnic_stop_bnx2x_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_cnic_setup_page_tbl_le@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_cnic_alloc_bnx2x_resc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_cnic_free_resc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_cnic_cm_init_bnx2x_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_cnic_cm_stop_bnx2x_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_cnic_enable_bnx2x_int@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_cnic_disable_bnx2x_int_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%r14, %rdi
	callq	_BNX2X_CHIP_IS_E2_PLUS
	testq	%rax, %rax
	movq	_cnic_arm_bnx2x_e2_msix@GOTPCREL(%rip), %rax
	cmoveq	_cnic_arm_bnx2x_msix@GOTPCREL(%rip), %rax
	movq	_cnic_ack_bnx2x_e2_msix@GOTPCREL(%rip), %rcx
	cmoveq	_cnic_ack_bnx2x_msix@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movl	%eax, 4(%rbx)
	movq	_cnic_close_bnx2x_conn@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_CNIC_F_BNX2X_CLASS,4,2         ## @CNIC_F_BNX2X_CLASS
	.comm	_cnic_submit_bnx2x_kwqes,4,2    ## @cnic_submit_bnx2x_kwqes
	.comm	_CNIC_DRV_STATE_NO_ISCSI,4,2    ## @CNIC_DRV_STATE_NO_ISCSI
	.comm	_BNX2X_FCOE_NUM_CONNECTIONS,8,3 ## @BNX2X_FCOE_NUM_CONNECTIONS
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_cnic_bnx2x_ops,4,2             ## @cnic_bnx2x_ops
	.comm	_cnic_start_bnx2x_hw,4,2        ## @cnic_start_bnx2x_hw
	.comm	_cnic_stop_bnx2x_hw,4,2         ## @cnic_stop_bnx2x_hw
	.comm	_cnic_setup_page_tbl_le,4,2     ## @cnic_setup_page_tbl_le
	.comm	_cnic_alloc_bnx2x_resc,4,2      ## @cnic_alloc_bnx2x_resc
	.comm	_cnic_free_resc,4,2             ## @cnic_free_resc
	.comm	_cnic_cm_init_bnx2x_hw,4,2      ## @cnic_cm_init_bnx2x_hw
	.comm	_cnic_cm_stop_bnx2x_hw,4,2      ## @cnic_cm_stop_bnx2x_hw
	.comm	_cnic_enable_bnx2x_int,4,2      ## @cnic_enable_bnx2x_int
	.comm	_cnic_disable_bnx2x_int_sync,4,2 ## @cnic_disable_bnx2x_int_sync
	.comm	_cnic_ack_bnx2x_e2_msix,4,2     ## @cnic_ack_bnx2x_e2_msix
	.comm	_cnic_arm_bnx2x_e2_msix,4,2     ## @cnic_arm_bnx2x_e2_msix
	.comm	_cnic_ack_bnx2x_msix,4,2        ## @cnic_ack_bnx2x_msix
	.comm	_cnic_arm_bnx2x_msix,4,2        ## @cnic_arm_bnx2x_msix
	.comm	_cnic_close_bnx2x_conn,4,2      ## @cnic_close_bnx2x_conn
	.no_dead_strip	_init_bnx2x_cnic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_bnx2x_cnic
_init_bnx2x_cnic:                       ; @init_bnx2x_cnic
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x0
	bl	_netdev_priv
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x20, x0
	mov	x0, x22
	blr	x8
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x0
	ldr	x23, [x0, #40]
	cbz	x23, LBB0_8
; %bb.3:
	mov	x0, x22
	bl	_dev_hold
	mov	x0, x22
	mov	x1, x23
	bl	_cnic_alloc_dev
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.4:
Lloh0:
	adrp	x8, _CNIC_F_BNX2X_CLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CNIC_F_BNX2X_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #44
	bl	_set_bit
Lloh3:
	adrp	x8, _cnic_submit_bnx2x_kwqes@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cnic_submit_bnx2x_kwqes@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldr	x22, [x19, #32]
	str	x21, [x22, #64]
	str	x23, [x19, #24]
	ldp	w9, w8, [x21, #28]
	str	w8, [x22, #56]
	str	w9, [x19, #20]
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _CNIC_DRV_STATE_NO_ISCSI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CNIC_DRV_STATE_NO_ISCSI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x21, #24]
	str	w8, [x19, #16]
LBB0_6:
	mov	x0, x20
	bl	_CNIC_SUPPORTS_FCOE
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x8, [x21, #8]
	str	x8, [x19]
	ldr	w9, [x21, #20]
	str	w9, [x19, #12]
	b	LBB0_12
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x22
	bl	_dev_put
	b	LBB0_9
LBB0_11:
	ldr	x8, [x19]
LBB0_12:
Lloh9:
	adrp	x9, _BNX2X_FCOE_NUM_CONNECTIONS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BNX2X_FCOE_NUM_CONNECTIONS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_14
; %bb.13:
	str	x9, [x19]
LBB0_14:
	ldr	w0, [x19, #8]
	ldr	w1, [x21, #16]
Lloh12:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_memcpy
Lloh15:
	adrp	x8, _cnic_bnx2x_ops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cnic_bnx2x_ops@GOTPAGEOFF]
	str	x8, [x22, #48]
Lloh17:
	adrp	x8, _cnic_start_bnx2x_hw@GOTPAGE
Lloh18:
	ldr	x8, [x8, _cnic_start_bnx2x_hw@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x22, #44]
Lloh20:
	adrp	x8, _cnic_stop_bnx2x_hw@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cnic_stop_bnx2x_hw@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _cnic_setup_page_tbl_le@GOTPAGE
Lloh24:
	ldr	x9, [x9, _cnic_setup_page_tbl_le@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #36]
Lloh26:
	adrp	x8, _cnic_alloc_bnx2x_resc@GOTPAGE
Lloh27:
	ldr	x8, [x8, _cnic_alloc_bnx2x_resc@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _cnic_free_resc@GOTPAGE
Lloh30:
	ldr	x9, [x9, _cnic_free_resc@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #28]
Lloh32:
	adrp	x8, _cnic_cm_init_bnx2x_hw@GOTPAGE
Lloh33:
	ldr	x8, [x8, _cnic_cm_init_bnx2x_hw@GOTPAGEOFF]
Lloh34:
	adrp	x9, _cnic_cm_stop_bnx2x_hw@GOTPAGE
Lloh35:
	ldr	x9, [x9, _cnic_cm_stop_bnx2x_hw@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #20]
Lloh38:
	adrp	x8, _cnic_enable_bnx2x_int@GOTPAGE
Lloh39:
	ldr	x8, [x8, _cnic_enable_bnx2x_int@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _cnic_disable_bnx2x_int_sync@GOTPAGE
Lloh42:
	ldr	x9, [x9, _cnic_disable_bnx2x_int_sync@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #12]
	mov	x0, x20
	bl	_BNX2X_CHIP_IS_E2_PLUS
Lloh44:
	adrp	x8, _cnic_arm_bnx2x_msix@GOTPAGE
Lloh45:
	ldr	x8, [x8, _cnic_arm_bnx2x_msix@GOTPAGEOFF]
Lloh46:
	adrp	x9, _cnic_arm_bnx2x_e2_msix@GOTPAGE
Lloh47:
	ldr	x9, [x9, _cnic_arm_bnx2x_e2_msix@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh48:
	adrp	x9, _cnic_ack_bnx2x_msix@GOTPAGE
Lloh49:
	ldr	x9, [x9, _cnic_ack_bnx2x_msix@GOTPAGEOFF]
Lloh50:
	adrp	x10, _cnic_ack_bnx2x_e2_msix@GOTPAGE
Lloh51:
	ldr	x10, [x10, _cnic_ack_bnx2x_e2_msix@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	str	w9, [x22, #8]
Lloh52:
	adrp	x9, _cnic_close_bnx2x_conn@GOTPAGE
Lloh53:
	ldr	x9, [x9, _cnic_close_bnx2x_conn@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	stp	w9, w8, [x22]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CNIC_F_BNX2X_CLASS,4,2         ; @CNIC_F_BNX2X_CLASS
	.comm	_cnic_submit_bnx2x_kwqes,4,2    ; @cnic_submit_bnx2x_kwqes
	.comm	_CNIC_DRV_STATE_NO_ISCSI,4,2    ; @CNIC_DRV_STATE_NO_ISCSI
	.comm	_BNX2X_FCOE_NUM_CONNECTIONS,8,3 ; @BNX2X_FCOE_NUM_CONNECTIONS
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_cnic_bnx2x_ops,4,2             ; @cnic_bnx2x_ops
	.comm	_cnic_start_bnx2x_hw,4,2        ; @cnic_start_bnx2x_hw
	.comm	_cnic_stop_bnx2x_hw,4,2         ; @cnic_stop_bnx2x_hw
	.comm	_cnic_setup_page_tbl_le,4,2     ; @cnic_setup_page_tbl_le
	.comm	_cnic_alloc_bnx2x_resc,4,2      ; @cnic_alloc_bnx2x_resc
	.comm	_cnic_free_resc,4,2             ; @cnic_free_resc
	.comm	_cnic_cm_init_bnx2x_hw,4,2      ; @cnic_cm_init_bnx2x_hw
	.comm	_cnic_cm_stop_bnx2x_hw,4,2      ; @cnic_cm_stop_bnx2x_hw
	.comm	_cnic_enable_bnx2x_int,4,2      ; @cnic_enable_bnx2x_int
	.comm	_cnic_disable_bnx2x_int_sync,4,2 ; @cnic_disable_bnx2x_int_sync
	.comm	_cnic_ack_bnx2x_e2_msix,4,2     ; @cnic_ack_bnx2x_e2_msix
	.comm	_cnic_arm_bnx2x_e2_msix,4,2     ; @cnic_arm_bnx2x_e2_msix
	.comm	_cnic_ack_bnx2x_msix,4,2        ; @cnic_ack_bnx2x_msix
	.comm	_cnic_arm_bnx2x_msix,4,2        ; @cnic_arm_bnx2x_msix
	.comm	_cnic_close_bnx2x_conn,4,2      ; @cnic_close_bnx2x_conn
	.no_dead_strip	_init_bnx2x_cnic
.subsections_via_symbols
