	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8727_set_link_led
_bnx2x_8727_set_link_led:               ## @bnx2x_8727_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
	movq	_FLAGS_NOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rsi), %r14
	addl	$-128, %edx
	xorl	%r15d, %r15d
	movl	$0, %eax
	cmpl	$3, %edx
	ja	LBB0_3
## %bb.2:
	movslq	%edx, %rax
	leaq	L_switch.table.bnx2x_8727_set_link_led(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	leaq	L_switch.table.bnx2x_8727_set_link_led.1(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_3:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_8727_PCS_OPT_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_read
	movl	$65423, %r8d                    ## imm = 0xFF8F
	andl	-44(%rbp), %r8d
	orl	%r15d, %r8d
	movl	%r8d, -44(%rbp)
	movl	(%r13), %edx
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_write
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_8727_GPIO_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-44(%rbp), %r8
	callq	_bnx2x_cl45_read
	movl	$65504, %r8d                    ## imm = 0xFFE0
	andl	-44(%rbp), %r8d
	orl	-48(%rbp), %r8d                 ## 4-byte Folded Reload
	movl	%r8d, -44(%rbp)
	movl	(%r13), %edx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_write
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAGS_NOC,4,2                  ## @FLAGS_NOC
	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_8727_PCS_OPT_CTRL,4,2 ## @MDIO_PMA_REG_8727_PCS_OPT_CTRL
	.comm	_MDIO_PMA_REG_8727_GPIO_CTRL,4,2 ## @MDIO_PMA_REG_8727_GPIO_CTRL
	.no_dead_strip	_bnx2x_8727_set_link_led
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.bnx2x_8727_set_link_led
L_switch.table.bnx2x_8727_set_link_led:
	.long	96                              ## 0x60
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.p2align	2                               ## @switch.table.bnx2x_8727_set_link_led.1
L_switch.table.bnx2x_8727_set_link_led.1:
	.long	17                              ## 0x11
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_8727_set_link_led
_bnx2x_8727_set_link_led:               ; @bnx2x_8727_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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FLAGS_NOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLAGS_NOC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x20, [x1]
	sub	w8, w2, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.2:
	sbfiz	x8, x8, #2, #32
Lloh3:
	adrp	x9, l_switch.table.bnx2x_8727_set_link_led@PAGE
Lloh4:
	add	x9, x9, l_switch.table.bnx2x_8727_set_link_led@PAGEOFF
	ldr	w22, [x9, x8]
Lloh5:
	adrp	x9, l_switch.table.bnx2x_8727_set_link_led.1@PAGE
Lloh6:
	add	x9, x9, l_switch.table.bnx2x_8727_set_link_led.1@PAGEOFF
	ldr	w21, [x9, x8]
	b	LBB0_4
LBB0_3:
	mov	w22, #0
	mov	w21, #0
LBB0_4:
Lloh7:
	adrp	x23, _MDIO_PMA_DEVAD@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh9:
	adrp	x24, _MDIO_PMA_REG_8727_PCS_OPT_CTRL@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MDIO_PMA_REG_8727_PCS_OPT_CTRL@GOTPAGEOFF]
	ldr	w3, [x24]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
	mov	w9, #65423
	and	w8, w8, w9
	orr	w4, w8, w22
	str	w4, [sp, #12]
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
	ldr	w2, [x23]
Lloh11:
	adrp	x22, _MDIO_PMA_REG_8727_GPIO_CTRL@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MDIO_PMA_REG_8727_GPIO_CTRL@GOTPAGEOFF]
	ldr	w3, [x22]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
	and	w8, w8, #0xffe0
	orr	w4, w8, w21
	str	w4, [sp, #12]
	ldr	w2, [x23]
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAGS_NOC,4,2                  ; @FLAGS_NOC
	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_8727_PCS_OPT_CTRL,4,2 ; @MDIO_PMA_REG_8727_PCS_OPT_CTRL
	.comm	_MDIO_PMA_REG_8727_GPIO_CTRL,4,2 ; @MDIO_PMA_REG_8727_GPIO_CTRL
	.no_dead_strip	_bnx2x_8727_set_link_led
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.bnx2x_8727_set_link_led
l_switch.table.bnx2x_8727_set_link_led:
	.long	96                              ; 0x60
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.p2align	2                               ; @switch.table.bnx2x_8727_set_link_led.1
l_switch.table.bnx2x_8727_set_link_led.1:
	.long	17                              ; 0x11
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	3                               ; 0x3

.subsections_via_symbols
