	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns2_drd_phy_poweron
_ns2_drd_phy_poweron:                   ## @ns2_drd_phy_poweron
	.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
	movq	%rdi, %r14
	callq	_phy_get_drvdata
	movq	(%rax), %rcx
	movq	8(%rax), %r15
	movq	_EVT_DEVICE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_3
## %bb.1:
	movq	_DRD_DEV_VAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ICFG_DRD_P0CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r15), %rsi
	callq	_writel
	movq	8(%r15), %rdi
	callq	_readl
	movq	_IDM_RST_BIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	notq	%rdi
	andq	%rax, %rdi
	movq	8(%r15), %rsi
	callq	_writel
	movq	16(%r15), %rdi
	callq	_readl
	movq	_AFE_CORERDY_VDDC@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_DRD_DEV_MODE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	16(%r15), %rsi
	movq	%rax, %rdi
	callq	_writel
	movq	16(%r15), %rdi
	callq	_readl
	movq	_PHY_PLL_RESETB@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_PHY_RESETB@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	16(%r15), %rsi
	movq	%rax, %rdi
	callq	_writel
	movq	_ICFG_MISC_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PHY_PLL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_pll_lock_stat
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_DRD_HOST_VAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ICFG_DRD_P0CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r15), %rsi
	callq	_writel
	movq	16(%r15), %rdi
	callq	_readl
	movq	_AFE_CORERDY_VDDC@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	16(%r15), %rsi
	movq	%rax, %rdi
	callq	_writel
	movq	_ICFG_MISC_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PHY_PLL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_pll_lock_stat
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	8(%r15), %rdi
	callq	_readl
	movq	_IDM_RST_BIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	notq	%rdi
	andq	%rax, %rdi
	movq	8(%r15), %rsi
	callq	_writel
	movq	(%r15), %rdi
	callq	_readl
	movq	_OHCI_OVRCUR_POL@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	(%r15), %rsi
	movq	%rax, %rdi
	callq	_writel
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVT_DEVICE,8,3                 ## @EVT_DEVICE
	.comm	_DRD_DEV_VAL,8,3                ## @DRD_DEV_VAL
	.comm	_ICFG_DRD_P0CTL,8,3             ## @ICFG_DRD_P0CTL
	.comm	_IDM_RST_BIT,8,3                ## @IDM_RST_BIT
	.comm	_AFE_CORERDY_VDDC,8,3           ## @AFE_CORERDY_VDDC
	.comm	_DRD_DEV_MODE,8,3               ## @DRD_DEV_MODE
	.comm	_PHY_PLL_RESETB,8,3             ## @PHY_PLL_RESETB
	.comm	_PHY_RESETB,8,3                 ## @PHY_RESETB
	.comm	_ICFG_MISC_STAT,4,2             ## @ICFG_MISC_STAT
	.comm	_PHY_PLL_LOCK,4,2               ## @PHY_PLL_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Phy PLL lock failed\n"

	.comm	_DRD_HOST_VAL,8,3               ## @DRD_HOST_VAL
	.comm	_OHCI_OVRCUR_POL,8,3            ## @OHCI_OVRCUR_POL
	.no_dead_strip	_ns2_drd_phy_poweron
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns2_drd_phy_poweron
_ns2_drd_phy_poweron:                   ; @ns2_drd_phy_poweron
	.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
	mov	x20, x0
	bl	_phy_get_drvdata
	ldp	x8, x19, [x0]
Lloh0:
	adrp	x9, _EVT_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EVT_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DRD_DEV_VAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRD_DEV_VAL@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	ldr	x8, [x19, #24]
Lloh6:
	adrp	x9, _ICFG_DRD_P0CTL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICFG_DRD_P0CTL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x19, #8]
	bl	_readl
Lloh9:
	adrp	x8, _IDM_RST_BIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IDM_RST_BIT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	bic	x0, x0, x8
	ldr	x1, [x19, #8]
	bl	_writel
	ldr	x0, [x19, #16]
	bl	_readl
Lloh12:
	adrp	x8, _AFE_CORERDY_VDDC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AFE_CORERDY_VDDC@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _DRD_DEV_MODE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DRD_DEV_MODE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	orr	x8, x8, x0
	orr	x0, x8, x9
	ldr	x1, [x19, #16]
	bl	_writel
	ldr	x0, [x19, #16]
	bl	_readl
Lloh18:
	adrp	x8, _PHY_PLL_RESETB@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PHY_PLL_RESETB@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _PHY_RESETB@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PHY_RESETB@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	orr	x8, x8, x0
	orr	x0, x8, x9
	ldr	x1, [x19, #16]
	bl	_writel
Lloh24:
	adrp	x8, _ICFG_MISC_STAT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ICFG_MISC_STAT@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _PHY_PLL_LOCK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PHY_PLL_LOCK@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_pll_lock_stat
	tbz	w0, #31, LBB0_4
	b	LBB0_5
LBB0_2:
Lloh30:
	adrp	x8, _DRD_HOST_VAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DRD_HOST_VAL@GOTPAGEOFF]
Lloh32:
	ldr	x0, [x8]
	ldr	x8, [x19, #24]
Lloh33:
	adrp	x9, _ICFG_DRD_P0CTL@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ICFG_DRD_P0CTL@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x19, #16]
	bl	_readl
Lloh36:
	adrp	x8, _AFE_CORERDY_VDDC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AFE_CORERDY_VDDC@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	orr	x0, x8, x0
	ldr	x1, [x19, #16]
	bl	_writel
Lloh39:
	adrp	x8, _ICFG_MISC_STAT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ICFG_MISC_STAT@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x8, _PHY_PLL_LOCK@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PHY_PLL_LOCK@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_pll_lock_stat
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_readl
Lloh45:
	adrp	x8, _IDM_RST_BIT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _IDM_RST_BIT@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	bic	x0, x0, x8
	ldr	x1, [x19, #8]
	bl	_writel
	ldr	x0, [x19]
	bl	_readl
Lloh48:
	adrp	x8, _OHCI_OVRCUR_POL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _OHCI_OVRCUR_POL@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	orr	x0, x8, x0
	ldr	x1, [x19]
	bl	_writel
LBB0_4:
	mov	w21, #0
	b	LBB0_6
LBB0_5:
	mov	x21, x0
Lloh51:
	adrp	x1, l_.str@PAGE
Lloh52:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_6:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_EVT_DEVICE,8,3                 ; @EVT_DEVICE
	.comm	_DRD_DEV_VAL,8,3                ; @DRD_DEV_VAL
	.comm	_ICFG_DRD_P0CTL,8,3             ; @ICFG_DRD_P0CTL
	.comm	_IDM_RST_BIT,8,3                ; @IDM_RST_BIT
	.comm	_AFE_CORERDY_VDDC,8,3           ; @AFE_CORERDY_VDDC
	.comm	_DRD_DEV_MODE,8,3               ; @DRD_DEV_MODE
	.comm	_PHY_PLL_RESETB,8,3             ; @PHY_PLL_RESETB
	.comm	_PHY_RESETB,8,3                 ; @PHY_RESETB
	.comm	_ICFG_MISC_STAT,4,2             ; @ICFG_MISC_STAT
	.comm	_PHY_PLL_LOCK,4,2               ; @PHY_PLL_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Phy PLL lock failed\n"

	.comm	_DRD_HOST_VAL,8,3               ; @DRD_HOST_VAL
	.comm	_OHCI_OVRCUR_POL,8,3            ; @OHCI_OVRCUR_POL
	.no_dead_strip	_ns2_drd_phy_poweron
.subsections_via_symbols
