	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm54xx_config_clock_delay
_bcm54xx_config_clock_delay:            ## @bcm54xx_config_clock_delay
	.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	%rdi, %r14
	movq	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_bcm54xx_auxctl_read
	movq	_MII_BCM54XX_AUXCTL_MISC_WREN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rcx
	movq	_PHY_INTERFACE_MODE_RGMII@GOTPCREL(%rip), %rbx
	movq	_PHY_INTERFACE_MODE_RGMII_TXID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %edi
	notl	%edi
	movl	$-1, %edx
	cmovel	%edi, %edx
	cmpq	(%rbx), %rcx
	cmovel	%edi, %edx
	andl	%eax, %edx
	movq	_PHY_INTERFACE_MODE_RGMII_ID@GOTPCREL(%rip), %r13
	movq	_PHY_INTERFACE_MODE_RGMII_RXID@GOTPCREL(%rip), %r12
	orl	%eax, %esi
	cmpq	(%r12), %rcx
	cmovel	%esi, %edx
	cmpq	(%r13), %rcx
	movl	$-1, %ebx
	cmovel	%esi, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_bcm54xx_auxctl_write
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_BCM54810_SHD_CLK_CTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_bcm_phy_read_shadow
	movq	(%r14), %rcx
	cmpq	(%r12), %rcx
	movq	_BCM54810_SHD_CLK_CTL_GTXCLK_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	notl	%esi
	cmovel	%esi, %ebx
	movq	_PHY_INTERFACE_MODE_RGMII@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	cmovel	%esi, %ebx
	andl	%eax, %ebx
	orl	%eax, %edx
	movq	_PHY_INTERFACE_MODE_RGMII_TXID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	cmovel	%edx, %ebx
	cmpq	(%r13), %rcx
	cmovel	%edx, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_bcm_phy_write_shadow
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC,4,2 ## @MII_BCM54XX_AUXCTL_SHDWSEL_MISC
	.comm	_MII_BCM54XX_AUXCTL_MISC_WREN,4,2 ## @MII_BCM54XX_AUXCTL_MISC_WREN
	.comm	_PHY_INTERFACE_MODE_RGMII,8,3   ## @PHY_INTERFACE_MODE_RGMII
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,8,3 ## @PHY_INTERFACE_MODE_RGMII_TXID
	.comm	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN,4,2 ## @MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ## @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,8,3 ## @PHY_INTERFACE_MODE_RGMII_RXID
	.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
	.no_dead_strip	_bcm54xx_config_clock_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm54xx_config_clock_delay
_bcm54xx_config_clock_delay:            ; @bcm54xx_config_clock_delay
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x25, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_bcm54xx_auxctl_read
Lloh2:
	adrp	x8, _MII_BCM54XX_AUXCTL_MISC_WREN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_BCM54XX_AUXCTL_MISC_WREN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh5:
	adrp	x21, _PHY_INTERFACE_MODE_RGMII@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PHY_INTERFACE_MODE_RGMII@GOTPAGEOFF]
	ldr	x9, [x19]
	ldr	x10, [x21]
Lloh7:
	adrp	x20, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGE
Lloh8:
	ldr	x20, [x20, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGEOFF]
	ldr	x11, [x20]
	cmp	x9, x11
	ccmp	x9, x10, #4, ne
Lloh9:
	adrp	x10, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	mov	w22, #-1
	csinv	w11, w22, w10, ne
	and	w11, w11, w8
Lloh12:
	adrp	x23, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGE
Lloh13:
	ldr	x23, [x23, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGEOFF]
	ldr	x12, [x23]
Lloh14:
	adrp	x24, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGE
Lloh15:
	ldr	x24, [x24, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGEOFF]
	ldr	x13, [x24]
	cmp	x9, x13
	ccmp	x9, x12, #4, ne
	orr	w8, w10, w8
	csel	w2, w8, w11, eq
	ldr	w1, [x25]
	mov	x0, x19
	bl	_bcm54xx_auxctl_write
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh16:
	adrp	x25, _BCM54810_SHD_CLK_CTL@GOTPAGE
Lloh17:
	ldr	x25, [x25, _BCM54810_SHD_CLK_CTL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_bcm_phy_read_shadow
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	x10, [x24]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh18:
	adrp	x9, _BCM54810_SHD_CLK_CTL_GTXCLK_EN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BCM54810_SHD_CLK_CTL_GTXCLK_EN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	csinv	w10, w22, w9, ne
	and	w10, w10, w0
	ldr	x11, [x23]
	ldr	x12, [x20]
	cmp	x8, x12
	ccmp	x8, x11, #4, ne
	orr	w8, w9, w0
	csel	w2, w8, w10, eq
	ldr	w1, [x25]
	mov	x0, x19
	bl	_bcm_phy_write_shadow
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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_MISC_WREN,4,2 ; @MII_BCM54XX_AUXCTL_MISC_WREN
	.comm	_PHY_INTERFACE_MODE_RGMII,8,3   ; @PHY_INTERFACE_MODE_RGMII
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,8,3 ; @PHY_INTERFACE_MODE_RGMII_TXID
	.comm	_MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN,4,2 ; @MII_BCM54XX_AUXCTL_SHDWSEL_MISC_RGMII_SKEW_EN
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ; @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,8,3 ; @PHY_INTERFACE_MODE_RGMII_RXID
	.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
	.no_dead_strip	_bcm54xx_config_clock_delay
.subsections_via_symbols
