	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm54210e_config_init
_bcm54210e_config_init:                 ## @bcm54210e_config_init
	.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
	movq	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_bcm54xx_auxctl_read
	movq	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_MII_BCM54XX_AUXCTL_MISC_WREN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bcm54xx_auxctl_write
	movq	_BCM54810_SHD_CLK_CTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bcm_phy_read_shadow
	movq	_BCM54810_SHD_CLK_CTL_GTXCLK_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bcm_phy_write_shadow
	movq	_PHY_BRCM_EN_MASTER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_MII_CTRL1000@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movq	_CTL1000_AS_MASTER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CTL1000_ENABLE_MASTER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_phy_write
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC,4,2 ## @MII_BCM54XX_AUXCTL_SHDWSEL_MISC
	.comm	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN,4,2 ## @MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN
	.comm	_MII_BCM54XX_AUXCTL_MISC_WREN,4,2 ## @MII_BCM54XX_AUXCTL_MISC_WREN
	.comm	_BCM54810_SHD_CLK_CTL,4,2       ## @BCM54810_SHD_CLK_CTL
	.comm	_BCM54810_SHD_CLK_CTL_GTXCLK_EN,4,2 ## @BCM54810_SHD_CLK_CTL_GTXCLK_EN
	.comm	_PHY_BRCM_EN_MASTER_MODE,4,2    ## @PHY_BRCM_EN_MASTER_MODE
	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_CTL1000_AS_MASTER,4,2          ## @CTL1000_AS_MASTER
	.comm	_CTL1000_ENABLE_MASTER,4,2      ## @CTL1000_ENABLE_MASTER
	.no_dead_strip	_bcm54210e_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm54210e_config_init
_bcm54210e_config_init:                 ; @bcm54210e_config_init
	.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
Lloh0:
	adrp	x20, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_bcm54xx_auxctl_read
Lloh2:
	adrp	x8, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh5:
	adrp	x9, _MII_BCM54XX_AUXCTL_MISC_WREN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MII_BCM54XX_AUXCTL_MISC_WREN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bcm54xx_auxctl_write
Lloh8:
	adrp	x20, _BCM54810_SHD_CLK_CTL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _BCM54810_SHD_CLK_CTL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bcm_phy_read_shadow
Lloh10:
	adrp	x8, _BCM54810_SHD_CLK_CTL_GTXCLK_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BCM54810_SHD_CLK_CTL_GTXCLK_EN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bcm_phy_write_shadow
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _PHY_BRCM_EN_MASTER_MODE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PHY_BRCM_EN_MASTER_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh16:
	adrp	x20, _MII_CTRL1000@GOTPAGE
Lloh17:
	ldr	x20, [x20, _MII_CTRL1000@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_read
Lloh18:
	adrp	x8, _CTL1000_AS_MASTER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CTL1000_AS_MASTER@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _CTL1000_ENABLE_MASTER@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CTL1000_ENABLE_MASTER@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_write
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC,4,2 ; @MII_BCM54XX_AUXCTL_SHDWSEL_MISC
	.comm	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN,4,2 ; @MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN
	.comm	_MII_BCM54XX_AUXCTL_MISC_WREN,4,2 ; @MII_BCM54XX_AUXCTL_MISC_WREN
	.comm	_BCM54810_SHD_CLK_CTL,4,2       ; @BCM54810_SHD_CLK_CTL
	.comm	_BCM54810_SHD_CLK_CTL_GTXCLK_EN,4,2 ; @BCM54810_SHD_CLK_CTL_GTXCLK_EN
	.comm	_PHY_BRCM_EN_MASTER_MODE,4,2    ; @PHY_BRCM_EN_MASTER_MODE
	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_CTL1000_AS_MASTER,4,2          ; @CTL1000_AS_MASTER
	.comm	_CTL1000_ENABLE_MASTER,4,2      ; @CTL1000_ENABLE_MASTER
	.no_dead_strip	_bcm54210e_config_init
.subsections_via_symbols
