	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_848xx_set_link_led
_bnx2x_848xx_set_link_led:              ## @bnx2x_848xx_set_link_led
	.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, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	16(%rsi), %r15
	movq	%r15, %rdi
	callq	_CHIP_IS_E1x
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edx
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	_BP_PATH
	movl	%eax, %edx
LBB0_3:
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_38
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	4(%r12), %eax
	movq	_SHARED_HW_CFG_LED_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_SHARED_HW_CFG_LED_EXTPHY1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.6:
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movq	_MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	movq	_MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$42130, %r8d                    ## imm = 0xA492
	callq	_bnx2x_cl45_write
LBB0_8:
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8481_LED1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$16, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8481_LED2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$128, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8481_LED3_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$152, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8481_LED5_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$64, %r8d
	jmp	LBB0_37
LBB0_9:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	4(%r12), %eax
	movq	_SHARED_HW_CFG_LED_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_SHARED_HW_CFG_LED_EXTPHY1@GOTPCREL(%rip), %rcx
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	cmpl	(%rcx), %eax
	jne	LBB0_22
## %bb.10:
	movq	_MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movl	$32768, %r8d                    ## imm = 0x8000
	andl	-44(%rbp), %r8d
	orl	$9362, %r8d                     ## imm = 0x2492
	movl	%r8d, -44(%rbp)
	movl	(%r13), %edx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_write
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_8481_LED1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_8481_LED2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$32, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_8481_LED3_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$32, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r13), %edx
	jmp	LBB0_13
LBB0_11:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	4(%r12), %ebx
	movq	_SHARED_HW_CFG_LED_MODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_SHARED_HW_CFG_LED_EXTPHY1@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8481_LED1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	cmpl	%r13d, %ebx
	jne	LBB0_27
## %bb.12:
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8481_LED2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8481_LED3_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
LBB0_13:
	movq	_MDIO_PMA_REG_8481_LED5_MASK@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	jmp	LBB0_37
LBB0_15:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	4(%r12), %ebx
	movq	_SHARED_HW_CFG_LED_MODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_SHARED_HW_CFG_LED_EXTPHY1@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_REG_8481_LED1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	cmpl	%r13d, %ebx
	jne	LBB0_29
## %bb.16:
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_MDIO_PMA_REG_8481_LED2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movl	(%rbx), %edx
	movq	_MDIO_PMA_REG_8481_LED3_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movl	(%rbx), %edx
	movq	_MDIO_PMA_REG_8481_LED5_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_36
LBB0_17:
	movq	_SHARED_HW_CFG_LED_EXTPHY2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$152, %eax
	movl	$128, %r8d
	cmovel	%eax, %r8d
	movl	%r8d, -44(%rbp)
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_8481_LED1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_write
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movl	$-449, %r8d                     ## imm = 0xFE3F
	andl	-44(%rbp), %r8d
	orl	$64, %r8d
	movl	%r8d, -44(%rbp)
	movl	(%r13), %edx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_write
	movl	(%r14), %eax
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.18:
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_8481_LED2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$24, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_8481_LED3_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$6, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r14), %eax
LBB0_19:
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_38
## %bb.20:
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_8481_SIGNAL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$64, %r8d
	callq	_bnx2x_cl45_write
	movq	_LINK_FLAGS_INT_DISABLED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, 8(%r12)
	je	LBB0_38
## %bb.21:
	movq	%r12, %rdi
	callq	_bnx2x_link_int_enable
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, 8(%r12)
	jmp	LBB0_38
LBB0_22:
	movq	_MDIO_PMA_REG_8481_LED1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$32, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r14), %eax
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_25
## %bb.23:
	movq	_NIG_REG_MASK_INTERRUPT_PORT0@GOTPCREL(%rip), %rbx
	movl	(%r12), %esi
	shll	$2, %esi
	addl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_REG_RD
	movq	_NIG_MASK_MI_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_25
