	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_ipq806x_sata_phy_init
_qcom_ipq806x_sata_phy_init:            ## @qcom_ipq806x_sata_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_phy_get_drvdata
	movq	%rax, %r14
	movq	_SATA_PHY_P0_PARAM3@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%rax), %rdi
	callq	_readl_relaxed
	movq	_SATA_PHY_SSC_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	_SATA_PHY_P0_PARAM0@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movq	_SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN3_MASK@GOTPCREL(%rip), %rcx
	movq	_SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN2_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN1_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	$15, %edi
	callq	_SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN3
	orl	%eax, %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	_SATA_PHY_P0_PARAM1@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movq	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN3_MASK@GOTPCREL(%rip), %rcx
	movq	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN2_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN1_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	$85, %edi
	callq	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN3
	movl	%eax, %r12d
	movl	$85, %edi
	callq	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN2
	orl	%eax, %r12d
	movl	$85, %edi
	callq	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN1
	orl	%eax, %r12d
	orl	%ebx, %r12d
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%r12d, %edi
	callq	_writel_relaxed
	movq	_SATA_PHY_P0_PARAM2@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movq	_SATA_PHY_P0_PARAM2_RX_EQ_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	$3, %edi
	callq	_SATA_PHY_P0_PARAM2_RX_EQ
	orl	%eax, %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	_SATA_PHY_P0_PARAM4@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movq	_SATA_PHY_RESET@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movq	_SATA_PHY_REF_SSP_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r15), %eax
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	xorl	%eax, %eax
	callq	_mb
	movl	$20, %edi
	movl	$70, %esi
	callq	_usleep_range
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movl	(%r15), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	callq	_writel_relaxed
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SATA_PHY_P0_PARAM3,8,3         ## @SATA_PHY_P0_PARAM3
	.comm	_SATA_PHY_SSC_EN,4,2            ## @SATA_PHY_SSC_EN
	.comm	_SATA_PHY_P0_PARAM0,8,3         ## @SATA_PHY_P0_PARAM0
	.comm	_SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN3_MASK,4,2 ## @SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN3_MASK
	.comm	_SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN2_MASK,4,2 ## @SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN2_MASK
	.comm	_SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN1_MASK,4,2 ## @SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN1_MASK
	.comm	_SATA_PHY_P0_PARAM1,8,3         ## @SATA_PHY_P0_PARAM1
	.comm	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN3_MASK,4,2 ## @SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN3_MASK
	.comm	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN2_MASK,4,2 ## @SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN2_MASK
	.comm	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN1_MASK,4,2 ## @SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN1_MASK
	.comm	_SATA_PHY_P0_PARAM2,8,3         ## @SATA_PHY_P0_PARAM2
	.comm	_SATA_PHY_P0_PARAM2_RX_EQ_MASK,4,2 ## @SATA_PHY_P0_PARAM2_RX_EQ_MASK
	.comm	_SATA_PHY_P0_PARAM4,8,3         ## @SATA_PHY_P0_PARAM4
	.comm	_SATA_PHY_RESET,4,2             ## @SATA_PHY_RESET
	.comm	_SATA_PHY_REF_SSP_EN,4,2        ## @SATA_PHY_REF_SSP_EN
	.no_dead_strip	_qcom_ipq806x_sata_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_ipq806x_sata_phy_init
_qcom_ipq806x_sata_phy_init:            ; @qcom_ipq806x_sata_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]
Lloh0:
	adrp	x20, _SATA_PHY_P0_PARAM3@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SATA_PHY_P0_PARAM3@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh2:
	adrp	x8, _SATA_PHY_SSC_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SATA_PHY_SSC_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh5:
	adrp	x20, _SATA_PHY_P0_PARAM0@GOTPAGE
Lloh6:
	ldr	x20, [x20, _SATA_PHY_P0_PARAM0@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh7:
	adrp	x8, _SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN3_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN3_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN2_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN2_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN1_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN1_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w21, w0, w8
	mov	w0, #15
	bl	_SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN3
	orr	w0, w21, w0
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh16:
	adrp	x21, _SATA_PHY_P0_PARAM1@GOTPAGE
Lloh17:
	ldr	x21, [x21, _SATA_PHY_P0_PARAM1@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh18:
	adrp	x8, _SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN3_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN3_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN2_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN2_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN1_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN1_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w22, w0, w8
	mov	w0, #85
	bl	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN3
	mov	x20, x0
	mov	w0, #85
	bl	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN2
	orr	w20, w0, w20
	mov	w0, #85
	bl	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN1
	orr	w8, w20, w22
	orr	w0, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh27:
	adrp	x20, _SATA_PHY_P0_PARAM2@GOTPAGE
Lloh28:
	ldr	x20, [x20, _SATA_PHY_P0_PARAM2@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh29:
	adrp	x8, _SATA_PHY_P0_PARAM2_RX_EQ_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SATA_PHY_P0_PARAM2_RX_EQ_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	bic	w21, w0, w8
	mov	w0, #3
	bl	_SATA_PHY_P0_PARAM2_RX_EQ
	orr	w0, w21, w0
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh32:
	adrp	x20, _SATA_PHY_P0_PARAM4@GOTPAGE
Lloh33:
	ldr	x20, [x20, _SATA_PHY_P0_PARAM4@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh34:
	adrp	x21, _SATA_PHY_RESET@GOTPAGE
Lloh35:
	ldr	x21, [x21, _SATA_PHY_RESET@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w0, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh36:
	adrp	x8, _SATA_PHY_REF_SSP_EN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SATA_PHY_REF_SSP_EN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	w9, [x21]
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
	bl	_mb
	mov	w0, #20
	mov	w1, #70
	bl	_usleep_range
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x21]
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
	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	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SATA_PHY_P0_PARAM3,8,3         ; @SATA_PHY_P0_PARAM3
	.comm	_SATA_PHY_SSC_EN,4,2            ; @SATA_PHY_SSC_EN
	.comm	_SATA_PHY_P0_PARAM0,8,3         ; @SATA_PHY_P0_PARAM0
	.comm	_SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN3_MASK,4,2 ; @SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN3_MASK
	.comm	_SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN2_MASK,4,2 ; @SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN2_MASK
	.comm	_SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN1_MASK,4,2 ; @SATA_PHY_P0_PARAM0_P0_TX_PREEMPH_GEN1_MASK
	.comm	_SATA_PHY_P0_PARAM1,8,3         ; @SATA_PHY_P0_PARAM1
	.comm	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN3_MASK,4,2 ; @SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN3_MASK
	.comm	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN2_MASK,4,2 ; @SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN2_MASK
	.comm	_SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN1_MASK,4,2 ; @SATA_PHY_P0_PARAM1_P0_TX_AMPLITUDE_GEN1_MASK
	.comm	_SATA_PHY_P0_PARAM2,8,3         ; @SATA_PHY_P0_PARAM2
	.comm	_SATA_PHY_P0_PARAM2_RX_EQ_MASK,4,2 ; @SATA_PHY_P0_PARAM2_RX_EQ_MASK
	.comm	_SATA_PHY_P0_PARAM4,8,3         ; @SATA_PHY_P0_PARAM4
	.comm	_SATA_PHY_RESET,4,2             ; @SATA_PHY_RESET
	.comm	_SATA_PHY_REF_SSP_EN,4,2        ; @SATA_PHY_REF_SSP_EN
	.no_dead_strip	_qcom_ipq806x_sata_phy_init
.subsections_via_symbols
