	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_qmp_phy_disable
_qcom_qmp_phy_disable:                  ## @qcom_qmp_phy_disable
	.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, %r15
	movq	16(%rax), %r14
	movq	8(%r14), %rbx
	movl	8(%rax), %edi
	callq	_clk_disable_unprepare
	cmpl	$0, 24(%rbx)
	jne	LBB0_2
## %bb.1:
	movl	4(%r15), %edi
	movq	16(%rbx), %rax
	movq	_QPHY_SW_RESET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_SW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_qphy_setbits
LBB0_2:
	movl	4(%r15), %edi
	movq	16(%rbx), %rax
	movq	_QPHY_START_CTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	12(%rbx), %edx
	callq	_qphy_clrbits
	movl	4(%r15), %edi
	movq	_QPHY_POWER_DOWN_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	callq	_qphy_clrbits
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	callq	_reset_control_assert
LBB0_4:
	movq	%r14, %rdi
	callq	_qcom_qmp_phy_com_exit
	movl	$0, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QPHY_SW_RESET,8,3              ## @QPHY_SW_RESET
	.comm	_SW_RESET,4,2                   ## @SW_RESET
	.comm	_QPHY_START_CTRL,8,3            ## @QPHY_START_CTRL
	.comm	_QPHY_POWER_DOWN_CONTROL,4,2    ## @QPHY_POWER_DOWN_CONTROL
	.no_dead_strip	_qcom_qmp_phy_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_qmp_phy_disable
_qcom_qmp_phy_disable:                  ; @qcom_qmp_phy_disable
	.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	x20, x0
	ldr	x19, [x0, #16]
	ldr	x21, [x19, #8]
	ldr	w0, [x0, #8]
	bl	_clk_disable_unprepare
	ldr	w8, [x21, #24]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #4]
	ldr	x8, [x21, #16]
Lloh0:
	adrp	x9, _QPHY_SW_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QPHY_SW_RESET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _SW_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SW_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_qphy_setbits
LBB0_2:
	ldr	w0, [x20, #4]
	ldr	x8, [x21, #16]
Lloh6:
	adrp	x9, _QPHY_START_CTRL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QPHY_START_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	ldr	w2, [x21, #12]
	bl	_qphy_clrbits
	ldr	w0, [x20, #4]
Lloh9:
	adrp	x8, _QPHY_POWER_DOWN_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QPHY_POWER_DOWN_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
	bl	_qphy_clrbits
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x20]
	bl	_reset_control_assert
LBB0_4:
	mov	x0, x19
	bl	_qcom_qmp_phy_com_exit
	str	wzr, [x19]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QPHY_SW_RESET,8,3              ; @QPHY_SW_RESET
	.comm	_SW_RESET,4,2                   ; @SW_RESET
	.comm	_QPHY_START_CTRL,8,3            ; @QPHY_START_CTRL
	.comm	_QPHY_POWER_DOWN_CONTROL,4,2    ; @QPHY_POWER_DOWN_CONTROL
	.no_dead_strip	_qcom_qmp_phy_disable
.subsections_via_symbols