## %bb.24:
	movq	_LINK_FLAGS_INT_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
	movl	(%r12), %esi
	shll	$2, %esi
	addl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_bnx2x_bits_dis
LBB0_25:
	movl	(%r14), %eax
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPCREL(%rip), %rcx
	movl	(%r13), %edx
	cmpl	(%rcx), %eax
	jne	LBB0_35
## %bb.26:
	movq	_MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movl	$-449, %r8d                     ## imm = 0xFE3F
	andl	-44(%rbp), %r8d
	orl	$128, %r8d
	movl	%r8d, -44(%rbp)
	movl	(%r13), %edx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_write
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_8481_LED3_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_36
LBB0_27:
	movl	(%r14), %eax
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_38
## %bb.28:
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8481_LED2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8481_LED3_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_29:
	movl	(%r14), %eax
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rbx
	jne	LBB0_33
## %bb.30:
	movq	_NIG_REG_MASK_INTERRUPT_PORT0@GOTPCREL(%rip), %r13
	movl	(%r12), %esi
	shll	$2, %esi
	addl	(%r13), %esi
	movq	%r15, %rdi
	callq	_REG_RD
	movq	_NIG_MASK_MI_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_32
## %bb.31:
	movq	_LINK_FLAGS_INT_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
	movl	(%r12), %esi
	shll	$2, %esi
	addl	(%r13), %esi
	movq	%r15, %rdi
	callq	_bnx2x_bits_dis
LBB0_32:
	movl	(%rbx), %edx
	movq	_MDIO_PMA_REG_8481_SIGNAL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r14), %eax
LBB0_33:
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_38
## %bb.34:
	movl	(%rbx), %edx
	movq	_MDIO_PMA_REG_8481_LED2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movl	(%rbx), %edx
	movq	_MDIO_PMA_REG_8481_LED3_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_35:
	movq	_MDIO_PMA_REG_8481_SIGNAL_MASK@GOTPCREL(%rip), %rax
LBB0_36:
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$32, %r8d
LBB0_37:
	callq	_bnx2x_cl45_write
LBB0_38:
	movq	%r15, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	je	LBB0_40
## %bb.39:
	movq	_MDIO_WC_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_WC_REG_GP2_STATUS_GP_2_1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
LBB0_40:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port 0x%x: LED MODE OFF\n"

	.comm	_SHARED_HW_CFG_LED_MODE_SHIFT,4,2 ## @SHARED_HW_CFG_LED_MODE_SHIFT
	.comm	_SHARED_HW_CFG_LED_EXTPHY1,4,2  ## @SHARED_HW_CFG_LED_EXTPHY1
	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_8481_LED1_MASK,4,2 ## @MDIO_PMA_REG_8481_LED1_MASK
	.comm	_MDIO_PMA_REG_8481_LED2_MASK,4,2 ## @MDIO_PMA_REG_8481_LED2_MASK
	.comm	_MDIO_PMA_REG_8481_LED3_MASK,4,2 ## @MDIO_PMA_REG_8481_LED3_MASK
	.comm	_MDIO_PMA_REG_8481_LED5_MASK,4,2 ## @MDIO_PMA_REG_8481_LED5_MASK
	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858,4,2 ## @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858
L_.str.1:                               ## @.str.1
	.asciz	"Port 0x%x: LED MODE FRONT PANEL OFF\n"

	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834,4,2 ## @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834
	.comm	_NIG_REG_MASK_INTERRUPT_PORT0,4,2 ## @NIG_REG_MASK_INTERRUPT_PORT0
	.comm	_NIG_MASK_MI_INT,4,2            ## @NIG_MASK_MI_INT
	.comm	_LINK_FLAGS_INT_DISABLED,4,2    ## @LINK_FLAGS_INT_DISABLED
	.comm	_MDIO_PMA_REG_8481_SIGNAL_MASK,4,2 ## @MDIO_PMA_REG_8481_SIGNAL_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Port 0x%x: LED MODE ON\n"

	.comm	_MDIO_PMA_REG_8481_LINK_SIGNAL,4,2 ## @MDIO_PMA_REG_8481_LINK_SIGNAL
