	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_led
_sky2_led:                              ## @sky2_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	(%r13), %rax
	movq	_CHIP_ID_YUKON_EC_U@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_CHIP_ID_YUKON_EX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_CHIP_ID_YUKON_SUPR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.6:
	movq	_PHY_MARV_LED_OVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_PHY_M_LED_MO_DUP
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	movl	%r15d, %edi
	callq	_PHY_M_LED_MO_10
	orl	%eax, %r13d
	movl	%r15d, %edi
	callq	_PHY_M_LED_MO_100
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_PHY_M_LED_MO_1000
	orl	%eax, %r14d
	orl	%r13d, %r14d
	movl	%r15d, %edi
	callq	_PHY_M_LED_MO_RX
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_PHY_M_LED_MO_TX
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	jmp	LBB0_7
LBB0_3:
	movq	_PHY_MARV_EXT_ADR@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_gm_phy_read
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$3, %ecx
	callq	_gm_phy_write
	addl	$-128, %r15d
	cmpl	$3, %r15d
	ja	LBB0_5
## %bb.4:
	movslq	%r15d, %rax
	leaq	L_switch.table.sky2_led(%rip), %rcx
	movl	(%rcx,%rax,4), %edi
	leaq	L_switch.table.sky2_led.1(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
	leaq	L_switch.table.sky2_led.2(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	movq	_PHY_MARV_PHY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	callq	_PHY_M_LEDC_LOS_CTRL
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_PHY_M_LEDC_INIT_CTRL
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%r15d, %r14d
	callq	_PHY_M_LEDC_STA1_CTRL
	movq	%r13, %r15
	movl	%eax, %r13d
	movl	%r14d, %edi
	movq	_PHY_MARV_EXT_ADR@GOTPCREL(%rip), %r14
	callq	_PHY_M_LEDC_STA0_CTRL
	orl	%eax, %r13d
	orl	%ebx, %r13d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movq	%r15, %r13
	callq	_gm_phy_write
LBB0_5:
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
LBB0_7:
	callq	_gm_phy_write
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_ID_YUKON_EC_U,8,3         ## @CHIP_ID_YUKON_EC_U
	.comm	_CHIP_ID_YUKON_EX,8,3           ## @CHIP_ID_YUKON_EX
	.comm	_CHIP_ID_YUKON_SUPR,8,3         ## @CHIP_ID_YUKON_SUPR
	.comm	_PHY_MARV_EXT_ADR,4,2           ## @PHY_MARV_EXT_ADR
	.comm	_PHY_MARV_PHY_CTRL,4,2          ## @PHY_MARV_PHY_CTRL
	.comm	_PHY_MARV_LED_OVER,4,2          ## @PHY_MARV_LED_OVER
	.no_dead_strip	_sky2_led
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.sky2_led
L_switch.table.sky2_led:
	.long	9                               ## 0x9
	.long	8                               ## 0x8
	.long	1                               ## 0x1
	.long	10                              ## 0xa

	.p2align	2                               ## @switch.table.sky2_led.1
L_switch.table.sky2_led.1:
	.long	9                               ## 0x9
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	10                              ## 0xa

	.p2align	2                               ## @switch.table.sky2_led.2
L_switch.table.sky2_led.2:
	.long	9                               ## 0x9
	.long	8                               ## 0x8
	.long	7                               ## 0x7
	.long	10                              ## 0xa

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_led
_sky2_led:                              ; @sky2_led
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	ldr	x20, [x0, #8]
	ldr	w21, [x0]
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _CHIP_ID_YUKON_EC_U@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_ID_YUKON_EC_U@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CHIP_ID_YUKON_EX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CHIP_ID_YUKON_EX@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _CHIP_ID_YUKON_SUPR@GOTPAGE
Lloh7:
	ldr	x11, [x11, _CHIP_ID_YUKON_SUPR@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_4
; %bb.1:
Lloh9:
	adrp	x27, _PHY_MARV_EXT_ADR@GOTPAGE
Lloh10:
	ldr	x27, [x27, _PHY_MARV_EXT_ADR@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x21
	bl	_gm_phy_read
	mov	x23, x0
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #3
	bl	_gm_phy_write
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.2:
	sbfiz	x8, x8, #2, #32
Lloh11:
	adrp	x9, l_switch.table.sky2_led@PAGE
Lloh12:
	add	x9, x9, l_switch.table.sky2_led@PAGEOFF
	ldr	w0, [x9, x8]
Lloh13:
	adrp	x9, l_switch.table.sky2_led.1@PAGE
Lloh14:
	add	x9, x9, l_switch.table.sky2_led.1@PAGEOFF
	ldr	w22, [x9, x8]
Lloh15:
	adrp	x9, l_switch.table.sky2_led.2@PAGE
Lloh16:
	add	x9, x9, l_switch.table.sky2_led.2@PAGEOFF
	ldr	w24, [x9, x8]
Lloh17:
	adrp	x8, _PHY_MARV_PHY_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PHY_MARV_PHY_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w25, [x8]
	bl	_PHY_M_LEDC_LOS_CTRL
	mov	x26, x0
	mov	x0, x22
	bl	_PHY_M_LEDC_INIT_CTRL
	orr	w22, w0, w26
	mov	x0, x24
	bl	_PHY_M_LEDC_STA1_CTRL
	orr	w22, w22, w0
	mov	x0, x24
	bl	_PHY_M_LEDC_STA0_CTRL
	orr	w3, w22, w0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x25
	bl	_gm_phy_write
LBB0_3:
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x23
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x8, _PHY_MARV_LED_OVER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PHY_MARV_LED_OVER@GOTPAGEOFF]
Lloh22:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_PHY_M_LED_MO_DUP
	mov	x24, x0
	mov	x0, x22
	bl	_PHY_M_LED_MO_10
	orr	w24, w0, w24
	mov	x0, x22
	bl	_PHY_M_LED_MO_100
	orr	w24, w24, w0
	mov	x0, x22
	bl	_PHY_M_LED_MO_1000
	orr	w24, w24, w0
	mov	x0, x22
	bl	_PHY_M_LED_MO_RX
	orr	w24, w24, w0
	mov	x0, x22
	bl	_PHY_M_LED_MO_TX
	orr	w3, w24, w0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
LBB0_5:
	bl	_gm_phy_write
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_ID_YUKON_EC_U,8,3         ; @CHIP_ID_YUKON_EC_U
	.comm	_CHIP_ID_YUKON_EX,8,3           ; @CHIP_ID_YUKON_EX
	.comm	_CHIP_ID_YUKON_SUPR,8,3         ; @CHIP_ID_YUKON_SUPR
	.comm	_PHY_MARV_EXT_ADR,4,2           ; @PHY_MARV_EXT_ADR
	.comm	_PHY_MARV_PHY_CTRL,4,2          ; @PHY_MARV_PHY_CTRL
	.comm	_PHY_MARV_LED_OVER,4,2          ; @PHY_MARV_LED_OVER
	.no_dead_strip	_sky2_led
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.sky2_led
l_switch.table.sky2_led:
	.long	9                               ; 0x9
	.long	8                               ; 0x8
	.long	1                               ; 0x1
	.long	10                              ; 0xa

	.p2align	2                               ; @switch.table.sky2_led.1
l_switch.table.sky2_led.1:
	.long	9                               ; 0x9
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	10                              ; 0xa

	.p2align	2                               ; @switch.table.sky2_led.2
l_switch.table.sky2_led.2:
	.long	9                               ; 0x9
	.long	8                               ; 0x8
	.long	7                               ; 0x7
	.long	10                              ; 0xa

.subsections_via_symbols
