	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_usb_hs_phy_power_on
_qcom_usb_hs_phy_power_on:              ## @qcom_usb_hs_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, %r12
	movq	48(%rax), %r14
	movl	(%rax), %edi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.1:
	movl	4(%r12), %edi
	callq	_clk_prepare_enable
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.2:
	movl	8(%r12), %edi
	movl	$50000, %esi                    ## imm = 0xC350
	callq	_regulator_set_load
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	8(%r12), %edi
	callq	_regulator_enable
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.5:
	movl	12(%r12), %edi
	movl	$3050000, %esi                  ## imm = 0x2E8A10
	movl	$3300000, %edx                  ## imm = 0x325AA0
	movl	$3300000, %ecx                  ## imm = 0x325AA0
	callq	_regulator_set_voltage_triplet
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_6
LBB0_19:
	movl	8(%r12), %edi
	callq	_regulator_disable
	jmp	LBB0_20
LBB0_3:
	movl	%eax, %r15d
LBB0_20:
	movl	4(%r12), %edi
	callq	_clk_disable_unprepare
LBB0_21:
	movl	(%r12), %edi
	callq	_clk_disable_unprepare
	movl	%r15d, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	12(%r12), %edi
	movl	$50000, %esi                    ## imm = 0xC350
	callq	_regulator_set_load
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	12(%r12), %edi
	callq	_regulator_enable
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.9:
	movq	40(%r12), %rbx
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.10:
	movq	_ULPI_EXT_VENDOR_SPECIFIC@GOTPCREL(%rip), %r13
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addq	(%r13), %rsi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_ulpi_write
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	24(%rbx), %rsi
	addq	$16, %rbx
	testq	%rsi, %rsi
	jne	LBB0_12
LBB0_14:
	movq	32(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_reset_control_reset
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_18
LBB0_16:
	movq	24(%r12), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.17:
	movq	_EXTCON_USB@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_extcon_get_state
	movq	%r12, %r15
	addq	$16, %r15
	movq	24(%r12), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_qcom_usb_hs_phy_vbus_notifier
	movq	24(%r12), %rsi
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_devm_extcon_register_notifier
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_22
LBB0_7:
	movl	%eax, %r15d
	jmp	LBB0_19
LBB0_13:
	movl	%eax, %r15d
LBB0_18:
	movl	12(%r12), %edi
	callq	_regulator_disable
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ULPI_EXT_VENDOR_SPECIFIC,8,3   ## @ULPI_EXT_VENDOR_SPECIFIC
	.comm	_EXTCON_USB,4,2                 ## @EXTCON_USB
	.no_dead_strip	_qcom_usb_hs_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 qcom_usb_hs_phy_power_on
_qcom_usb_hs_phy_power_on:              ; @qcom_usb_hs_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	x19, x0
	ldr	x20, [x0, #48]
	ldr	w0, [x0]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w0, [x19, #8]
	mov	w1, #50000
	bl	_regulator_set_load
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_regulator_enable
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w0, [x19, #12]
	mov	w1, #35344
	movk	w1, #46, lsl #16
	mov	w2, #23200
	movk	w2, #50, lsl #16
	mov	w3, #23200
	movk	w3, #50, lsl #16
	bl	_regulator_set_voltage_triplet
	mov	x21, x0
	cbz	w0, LBB0_10
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_regulator_disable
	b	LBB0_7
LBB0_6:
	mov	x21, x0
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
LBB0_8:
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
LBB0_9:
	mov	x0, x21
	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
LBB0_10:
	ldr	w0, [x19, #12]
	mov	w1, #50000
	bl	_regulator_set_load
	tbnz	w0, #31, LBB0_20
; %bb.11:
	ldr	w0, [x19, #12]
	bl	_regulator_enable
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.12:
	ldr	x22, [x19, #40]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_16
; %bb.13:
Lloh0:
	adrp	x23, _ULPI_EXT_VENDOR_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ULPI_EXT_VENDOR_SPECIFIC@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	add	x1, x9, x8
	ldr	w2, [x22]
	mov	x0, x20
	bl	_ulpi_write
	cbnz	w0, LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x22, #24]
	add	x22, x22, #16
	cbnz	x8, LBB0_14
LBB0_16:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_reset_control_reset
	mov	x21, x0
	cbnz	w0, LBB0_22
LBB0_18:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_23
; %bb.19:
Lloh2:
	adrp	x22, _EXTCON_USB@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EXTCON_USB@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_extcon_get_state
	mov	x1, x0
	add	x21, x19, #16
	ldr	x2, [x19, #24]
	mov	x0, x21
	bl	_qcom_usb_hs_phy_vbus_notifier
	ldr	x1, [x19, #24]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x3, x21
	bl	_devm_extcon_register_notifier
	mov	x21, x0
	cbnz	w0, LBB0_22
	b	LBB0_9
LBB0_20:
	mov	x21, x0
	b	LBB0_5
LBB0_21:
	mov	x21, x0
LBB0_22:
	ldr	w0, [x19, #12]
	bl	_regulator_disable
	b	LBB0_5
LBB0_23:
	mov	w21, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ULPI_EXT_VENDOR_SPECIFIC,8,3   ; @ULPI_EXT_VENDOR_SPECIFIC
	.comm	_EXTCON_USB,4,2                 ; @EXTCON_USB
	.no_dead_strip	_qcom_usb_hs_phy_power_on
.subsections_via_symbols