L_.str.3:                               ## @.str.3
	.asciz	"Port 0x%x: LED MODE OPER\n"

	.comm	_MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_MASK,4,2 ## @MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_MASK
	.comm	_MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_SHIFT,4,2 ## @MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_SHIFT
L_.str.4:                               ## @.str.4
	.asciz	"Setting LINK_SIGNAL\n"

	.comm	_SHARED_HW_CFG_LED_EXTPHY2,4,2  ## @SHARED_HW_CFG_LED_EXTPHY2
	.comm	_MDIO_WC_DEVAD,4,2              ## @MDIO_WC_DEVAD
	.comm	_MDIO_WC_REG_GP2_STATUS_GP_2_1,4,2 ## @MDIO_WC_REG_GP2_STATUS_GP_2_1
	.no_dead_strip	_bnx2x_848xx_set_link_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_848xx_set_link_led
_bnx2x_848xx_set_link_led:              ; @bnx2x_848xx_set_link_led
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x1, #16]
	mov	x0, x20
	bl	_CHIP_IS_E1x
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_BP_PATH
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_3:
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_39
; %bb.4:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh2:
	adrp	x22, _NETIF_MSG_LINK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w8, [x22]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_DP
	ldr	w8, [x21, #4]
Lloh6:
	adrp	x9, _SHARED_HW_CFG_LED_MODE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SHARED_HW_CFG_LED_MODE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh9:
	adrp	x9, _SHARED_HW_CFG_LED_EXTPHY1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SHARED_HW_CFG_LED_EXTPHY1@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.6:
Lloh12:
	adrp	x21, _MDIO_PMA_DEVAD@GOTPAGE
Lloh13:
	ldr	x21, [x21, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh14:
	adrp	x23, _MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPAGE
Lloh15:
	ldr	x23, [x23, _MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
Lloh16:
	adrp	x9, _MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh19:
	adrp	x9, _MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_SHIFT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	w0, [x22]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DP
	ldr	w2, [x21]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #42130
	bl	_bnx2x_cl45_write
LBB0_8:
	ldr	w2, [x21]
Lloh24:
	adrp	x8, _MDIO_PMA_REG_8481_LED1_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED1_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #16
	bl	_bnx2x_cl45_write
	ldr	w2, [x21]
Lloh27:
	adrp	x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #128
	bl	_bnx2x_cl45_write
	ldr	w2, [x21]
Lloh30:
	adrp	x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #152
	bl	_bnx2x_cl45_write
	ldr	w2, [x21]
Lloh33:
	adrp	x8, _MDIO_PMA_REG_8481_LED5_MASK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED5_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #64
	b	LBB0_38
LBB0_9:
Lloh36:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	bl	_DP
	ldr	w8, [x21, #4]
Lloh41:
	adrp	x9, _SHARED_HW_CFG_LED_MODE_SHIFT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _SHARED_HW_CFG_LED_MODE_SHIFT@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
Lloh44:
	adrp	x10, _SHARED_HW_CFG_LED_EXTPHY1@GOTPAGE
Lloh45:
	ldr	x10, [x10, _SHARED_HW_CFG_LED_EXTPHY1@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh46:
	ldr	w9, [x10]
Lloh47:
	adrp	x22, _MDIO_PMA_DEVAD@GOTPAGE
Lloh48:
	ldr	x22, [x22, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x22]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.10:
Lloh49:
	adrp	x21, _MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPAGE
Lloh50:
	ldr	x21, [x21, _MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
	and	w8, w8, #0x8000
	mov	w9, #9362
	orr	w4, w8, w9
	str	w4, [sp, #12]
	ldr	w2, [x22]
	ldr	w3, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
Lloh51:
	adrp	x8, _MDIO_PMA_REG_8481_LED1_MASK@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED1_MASK@GOTPAGEOFF]
Lloh53:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
Lloh54:
	adrp	x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGE
Lloh55:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGEOFF]
Lloh56:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #32
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
Lloh57:
	adrp	x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGEOFF]
Lloh59:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #32
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
	b	LBB0_13
LBB0_11:
Lloh60:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh61:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh63:
	adrp	x1, l_.str@PAGE
Lloh64:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_DP
Lloh65:
	adrp	x8, _SHARED_HW_CFG_LED_MODE_SHIFT@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SHARED_HW_CFG_LED_MODE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x21, #4]
Lloh67:
	ldr	w8, [x8]
	lsl	w22, w9, w8
Lloh68:
	adrp	x8, _SHARED_HW_CFG_LED_EXTPHY1@GOTPAGE
Lloh69:
	ldr	x8, [x8, _SHARED_HW_CFG_LED_EXTPHY1@GOTPAGEOFF]
Lloh70:
	ldr	w23, [x8]
Lloh71:
	adrp	x21, _MDIO_PMA_DEVAD@GOTPAGE
Lloh72:
	ldr	x21, [x21, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh73:
	adrp	x8, _MDIO_PMA_REG_8481_LED1_MASK@GOTPAGE
Lloh74:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED1_MASK@GOTPAGEOFF]
Lloh75:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	cmp	w22, w23
	b.ne	LBB0_26
; %bb.12:
	ldr	w2, [x21]
Lloh76:
	adrp	x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGE
Lloh77:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGEOFF]
Lloh78:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	ldr	w2, [x21]
Lloh79:
	adrp	x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGE
Lloh80:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGEOFF]
Lloh81:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	ldr	w2, [x21]
LBB0_13:
Lloh82:
	adrp	x8, _MDIO_PMA_REG_8481_LED5_MASK@GOTPAGE
Lloh83:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED5_MASK@GOTPAGEOFF]
	b	LBB0_35
LBB0_14:
Lloh84:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh85:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh87:
	adrp	x1, l_.str.1@PAGE
Lloh88:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_DP
Lloh89:
	adrp	x8, _SHARED_HW_CFG_LED_MODE_SHIFT@GOTPAGE
Lloh90:
	ldr	x8, [x8, _SHARED_HW_CFG_LED_MODE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x21, #4]
Lloh91:
	ldr	w8, [x8]
	lsl	w23, w9, w8
Lloh92:
	adrp	x8, _SHARED_HW_CFG_LED_EXTPHY1@GOTPAGE
Lloh93:
	ldr	x8, [x8, _SHARED_HW_CFG_LED_EXTPHY1@GOTPAGEOFF]
Lloh94:
	ldr	w24, [x8]
Lloh95:
	adrp	x22, _MDIO_PMA_DEVAD@GOTPAGE
Lloh96:
	ldr	x22, [x22, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh97:
	adrp	x8, _MDIO_PMA_REG_8481_LED1_MASK@GOTPAGE
Lloh98:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED1_MASK@GOTPAGEOFF]
Lloh99:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	cmp	w23, w24
	b.ne	LBB0_28
; %bb.15:
	ldr	w2, [x22]
Lloh100:
	adrp	x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGE
Lloh101:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGEOFF]
Lloh102:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
Lloh103:
	adrp	x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGE
Lloh104:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGEOFF]
Lloh105:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
Lloh106:
	adrp	x8, _MDIO_PMA_REG_8481_LED5_MASK@GOTPAGE
