	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_pipe3_exit
_ti_pipe3_exit:                         ## @ti_pipe3_exit
	.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
	callq	_phy_get_drvdata
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_PIPE3_MODE_SATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, 12(%r14)
	je	LBB0_13
LBB0_2:
	movq	_PIPE3_MODE_PCIE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_10
## %bb.3:
	movl	20(%r14), %edi
	movq	_PLL_CONFIGURATION2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_ti_pipe3_readl
	movq	_PLL_IDLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	20(%r14), %edi
	movl	(%rbx), %esi
	movl	%eax, %edx
	callq	_ti_pipe3_writel
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_PLL_IDLE_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	addq	%rbx, %r15
	movq	_PLL_STATUS@GOTPCREL(%rip), %r13
	movq	_PLL_TICOPWDN@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_after
	testl	%eax, %eax
	jne	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	20(%r14), %edi
	movl	(%r13), %esi
	callq	_ti_pipe3_readl
	movl	%eax, %ebx
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PLL_LDOPWDN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
	jmp	LBB0_8
LBB0_7:
	testl	%ebx, (%r12)
	je	LBB0_15
LBB0_8:
	movq	_PLL_LDOPWDN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_15
## %bb.9:
	movq	(%r14), %rax
	movq	_PIPE3_MODE_SATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_10:
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.11:
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	movq	_SATA_PLL_SOFT_RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
LBB0_12:
	movq	%r14, %rdi
	callq	_ti_pipe3_disable_clocks
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_15:
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPE3_MODE_SATA,8,3            ## @PIPE3_MODE_SATA
	.comm	_PIPE3_MODE_PCIE,8,3            ## @PIPE3_MODE_PCIE
	.comm	_PLL_CONFIGURATION2,4,2         ## @PLL_CONFIGURATION2
	.comm	_PLL_IDLE,4,2                   ## @PLL_IDLE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_PLL_IDLE_TIME,4,2              ## @PLL_IDLE_TIME
	.comm	_PLL_STATUS,4,2                 ## @PLL_STATUS
	.comm	_PLL_TICOPWDN,4,2               ## @PLL_TICOPWDN
	.comm	_PLL_LDOPWDN,4,2                ## @PLL_LDOPWDN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to power down: PLL_STATUS 0x%x\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SATA_PLL_SOFT_RESET,4,2        ## @SATA_PLL_SOFT_RESET
	.no_dead_strip	_ti_pipe3_exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_pipe3_exit
_ti_pipe3_exit:                         ; @ti_pipe3_exit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	bl	_phy_get_drvdata
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _PIPE3_MODE_SATA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PIPE3_MODE_SATA@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w10, [x19, #12]
	cbz	w10, LBB0_13
LBB0_2:
Lloh2:
	adrp	x10, _PIPE3_MODE_PCIE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PIPE3_MODE_PCIE@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_10
; %bb.3:
	ldr	w0, [x19, #20]
Lloh5:
	adrp	x20, _PLL_CONFIGURATION2@GOTPAGE
Lloh6:
	ldr	x20, [x20, _PLL_CONFIGURATION2@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ti_pipe3_readl
Lloh7:
	adrp	x8, _PLL_IDLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PLL_IDLE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w0, [x19, #20]
	ldr	w1, [x20]
	bl	_ti_pipe3_writel
Lloh10:
	adrp	x23, _jiffies@GOTPAGE
Lloh11:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x20, [x23]
Lloh12:
	adrp	x8, _PLL_IDLE_TIME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PLL_IDLE_TIME@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x21, x0, x20
Lloh15:
	adrp	x26, _PLL_STATUS@GOTPAGE
Lloh16:
	ldr	x26, [x26, _PLL_STATUS@GOTPAGEOFF]
Lloh17:
	adrp	x25, _PLL_TICOPWDN@GOTPAGE
Lloh18:
	ldr	x25, [x25, _PLL_TICOPWDN@GOTPAGEOFF]
Lloh19:
	adrp	x24, _PLL_LDOPWDN@GOTPAGE
Lloh20:
	ldr	x24, [x24, _PLL_LDOPWDN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_after
	cbnz	w0, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_cpu_relax
	ldr	w0, [x19, #20]
	ldr	w1, [x26]
	bl	_ti_pipe3_readl
	mov	x20, x0
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_4
	b	LBB0_8
LBB0_7:
	ldr	w8, [x25]
	tst	w8, w20
	b.eq	LBB0_14
LBB0_8:
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.9:
	ldr	x8, [x19]
	ldr	x9, [x22]
LBB0_10:
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldp	w1, w0, [x19, #8]
Lloh21:
	adrp	x20, _SATA_PLL_SOFT_RESET@GOTPAGE
Lloh22:
	ldr	x20, [x20, _SATA_PLL_SOFT_RESET@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x3, x2
	bl	_regmap_update_bits
	ldp	w1, w0, [x19, #8]
	ldr	w2, [x20]
	mov	w3, #0
	bl	_regmap_update_bits
LBB0_12:
	mov	x0, x19
	bl	_ti_pipe3_disable_clocks
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	ldr	w0, [x19, #16]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh25:
	adrp	x8, _EBUSY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPE3_MODE_SATA,8,3            ; @PIPE3_MODE_SATA
	.comm	_PIPE3_MODE_PCIE,8,3            ; @PIPE3_MODE_PCIE
	.comm	_PLL_CONFIGURATION2,4,2         ; @PLL_CONFIGURATION2
	.comm	_PLL_IDLE,4,2                   ; @PLL_IDLE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_PLL_IDLE_TIME,4,2              ; @PLL_IDLE_TIME
	.comm	_PLL_STATUS,4,2                 ; @PLL_STATUS
	.comm	_PLL_TICOPWDN,4,2               ; @PLL_TICOPWDN
	.comm	_PLL_LDOPWDN,4,2                ; @PLL_LDOPWDN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to power down: PLL_STATUS 0x%x\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SATA_PLL_SOFT_RESET,4,2        ; @SATA_PLL_SOFT_RESET
	.no_dead_strip	_ti_pipe3_exit
.subsections_via_symbols
