	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sata_phy_power_on
_sata_phy_power_on:                     ## @sata_phy_power_on
	.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, %r15
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_padctl_readl
	movq	_XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ_OVRD@GOTPCREL(%rip), %rcx
	movq	_XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_padctl_writel
	movq	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_padctl_readl
	movq	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_PWR_OVRD@GOTPCREL(%rip), %rcx
	movq	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_IDDQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_padctl_writel
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_padctl_readl
	movq	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_padctl_writel
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_padctl_readl
	movq	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_RST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_padctl_writel
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	movl	$50, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r14, %rbx
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_LOCKDET@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_padctl_readl
	testl	%eax, (%r14)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_2
LBB0_5:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1,4,2 ## @XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1
	.comm	_XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ_OVRD,4,2 ## @XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ_OVRD
	.comm	_XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ,4,2 ## @XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ
	.comm	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1,4,2 ## @XUSB_PADCTL_IOPHY_PLL_S0_CTL1
	.comm	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_PWR_OVRD,4,2 ## @XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_PWR_OVRD
	.comm	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_IDDQ,4,2 ## @XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_IDDQ
	.comm	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_MODE,4,2 ## @XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_MODE
	.comm	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_RST,4,2 ## @XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_RST
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_LOCKDET,4,2 ## @XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_LOCKDET
	.no_dead_strip	_sata_phy_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sata_phy_power_on
_sata_phy_power_on:                     ; @sata_phy_power_on
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_phy_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
Lloh3:
	adrp	x21, _XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1@GOTPAGE
Lloh4:
	ldr	x21, [x21, _XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_padctl_readl
Lloh5:
	adrp	x8, _XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ_OVRD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ_OVRD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w1, w0, w8
	ldr	w2, [x21]
	mov	x0, x20
	bl	_padctl_writel
Lloh11:
	adrp	x22, _XUSB_PADCTL_IOPHY_PLL_S0_CTL1@GOTPAGE
Lloh12:
	ldr	x22, [x22, _XUSB_PADCTL_IOPHY_PLL_S0_CTL1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_padctl_readl
Lloh13:
	adrp	x8, _XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_PWR_OVRD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_PWR_OVRD@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_IDDQ@GOTPAGE
Lloh17:
	ldr	x9, [x9, _XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_IDDQ@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w1, w0, w8
	ldr	w2, [x22]
	mov	x0, x20
	bl	_padctl_writel
	ldr	w1, [x22]
	mov	x0, x20
	bl	_padctl_readl
Lloh19:
	adrp	x8, _XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_MODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_MODE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w2, [x22]
	mov	x0, x20
	bl	_padctl_writel
	ldr	w1, [x22]
	mov	x0, x20
	bl	_padctl_readl
Lloh22:
	adrp	x8, _XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_RST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_RST@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w2, [x22]
	mov	x0, x20
	bl	_padctl_writel
Lloh25:
	adrp	x23, _jiffies@GOTPAGE
Lloh26:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x21, [x23]
	mov	w0, #50
	bl	_msecs_to_jiffies
	add	x21, x0, x21
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_5
; %bb.1:
Lloh27:
	adrp	x24, _XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_LOCKDET@GOTPAGE
Lloh28:
	ldr	x24, [x24, _XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_LOCKDET@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_padctl_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_before
	cbnz	x0, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1,4,2 ; @XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1
	.comm	_XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ_OVRD,4,2 ; @XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ_OVRD
	.comm	_XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ,4,2 ; @XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ
	.comm	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1,4,2 ; @XUSB_PADCTL_IOPHY_PLL_S0_CTL1
	.comm	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_PWR_OVRD,4,2 ; @XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_PWR_OVRD
	.comm	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_IDDQ,4,2 ; @XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_IDDQ
	.comm	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_MODE,4,2 ; @XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_MODE
	.comm	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_RST,4,2 ; @XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_RST
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_LOCKDET,4,2 ; @XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_LOCKDET
	.no_dead_strip	_sata_phy_power_on
.subsections_via_symbols
