	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netcp_ethss_update_link_state
_netcp_ethss_update_link_state:         ## @netcp_ethss_update_link_state
	.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
	movl	$1, -44(%rbp)
	cmpl	$0, 8(%rsi)
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	(%rsi), %r12d
	movq	%rsi, %rdi
	callq	_SLAVE_LINK_IS_RGMII
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_netcp_2u_rgmii_get_port_link
LBB0_3:
	movq	%r13, %rdi
	callq	_SLAVE_LINK_IS_SGMII
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_SGMII_BASE
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_netcp_sgmii_get_port_link
	movl	%eax, -44(%rbp)
LBB0_5:
	movq	%r13, %rdi
	callq	_gbe_phy_link_status
	movl	%eax, %ebx
	andl	-44(%rbp), %ebx
	leaq	4(%r13), %rdi
	movl	%ebx, %esi
	callq	_atomic_xchg
	cmpl	%ebx, %eax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_netcp_ethss_link_state_action
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_netcp_ethss_update_link_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netcp_ethss_update_link_state
_netcp_ethss_update_link_state:         ; @netcp_ethss_update_link_state
	.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	w8, #1
	str	w8, [sp, #12]
	ldr	w8, [x1, #8]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w22, [x1]
	mov	x0, x1
	bl	_SLAVE_LINK_IS_RGMII
	cbz	x0, LBB0_3
; %bb.2:
	add	x1, sp, #12
	mov	x0, x21
	bl	_netcp_2u_rgmii_get_port_link
LBB0_3:
	mov	x0, x19
	bl	_SLAVE_LINK_IS_SGMII
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x22
	bl	_SGMII_BASE
	mov	x1, x22
	bl	_netcp_sgmii_get_port_link
	str	w0, [sp, #12]
LBB0_5:
	mov	x0, x19
	bl	_gbe_phy_link_status
	ldr	w8, [sp, #12]
	and	w22, w8, w0
	add	x0, x19, #4
	mov	x1, x22
	bl	_atomic_xchg
	cmp	w0, w22
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	bl	_netcp_ethss_link_state_action
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_netcp_ethss_update_link_state
.subsections_via_symbols
