	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_a3700_utmi_phy_power_off
_mvebu_a3700_utmi_phy_power_off:        ## @mvebu_a3700_utmi_phy_power_off
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_phy_get_drvdata
	movq	%rax, %r14
	movq	(%rax), %rbx
	movq	8(%rax), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_USB2_PHY_CTRL
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	_RB_USB2PHY_PU@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_RB_USB2PHY_SUSPM
	orl	%eax, %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movq	(%r14), %r12
	movl	%r15d, %edi
	callq	_USB2_PHY_CTRL
	addq	%rax, %r12
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_writel
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	_USB2_PHY_OTG_CTRL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_PHY_PU_OTG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	callq	_writel
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RB_USB2PHY_PU,4,2              ## @RB_USB2PHY_PU
	.comm	_USB2_PHY_OTG_CTRL,8,3          ## @USB2_PHY_OTG_CTRL
	.comm	_PHY_PU_OTG,4,2                 ## @PHY_PU_OTG
	.no_dead_strip	_mvebu_a3700_utmi_phy_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_a3700_utmi_phy_power_off
_mvebu_a3700_utmi_phy_power_off:        ; @mvebu_a3700_utmi_phy_power_off
	.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	x19, x0
	ldp	x21, x8, [x0]
	ldr	w20, [x8]
	mov	x0, x20
	bl	_USB2_PHY_CTRL
	add	x0, x0, x21
	bl	_readl
	mov	x21, x0
Lloh0:
	adrp	x8, _RB_USB2PHY_PU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RB_USB2PHY_PU@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_RB_USB2PHY_SUSPM
	orr	w8, w0, w22
	bic	w21, w21, w8
	ldr	x22, [x19]
	mov	x0, x20
	bl	_USB2_PHY_CTRL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	cbz	w20, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x20, _USB2_PHY_OTG_CTRL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _USB2_PHY_OTG_CTRL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh5:
	adrp	x8, _PHY_PU_OTG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_PU_OTG@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
LBB0_2:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RB_USB2PHY_PU,4,2              ; @RB_USB2PHY_PU
	.comm	_USB2_PHY_OTG_CTRL,8,3          ; @USB2_PHY_OTG_CTRL
	.comm	_PHY_PU_OTG,4,2                 ; @PHY_PU_OTG
	.no_dead_strip	_mvebu_a3700_utmi_phy_power_off
.subsections_via_symbols
