	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ufs_qcom_phy_qmp_20nm_power_control
_ufs_qcom_phy_qmp_20nm_power_control:   ## @ufs_qcom_phy_qmp_20nm_power_control
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_UFS_QCOM_PHY_QUIRK_HIBERN8_EXIT_AFTER_PHY_PWR_COLLAPSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%rdi), %ebx
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	_UFS_PHY_POWER_DOWN_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	$1, %edi
	callq	_writel_relaxed
	xorl	%eax, %eax
	callq	_mb
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.2:
	addq	$8, %r14
	movl	$1, %edi
	movl	$2, %esi
	callq	_usleep_range
	movq	_QSERDES_COM_SYSCLK_EN_SEL_TXBAND@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movl	$10, %edi
	callq	_writel_relaxed
	movl	$8, %edi
	jmp	LBB0_6
LBB0_3:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	_QSERDES_COM_SYSCLK_EN_SEL_TXBAND@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	movl	$10, %edi
	callq	_writel_relaxed
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	movl	$2, %edi
	callq	_writel_relaxed
	xorl	%eax, %eax
	callq	_mb
LBB0_5:
	addq	$8, %r14
	xorl	%edi, %edi
	movq	_UFS_PHY_POWER_DOWN_CONTROL@GOTPCREL(%rip), %rbx
LBB0_6:
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	callq	_writel_relaxed
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mb                             ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UFS_QCOM_PHY_QUIRK_HIBERN8_EXIT_AFTER_PHY_PWR_COLLAPSE,4,2 ## @UFS_QCOM_PHY_QUIRK_HIBERN8_EXIT_AFTER_PHY_PWR_COLLAPSE
	.comm	_UFS_PHY_POWER_DOWN_CONTROL,8,3 ## @UFS_PHY_POWER_DOWN_CONTROL
	.comm	_QSERDES_COM_SYSCLK_EN_SEL_TXBAND,8,3 ## @QSERDES_COM_SYSCLK_EN_SEL_TXBAND
	.no_dead_strip	_ufs_qcom_phy_qmp_20nm_power_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ufs_qcom_phy_qmp_20nm_power_control
_ufs_qcom_phy_qmp_20nm_power_control:   ; @ufs_qcom_phy_qmp_20nm_power_control
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _UFS_QCOM_PHY_QUIRK_HIBERN8_EXIT_AFTER_PHY_PWR_COLLAPSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UFS_QCOM_PHY_QUIRK_HIBERN8_EXIT_AFTER_PHY_PWR_COLLAPSE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w20, w9, w8
	cbz	w1, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]!
Lloh3:
	adrp	x9, _UFS_PHY_POWER_DOWN_CONTROL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UFS_PHY_POWER_DOWN_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel_relaxed
	bl	_mb
	cbz	w20, LBB0_7
; %bb.2:
	mov	w0, #1
	mov	w1, #2
	bl	_usleep_range
	ldr	x8, [x19]
Lloh6:
	adrp	x20, _QSERDES_COM_SYSCLK_EN_SEL_TXBAND@GOTPAGE
Lloh7:
	ldr	x20, [x20, _QSERDES_COM_SYSCLK_EN_SEL_TXBAND@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #10
	bl	_writel_relaxed
	mov	w0, #8
	b	LBB0_6
LBB0_3:
	cbz	w20, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x20, _QSERDES_COM_SYSCLK_EN_SEL_TXBAND@GOTPAGE
Lloh9:
	ldr	x20, [x20, _QSERDES_COM_SYSCLK_EN_SEL_TXBAND@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #10
	bl	_writel_relaxed
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #2
	bl	_writel_relaxed
	bl	_mb
LBB0_5:
	mov	w0, #0
	add	x19, x19, #8
Lloh10:
	adrp	x20, _UFS_PHY_POWER_DOWN_CONTROL@GOTPAGE
Lloh11:
	ldr	x20, [x20, _UFS_PHY_POWER_DOWN_CONTROL@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mb
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UFS_QCOM_PHY_QUIRK_HIBERN8_EXIT_AFTER_PHY_PWR_COLLAPSE,4,2 ; @UFS_QCOM_PHY_QUIRK_HIBERN8_EXIT_AFTER_PHY_PWR_COLLAPSE
	.comm	_UFS_PHY_POWER_DOWN_CONTROL,8,3 ; @UFS_PHY_POWER_DOWN_CONTROL
	.comm	_QSERDES_COM_SYSCLK_EN_SEL_TXBAND,8,3 ; @QSERDES_COM_SYSCLK_EN_SEL_TXBAND
	.no_dead_strip	_ufs_qcom_phy_qmp_20nm_power_control
.subsections_via_symbols
