	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos5_usbdrd_phy_power_on
_exynos5_usbdrd_phy_power_on:           ## @exynos5_usbdrd_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_phy_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_to_usbdrd_phy
	movq	%rax, %rbx
	movl	40(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	24(%rbx), %edi
	callq	_clk_prepare_enable
	movq	16(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_clk_prepare_enable
	movl	4(%rbx), %edi
	callq	_clk_prepare_enable
	movl	8(%rbx), %edi
	callq	_clk_prepare_enable
LBB0_2:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	movl	40(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_5:
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.6:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movl	%eax, %r14d
	movl	40(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_regulator_disable
LBB0_9:
	movl	24(%rbx), %edi
	callq	_clk_disable_unprepare
	movq	16(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.10:
	movl	8(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	4(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	(%rbx), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_11
LBB0_12:
	movq	(%r15), %rax
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Request to power_on usbdrd_phy phy\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to enable VBUS boost supply\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable VBUS supply\n"

	.no_dead_strip	_exynos5_usbdrd_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 exynos5_usbdrd_phy_power_on
_exynos5_usbdrd_phy_power_on:           ; @exynos5_usbdrd_phy_power_on
	.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	x21, x0
	bl	_to_usbdrd_phy
	mov	x19, x0
	ldr	w0, [x0, #40]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19, #24]
	bl	_clk_prepare_enable
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x0, [x19, #32]
	cbnz	x0, LBB0_3
	b	LBB0_5
LBB0_2:
	ldr	w0, [x19]
	bl	_clk_prepare_enable
	ldr	w0, [x19, #4]
	bl	_clk_prepare_enable
	ldr	w0, [x19, #8]
	bl	_clk_prepare_enable
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_5
LBB0_3:
	bl	_regulator_enable
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
	ldr	w0, [x19, #40]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_5:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_11
; %bb.6:
	bl	_regulator_enable
	cbz	w0, LBB0_11
; %bb.7:
	mov	x20, x0
	ldr	w0, [x19, #40]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_regulator_disable
LBB0_9:
	ldr	w0, [x19, #24]
	bl	_clk_disable_unprepare
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cbnz	w8, LBB0_12
; %bb.10:
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
	b	LBB0_12
LBB0_11:
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x21
	mov	w1, #0
	blr	x8
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Request to power_on usbdrd_phy phy\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to enable VBUS boost supply\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable VBUS supply\n"

	.no_dead_strip	_exynos5_usbdrd_phy_power_on
.subsections_via_symbols
