	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdns_dp_phy_pma_cmn_rate
_cdns_dp_phy_pma_cmn_rate:              ## @cdns_dp_phy_pma_cmn_rate
	.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, %r15
	movq	_PHY_PLL_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rdi), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_writel
	movl	(%r15), %eax
	cmpl	$3239, %eax                     ## imm = 0xCA7
	jg	LBB0_4
## %bb.1:
	cmpl	$2429, %eax                     ## imm = 0x97D
	jg	LBB0_8
## %bb.2:
	cmpl	$1620, %eax                     ## imm = 0x654
	je	LBB0_15
## %bb.3:
	movl	$0, %edi
	cmpl	$2160, %eax                     ## imm = 0x870
	je	LBB0_10
	jmp	LBB0_18
LBB0_4:
	cmpl	$5399, %eax                     ## imm = 0x1517
	jg	LBB0_11
## %bb.5:
	cmpl	$3240, %eax                     ## imm = 0xCA8
	je	LBB0_16
## %bb.6:
	cmpl	$4320, %eax                     ## imm = 0x10E0
	je	LBB0_14
	jmp	LBB0_17
LBB0_8:
	cmpl	$2430, %eax                     ## imm = 0x97E
	je	LBB0_10
## %bb.9:
	movl	$0, %edi
	cmpl	$2700, %eax                     ## imm = 0xA8C
	jne	LBB0_18
LBB0_10:
	movl	$1, %r14d
	movl	$1793, %edi                     ## imm = 0x701
	jmp	LBB0_18
LBB0_11:
	cmpl	$5400, %eax                     ## imm = 0x1518
	je	LBB0_14
## %bb.12:
	cmpl	$8100, %eax                     ## imm = 0x1FA4
	jne	LBB0_17
## %bb.13:
	movl	$512, %edi                      ## imm = 0x200
	jmp	LBB0_18
LBB0_14:
	movl	$769, %edi                      ## imm = 0x301
	jmp	LBB0_18
LBB0_15:
	movl	$2, %r14d
	movl	$3841, %edi                     ## imm = 0xF01
	jmp	LBB0_18
LBB0_16:
	movl	$2, %r14d
	movl	$2816, %edi                     ## imm = 0xB00
	jmp	LBB0_18
LBB0_17:
	xorl	%edi, %edi
LBB0_18:
	movq	_CMN_PDIAG_PLL0_CLK_SEL_M0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel
	cmpl	$0, 4(%r15)
	je	LBB0_21
## %bb.19:
	xorl	%r13d, %r13d
	movq	_XCVR_DIAG_HSCLK_DIV@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	orl	%r13d, %esi
	addq	8(%r15), %rsi
	movl	%r14d, %edi
	callq	_writel
	incl	%ebx
	addl	$2048, %r13d                    ## imm = 0x800
	cmpl	4(%r15), %ebx
	jb	LBB0_20
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_PLL_CFG,8,3                ## @PHY_PLL_CFG
	.comm	_CMN_PDIAG_PLL0_CLK_SEL_M0,8,3  ## @CMN_PDIAG_PLL0_CLK_SEL_M0
	.comm	_XCVR_DIAG_HSCLK_DIV,4,2        ## @XCVR_DIAG_HSCLK_DIV
	.no_dead_strip	_cdns_dp_phy_pma_cmn_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdns_dp_phy_pma_cmn_rate
_cdns_dp_phy_pma_cmn_rate:              ; @cdns_dp_phy_pma_cmn_rate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _PHY_PLL_CFG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_PLL_CFG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	w0, #0
	ldr	w8, [x19]
	cmp	w8, #3239
	b.gt	LBB0_4
; %bb.1:
	cmp	w8, #2429
	b.gt	LBB0_7
; %bb.2:
	cmp	w8, #1620
	b.eq	LBB0_13
; %bb.3:
	mov	x20, x0
	cmp	w8, #2160
	b.eq	LBB0_9
	b	LBB0_15
LBB0_4:
	mov	w9, #5399
	cmp	w8, w9
	b.gt	LBB0_10
; %bb.5:
	cmp	w8, #3240
	b.eq	LBB0_14
; %bb.6:
	mov	w9, #4320
	mov	x20, x0
	cmp	w8, w9
	b.eq	LBB0_12
	b	LBB0_15
LBB0_7:
	cmp	w8, #2430
	b.eq	LBB0_9
; %bb.8:
	mov	x20, x0
	cmp	w8, #2700
	b.ne	LBB0_15
LBB0_9:
	mov	w20, #1
	mov	w0, #1793
	b	LBB0_15
LBB0_10:
	mov	w9, #5400
	cmp	w8, w9
	b.eq	LBB0_12
; %bb.11:
	mov	w9, #8100
	mov	w10, #512
	cmp	w8, w9
	csel	w0, w10, wzr, eq
	csel	w20, wzr, wzr, eq
	b	LBB0_15
LBB0_12:
	mov	w20, #0
	mov	w0, #769
	b	LBB0_15
LBB0_13:
	mov	w20, #2
	mov	w0, #3841
	b	LBB0_15
LBB0_14:
	mov	w20, #2
	mov	w0, #2816
LBB0_15:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _CMN_PDIAG_PLL0_CLK_SEL_M0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMN_PDIAG_PLL0_CLK_SEL_M0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_18
; %bb.16:
	mov	w21, #0
	mov	w22, #0
Lloh6:
	adrp	x23, _XCVR_DIAG_HSCLK_DIV@GOTPAGE
Lloh7:
	ldr	x23, [x23, _XCVR_DIAG_HSCLK_DIV@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w9, [x23]
	orr	w9, w9, w21
	add	x1, x8, x9
	mov	x0, x20
	bl	_writel
	add	w22, w22, #1
	ldr	w8, [x19, #4]
	add	w21, w21, #2048
	cmp	w22, w8
	b.lo	LBB0_17
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_PLL_CFG,8,3                ; @PHY_PLL_CFG
	.comm	_CMN_PDIAG_PLL0_CLK_SEL_M0,8,3  ; @CMN_PDIAG_PLL0_CLK_SEL_M0
	.comm	_XCVR_DIAG_HSCLK_DIV,4,2        ; @XCVR_DIAG_HSCLK_DIV
	.no_dead_strip	_cdns_dp_phy_pma_cmn_rate
.subsections_via_symbols