Lloh107:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED5_MASK@GOTPAGEOFF]
	b	LBB0_37
LBB0_16:
Lloh108:
	adrp	x9, _SHARED_HW_CFG_LED_EXTPHY2@GOTPAGE
Lloh109:
	ldr	x9, [x9, _SHARED_HW_CFG_LED_EXTPHY2@GOTPAGEOFF]
Lloh110:
	ldr	w9, [x9]
	mov	w10, #128
	mov	w11, #152
	cmp	w8, w9
	csel	w4, w11, w10, eq
	str	w4, [sp, #12]
Lloh111:
	adrp	x22, _MDIO_PMA_DEVAD@GOTPAGE
Lloh112:
	ldr	x22, [x22, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh113:
	adrp	x8, _MDIO_PMA_REG_8481_LED1_MASK@GOTPAGE
Lloh114:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED1_MASK@GOTPAGEOFF]
Lloh115:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
Lloh116:
	adrp	x23, _MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPAGE
Lloh117:
	ldr	x23, [x23, _MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffe3f
	orr	w4, w8, #0x40
	str	w4, [sp, #12]
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
	ldr	w8, [x19]
Lloh118:
	adrp	x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPAGE
Lloh119:
	ldr	x9, [x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPAGEOFF]
Lloh120:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.17:
	ldr	w2, [x22]
Lloh121:
	adrp	x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGE
Lloh122:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGEOFF]
Lloh123:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #24
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
Lloh124:
	adrp	x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGE
Lloh125:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGEOFF]
Lloh126:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #6
	bl	_bnx2x_cl45_write
	ldr	w8, [x19]
LBB0_18:
Lloh127:
	adrp	x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPAGE
Lloh128:
	ldr	x9, [x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPAGEOFF]
Lloh129:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_39
; %bb.19:
	ldr	w2, [x22]
Lloh130:
	adrp	x8, _MDIO_PMA_REG_8481_SIGNAL_MASK@GOTPAGE
Lloh131:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_SIGNAL_MASK@GOTPAGEOFF]
Lloh132:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #64
	bl	_bnx2x_cl45_write
	ldr	w8, [x21, #8]
Lloh133:
	adrp	x22, _LINK_FLAGS_INT_DISABLED@GOTPAGE
Lloh134:
	ldr	x22, [x22, _LINK_FLAGS_INT_DISABLED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_39
; %bb.20:
	mov	x0, x21
	bl	_bnx2x_link_int_enable
	ldr	w8, [x22]
	ldr	w9, [x21, #8]
	bic	w8, w9, w8
	str	w8, [x21, #8]
	b	LBB0_39
LBB0_21:
Lloh135:
	adrp	x8, _MDIO_PMA_REG_8481_LED1_MASK@GOTPAGE
Lloh136:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED1_MASK@GOTPAGEOFF]
Lloh137:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #32
	bl	_bnx2x_cl45_write
	ldr	w8, [x19]
Lloh138:
	adrp	x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPAGE
Lloh139:
	ldr	x9, [x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPAGEOFF]
Lloh140:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_24
; %bb.22:
Lloh141:
	adrp	x23, _NIG_REG_MASK_INTERRUPT_PORT0@GOTPAGE
Lloh142:
	ldr	x23, [x23, _NIG_REG_MASK_INTERRUPT_PORT0@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x21]
	add	w1, w8, w9, lsl #2
	mov	x0, x20
	bl	_REG_RD
Lloh143:
	adrp	x8, _NIG_MASK_MI_INT@GOTPAGE
Lloh144:
	ldr	x8, [x8, _NIG_MASK_MI_INT@GOTPAGEOFF]
Lloh145:
	ldr	w2, [x8]
	tst	w2, w0
	b.eq	LBB0_24
; %bb.23:
Lloh146:
	adrp	x8, _LINK_FLAGS_INT_DISABLED@GOTPAGE
Lloh147:
	ldr	x8, [x8, _LINK_FLAGS_INT_DISABLED@GOTPAGEOFF]
Lloh148:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
	ldr	w8, [x23]
	ldr	w9, [x21]
	add	w1, w8, w9, lsl #2
	mov	x0, x20
	bl	_bnx2x_bits_dis
LBB0_24:
	ldr	w8, [x19]
Lloh149:
	adrp	x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPAGE
Lloh150:
	ldr	x9, [x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPAGEOFF]
Lloh151:
	ldr	w9, [x9]
	ldr	w2, [x22]
	cmp	w8, w9
	b.ne	LBB0_36
; %bb.25:
Lloh152:
	adrp	x21, _MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPAGE
Lloh153:
	ldr	x21, [x21, _MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffe3f
	orr	w4, w8, #0x80
	str	w4, [sp, #12]
	ldr	w2, [x22]
	ldr	w3, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
Lloh154:
	adrp	x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGE
Lloh155:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGEOFF]
	b	LBB0_37
LBB0_26:
	ldr	w8, [x19]
Lloh156:
	adrp	x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPAGE
Lloh157:
	ldr	x9, [x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPAGEOFF]
Lloh158:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_39
; %bb.27:
	ldr	w2, [x21]
Lloh159:
	adrp	x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGE
Lloh160:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGEOFF]
Lloh161:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	ldr	w2, [x21]
	b	LBB0_34
LBB0_28:
	ldr	w8, [x19]
Lloh162:
	adrp	x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPAGE
Lloh163:
	ldr	x9, [x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPAGEOFF]
Lloh164:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_32
; %bb.29:
Lloh165:
	adrp	x23, _NIG_REG_MASK_INTERRUPT_PORT0@GOTPAGE
Lloh166:
	ldr	x23, [x23, _NIG_REG_MASK_INTERRUPT_PORT0@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x21]
	add	w1, w8, w9, lsl #2
	mov	x0, x20
	bl	_REG_RD
Lloh167:
	adrp	x8, _NIG_MASK_MI_INT@GOTPAGE
Lloh168:
	ldr	x8, [x8, _NIG_MASK_MI_INT@GOTPAGEOFF]
Lloh169:
	ldr	w2, [x8]
	tst	w2, w0
	b.eq	LBB0_31
; %bb.30:
Lloh170:
	adrp	x8, _LINK_FLAGS_INT_DISABLED@GOTPAGE
Lloh171:
	ldr	x8, [x8, _LINK_FLAGS_INT_DISABLED@GOTPAGEOFF]
Lloh172:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
	ldr	w8, [x23]
	ldr	w9, [x21]
	add	w1, w8, w9, lsl #2
	mov	x0, x20
	bl	_bnx2x_bits_dis
LBB0_31:
	ldr	w2, [x22]
Lloh173:
	adrp	x8, _MDIO_PMA_REG_8481_SIGNAL_MASK@GOTPAGE
Lloh174:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_SIGNAL_MASK@GOTPAGEOFF]
Lloh175:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	ldr	w8, [x19]
LBB0_32:
Lloh176:
	adrp	x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPAGE
Lloh177:
	ldr	x9, [x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPAGEOFF]
Lloh178:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_39
; %bb.33:
	ldr	w2, [x22]
Lloh179:
	adrp	x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGE
Lloh180:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED2_MASK@GOTPAGEOFF]
Lloh181:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
LBB0_34:
Lloh182:
	adrp	x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGE
Lloh183:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED3_MASK@GOTPAGEOFF]
LBB0_35:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	b	LBB0_38
LBB0_36:
Lloh184:
	adrp	x8, _MDIO_PMA_REG_8481_SIGNAL_MASK@GOTPAGE
