	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm54612e_config_init
_bcm54612e_config_init:                 ## @bcm54612e_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	(%rdi), %rax
	movq	_PHY_INTERFACE_MODE_RGMII_ID@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	je	LBB0_3
## %bb.1:
	movq	_PHY_INTERFACE_MODE_RGMII_TXID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_bcm_phy_write_shadow
	movq	(%rbx), %rax
	movq	(%r14), %rcx
LBB0_3:
	cmpq	%rcx, %rax
	je	LBB0_6
## %bb.4:
	movq	_PHY_INTERFACE_MODE_RGMII_RXID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bcm54xx_auxctl_read
	movq	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN@GOTPCREL(%rip), %rcx
	movq	_MII_BCM54XX_AUXCTL_SHDWSEL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movq	_MII_BCM54XX_AUXCTL_MISC_WREN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bcm54xx_auxctl_write
LBB0_6:
	movq	_PHY_BRCM_RX_REFCLK_UNUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	_BCM54612E_EXP_SPARE0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bcm_phy_read_exp
	movl	(%r14), %esi
	movq	_BCM54612E_LED4_CLK125OUT_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_bcm_phy_write_exp
	testl	%eax, %eax
	js	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ## @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,8,3 ## @PHY_INTERFACE_MODE_RGMII_TXID
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,8,3 ## @PHY_INTERFACE_MODE_RGMII_RXID
	.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_SHDWSEL_MASK,4,2 ## @MII_BCM54XX_AUXCTL_SHDWSEL_MASK
	.comm	_MII_BCM54XX_AUXCTL_MISC_WREN,4,2 ## @MII_BCM54XX_AUXCTL_MISC_WREN
	.comm	_PHY_BRCM_RX_REFCLK_UNUSED,4,2  ## @PHY_BRCM_RX_REFCLK_UNUSED
	.comm	_BCM54612E_EXP_SPARE0,4,2       ## @BCM54612E_EXP_SPARE0
	.comm	_BCM54612E_LED4_CLK125OUT_EN,4,2 ## @BCM54612E_LED4_CLK125OUT_EN
	.no_dead_strip	_bcm54612e_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm54612e_config_init
_bcm54612e_config_init:                 ; @bcm54612e_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
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	adrp	x10, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	bl	_bcm_phy_write_shadow
	ldr	x8, [x19]
	ldr	x9, [x20]
LBB0_2:
Lloh5:
	adrp	x10, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x20, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC@GOTPAGE
Lloh9:
	ldr	x20, [x20, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bcm54xx_auxctl_read
Lloh10:
	adrp	x8, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _MII_BCM54XX_AUXCTL_SHDWSEL_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MII_BCM54XX_AUXCTL_SHDWSEL_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
	ldr	w1, [x20]
Lloh16:
	adrp	x9, _MII_BCM54XX_AUXCTL_MISC_WREN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MII_BCM54XX_AUXCTL_MISC_WREN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_bcm54xx_auxctl_write
LBB0_4:
	ldr	w8, [x19, #8]
Lloh19:
	adrp	x9, _PHY_BRCM_RX_REFCLK_UNUSED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PHY_BRCM_RX_REFCLK_UNUSED@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
Lloh22:
	adrp	x20, _BCM54612E_EXP_SPARE0@GOTPAGE
Lloh23:
	ldr	x20, [x20, _BCM54612E_EXP_SPARE0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bcm_phy_read_exp
	ldr	w1, [x20]
Lloh24:
	adrp	x8, _BCM54612E_LED4_CLK125OUT_EN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BCM54612E_LED4_CLK125OUT_EN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_bcm_phy_write_exp
	tbnz	w0, #31, LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ; @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,8,3 ; @PHY_INTERFACE_MODE_RGMII_TXID
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,8,3 ; @PHY_INTERFACE_MODE_RGMII_RXID
	.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_SHDWSEL_MASK,4,2 ; @MII_BCM54XX_AUXCTL_SHDWSEL_MASK
	.comm	_MII_BCM54XX_AUXCTL_MISC_WREN,4,2 ; @MII_BCM54XX_AUXCTL_MISC_WREN
	.comm	_PHY_BRCM_RX_REFCLK_UNUSED,4,2  ; @PHY_BRCM_RX_REFCLK_UNUSED
	.comm	_BCM54612E_EXP_SPARE0,4,2       ; @BCM54612E_EXP_SPARE0
	.comm	_BCM54612E_LED4_CLK125OUT_EN,4,2 ; @BCM54612E_LED4_CLK125OUT_EN
	.no_dead_strip	_bcm54612e_config_init
.subsections_via_symbols
