	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_update_link_up
_bnx2x_update_link_up:                  ## @bnx2x_update_link_up
	.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, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movslq	(%rdi), %r12
	movq	_LINK_STATUS_LINK_UP@GOTPCREL(%rip), %rcx
	movq	_LINK_STATUS_PHYSICAL_LINK_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	orl	(%rsi), %eax
	movl	%eax, (%rsi)
	movq	_PHY_PHYSICAL_LINK_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rsi)
	movl	8(%rsi), %ecx
	movq	_BNX2X_FLOW_CTRL_TX@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_LINK_STATUS_TX_FLOW_CONTROL_ENABLED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rbx)
LBB0_2:
	movq	_BNX2X_FLOW_CTRL_RX@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.3:
	movq	_LINK_STATUS_RX_FLOW_CONTROL_ENABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_4:
	movq	%r15, %rdi
	callq	_USES_WARPCORE
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.6:
	callq	_bnx2x_xmac_enable
	movq	_ESRCH@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_9
## %bb.7:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	$0, 24(%rbx)
	movq	_PHY_HALF_OPEN_CONN_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movq	_LINK_STATUS_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	jmp	LBB0_9
LBB0_8:
	callq	_bnx2x_umac_enable
LBB0_9:
	movq	_LED_MODE_OPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%rbx), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_set_led
	movl	12(%rbx), %eax
	movq	_SHMEM_EEE_ACTIVE_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:
	movq	_SHMEM_EEE_LPI_REQUESTED_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movq	_MISC_REG_CPMU_LP_FW_ENABLE_P0@GOTPCREL(%rip), %rax
	movl	(%r14), %ecx
	shll	$2, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_REG_WR
	movq	_MISC_REG_CPMU_LP_DR_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_REG_WR
	movq	_MISC_REG_CPMU_LP_MASK_ENT_P0@GOTPCREL(%rip), %rax
	movl	(%r14), %ecx
	shll	$2, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$64544, %edx                    ## imm = 0xFC20
	callq	_REG_WR
LBB0_12:
	movq	%r15, %rdi
	callq	_CHIP_IS_E1x
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	callq	_CHIP_IS_E2
	testq	%rax, %rax
	je	LBB0_14
LBB0_15:
	testl	%r13d, %r13d
	je	LBB0_19
## %bb.16:
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_bnx2x_bmac_enable
	movq	_ESRCH@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_18
## %bb.17:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_DP
	movq	$0, 24(%rbx)
	movq	_PHY_HALF_OPEN_CONN_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movq	_LINK_STATUS_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_18:
	movq	_LED_MODE_OPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_set_led
	jmp	LBB0_23
LBB0_19:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_emac_program
	movl	%eax, %r13d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_bnx2x_emac_enable
	movq	_LINK_STATUS_AUTO_NEGOTIATE_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_23
## %bb.20:
	movq	_PHY_SGMII_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_23
## %bb.21:
	movq	%r14, %rdi
	callq	_SINGLE_MEDIA_DIRECT
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	%r14, %rdi
	callq	_bnx2x_set_gmii_tx_driver
	jmp	LBB0_23
LBB0_14:
	xorl	%r13d, %r13d
LBB0_23:
	movq	%r15, %rdi
	callq	_CHIP_IS_E1x
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movl	8(%rbx), %esi
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	callq	_bnx2x_pbf_update
	orl	%eax, %r13d
LBB0_25:
	movq	_NIG_REG_EGRESS_DRAIN0_MODE@GOTPCREL(%rip), %rax
	shlq	$2, %r12
	addq	(%rax), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_REG_WR
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_bnx2x_update_mng
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_bnx2x_update_mng_eee
	movq	_INT_PHY@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	_MAX_PHYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %esi
	jge	LBB0_30
## %bb.26:
	movq	_FLAGS_TX_ERROR_CHECK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rsi, %rdx
	shlq	$2, %rdx
	addq	8(%r14), %rdx
	subl	%esi, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	testl	%ecx, (%rdx,%rsi,4)
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_28 Depth=1
	incq	%rsi
	cmpl	%esi, %eax
	jne	LBB0_28
	jmp	LBB0_30