Lloh185:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_SIGNAL_MASK@GOTPAGEOFF]
LBB0_37:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #32
LBB0_38:
	bl	_bnx2x_cl45_write
LBB0_39:
	mov	x0, x20
	bl	_CHIP_IS_E3
	cbz	x0, LBB0_41
; %bb.40:
Lloh186:
	adrp	x8, _MDIO_WC_DEVAD@GOTPAGE
Lloh187:
	ldr	x8, [x8, _MDIO_WC_DEVAD@GOTPAGEOFF]
Lloh188:
	ldr	w2, [x8]
Lloh189:
	adrp	x8, _MDIO_WC_REG_GP2_STATUS_GP_2_1@GOTPAGE
Lloh190:
	ldr	x8, [x8, _MDIO_WC_REG_GP2_STATUS_GP_2_1@GOTPAGEOFF]
Lloh191:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
LBB0_41:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGot	Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGot	Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGot	Lloh154, Lloh155
	.loh AdrpLdrGot	Lloh152, Lloh153
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh162, Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh167, Lloh168, Lloh169
	.loh AdrpLdrGot	Lloh165, Lloh166
	.loh AdrpLdrGotLdr	Lloh170, Lloh171, Lloh172
	.loh AdrpLdrGotLdr	Lloh173, Lloh174, Lloh175
	.loh AdrpLdrGotLdr	Lloh176, Lloh177, Lloh178
	.loh AdrpLdrGotLdr	Lloh179, Lloh180, Lloh181
	.loh AdrpLdrGot	Lloh182, Lloh183
	.loh AdrpLdrGot	Lloh184, Lloh185
	.loh AdrpLdrGotLdr	Lloh189, Lloh190, Lloh191
	.loh AdrpLdrGotLdr	Lloh186, Lloh187, Lloh188
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
                                        ; -- End function
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port 0x%x: LED MODE OFF\n"

	.comm	_SHARED_HW_CFG_LED_MODE_SHIFT,4,2 ; @SHARED_HW_CFG_LED_MODE_SHIFT
	.comm	_SHARED_HW_CFG_LED_EXTPHY1,4,2  ; @SHARED_HW_CFG_LED_EXTPHY1
	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_8481_LED1_MASK,4,2 ; @MDIO_PMA_REG_8481_LED1_MASK
	.comm	_MDIO_PMA_REG_8481_LED2_MASK,4,2 ; @MDIO_PMA_REG_8481_LED2_MASK
	.comm	_MDIO_PMA_REG_8481_LED3_MASK,4,2 ; @MDIO_PMA_REG_8481_LED3_MASK
	.comm	_MDIO_PMA_REG_8481_LED5_MASK,4,2 ; @MDIO_PMA_REG_8481_LED5_MASK
	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858,4,2 ; @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858
