	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_5461x_set_link_led
_bnx2x_5461x_set_link_led:              ## @bnx2x_5461x_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	(%rsi), %r15
	movq	_MDIO_REG_GPHY_SHADOW@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_REG_GPHY_SHADOW_LED_SEL1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl22_write
	movl	(%r12), %edx
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl22_read
	movzbl	-35(%rbp), %eax
	shll	$8, %eax
	movl	%eax, -36(%rbp)
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_DP
	leal	-130(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	cmpl	$128, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %ebx
	jne	LBB0_3
## %bb.6:
	movl	$255, %ecx
	jmp	LBB0_7
LBB0_4:
	movl	$238, %ecx
LBB0_7:
	orl	-36(%rbp), %ecx
	jmp	LBB0_8
LBB0_5:
	movl	-36(%rbp), %ecx
	orl	$1, %ecx
LBB0_8:
	movl	%ecx, -36(%rbp)
	jmp	LBB0_9
LBB0_3:
	movl	-36(%rbp), %ecx
LBB0_9:
	movl	(%r12), %edx
	movq	_MDIO_REG_GPHY_SHADOW_WR_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl22_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_REG_GPHY_SHADOW,4,2       ## @MDIO_REG_GPHY_SHADOW
	.comm	_MDIO_REG_GPHY_SHADOW_LED_SEL1,4,2 ## @MDIO_REG_GPHY_SHADOW_LED_SEL1
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"54618x set link led (mode=%x)\n"

	.comm	_MDIO_REG_GPHY_SHADOW_WR_ENA,4,2 ## @MDIO_REG_GPHY_SHADOW_WR_ENA
	.no_dead_strip	_bnx2x_5461x_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_5461x_set_link_led
_bnx2x_5461x_set_link_led:              ; @bnx2x_5461x_set_link_led
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x0
	ldr	x20, [x1]
Lloh0:
	adrp	x22, _MDIO_REG_GPHY_SHADOW@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MDIO_REG_GPHY_SHADOW@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x8, _MDIO_REG_GPHY_SHADOW_LED_SEL1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_REG_GPHY_SHADOW_LED_SEL1@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl22_write
	ldr	w2, [x22]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl22_read
	ldrb	w8, [sp, #13]
	lsl	w8, w8, #8
	str	w8, [sp, #12]
Lloh5:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DP
	sub	w8, w21, #130
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w21, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w21, #129
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [sp, #12]
	orr	w8, w8, #0xff
	b	LBB0_6
LBB0_4:
	ldr	w8, [sp, #12]
	mov	w9, #238
	orr	w8, w8, w9
	b	LBB0_6
LBB0_5:
	ldr	w8, [sp, #12]
	orr	w8, w8, #0x1
LBB0_6:
	str	w8, [sp, #12]
	b	LBB0_8
LBB0_7:
	ldr	w8, [sp, #12]
LBB0_8:
	ldr	w2, [x22]
Lloh10:
	adrp	x9, _MDIO_REG_GPHY_SHADOW_WR_ENA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MDIO_REG_GPHY_SHADOW_WR_ENA@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl22_write
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_REG_GPHY_SHADOW,4,2       ; @MDIO_REG_GPHY_SHADOW
	.comm	_MDIO_REG_GPHY_SHADOW_LED_SEL1,4,2 ; @MDIO_REG_GPHY_SHADOW_LED_SEL1
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"54618x set link led (mode=%x)\n"

	.comm	_MDIO_REG_GPHY_SHADOW_WR_ENA,4,2 ; @MDIO_REG_GPHY_SHADOW_WR_ENA
	.no_dead_strip	_bnx2x_5461x_set_link_led
.subsections_via_symbols
