	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_bmac_enable
_bnx2x_bmac_enable:                     ## @bnx2x_bmac_enable
	.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
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movslq	(%rdi), %rbx
	movq	8(%rdi), %r15
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_GRCBASE_MISC@GOTPCREL(%rip), %rax
	movq	_MISC_REGISTERS_RESET_REG_2_CLEAR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movq	%r15, %rdi
	callq	_REG_WR
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
LBB0_2:
	movq	_GRCBASE_MISC@GOTPCREL(%rip), %rax
	movq	_MISC_REGISTERS_RESET_REG_2_SET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movq	%r15, %rdi
	callq	_REG_WR
	movq	_NIG_REG_BMAC0_REGS_OUT_EN@GOTPCREL(%rip), %rax
	shlq	$2, %rbx
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_REG_WR
	movq	%r15, %rdi
	callq	_CHIP_IS_E2
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_bnx2x_bmac2_enable
	jmp	LBB0_5
LBB0_4:
	callq	_bnx2x_bmac1_enable
LBB0_5:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_NIG_REG_XGXS_SERDES0_MODE_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_REG_WR
	movq	_NIG_REG_XGXS_LANE_SEL_P0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_REG_WR
	movq	_NIG_REG_EGRESS_EMAC0_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_REG_WR
	movq	_FEATURE_CONFIG_PFC_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	jne	LBB0_7
## %bb.6:
	movq	_BNX2X_FLOW_CTRL_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_8
LBB0_7:
	movl	$1, %r13d
LBB0_8:
	movq	_NIG_REG_BMAC0_PAUSE_OUT_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_REG_WR
	movq	_NIG_REG_EGRESS_EMAC0_OUT_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_REG_WR
	movq	_NIG_REG_EMAC0_IN_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_REG_WR
	movq	_NIG_REG_EMAC0_PAUSE_OUT_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_REG_WR
	movq	_NIG_REG_BMAC0_IN_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_REG_WR
	movq	_NIG_REG_BMAC0_OUT_EN@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_REG_WR
	movq	_MAC_TYPE_BMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRCBASE_MISC,8,3               ## @GRCBASE_MISC
	.comm	_MISC_REGISTERS_RESET_REG_2_CLEAR,8,3 ## @MISC_REGISTERS_RESET_REG_2_CLEAR
	.comm	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0,4,2 ## @MISC_REGISTERS_RESET_REG_2_RST_BMAC0
	.comm	_MISC_REGISTERS_RESET_REG_2_SET,8,3 ## @MISC_REGISTERS_RESET_REG_2_SET
	.comm	_NIG_REG_BMAC0_REGS_OUT_EN,8,3  ## @NIG_REG_BMAC0_REGS_OUT_EN
	.comm	_NIG_REG_XGXS_SERDES0_MODE_SEL,8,3 ## @NIG_REG_XGXS_SERDES0_MODE_SEL
	.comm	_NIG_REG_XGXS_LANE_SEL_P0,8,3   ## @NIG_REG_XGXS_LANE_SEL_P0
	.comm	_NIG_REG_EGRESS_EMAC0_PORT,8,3  ## @NIG_REG_EGRESS_EMAC0_PORT
	.comm	_FEATURE_CONFIG_PFC_ENABLED,4,2 ## @FEATURE_CONFIG_PFC_ENABLED
	.comm	_BNX2X_FLOW_CTRL_TX,4,2         ## @BNX2X_FLOW_CTRL_TX
	.comm	_NIG_REG_BMAC0_PAUSE_OUT_EN,8,3 ## @NIG_REG_BMAC0_PAUSE_OUT_EN
	.comm	_NIG_REG_EGRESS_EMAC0_OUT_EN,8,3 ## @NIG_REG_EGRESS_EMAC0_OUT_EN
	.comm	_NIG_REG_EMAC0_IN_EN,8,3        ## @NIG_REG_EMAC0_IN_EN
	.comm	_NIG_REG_EMAC0_PAUSE_OUT_EN,8,3 ## @NIG_REG_EMAC0_PAUSE_OUT_EN
	.comm	_NIG_REG_BMAC0_IN_EN,8,3        ## @NIG_REG_BMAC0_IN_EN
	.comm	_NIG_REG_BMAC0_OUT_EN,8,3       ## @NIG_REG_BMAC0_OUT_EN
	.comm	_MAC_TYPE_BMAC,4,2              ## @MAC_TYPE_BMAC
	.no_dead_strip	_bnx2x_bmac_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_bmac_enable
_bnx2x_bmac_enable:                     ; @bnx2x_bmac_enable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldrsw	x23, [x0]
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x25, _GRCBASE_MISC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GRCBASE_MISC@GOTPAGEOFF]
Lloh2:
	adrp	x24, _MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPAGEOFF]
	cbz	w3, LBB0_2
; %bb.1:
	ldr	x8, [x25]
Lloh4:
	adrp	x9, _MISC_REGISTERS_RESET_REG_2_CLEAR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MISC_REGISTERS_RESET_REG_2_CLEAR@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	w8, [x24]
	lsl	w2, w8, w23
	mov	x0, x20
	bl	_REG_WR
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
LBB0_2:
	ldr	x8, [x25]
Lloh7:
	adrp	x9, _MISC_REGISTERS_RESET_REG_2_SET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MISC_REGISTERS_RESET_REG_2_SET@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	w8, [x24]
	lsl	w2, w8, w23
	mov	x0, x20
	bl	_REG_WR