l_.str.1:                               ; @.str.1
	.asciz	"Port 0x%x: LED MODE FRONT PANEL OFF\n"

	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834,4,2 ; @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834
	.comm	_NIG_REG_MASK_INTERRUPT_PORT0,4,2 ; @NIG_REG_MASK_INTERRUPT_PORT0
	.comm	_NIG_MASK_MI_INT,4,2            ; @NIG_MASK_MI_INT
	.comm	_LINK_FLAGS_INT_DISABLED,4,2    ; @LINK_FLAGS_INT_DISABLED
	.comm	_MDIO_PMA_REG_8481_SIGNAL_MASK,4,2 ; @MDIO_PMA_REG_8481_SIGNAL_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Port 0x%x: LED MODE ON\n"

	.comm	_MDIO_PMA_REG_8481_LINK_SIGNAL,4,2 ; @MDIO_PMA_REG_8481_LINK_SIGNAL
l_.str.3:                               ; @.str.3
	.asciz	"Port 0x%x: LED MODE OPER\n"

	.comm	_MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_MASK,4,2 ; @MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_MASK
	.comm	_MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_SHIFT,4,2 ; @MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_SHIFT
l_.str.4:                               ; @.str.4
	.asciz	"Setting LINK_SIGNAL\n"

	.comm	_SHARED_HW_CFG_LED_EXTPHY2,4,2  ; @SHARED_HW_CFG_LED_EXTPHY2
	.comm	_MDIO_WC_DEVAD,4,2              ; @MDIO_WC_DEVAD
	.comm	_MDIO_WC_REG_GP2_STATUS_GP_2_1,4,2 ; @MDIO_WC_REG_GP2_STATUS_GP_2_1
	.no_dead_strip	_bnx2x_848xx_set_link_led
.subsections_via_symbols
