	.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, %r12
	movq	%rdi, %r14
	movq	_MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-44(%rbp), %r8
	movl	$134, %edx
	callq	_bnx2x_cl45_read
	movl	$65024, %r8d                    ## imm = 0xFE00
	andl	-44(%rbp), %r8d
	orl	$146, %r8d
	movl	%r8d, -44(%rbp)
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$134, %edx
	callq	_bnx2x_cl45_write
	leaq	_bnx2x_848xx_set_led.reg_set(%rip), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	leaq	_bnx2x_848xx_set_led.reg_set+16(%rip), %rbx
	xorl	%r13d, %r13d
	leaq	_bnx2x_848xx_set_led.reg_set(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movl	-8(%rbx), %r8d
	movl	-4(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_cl45_write
	incq	%r13
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	movq	(%r12), %rax
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833@GOTPCREL(%rip), %rcx
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPCREL(%rip), %rdi
	movq	_MDIO_PMA_REG_84833_CTL_LED_CTL_1@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpq	(%rdi), %rax
	je	LBB0_5
## %bb.4:
	movq	_MDIO_PMA_REG_84823_CTL_LED_CTL_1@GOTPCREL(%rip), %rsi
LBB0_5:
	cmpq	(%rcx), %rax
	cmoveq	%rdx, %rsi
	movl	(%rsi), %ecx
	movq	_MDIO_PMA_REG_84823_LED3_STRETCH_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$134, %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	134                             ## 0x86
	.long	133                             ## 0x85
	.long	128                             ## 0x80
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	134                             ## 0x86
	.long	132                             ## 0x84
	.long	24                              ## 0x18
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	134                             ## 0x86
	.long	130                             ## 0x82
	.long	6                               ## 0x6
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	134                             ## 0x86
	.long	131                             ## 0x83
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	134                             ## 0x86
	.long	128                             ## 0x80
	.long	129                             ## 0x81
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	135                             ## 0x87
	.long	65531                           ## 0xfffb
	.long	65533                           ## 0xfffd
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_MDIO_PMA_REG_8481_LINK_SIGNAL,4,2 ## @MDIO_PMA_REG_8481_LINK_SIGNAL
	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833,8,3 ## @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833
	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834,8,3 ## @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834
	.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_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
Lloh0:
	adrp	x21, _MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDIO_PMA_REG_8481_LINK_SIGNAL@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x4, sp, #12
	mov	w2, #134
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfe00
	mov	w9, #146
	orr	w4, w8, w9
	str	w4, [sp, #12]
	ldr	w3, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #134
	bl	_bnx2x_cl45_write
Lloh2:
	adrp	x0, _bnx2x_848xx_set_led.reg_set@PAGE
Lloh3:
	add	x0, x0, _bnx2x_848xx_set_led.reg_set@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
Lloh4:
	adrp	x23, _bnx2x_848xx_set_led.reg_set@PAGE+16
Lloh5:
	add	x23, x23, _bnx2x_848xx_set_led.reg_set@PAGEOFF+16
Lloh6:
	adrp	x21, _bnx2x_848xx_set_led.reg_set@PAGE
Lloh7:
	add	x21, x21, _bnx2x_848xx_set_led.reg_set@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w3, w2, [x23, #-4]
	ldur	w4, [x23, #-8]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
	add	x22, x22, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	add	x23, x23, #24
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x10
Lloh14:
	adrp	x10, _MDIO_PMA_REG_84833_CTL_LED_CTL_1@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MDIO_PMA_REG_84833_CTL_LED_CTL_1@GOTPAGEOFF]
Lloh16:
	adrp	x11, _MDIO_PMA_REG_84823_CTL_LED_CTL_1@GOTPAGE
Lloh17:
	ldr	x11, [x11, _MDIO_PMA_REG_84823_CTL_LED_CTL_1@GOTPAGEOFF]
	ccmp	x8, x9, #4, ne
	csel	x8, x10, x11, eq
	ldr	w3, [x8]
Lloh18:
	adrp	x8, _MDIO_PMA_REG_84823_LED3_STRETCH_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MDIO_PMA_REG_84823_LED3_STRETCH_EN@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #134
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @bnx2x_848xx_set_led.reg_set
_bnx2x_848xx_set_led.reg_set:
	.long	134                             ; 0x86
	.long	133                             ; 0x85
	.long	128                             ; 0x80
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	134                             ; 0x86
	.long	132                             ; 0x84
	.long	24                              ; 0x18
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	134                             ; 0x86
	.long	130                             ; 0x82
	.long	6                               ; 0x6
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	134                             ; 0x86
	.long	131                             ; 0x83
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	134                             ; 0x86
	.long	128                             ; 0x80
	.long	129                             ; 0x81
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	135                             ; 0x87
	.long	65531                           ; 0xfffb
	.long	65533                           ; 0xfffd
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_MDIO_PMA_REG_8481_LINK_SIGNAL,4,2 ; @MDIO_PMA_REG_8481_LINK_SIGNAL
	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833,8,3 ; @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833
	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834,8,3 ; @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834
	.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_84823_LED3_STRETCH_EN,4,2 ; @MDIO_PMA_REG_84823_LED3_STRETCH_EN
	.no_dead_strip	_bnx2x_848xx_set_led
.subsections_via_symbols