Lloh10:
	adrp	x8, _NIG_REG_BMAC0_REGS_OUT_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NIG_REG_BMAC0_REGS_OUT_EN@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	lsl	x23, x23, #2
	add	x1, x8, x23
	mov	x0, x20
	mov	w2, #1
	bl	_REG_WR
	mov	x0, x20
	bl	_CHIP_IS_E2
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_bnx2x_bmac2_enable
	b	LBB0_5
LBB0_4:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_bnx2x_bmac1_enable
LBB0_5:
	mov	x21, x0
Lloh13:
	adrp	x8, _NIG_REG_XGXS_SERDES0_MODE_SEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NIG_REG_XGXS_SERDES0_MODE_SEL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x20
	mov	w2, #1
	bl	_REG_WR
Lloh16:
	adrp	x8, _NIG_REG_XGXS_LANE_SEL_P0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NIG_REG_XGXS_LANE_SEL_P0@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x20
	mov	w2, #0
	bl	_REG_WR
Lloh19:
	adrp	x8, _NIG_REG_EGRESS_EMAC0_PORT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NIG_REG_EGRESS_EMAC0_PORT@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x20
	mov	w2, #0
	bl	_REG_WR
	ldr	w8, [x22, #4]
Lloh22:
	adrp	x9, _FEATURE_CONFIG_PFC_ENABLED@GOTPAGE
Lloh23:
	ldr	x9, [x9, _FEATURE_CONFIG_PFC_ENABLED@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x19]
Lloh25:
	adrp	x9, _BNX2X_FLOW_CTRL_TX@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BNX2X_FLOW_CTRL_TX@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_7:
	mov	w2, #1
LBB0_8:
Lloh28:
	adrp	x8, _NIG_REG_BMAC0_PAUSE_OUT_EN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NIG_REG_BMAC0_PAUSE_OUT_EN@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x20
	bl	_REG_WR
Lloh31:
	adrp	x8, _NIG_REG_EGRESS_EMAC0_OUT_EN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NIG_REG_EGRESS_EMAC0_OUT_EN@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x20
	mov	w2, #0
	bl	_REG_WR
Lloh34:
	adrp	x8, _NIG_REG_EMAC0_IN_EN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NIG_REG_EMAC0_IN_EN@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x20
	mov	w2, #0
	bl	_REG_WR
Lloh37:
	adrp	x8, _NIG_REG_EMAC0_PAUSE_OUT_EN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NIG_REG_EMAC0_PAUSE_OUT_EN@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x20
	mov	w2, #0
	bl	_REG_WR
Lloh40:
	adrp	x8, _NIG_REG_BMAC0_IN_EN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NIG_REG_BMAC0_IN_EN@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x20
	mov	w2, #1
	bl	_REG_WR
Lloh43:
	adrp	x8, _NIG_REG_BMAC0_OUT_EN@GOTPAGE
Lloh44:
	ldr	x8, [x8, _NIG_REG_BMAC0_OUT_EN@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x20
	mov	w2, #1
	bl	_REG_WR
Lloh46:
	adrp	x8, _MAC_TYPE_BMAC@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MAC_TYPE_BMAC@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w2, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GRCBASE_MISC,8,3               ; @GRCBASE_MISC
	.comm	_MISC_REGISTERS_RESET_REG_2_CLEAR,8,3 ; @MISC_REGISTERS_RESET_REG_2_CLEAR
	.comm	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0,4,2 ; @MISC_REGISTERS_RESET_REG_2_RST_BMAC0
	.comm	_MISC_REGISTERS_RESET_REG_2_SET,8,3 ; @MISC_REGISTERS_RESET_REG_2_SET
	.comm	_NIG_REG_BMAC0_REGS_OUT_EN,8,3  ; @NIG_REG_BMAC0_REGS_OUT_EN
	.comm	_NIG_REG_XGXS_SERDES0_MODE_SEL,8,3 ; @NIG_REG_XGXS_SERDES0_MODE_SEL
	.comm	_NIG_REG_XGXS_LANE_SEL_P0,8,3   ; @NIG_REG_XGXS_LANE_SEL_P0
	.comm	_NIG_REG_EGRESS_EMAC0_PORT,8,3  ; @NIG_REG_EGRESS_EMAC0_PORT
	.comm	_FEATURE_CONFIG_PFC_ENABLED,4,2 ; @FEATURE_CONFIG_PFC_ENABLED
	.comm	_BNX2X_FLOW_CTRL_TX,4,2         ; @BNX2X_FLOW_CTRL_TX
	.comm	_NIG_REG_BMAC0_PAUSE_OUT_EN,8,3 ; @NIG_REG_BMAC0_PAUSE_OUT_EN
	.comm	_NIG_REG_EGRESS_EMAC0_OUT_EN,8,3 ; @NIG_REG_EGRESS_EMAC0_OUT_EN
	.comm	_NIG_REG_EMAC0_IN_EN,8,3        ; @NIG_REG_EMAC0_IN_EN
	.comm	_NIG_REG_EMAC0_PAUSE_OUT_EN,8,3 ; @NIG_REG_EMAC0_PAUSE_OUT_EN
	.comm	_NIG_REG_BMAC0_IN_EN,8,3        ; @NIG_REG_BMAC0_IN_EN
	.comm	_NIG_REG_BMAC0_OUT_EN,8,3       ; @NIG_REG_BMAC0_OUT_EN
	.comm	_MAC_TYPE_BMAC,4,2              ; @MAC_TYPE_BMAC
	.no_dead_strip	_bnx2x_bmac_enable
.subsections_via_symbols