LBB0_29:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_bnx2x_check_half_open_conn
LBB0_30:
	movl	$20, %edi
	callq	_msleep
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINK_STATUS_LINK_UP,4,2        ## @LINK_STATUS_LINK_UP
	.comm	_LINK_STATUS_PHYSICAL_LINK_FLAG,4,2 ## @LINK_STATUS_PHYSICAL_LINK_FLAG
	.comm	_PHY_PHYSICAL_LINK_FLAG,4,2     ## @PHY_PHYSICAL_LINK_FLAG
	.comm	_BNX2X_FLOW_CTRL_TX,4,2         ## @BNX2X_FLOW_CTRL_TX
	.comm	_LINK_STATUS_TX_FLOW_CONTROL_ENABLED,4,2 ## @LINK_STATUS_TX_FLOW_CONTROL_ENABLED
	.comm	_BNX2X_FLOW_CTRL_RX,4,2         ## @BNX2X_FLOW_CTRL_RX
	.comm	_LINK_STATUS_RX_FLOW_CONTROL_ENABLED,4,2 ## @LINK_STATUS_RX_FLOW_CONTROL_ENABLED
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found errors on XMAC\n"

	.comm	_PHY_HALF_OPEN_CONN_FLAG,4,2    ## @PHY_HALF_OPEN_CONN_FLAG
	.comm	_LED_MODE_OPER,4,2              ## @LED_MODE_OPER
	.comm	_SHMEM_EEE_ACTIVE_BIT,4,2       ## @SHMEM_EEE_ACTIVE_BIT
	.comm	_SHMEM_EEE_LPI_REQUESTED_BIT,4,2 ## @SHMEM_EEE_LPI_REQUESTED_BIT
L_.str.1:                               ## @.str.1
	.asciz	"Enabling LPI assertion\n"

	.comm	_MISC_REG_CPMU_LP_FW_ENABLE_P0,8,3 ## @MISC_REG_CPMU_LP_FW_ENABLE_P0
	.comm	_MISC_REG_CPMU_LP_DR_ENABLE,8,3 ## @MISC_REG_CPMU_LP_DR_ENABLE
	.comm	_MISC_REG_CPMU_LP_MASK_ENT_P0,8,3 ## @MISC_REG_CPMU_LP_MASK_ENT_P0
L_.str.2:                               ## @.str.2
	.asciz	"Found errors on BMAC\n"

	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_LINK_STATUS_AUTO_NEGOTIATE_COMPLETE,4,2 ## @LINK_STATUS_AUTO_NEGOTIATE_COMPLETE
	.comm	_PHY_SGMII_FLAG,4,2             ## @PHY_SGMII_FLAG
	.comm	_NIG_REG_EGRESS_DRAIN0_MODE,8,3 ## @NIG_REG_EGRESS_DRAIN0_MODE
	.comm	_INT_PHY,4,2                    ## @INT_PHY
	.comm	_MAX_PHYS,4,2                   ## @MAX_PHYS
	.comm	_FLAGS_TX_ERROR_CHECK,4,2       ## @FLAGS_TX_ERROR_CHECK
	.no_dead_strip	_bnx2x_update_link_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_update_link_up
_bnx2x_update_link_up:                  ; @bnx2x_update_link_up
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #16]
	ldrsw	x23, [x0]
Lloh0:
	adrp	x24, _LINK_STATUS_LINK_UP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LINK_STATUS_LINK_UP@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _LINK_STATUS_PHYSICAL_LINK_FLAG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LINK_STATUS_PHYSICAL_LINK_FLAG@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldp	w9, w10, [x1]
	orr	w8, w8, w9
	str	w8, [x1]
