	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm54xx_adjust_rxrefclk
_bcm54xx_adjust_rxrefclk:               ## @bcm54xx_adjust_rxrefclk
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_BRCM_PHY_MODEL
	movq	_PHY_ID_BCM57780@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_BRCM_PHY_MODEL
	movq	_PHY_ID_BCM50610@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_BRCM_PHY_MODEL
	movq	_PHY_ID_BCM50610M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
LBB0_3:
	movq	_BCM54XX_SHD_SCR3@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_bcm_phy_read_shadow
	testl	%eax, %eax
	js	LBB0_25
## %bb.4:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_BRCM_PHY_MODEL
	movq	_PHY_ID_BCM50610@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_BRCM_PHY_MODEL
	movq	_PHY_ID_BCM50610M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_BRCM_PHY_REV
	cmpl	$3, %eax
	jl	LBB0_8
## %bb.7:
	movl	(%rbx), %edx
	movb	$1, %r12b
	jmp	LBB0_12
LBB0_8:
	movl	(%rbx), %edx
	movq	_PHY_BRCM_RX_REFCLK_UNUSED@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_BCM54XX_SHD_SCR3_DEF_CLK125@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	%r14d, %ecx
	movb	$1, %r12b
	jmp	LBB0_13
LBB0_10:
	movq	_PHY_BRCM_AUTO_PWRDWN_ENABLE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_14
## %bb.11:
	xorl	%r12d, %r12d
LBB0_12:
	movl	%r14d, %ecx
LBB0_13:
	movq	_BCM54XX_SHD_SCR3_DLLAPD_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
LBB0_15:
	movq	_PHY_BRCM_DIS_TXCRXC_NOENRGY@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	je	LBB0_17
## %bb.16:
	movq	_BCM54XX_SHD_SCR3_TRDDAPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_17:
	orl	%eax, %edx
	cmpl	%edx, %r14d
	je	LBB0_19
## %bb.18:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_bcm_phy_write_shadow
LBB0_19:
	movq	_BCM54XX_SHD_APD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bcm_phy_read_shadow
	testl	%eax, %eax
	js	LBB0_25
## %bb.20:
	testb	%r12b, %r12b
	jne	LBB0_22
## %bb.21:
	movq	_PHY_BRCM_AUTO_PWRDWN_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_23
LBB0_22:
	movq	_BCM54XX_SHD_APD_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	%eax, %edx
	cmpl	%edx, %eax
	jne	LBB0_26
LBB0_25:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_BCM54XX_SHD_APD_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	cmpl	%edx, %eax
	je	LBB0_25
LBB0_26:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcm_phy_write_shadow           ## TAILCALL
LBB0_14:
	movq	_BCM54XX_SHD_SCR3_DLLAPD_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r14d, %eax
	xorl	%r12d, %r12d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_ID_BCM57780,8,3            ## @PHY_ID_BCM57780
	.comm	_PHY_ID_BCM50610,8,3            ## @PHY_ID_BCM50610
	.comm	_PHY_ID_BCM50610M,8,3           ## @PHY_ID_BCM50610M
	.comm	_BCM54XX_SHD_SCR3,4,2           ## @BCM54XX_SHD_SCR3
	.comm	_PHY_BRCM_RX_REFCLK_UNUSED,4,2  ## @PHY_BRCM_RX_REFCLK_UNUSED
	.comm	_BCM54XX_SHD_SCR3_DEF_CLK125,4,2 ## @BCM54XX_SHD_SCR3_DEF_CLK125
	.comm	_PHY_BRCM_AUTO_PWRDWN_ENABLE,4,2 ## @PHY_BRCM_AUTO_PWRDWN_ENABLE
	.comm	_BCM54XX_SHD_SCR3_DLLAPD_DIS,4,2 ## @BCM54XX_SHD_SCR3_DLLAPD_DIS
	.comm	_PHY_BRCM_DIS_TXCRXC_NOENRGY,4,2 ## @PHY_BRCM_DIS_TXCRXC_NOENRGY
	.comm	_BCM54XX_SHD_SCR3_TRDDAPD,4,2   ## @BCM54XX_SHD_SCR3_TRDDAPD
	.comm	_BCM54XX_SHD_APD,4,2            ## @BCM54XX_SHD_APD
	.comm	_BCM54XX_SHD_APD_EN,4,2         ## @BCM54XX_SHD_APD_EN
	.no_dead_strip	_bcm54xx_adjust_rxrefclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm54xx_adjust_rxrefclk
_bcm54xx_adjust_rxrefclk:               ; @bcm54xx_adjust_rxrefclk
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_BRCM_PHY_MODEL
Lloh0:
	adrp	x8, _PHY_ID_BCM57780@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_ID_BCM57780@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x22, _PHY_ID_BCM50610@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PHY_ID_BCM50610@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_BRCM_PHY_MODEL
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_BRCM_PHY_MODEL
Lloh5:
	adrp	x8, _PHY_ID_BCM50610M@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_ID_BCM50610M@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
LBB0_3:
Lloh8:
	adrp	x21, _BCM54XX_SHD_SCR3@GOTPAGE
