	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mixel_dphy_power_on
_mixel_dphy_power_on:                   ## @mixel_dphy_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_phy_get_drvdata
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_PWR_ON@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_DPHY_PD_PLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_write
	movl	4(%r14), %edi
	movq	_DPHY_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PLL_LOCK_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_PLL_LOCK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	callq	_regmap_read_poll_timeout
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%r12), %esi
	movq	_DPHY_PD_DPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_write
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PWR_ON,4,2                     ## @PWR_ON
	.comm	_DPHY_PD_PLL,4,2                ## @DPHY_PD_PLL
	.comm	_DPHY_LOCK,4,2                  ## @DPHY_LOCK
	.comm	_PLL_LOCK_SLEEP,4,2             ## @PLL_LOCK_SLEEP
	.comm	_PLL_LOCK_TIMEOUT,4,2           ## @PLL_LOCK_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get DPHY lock (%d)!\n"

	.comm	_DPHY_PD_DPHY,4,2               ## @DPHY_PD_DPHY
	.no_dead_strip	_mixel_dphy_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mixel_dphy_power_on
_mixel_dphy_power_on:                   ; @mixel_dphy_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
	mov	x19, x0
	bl	_phy_get_drvdata
	mov	x20, x0
	ldr	w0, [x0]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x22, _PWR_ON@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PWR_ON@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _DPHY_PD_PLL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DPHY_PD_PLL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
	ldr	w0, [x20, #4]
Lloh5:
	adrp	x8, _DPHY_LOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DPHY_LOCK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _PLL_LOCK_SLEEP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PLL_LOCK_SLEEP@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	adrp	x8, _PLL_LOCK_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PLL_LOCK_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	bl	_regmap_read_poll_timeout
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w1, [x22]
Lloh14:
	adrp	x8, _DPHY_PD_DPHY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DPHY_PD_DPHY@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
	mov	w21, #0
	b	LBB0_5
LBB0_3:
	mov	x21, x0
	b	LBB0_5
LBB0_4:
	mov	x21, x0
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	ldr	w0, [x20]
	bl	_clk_disable_unprepare
LBB0_5:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PWR_ON,4,2                     ; @PWR_ON
	.comm	_DPHY_PD_PLL,4,2                ; @DPHY_PD_PLL
	.comm	_DPHY_LOCK,4,2                  ; @DPHY_LOCK
	.comm	_PLL_LOCK_SLEEP,4,2             ; @PLL_LOCK_SLEEP
	.comm	_PLL_LOCK_TIMEOUT,4,2           ; @PLL_LOCK_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get DPHY lock (%d)!\n"

	.comm	_DPHY_PD_DPHY,4,2               ; @DPHY_PD_DPHY
	.no_dead_strip	_mixel_dphy_power_on
.subsections_via_symbols