Lloh5:
	adrp	x9, _PHY_PHYSICAL_LINK_FLAG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PHY_PHYSICAL_LINK_FLAG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w9, w10, w9
	str	w9, [x1, #4]
	ldr	w9, [x1, #8]
Lloh8:
	adrp	x10, _BNX2X_FLOW_CTRL_TX@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BNX2X_FLOW_CTRL_TX@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x10, _LINK_STATUS_TX_FLOW_CONTROL_ENABLED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _LINK_STATUS_TX_FLOW_CONTROL_ENABLED@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x19]
LBB0_2:
Lloh14:
	adrp	x10, _BNX2X_FLOW_CTRL_RX@GOTPAGE
Lloh15:
	ldr	x10, [x10, _BNX2X_FLOW_CTRL_RX@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
Lloh17:
	adrp	x9, _LINK_STATUS_RX_FLOW_CONTROL_ENABLED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LINK_STATUS_RX_FLOW_CONTROL_ENABLED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_4:
	mov	x0, x21
	bl	_USES_WARPCORE
Lloh20:
	adrp	x25, _LED_MODE_OPER@GOTPAGE
Lloh21:
	ldr	x25, [x25, _LED_MODE_OPER@GOTPAGEOFF]
	cbz	x0, LBB0_12
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	cbz	w22, LBB0_8
; %bb.6:
	bl	_bnx2x_xmac_enable
Lloh22:
	adrp	x8, _ESRCH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
; %bb.7:
Lloh25:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	str	xzr, [x19, #24]
Lloh30:
	adrp	x8, _PHY_HALF_OPEN_CONN_FLAG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PHY_HALF_OPEN_CONN_FLAG@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldp	w10, w9, [x19]
	orr	w8, w9, w8
	ldr	w9, [x24]
	bic	w9, w10, w9
	stp	w9, w8, [x19]
	b	LBB0_9
LBB0_8:
	bl	_bnx2x_umac_enable
LBB0_9:
	ldr	w2, [x25]
	ldr	w3, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_set_led
	ldr	w8, [x19, #12]
Lloh33:
	adrp	x9, _SHMEM_EEE_ACTIVE_BIT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SHMEM_EEE_ACTIVE_BIT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
Lloh36:
	adrp	x9, _SHMEM_EEE_LPI_REQUESTED_BIT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SHMEM_EEE_LPI_REQUESTED_BIT@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
Lloh39:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh44:
	adrp	x8, _MISC_REG_CPMU_LP_FW_ENABLE_P0@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MISC_REG_CPMU_LP_FW_ENABLE_P0@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	ldr	w9, [x20]
	lsl	w9, w9, #2
	add	x1, x8, w9, sxtw
	mov	x0, x21
	mov	w2, #1
	bl	_REG_WR
Lloh47:
	adrp	x8, _MISC_REG_CPMU_LP_DR_ENABLE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MISC_REG_CPMU_LP_DR_ENABLE@GOTPAGEOFF]
Lloh49:
	ldr	x1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_REG_WR
Lloh50:
	adrp	x8, _MISC_REG_CPMU_LP_MASK_ENT_P0@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MISC_REG_CPMU_LP_MASK_ENT_P0@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	ldr	w9, [x20]
	lsl	w9, w9, #2
	add	x1, x8, w9, sxtw
	mov	x0, x21
	mov	w2, #64544
	bl	_REG_WR
LBB0_12:
	mov	x0, x21
	bl	_CHIP_IS_E1x
	cbnz	x0, LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_CHIP_IS_E2
	cbz	x0, LBB0_18
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	cbz	w22, LBB0_25
; %bb.15:
	mov	w2, #0
	mov	w3, #1
	bl	_bnx2x_bmac_enable
Lloh53:
	adrp	x8, _ESRCH@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_17
; %bb.16:
Lloh56:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh57:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
Lloh59:
	adrp	x1, l_.str.2@PAGE
Lloh60:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	str	xzr, [x19, #24]
Lloh61:
	adrp	x8, _PHY_HALF_OPEN_CONN_FLAG@GOTPAGE
Lloh62:
	ldr	x8, [x8, _PHY_HALF_OPEN_CONN_FLAG@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	ldp	w10, w9, [x19]
	orr	w8, w9, w8
	ldr	w9, [x24]
	bic	w9, w10, w9
	stp	w9, w8, [x19]
LBB0_17:
	ldr	w2, [x25]
Lloh64:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh65:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh66:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_set_led
LBB0_18:
	mov	w22, #0
LBB0_19:
	mov	x0, x21
	bl	_CHIP_IS_E1x
	cbz	x0, LBB0_21
; %bb.20:
	ldr	w1, [x19, #8]
	ldr	w2, [x19, #16]
	mov	x0, x20
	bl	_bnx2x_pbf_update
	orr	w22, w0, w22
LBB0_21:
Lloh67:
	adrp	x8, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGE
Lloh68:
	ldr	x8, [x8, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGEOFF]
Lloh69:
	ldr	x8, [x8]
	add	x1, x8, x23, lsl #2
	mov	x0, x21
	mov	w2, #0
	bl	_REG_WR
	ldr	w1, [x19]
	mov	x0, x20
	bl	_bnx2x_update_mng
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_bnx2x_update_mng_eee
Lloh70:
	adrp	x8, _INT_PHY@GOTPAGE
Lloh71:
	ldr	x8, [x8, _INT_PHY@GOTPAGEOFF]
Lloh72:
	ldrsw	x10, [x8]
Lloh73:
	adrp	x8, _MAX_PHYS@GOTPAGE
Lloh74:
	ldr	x8, [x8, _MAX_PHYS@GOTPAGEOFF]
Lloh75:
	ldr	w11, [x8]
	cmp	w10, w11
	b.ge	LBB0_30
; %bb.22:
	ldr	x9, [x20, #8]
Lloh76:
	adrp	x8, _FLAGS_TX_ERROR_CHECK@GOTPAGE
Lloh77:
	ldr	x8, [x8, _FLAGS_TX_ERROR_CHECK@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
	add	x9, x9, x10, lsl #2
	sub	w10, w11, w10
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	tst	w8, w11
	b.ne	LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x9, x9, #4
	subs	w10, w10, #1
	b.ne	LBB0_23
	b	LBB0_30
LBB0_25:
	bl	_bnx2x_emac_program
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_bnx2x_emac_enable
	ldr	w8, [x19]
Lloh79:
	adrp	x9, _LINK_STATUS_AUTO_NEGOTIATE_COMPLETE@GOTPAGE
Lloh80:
	ldr	x9, [x9, _LINK_STATUS_AUTO_NEGOTIATE_COMPLETE@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.26:
	ldr	w8, [x19, #4]
Lloh82:
	adrp	x9, _PHY_SGMII_FLAG@GOTPAGE
Lloh83:
	ldr	x9, [x9, _PHY_SGMII_FLAG@GOTPAGEOFF]
Lloh84:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.27:
	mov	x0, x20
	bl	_SINGLE_MEDIA_DIRECT
	cbz	x0, LBB0_19
; %bb.28:
	mov	x0, x20
	bl	_bnx2x_set_gmii_tx_driver
	b	LBB0_19
LBB0_29:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_bnx2x_check_half_open_conn
LBB0_30:
	mov	w0, #20
	bl	_msleep
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_LINK_STATUS_LINK_UP,4,2        ; @LINK_STATUS_LINK_UP
	.comm	_LINK_STATUS_PHYSICAL_LINK_FLAG,4,2 ; @LINK_STATUS_PHYSICAL_LINK_FLAG
	.comm	_PHY_PHYSICAL_LINK_FLAG,4,2     ; @PHY_PHYSICAL_LINK_FLAG
	.comm	_BNX2X_FLOW_CTRL_TX,4,2         ; @BNX2X_FLOW_CTRL_TX
	.comm	_LINK_STATUS_TX_FLOW_CONTROL_ENABLED,4,2 ; @LINK_STATUS_TX_FLOW_CONTROL_ENABLED
	.comm	_BNX2X_FLOW_CTRL_RX,4,2         ; @BNX2X_FLOW_CTRL_RX
	.comm	_LINK_STATUS_RX_FLOW_CONTROL_ENABLED,4,2 ; @LINK_STATUS_RX_FLOW_CONTROL_ENABLED
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found errors on XMAC\n"

	.comm	_PHY_HALF_OPEN_CONN_FLAG,4,2    ; @PHY_HALF_OPEN_CONN_FLAG
	.comm	_LED_MODE_OPER,4,2              ; @LED_MODE_OPER
	.comm	_SHMEM_EEE_ACTIVE_BIT,4,2       ; @SHMEM_EEE_ACTIVE_BIT
	.comm	_SHMEM_EEE_LPI_REQUESTED_BIT,4,2 ; @SHMEM_EEE_LPI_REQUESTED_BIT
l_.str.1:                               ; @.str.1
	.asciz	"Enabling LPI assertion\n"

	.comm	_MISC_REG_CPMU_LP_FW_ENABLE_P0,8,3 ; @MISC_REG_CPMU_LP_FW_ENABLE_P0
	.comm	_MISC_REG_CPMU_LP_DR_ENABLE,8,3 ; @MISC_REG_CPMU_LP_DR_ENABLE
	.comm	_MISC_REG_CPMU_LP_MASK_ENT_P0,8,3 ; @MISC_REG_CPMU_LP_MASK_ENT_P0
l_.str.2:                               ; @.str.2
	.asciz	"Found errors on BMAC\n"

	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_LINK_STATUS_AUTO_NEGOTIATE_COMPLETE,4,2 ; @LINK_STATUS_AUTO_NEGOTIATE_COMPLETE
	.comm	_PHY_SGMII_FLAG,4,2             ; @PHY_SGMII_FLAG
	.comm	_NIG_REG_EGRESS_DRAIN0_MODE,8,3 ; @NIG_REG_EGRESS_DRAIN0_MODE
	.comm	_INT_PHY,4,2                    ; @INT_PHY
	.comm	_MAX_PHYS,4,2                   ; @MAX_PHYS
	.comm	_FLAGS_TX_ERROR_CHECK,4,2       ; @FLAGS_TX_ERROR_CHECK
	.no_dead_strip	_bnx2x_update_link_up
.subsections_via_symbols