Lloh9:
	ldr	x21, [x21, _BCM54XX_SHD_SCR3@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bcm_phy_read_shadow
	tbnz	w0, #31, LBB0_20
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	bl	_BRCM_PHY_MODEL
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_BRCM_PHY_MODEL
Lloh10:
	adrp	x8, _PHY_ID_BCM50610M@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PHY_ID_BCM50610M@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_BRCM_PHY_REV
	cmp	w0, #3
	b.lt	LBB0_8
; %bb.7:
	ldr	w8, [x19]
	mov	w22, #1
	b	LBB0_12
LBB0_8:
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _PHY_BRCM_RX_REFCLK_UNUSED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PHY_BRCM_RX_REFCLK_UNUSED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh16:
	adrp	x9, _BCM54XX_SHD_SCR3_DEF_CLK125@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BCM54XX_SHD_SCR3_DEF_CLK125@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	bic	w9, w20, w9
	mov	w22, #1
	b	LBB0_13
LBB0_10:
Lloh19:
	adrp	x9, _PHY_BRCM_AUTO_PWRDWN_ENABLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PHY_BRCM_AUTO_PWRDWN_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.11:
	mov	w22, #0
LBB0_12:
	mov	x9, x20
LBB0_13:
Lloh22:
	adrp	x10, _BCM54XX_SHD_SCR3_DLLAPD_DIS@GOTPAGE
Lloh23:
	ldr	x10, [x10, _BCM54XX_SHD_SCR3_DLLAPD_DIS@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	bic	w9, w9, w10
LBB0_14:
Lloh25:
	adrp	x10, _PHY_BRCM_DIS_TXCRXC_NOENRGY@GOTPAGE
Lloh26:
	ldr	x10, [x10, _PHY_BRCM_DIS_TXCRXC_NOENRGY@GOTPAGEOFF]
Lloh27:
	adrp	x11, _BCM54XX_SHD_SCR3_TRDDAPD@GOTPAGE
Lloh28:
	ldr	x11, [x11, _BCM54XX_SHD_SCR3_TRDDAPD@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
Lloh30:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w2, w8, w9
	cmp	w20, w2
	b.eq	LBB0_16
; %bb.15:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bcm_phy_write_shadow
LBB0_16:
Lloh31:
	adrp	x20, _BCM54XX_SHD_APD@GOTPAGE
Lloh32:
	ldr	x20, [x20, _BCM54XX_SHD_APD@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bcm_phy_read_shadow
	tbnz	w0, #31, LBB0_20
; %bb.17:
	tbnz	w22, #0, LBB0_19
; %bb.18:
	ldr	w8, [x19]
Lloh33:
	adrp	x9, _PHY_BRCM_AUTO_PWRDWN_ENABLE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PHY_BRCM_AUTO_PWRDWN_ENABLE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
LBB0_19:
Lloh36:
	adrp	x8, _BCM54XX_SHD_APD_EN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BCM54XX_SHD_APD_EN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w2, w8, w0
	cmp	w0, w2
	b.ne	LBB0_22
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_21:
Lloh39:
	adrp	x8, _BCM54XX_SHD_APD_EN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BCM54XX_SHD_APD_EN@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	bic	w2, w0, w8
	cmp	w0, w2
	b.eq	LBB0_20
LBB0_22:
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bcm_phy_write_shadow
LBB0_23:
	mov	w22, #0
Lloh42:
	adrp	x9, _BCM54XX_SHD_SCR3_DLLAPD_DIS@GOTPAGE
Lloh43:
	ldr	x9, [x9, _BCM54XX_SHD_SCR3_DLLAPD_DIS@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w9, w9, w20
	b	LBB0_14
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_ID_BCM57780,8,3            ; @PHY_ID_BCM57780
	.comm	_PHY_ID_BCM50610,8,3            ; @PHY_ID_BCM50610
	.comm	_PHY_ID_BCM50610M,8,3           ; @PHY_ID_BCM50610M
	.comm	_BCM54XX_SHD_SCR3,4,2           ; @BCM54XX_SHD_SCR3
	.comm	_PHY_BRCM_RX_REFCLK_UNUSED,4,2  ; @PHY_BRCM_RX_REFCLK_UNUSED
	.comm	_BCM54XX_SHD_SCR3_DEF_CLK125,4,2 ; @BCM54XX_SHD_SCR3_DEF_CLK125
	.comm	_PHY_BRCM_AUTO_PWRDWN_ENABLE,4,2 ; @PHY_BRCM_AUTO_PWRDWN_ENABLE
	.comm	_BCM54XX_SHD_SCR3_DLLAPD_DIS,4,2 ; @BCM54XX_SHD_SCR3_DLLAPD_DIS
	.comm	_PHY_BRCM_DIS_TXCRXC_NOENRGY,4,2 ; @PHY_BRCM_DIS_TXCRXC_NOENRGY
	.comm	_BCM54XX_SHD_SCR3_TRDDAPD,4,2   ; @BCM54XX_SHD_SCR3_TRDDAPD
	.comm	_BCM54XX_SHD_APD,4,2            ; @BCM54XX_SHD_APD
	.comm	_BCM54XX_SHD_APD_EN,4,2         ; @BCM54XX_SHD_APD_EN
	.no_dead_strip	_bcm54xx_adjust_rxrefclk
.subsections_via_symbols
