	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_848xx_set_led
_bnx2x_848xx_set_led:                   ## @bnx2x_848xx_set_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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPCREL(%rip), %r12
	xorl	%r8d, %r8d
	cmpq	(%r12), %rax
	jne	LBB0_2
## %bb.1:
	movq	_MDIO_PMA_REG_8481_LED5_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$133, %edx
	movl	$144, %r8d
	callq	_bnx2x_cl45_write
	movl	$15, %r8d
LBB0_2:
	movq	_MDIO_PMA_REG_8481_LED3_BLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$133, %edx
	callq	_bnx2x_cl45_write
	movq	_MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$133, %edx
	callq	_bnx2x_cl45_read
	movl	$65024, %eax                    ## imm = 0xFE00
	andl	-44(%rbp), %eax
	leal	146(%rax), %r8d
	movl	%r8d, -44(%rbp)
	movq	(%r15), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_4
## %bb.3:
	orl	$8338, %eax                     ## imm = 0x2092
	movl	%eax, -44(%rbp)
	movl	%eax, %r8d
LBB0_4:
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$133, %edx
	callq	_bnx2x_cl45_write
	leaq	_bnx2x_848xx_set_led.reg_set(%rip), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	leaq	_bnx2x_848xx_set_led.reg_set+16(%rip), %rbx
	xorl	%r12d, %r12d
	leaq	_bnx2x_848xx_set_led.reg_set(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movl	-8(%rbx), %r8d
	movl	-4(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_bnx2x_cl45_write
	incq	%r12
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %rbx
	cmpq	%rax, %r12
	jl	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_bnx2x_is_8483x_8485x
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	_MDIO_PMA_REG_84823_CTL_LED_CTL_1@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_MDIO_PMA_REG_84833_CTL_LED_CTL_1@GOTPCREL(%rip), %rax
LBB0_10:
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPCREL(%rip), %rsi
	movl	(%rax), %ecx
	movq	(%r15), %rdx
	xorl	%r8d, %r8d
	movq	_MDIO_PMA_REG_84823_LED3_STRETCH_EN@GOTPCREL(%rip), %rax
	cmpq	(%rsi), %rdx
	jne	LBB0_12
## %bb.11:
	movq	_MDIO_PMA_REG_84858_ALLOW_GPHY_ACT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
LBB0_12:
	orl	(%rax), %r8d
	movl	%r8d, -44(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$133, %edx
	callq	_bnx2x_cl45_read_or_write
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @bnx2x_848xx_set_led.reg_set
_bnx2x_848xx_set_led.reg_set:
	.long	133                             ## 0x85
	.long	132                             ## 0x84
	.long	128                             ## 0x80
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	133                             ## 0x85
	.long	131                             ## 0x83
	.long	24                              ## 0x18
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	133                             ## 0x85
	.long	130                             ## 0x82
	.long	6                               ## 0x6
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	133                             ## 0x85
	.long	128                             ## 0x80
	.long	129                             ## 0x81
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	134                             ## 0x86
	.long	65531                           ## 0xfffb
	.long	65533                           ## 0xfffd
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858,8,3 ## @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858
	.comm	_MDIO_PMA_REG_8481_LED5_MASK,4,2 ## @MDIO_PMA_REG_8481_LED5_MASK
	.comm	_MDIO_PMA_REG_8481_LED3_BLINK,4,2 ## @MDIO_PMA_REG_8481_LED3_BLINK
	.comm	_MDIO_PMA_REG_8481_LINK_SIGNAL,4,2 ## @MDIO_PMA_REG_8481_LINK_SIGNAL
	.comm	_MDIO_PMA_REG_84833_CTL_LED_CTL_1,4,2 ## @MDIO_PMA_REG_84833_CTL_LED_CTL_1
	.comm	_MDIO_PMA_REG_84823_CTL_LED_CTL_1,4,2 ## @MDIO_PMA_REG_84823_CTL_LED_CTL_1
	.comm	_MDIO_PMA_REG_84858_ALLOW_GPHY_ACT,4,2 ## @MDIO_PMA_REG_84858_ALLOW_GPHY_ACT
	.comm	_MDIO_PMA_REG_84823_LED3_STRETCH_EN,4,2 ## @MDIO_PMA_REG_84823_LED3_STRETCH_EN
	.no_dead_strip	_bnx2x_848xx_set_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_led
_bnx2x_848xx_set_led:                   ; @bnx2x_848xx_set_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	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x22, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MDIO_PMA_REG_8481_LED5_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED5_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #133
	mov	w4, #144
	bl	_bnx2x_cl45_write
	mov	w4, #15
	b	LBB0_3
LBB0_2:
	mov	w4, #0
LBB0_3:
Lloh5:
	adrp	x8, _MDIO_PMA_REG_8481_LED3_BLINK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_LED3_BLINK@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #133
	bl	_bnx2x_cl45_write
Lloh8:
	adrp	x21, _MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w2, #133
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfe00
	mov	w9, #146
	orr	w4, w8, w9
	str	w4, [sp, #12]
	ldr	x9, [x19]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
	mov	w9, #8338
	orr	w4, w8, w9
	str	w4, [sp, #12]
LBB0_5:
	ldr	w3, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #133
	bl	_bnx2x_cl45_write
Lloh10:
	adrp	x0, _bnx2x_848xx_set_led.reg_set@PAGE
Lloh11:
	add	x0, x0, _bnx2x_848xx_set_led.reg_set@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x23, #0
Lloh12:
	adrp	x24, _bnx2x_848xx_set_led.reg_set@PAGE+16
Lloh13:
	add	x24, x24, _bnx2x_848xx_set_led.reg_set@PAGEOFF+16
Lloh14:
	adrp	x21, _bnx2x_848xx_set_led.reg_set@PAGE
Lloh15:
	add	x21, x21, _bnx2x_848xx_set_led.reg_set@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w3, w2, [x24, #-4]
	ldur	w4, [x24, #-8]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
	add	x23, x23, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	add	x24, x24, #24
	cmp	x23, w0, sxtw
	b.lt	LBB0_7
LBB0_8:
	mov	x0, x19
	bl	_bnx2x_is_8483x_8485x
Lloh16:
	adrp	x8, _MDIO_PMA_REG_84823_CTL_LED_CTL_1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MDIO_PMA_REG_84823_CTL_LED_CTL_1@GOTPAGEOFF]
Lloh18:
	adrp	x9, _MDIO_PMA_REG_84833_CTL_LED_CTL_1@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MDIO_PMA_REG_84833_CTL_LED_CTL_1@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	ldr	x8, [x19]
	ldr	x9, [x22]
Lloh20:
	adrp	x10, _MDIO_PMA_REG_84823_LED3_STRETCH_EN@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MDIO_PMA_REG_84823_LED3_STRETCH_EN@GOTPAGEOFF]
Lloh22:
	adrp	x11, _MDIO_PMA_REG_84858_ALLOW_GPHY_ACT@GOTPAGE
Lloh23:
	ldr	x11, [x11, _MDIO_PMA_REG_84858_ALLOW_GPHY_ACT@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
Lloh25:
	ldr	w11, [x11]
	cmp	x8, x9
	csel	w8, w11, wzr, eq
	orr	w4, w8, w10
	str	w4, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #133
	bl	_bnx2x_cl45_read_or_write
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @bnx2x_848xx_set_led.reg_set
_bnx2x_848xx_set_led.reg_set:
	.long	133                             ; 0x85
	.long	132                             ; 0x84
	.long	128                             ; 0x80
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	133                             ; 0x85
	.long	131                             ; 0x83
	.long	24                              ; 0x18
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	133                             ; 0x85
	.long	130                             ; 0x82
	.long	6                               ; 0x6
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	133                             ; 0x85
	.long	128                             ; 0x80
	.long	129                             ; 0x81
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	134                             ; 0x86
	.long	65531                           ; 0xfffb
	.long	65533                           ; 0xfffd
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858,8,3 ; @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858
	.comm	_MDIO_PMA_REG_8481_LED5_MASK,4,2 ; @MDIO_PMA_REG_8481_LED5_MASK
	.comm	_MDIO_PMA_REG_8481_LED3_BLINK,4,2 ; @MDIO_PMA_REG_8481_LED3_BLINK
	.comm	_MDIO_PMA_REG_8481_LINK_SIGNAL,4,2 ; @MDIO_PMA_REG_8481_LINK_SIGNAL
	.comm	_MDIO_PMA_REG_84833_CTL_LED_CTL_1,4,2 ; @MDIO_PMA_REG_84833_CTL_LED_CTL_1
	.comm	_MDIO_PMA_REG_84823_CTL_LED_CTL_1,4,2 ; @MDIO_PMA_REG_84823_CTL_LED_CTL_1
	.comm	_MDIO_PMA_REG_84858_ALLOW_GPHY_ACT,4,2 ; @MDIO_PMA_REG_84858_ALLOW_GPHY_ACT
	.comm	_MDIO_PMA_REG_84823_LED3_STRETCH_EN,4,2 ; @MDIO_PMA_REG_84823_LED3_STRETCH_EN
	.no_dead_strip	_bnx2x_848xx_set_led
.subsections_via_symbols
