	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_start_bnx2x_hw
_cnic_start_bnx2x_hw:                   ## @cnic_start_bnx2x_hw
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	movl	8(%rdi), %edi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	64(%r12), %r14
	movl	16(%r14), %eax
	movl	%eax, 4(%r15)
	movl	8(%rbx), %eax
	movl	%eax, 60(%r12)
	movl	4(%rbx), %eax
	movl	%eax, 52(%r12)
	movl	(%rbx), %eax
	movl	%eax, 56(%r12)
	movq	%r12, %rdi
	callq	_CNIC_FUNC
	movl	44(%r12), %edx
	movl	52(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	48(%r12), %rdi
	movq	_MAX_ISCSI_TBL_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	callq	_cnic_init_id_tbl
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_6:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_BNX2X_CHIP_IS_E2_PLUS
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	40(%r12), %rdi
	movl	(%r15), %esi
	movl	36(%r12), %edx
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	callq	_cnic_init_id_tbl
	testl	%eax, %eax
	jne	LBB0_1
LBB0_4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	%r15, %rdi
	callq	_cnic_init_bnx2x_kcq
	movq	24(%r12), %rsi
	movq	_MAX_KCQ_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_CNIC_WR16
	movq	_BAR_CSTRORM_INTMEM@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_CSTORM_ISCSI_EQ_CONS_OFFSET
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_CNIC_WR
	movq	(%r13), %rbx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_CSTORM_ISCSI_EQ_NEXT_PAGE_ADDR_OFFSET
	addq	%rax, %rbx
	movq	16(%r12), %rax
	movl	4(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_CNIC_WR
	movq	(%r13), %rbx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_CSTORM_ISCSI_EQ_NEXT_PAGE_ADDR_OFFSET
	leaq	(%rbx,%rax), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	callq	_CNIC_WR
	movq	(%r13), %rbx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_CSTORM_ISCSI_EQ_NEXT_EQE_ADDR_OFFSET
	addq	%rax, %rbx
	movq	16(%r12), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_CNIC_WR
	movq	(%r13), %rbx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_CSTORM_ISCSI_EQ_NEXT_EQE_ADDR_OFFSET
	leaq	(%rbx,%rax), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	callq	_CNIC_WR
	movq	(%r13), %rbx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_CSTORM_ISCSI_EQ_NEXT_PAGE_ADDR_VALID_OFFSET
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_CNIC_WR8
	movq	(%r13), %rbx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_CSTORM_ISCSI_EQ_SB_NUM_OFFSET
	addq	%rax, %rbx
	movl	8(%r12), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_CNIC_WR16
	movq	(%r13), %rbx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_CSTORM_ISCSI_EQ_SB_INDEX_OFFSET
	addq	%rax, %rbx
	movq	_HC_INDEX_ISCSI_EQ_CONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_CNIC_WR8
	movq	_BAR_USTRORM_INTMEM@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movl	%r14d, %edi
	callq	_USTORM_ISCSI_GLOBAL_BUF_PHYS_ADDR_OFFSET
	addq	%rax, %rbx
	movq	(%r12), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_CNIC_WR
	movq	(%r13), %rbx
	movl	%r14d, %edi
	callq	_USTORM_ISCSI_GLOBAL_BUF_PHYS_ADDR_OFFSET
	leaq	(%rbx,%rax), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	callq	_CNIC_WR
	movq	_BAR_TSTRORM_INTMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r14d, %edi
	callq	_TSTORM_ISCSI_TCP_LOCAL_ADV_WND_OFFSET
	addq	%rax, %rbx
	movq	_DEF_RCV_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_CNIC_WR
	movq	%r15, %rdi
	callq	_cnic_setup_bnx2x_context
	movq	%r15, %rdi
	callq	_cnic_init_bnx2x_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_CNIC_DRV_STATE_HANDLES_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ISCSI_TBL_SZ,4,2           ## @MAX_ISCSI_TBL_SZ
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX_KCQ_IDX,4,2                ## @MAX_KCQ_IDX
	.comm	_BAR_CSTRORM_INTMEM,8,3         ## @BAR_CSTRORM_INTMEM
	.comm	_HC_INDEX_ISCSI_EQ_CONS,4,2     ## @HC_INDEX_ISCSI_EQ_CONS
	.comm	_BAR_USTRORM_INTMEM,8,3         ## @BAR_USTRORM_INTMEM
	.comm	_BAR_TSTRORM_INTMEM,8,3         ## @BAR_TSTRORM_INTMEM
	.comm	_DEF_RCV_BUF,4,2                ## @DEF_RCV_BUF
	.comm	_CNIC_DRV_STATE_HANDLES_IRQ,4,2 ## @CNIC_DRV_STATE_HANDLES_IRQ
	.no_dead_strip	_cnic_start_bnx2x_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_start_bnx2x_hw
_cnic_start_bnx2x_hw:                   ; @cnic_start_bnx2x_hw
	.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	x19, x0
	ldr	x21, [x0, #16]
	ldr	w0, [x0, #8]
	bl	_netdev_priv
	mov	x22, x0
	ldr	x23, [x21, #64]
	ldr	w8, [x23, #16]
	str	w8, [x19, #4]
	ldr	w8, [x0, #8]
	str	w8, [x21, #60]
	ldr	d0, [x0]
	rev64.2s	v0, v0
	stur	d0, [x21, #52]
	mov	x0, x21
	bl	_CNIC_FUNC
	ldr	w20, [x21, #52]
	add	x0, x21, #48
Lloh0:
	adrp	x8, _MAX_ISCSI_TBL_SZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_ISCSI_TBL_SZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x21, #44]
	mov	w3, #0
	bl	_cnic_init_id_tbl
	cbz	w0, LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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_3:
	mov	x0, x22
	bl	_BNX2X_CHIP_IS_E2_PLUS
	cbz	x0, LBB0_5
; %bb.4:
	add	x0, x21, #40
	ldr	w1, [x19]
	ldr	w2, [x21, #36]
	mov	w3, #0
	bl	_cnic_init_id_tbl
	cbnz	w0, LBB0_1
LBB0_5:
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
	str	w8, [x21, #32]
	mov	x0, x19
	bl	_cnic_init_bnx2x_kcq
	ldr	x1, [x21, #24]
Lloh6:
	adrp	x8, _MAX_KCQ_IDX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_KCQ_IDX@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CNIC_WR16
Lloh9:
	adrp	x22, _BAR_CSTRORM_INTMEM@GOTPAGE
Lloh10:
	ldr	x22, [x22, _BAR_CSTRORM_INTMEM@GOTPAGEOFF]
	ldr	x24, [x22]
	mov	x0, x20
	mov	w1, #0
	bl	_CSTORM_ISCSI_EQ_CONS_OFFSET
	add	x1, x0, x24
	mov	x0, x19
	mov	w2, #0
	bl	_CNIC_WR
	ldr	x24, [x22]
	mov	x0, x20
	mov	w1, #0
	bl	_CSTORM_ISCSI_EQ_NEXT_PAGE_ADDR_OFFSET
	add	x1, x0, x24
	ldr	x8, [x21, #16]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_CNIC_WR
	ldr	x24, [x22]
	mov	x0, x20
	mov	w1, #0
	bl	_CSTORM_ISCSI_EQ_NEXT_PAGE_ADDR_OFFSET
	add	x8, x24, x0
	add	x1, x8, #4
	mov	x0, x19
	bl	_CNIC_WR
	ldr	x24, [x22]
	mov	x0, x20
	mov	w1, #0
	bl	_CSTORM_ISCSI_EQ_NEXT_EQE_ADDR_OFFSET
	add	x1, x0, x24
	ldr	x8, [x21, #16]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CNIC_WR
	ldr	x24, [x22]
	mov	x0, x20
	mov	w1, #0
	bl	_CSTORM_ISCSI_EQ_NEXT_EQE_ADDR_OFFSET
	add	x8, x24, x0
	add	x1, x8, #4
	mov	x0, x19
	bl	_CNIC_WR
	ldr	x24, [x22]
	mov	x0, x20
	mov	w1, #0
	bl	_CSTORM_ISCSI_EQ_NEXT_PAGE_ADDR_VALID_OFFSET
	add	x1, x0, x24
	mov	x0, x19
	mov	w2, #1
	bl	_CNIC_WR8
	ldr	x24, [x22]
	mov	x0, x20
	mov	w1, #0
	bl	_CSTORM_ISCSI_EQ_SB_NUM_OFFSET
	add	x1, x0, x24
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_CNIC_WR16
	ldr	x22, [x22]
	mov	x0, x20
	mov	w1, #0
	bl	_CSTORM_ISCSI_EQ_SB_INDEX_OFFSET
	add	x1, x0, x22
Lloh11:
	adrp	x8, _HC_INDEX_ISCSI_EQ_CONS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HC_INDEX_ISCSI_EQ_CONS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CNIC_WR8
Lloh14:
	adrp	x22, _BAR_USTRORM_INTMEM@GOTPAGE
Lloh15:
	ldr	x22, [x22, _BAR_USTRORM_INTMEM@GOTPAGEOFF]
	ldr	x24, [x22]
	mov	x0, x20
	bl	_USTORM_ISCSI_GLOBAL_BUF_PHYS_ADDR_OFFSET
	add	x1, x0, x24
	ldr	x8, [x21]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CNIC_WR
	ldr	x21, [x22]
	mov	x0, x20
	bl	_USTORM_ISCSI_GLOBAL_BUF_PHYS_ADDR_OFFSET
	add	x8, x21, x0
	add	x1, x8, #4
	mov	x0, x19
	bl	_CNIC_WR
Lloh16:
	adrp	x8, _BAR_TSTRORM_INTMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BAR_TSTRORM_INTMEM@GOTPAGEOFF]
Lloh18:
	ldr	x21, [x8]
	mov	x0, x20
	bl	_TSTORM_ISCSI_TCP_LOCAL_ADV_WND_OFFSET
	add	x1, x0, x21
Lloh19:
	adrp	x8, _DEF_RCV_BUF@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DEF_RCV_BUF@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CNIC_WR
	mov	x0, x19
	bl	_cnic_setup_bnx2x_context
	mov	x0, x19
	bl	_cnic_init_bnx2x_irq
	cbnz	w0, LBB0_2
; %bb.6:
Lloh22:
	adrp	x8, _CNIC_DRV_STATE_HANDLES_IRQ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CNIC_DRV_STATE_HANDLES_IRQ@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x23]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ISCSI_TBL_SZ,4,2           ; @MAX_ISCSI_TBL_SZ
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX_KCQ_IDX,4,2                ; @MAX_KCQ_IDX
	.comm	_BAR_CSTRORM_INTMEM,8,3         ; @BAR_CSTRORM_INTMEM
	.comm	_HC_INDEX_ISCSI_EQ_CONS,4,2     ; @HC_INDEX_ISCSI_EQ_CONS
	.comm	_BAR_USTRORM_INTMEM,8,3         ; @BAR_USTRORM_INTMEM
	.comm	_BAR_TSTRORM_INTMEM,8,3         ; @BAR_TSTRORM_INTMEM
	.comm	_DEF_RCV_BUF,4,2                ; @DEF_RCV_BUF
	.comm	_CNIC_DRV_STATE_HANDLES_IRQ,4,2 ; @CNIC_DRV_STATE_HANDLES_IRQ
	.no_dead_strip	_cnic_start_bnx2x_hw
.subsections_via_symbols
