	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_moca_phy_setup
_bcmgenet_moca_phy_setup:               ## @bcmgenet_moca_phy_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_GENET_IS_V5
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_SYS_PORT_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_sys_readl
	movq	_LED_ACT_SOURCE_MAC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcmgenet_sys_writel
LBB0_2:
	movq	8(%rbx), %rax
	movq	_GENET_HAS_MOCA_LINK_DET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_bcmgenet_fixed_phy_link_update@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fixed_phy_set_link_update      ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_PORT_CTRL,4,2              ## @SYS_PORT_CTRL
	.comm	_LED_ACT_SOURCE_MAC,4,2         ## @LED_ACT_SOURCE_MAC
	.comm	_GENET_HAS_MOCA_LINK_DET,4,2    ## @GENET_HAS_MOCA_LINK_DET
	.comm	_bcmgenet_fixed_phy_link_update,4,2 ## @bcmgenet_fixed_phy_link_update
	.no_dead_strip	_bcmgenet_moca_phy_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_moca_phy_setup
_bcmgenet_moca_phy_setup:               ; @bcmgenet_moca_phy_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_GENET_IS_V5
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _SYS_PORT_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SYS_PORT_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bcmgenet_sys_readl
Lloh2:
	adrp	x8, _LED_ACT_SOURCE_MAC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LED_ACT_SOURCE_MAC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w2, [x20]
	mov	x0, x19
	bl	_bcmgenet_sys_writel
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _GENET_HAS_MOCA_LINK_DET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GENET_HAS_MOCA_LINK_DET@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _bcmgenet_fixed_phy_link_update@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bcmgenet_fixed_phy_link_update@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fixed_phy_set_link_update
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_PORT_CTRL,4,2              ; @SYS_PORT_CTRL
	.comm	_LED_ACT_SOURCE_MAC,4,2         ; @LED_ACT_SOURCE_MAC
	.comm	_GENET_HAS_MOCA_LINK_DET,4,2    ; @GENET_HAS_MOCA_LINK_DET
	.comm	_bcmgenet_fixed_phy_link_update,4,2 ; @bcmgenet_fixed_phy_link_update
	.no_dead_strip	_bcmgenet_moca_phy_setup
.subsections_via_symbols
