	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mipi_dsi_phy_init
_dw_mipi_dsi_phy_init:                  ## @dw_mipi_dsi_phy_init
	.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
	movq	%rdi, %rbx
	movq	_DSI_WRPCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_WRPCR_REGEN@GOTPCREL(%rip), %rax
	movq	_WRPCR_BGREN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_dsi_set
	movq	_DSI_WISR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	movq	_SLEEP_US@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_TIMEOUT_US@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	xorl	%edx, %edx
	callq	_readl_poll_timeout
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
LBB0_2:
	movl	(%r14), %esi
	movq	_WRPCR_PLLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_dsi_set
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	movl	(%r12), %ecx
	movl	(%r13), %r8d
	xorl	%edx, %edx
	callq	_readl_poll_timeout
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_WRPCR,4,2                  ## @DSI_WRPCR
	.comm	_WRPCR_REGEN,4,2                ## @WRPCR_REGEN
	.comm	_WRPCR_BGREN,4,2                ## @WRPCR_BGREN
	.comm	_DSI_WISR,8,3                   ## @DSI_WISR
	.comm	_WISR_RRS,4,2                   ## @WISR_RRS
	.comm	_SLEEP_US,4,2                   ## @SLEEP_US
	.comm	_TIMEOUT_US,4,2                 ## @TIMEOUT_US
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"!TIMEOUT! waiting REGU, let's continue\n"

	.comm	_WRPCR_PLLEN,4,2                ## @WRPCR_PLLEN
	.comm	_WISR_PLLLS,4,2                 ## @WISR_PLLLS
L_.str.1:                               ## @.str.1
	.asciz	"!TIMEOUT! waiting PLL, let's continue\n"

	.no_dead_strip	_dw_mipi_dsi_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mipi_dsi_phy_init
_dw_mipi_dsi_phy_init:                  ; @dw_mipi_dsi_phy_init
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _DSI_WRPCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DSI_WRPCR@GOTPAGEOFF]
Lloh2:
	adrp	x8, _WRPCR_REGEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WRPCR_REGEN@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _WRPCR_BGREN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WRPCR_BGREN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_dsi_set
	ldr	x8, [x19]
Lloh8:
	adrp	x21, _DSI_WISR@GOTPAGE
Lloh9:
	ldr	x21, [x21, _DSI_WISR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
Lloh10:
	adrp	x22, _SLEEP_US@GOTPAGE
Lloh11:
	ldr	x22, [x22, _SLEEP_US@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh12:
	adrp	x23, _TIMEOUT_US@GOTPAGE
Lloh13:
	ldr	x23, [x23, _TIMEOUT_US@GOTPAGEOFF]
	ldr	w4, [x23]
	mov	w2, #0
	bl	_readl_poll_timeout
	cbz	w0, LBB0_2
; %bb.1:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_2:
	ldr	w1, [x20]
Lloh16:
	adrp	x8, _WRPCR_PLLEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WRPCR_PLLEN@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_dsi_set
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	ldr	w3, [x22]
	ldr	w4, [x23]
	mov	w2, #0
	bl	_readl_poll_timeout
	cbz	w0, LBB0_4
; %bb.3:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_4:
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_WRPCR,4,2                  ; @DSI_WRPCR
	.comm	_WRPCR_REGEN,4,2                ; @WRPCR_REGEN
	.comm	_WRPCR_BGREN,4,2                ; @WRPCR_BGREN
	.comm	_DSI_WISR,8,3                   ; @DSI_WISR
	.comm	_WISR_RRS,4,2                   ; @WISR_RRS
	.comm	_SLEEP_US,4,2                   ; @SLEEP_US
	.comm	_TIMEOUT_US,4,2                 ; @TIMEOUT_US
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"!TIMEOUT! waiting REGU, let's continue\n"

	.comm	_WRPCR_PLLEN,4,2                ; @WRPCR_PLLEN
	.comm	_WISR_PLLLS,4,2                 ; @WISR_PLLLS
l_.str.1:                               ; @.str.1
	.asciz	"!TIMEOUT! waiting PLL, let's continue\n"

	.no_dead_strip	_dw_mipi_dsi_phy_init
.subsections_via_symbols
