	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdns_dp_phy_init
_cdns_dp_phy_init:                      ## @cdns_dp_phy_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_phy_get_drvdata
	movq	%rax, %rbx
	movq	_PHY_AUX_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	$3, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_cdns_dp_phy_pma_cfg
	movq	_PHY_PMA_XCVR_POWER_STATE_REQ@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	_PHY_POWER_STATE_LN_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$6, %ecx
	xorl	%r8d, %r8d
	callq	_cdns_dp_phy_write_field
	cmpl	$2, (%rbx)
	jl	LBB0_3
## %bb.1:
	movq	(%r14), %rsi
	movq	_PHY_POWER_STATE_LN_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$6, %ecx
	xorl	%r8d, %r8d
	callq	_cdns_dp_phy_write_field
	cmpl	$4, (%rbx)
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %rsi
	movq	_PHY_POWER_STATE_LN_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$6, %ecx
	xorl	%r8d, %r8d
	callq	_cdns_dp_phy_write_field
	movq	(%r14), %rsi
	movq	_PHY_POWER_STATE_LN_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$6, %ecx
	xorl	%r8d, %r8d
	callq	_cdns_dp_phy_write_field
LBB0_3:
	movq	_PHY_PMA_XCVR_PLLCLK_EN@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_cdns_dp_phy_write_field
	movl	(%rbx), %ecx
	cmpl	$2, %ecx
	jl	LBB0_6
## %bb.4:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_cdns_dp_phy_write_field
	movl	(%rbx), %ecx
	cmpl	$4, %ecx
	jne	LBB0_6
## %bb.5:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_cdns_dp_phy_write_field
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_cdns_dp_phy_write_field
	movl	(%rbx), %ecx
LBB0_6:
	movl	$-1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movl	%edi, %eax
	shll	$4, %eax
	movzbl	%al, %eax
	andl	$15, %edi
	orl	%eax, %edi
	xorl	$15, %edi
	movq	_PHY_RESET@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	$1, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_cdns_dp_phy_pma_cmn_vco_cfg_25mhz
	movq	%rbx, %rdi
	callq	_cdns_dp_phy_pma_cmn_rate
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_cdns_dp_phy_write_field
	movq	%rbx, %rdi
	callq	_cdns_dp_phy_wait_pma_cmn_ready
	movq	%rbx, %rdi
	callq	_cdns_dp_phy_run
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_AUX_CTRL,8,3               ## @PHY_AUX_CTRL
	.comm	_PHY_PMA_XCVR_POWER_STATE_REQ,8,3 ## @PHY_PMA_XCVR_POWER_STATE_REQ
	.comm	_PHY_POWER_STATE_LN_0,4,2       ## @PHY_POWER_STATE_LN_0
	.comm	_PHY_POWER_STATE_LN_1,4,2       ## @PHY_POWER_STATE_LN_1
	.comm	_PHY_POWER_STATE_LN_2,4,2       ## @PHY_POWER_STATE_LN_2
	.comm	_PHY_POWER_STATE_LN_3,4,2       ## @PHY_POWER_STATE_LN_3
	.comm	_PHY_PMA_XCVR_PLLCLK_EN,8,3     ## @PHY_PMA_XCVR_PLLCLK_EN
	.comm	_PHY_RESET,8,3                  ## @PHY_RESET
	.no_dead_strip	_cdns_dp_phy_init
.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_init
_cdns_dp_phy_init:                      ; @cdns_dp_phy_init
	.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
	bl	_phy_get_drvdata
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _PHY_AUX_CTRL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_AUX_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #3
	bl	_writel
	mov	x0, x19
	bl	_cdns_dp_phy_pma_cfg
Lloh3:
	adrp	x20, _PHY_PMA_XCVR_POWER_STATE_REQ@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PHY_PMA_XCVR_POWER_STATE_REQ@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh5:
	adrp	x8, _PHY_POWER_STATE_LN_0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_POWER_STATE_LN_0@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #6
	mov	w4, #0
	bl	_cdns_dp_phy_write_field
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	ldr	x1, [x20]
Lloh8:
	adrp	x8, _PHY_POWER_STATE_LN_1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PHY_POWER_STATE_LN_1@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #6
	mov	w4, #0
	bl	_cdns_dp_phy_write_field
	ldr	w8, [x19]
	cmp	w8, #4
	b.ne	LBB0_3
; %bb.2:
	ldr	x1, [x20]
Lloh11:
	adrp	x8, _PHY_POWER_STATE_LN_2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PHY_POWER_STATE_LN_2@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #6
	mov	w4, #0
	bl	_cdns_dp_phy_write_field
	ldr	x1, [x20]
Lloh14:
	adrp	x8, _PHY_POWER_STATE_LN_3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PHY_POWER_STATE_LN_3@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #6
	mov	w4, #0
	bl	_cdns_dp_phy_write_field
LBB0_3:
Lloh17:
	adrp	x20, _PHY_PMA_XCVR_PLLCLK_EN@GOTPAGE
Lloh18:
	ldr	x20, [x20, _PHY_PMA_XCVR_PLLCLK_EN@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	bl	_cdns_dp_phy_write_field
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.4:
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	mov	w4, #0
	bl	_cdns_dp_phy_write_field
	ldr	w8, [x19]
	cmp	w8, #4
	b.ne	LBB0_6
; %bb.5:
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #2
	mov	w3, #1
	mov	w4, #0
	bl	_cdns_dp_phy_write_field
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #3
	mov	w3, #1
	mov	w4, #0
	bl	_cdns_dp_phy_write_field
	ldr	w8, [x19]
LBB0_6:
	mov	w9, #-1
	lsl	w8, w9, w8
	and	w9, w8, #0xf
	bfi	w9, w8, #4, #4
	eor	w0, w9, #0xf
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x21, _PHY_RESET@GOTPAGE
Lloh20:
	ldr	x21, [x21, _PHY_RESET@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel
	mov	x0, x19
	bl	_cdns_dp_phy_pma_cmn_vco_cfg_25mhz
	mov	x0, x19
	bl	_cdns_dp_phy_pma_cmn_rate
	ldr	x1, [x21]
	mov	x0, x19
	mov	w2, #8
	mov	w3, #1
	mov	w4, #1
	bl	_cdns_dp_phy_write_field
	mov	x0, x19
	bl	_cdns_dp_phy_wait_pma_cmn_ready
	mov	x0, x19
	bl	_cdns_dp_phy_run
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_AUX_CTRL,8,3               ; @PHY_AUX_CTRL
	.comm	_PHY_PMA_XCVR_POWER_STATE_REQ,8,3 ; @PHY_PMA_XCVR_POWER_STATE_REQ
	.comm	_PHY_POWER_STATE_LN_0,4,2       ; @PHY_POWER_STATE_LN_0
	.comm	_PHY_POWER_STATE_LN_1,4,2       ; @PHY_POWER_STATE_LN_1
	.comm	_PHY_POWER_STATE_LN_2,4,2       ; @PHY_POWER_STATE_LN_2
	.comm	_PHY_POWER_STATE_LN_3,4,2       ; @PHY_POWER_STATE_LN_3
	.comm	_PHY_PMA_XCVR_PLLCLK_EN,8,3     ; @PHY_PMA_XCVR_PLLCLK_EN
	.comm	_PHY_RESET,8,3                  ; @PHY_RESET
	.no_dead_strip	_cdns_dp_phy_init
.subsections_via_symbols
