	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netcp_ethss_link_state_action
_netcp_ethss_link_state_action:         ## @netcp_ethss_link_state_action
	.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	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	32(%rdx), %r15
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.1:
	movl	24(%r13), %ebx
	testq	%r15, %r15
	je	LBB0_7
## %bb.2:
	movq	(%r15), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_MACSL_GIG_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MACSL_XGIG_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_13:
	movq	_emac_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_GBE_REG_ADDR
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_writel
	movl	(%r12), %edi
	movl	8(%r13), %esi
	movq	_ALE_PORT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ALE_PORT_STATE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_cpsw_ale_control_set
	testq	%r14, %r14
	je	LBB0_18
## %bb.14:
	movq	(%r13), %rax
	movq	_SGMII_LINK_MAC_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.15:
	movq	_RGMII_LINK_MAC_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.16:
	movq	_XGMII_LINK_MAC_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_netif_carrier_off
	jmp	LBB0_18
LBB0_4:
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	_MACSL_XGIG_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MACSL_GIG_MODE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_7:
	movq	_emac_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_GBE_REG_ADDR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	(%r12), %edi
	movl	8(%r13), %esi
	movq	_ALE_PORT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ALE_PORT_STATE_FORWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_cpsw_ale_control_set
	testq	%r14, %r14
	je	LBB0_18
## %bb.8:
	cmpq	$0, 16(%r13)
	je	LBB0_18
## %bb.9:
	movq	(%r13), %rax
	movq	_SGMII_LINK_MAC_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.10:
	movq	_RGMII_LINK_MAC_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.11:
	movq	_XGMII_LINK_MAC_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.12:
	movq	%r14, %rdi
	callq	_netif_carrier_on
LBB0_18:
	testq	%r15, %r15
	je	LBB0_19
## %bb.20:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_print_status               ## TAILCALL
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_MACSL_GIG_MODE,4,2             ## @MACSL_GIG_MODE
	.comm	_MACSL_XGIG_MODE,4,2            ## @MACSL_XGIG_MODE
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
	.comm	_emac_regs,4,2                  ## @emac_regs
	.comm	_ALE_PORT_STATE,4,2             ## @ALE_PORT_STATE
	.comm	_ALE_PORT_STATE_FORWARD,4,2     ## @ALE_PORT_STATE_FORWARD
	.comm	_SGMII_LINK_MAC_PHY,8,3         ## @SGMII_LINK_MAC_PHY
	.comm	_RGMII_LINK_MAC_PHY,8,3         ## @RGMII_LINK_MAC_PHY
	.comm	_XGMII_LINK_MAC_PHY,8,3         ## @XGMII_LINK_MAC_PHY
	.comm	_ALE_PORT_STATE_DISABLE,4,2     ## @ALE_PORT_STATE_DISABLE
	.no_dead_strip	_netcp_ethss_link_state_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netcp_ethss_link_state_action
_netcp_ethss_link_state_action:         ; @netcp_ethss_link_state_action
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x19, [x2, #32]
	cbz	w3, LBB0_4
; %bb.1:
	ldr	w23, [x21, #24]
	cbz	x19, LBB0_10
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _MACSL_GIG_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MACSL_GIG_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w23
Lloh6:
	adrp	x9, _MACSL_XGIG_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MACSL_XGIG_MODE@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh8:
	adrp	x8, _emac_regs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _emac_regs@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_GBE_REG_ADDR
	mov	x1, x0
	mov	w0, #0
	bl	_writel
	ldr	w0, [x22]
	ldr	w1, [x21, #8]
Lloh11:
	adrp	x8, _ALE_PORT_STATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ALE_PORT_STATE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _ALE_PORT_STATE_DISABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ALE_PORT_STATE_DISABLE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	bl	_cpsw_ale_control_set
	cbz	x20, LBB0_14
; %bb.5:
	ldr	x8, [x21]
Lloh17:
	adrp	x9, _SGMII_LINK_MAC_PHY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SGMII_LINK_MAC_PHY@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _RGMII_LINK_MAC_PHY@GOTPAGE
Lloh21:
	ldr	x10, [x10, _RGMII_LINK_MAC_PHY@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
Lloh23:
	adrp	x11, _XGMII_LINK_MAC_PHY@GOTPAGE
Lloh24:
	ldr	x11, [x11, _XGMII_LINK_MAC_PHY@GOTPAGEOFF]
Lloh25:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.eq	LBB0_14
; %bb.6:
	mov	x0, x20
	bl	_netif_carrier_off
	b	LBB0_14
LBB0_7:
Lloh26:
	adrp	x9, _SPEED_10000@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SPEED_10000@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
Lloh29:
	adrp	x8, _MACSL_XGIG_MODE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MACSL_XGIG_MODE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w8, w8, w23
Lloh32:
	adrp	x9, _MACSL_GIG_MODE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MACSL_GIG_MODE@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	bic	w23, w8, w9
LBB0_10:
Lloh34:
	adrp	x8, _emac_regs@GOTPAGE
Lloh35:
	ldr	x8, [x8, _emac_regs@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_GBE_REG_ADDR
	mov	x1, x0
	mov	x0, x23
	bl	_writel
	ldr	w0, [x22]
	ldr	w1, [x21, #8]
Lloh37:
	adrp	x8, _ALE_PORT_STATE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ALE_PORT_STATE@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x8, _ALE_PORT_STATE_FORWARD@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ALE_PORT_STATE_FORWARD@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
	bl	_cpsw_ale_control_set
	cbz	x20, LBB0_14
; %bb.11:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x8, [x21]
Lloh43:
	adrp	x9, _SGMII_LINK_MAC_PHY@GOTPAGE
Lloh44:
	ldr	x9, [x9, _SGMII_LINK_MAC_PHY@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
Lloh46:
	adrp	x10, _RGMII_LINK_MAC_PHY@GOTPAGE
Lloh47:
	ldr	x10, [x10, _RGMII_LINK_MAC_PHY@GOTPAGEOFF]
Lloh48:
	ldr	x10, [x10]
Lloh49:
	adrp	x11, _XGMII_LINK_MAC_PHY@GOTPAGE
Lloh50:
	ldr	x11, [x11, _XGMII_LINK_MAC_PHY@GOTPAGEOFF]
Lloh51:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_netif_carrier_on
LBB0_14:
	cbz	x19, LBB0_16
; %bb.15:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_phy_print_status
LBB0_16:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_MACSL_GIG_MODE,4,2             ; @MACSL_GIG_MODE
	.comm	_MACSL_XGIG_MODE,4,2            ; @MACSL_XGIG_MODE
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
	.comm	_emac_regs,4,2                  ; @emac_regs
	.comm	_ALE_PORT_STATE,4,2             ; @ALE_PORT_STATE
	.comm	_ALE_PORT_STATE_FORWARD,4,2     ; @ALE_PORT_STATE_FORWARD
	.comm	_SGMII_LINK_MAC_PHY,8,3         ; @SGMII_LINK_MAC_PHY
	.comm	_RGMII_LINK_MAC_PHY,8,3         ; @RGMII_LINK_MAC_PHY
	.comm	_XGMII_LINK_MAC_PHY,8,3         ; @XGMII_LINK_MAC_PHY
	.comm	_ALE_PORT_STATE_DISABLE,4,2     ; @ALE_PORT_STATE_DISABLE
	.no_dead_strip	_netcp_ethss_link_state_action
.subsections_via_symbols
