	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mipi_dsi_dphy_enable
_dw_mipi_dsi_dphy_enable:               ## @dw_mipi_dsi_dphy_enable
	.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
	movq	%rdi, %rbx
	movq	_PHY_ENFORCEPLL@GOTPCREL(%rip), %rax
	movq	_PHY_ENABLECLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_DSI_PHY_RSTZ@GOTPCREL(%rip), %rax
	movq	_PHY_UNRSTZ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_PHY_UNSHUTDOWNZ@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_dsi_write
	movq	_DSI_PHY_STATUS@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	movq	_PHY_STATUS_TIMEOUT_US@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	xorl	%edx, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_readl_poll_timeout
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
LBB0_2:
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	movl	(%r15), %r8d
	xorl	%edx, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_readl_poll_timeout
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_DRIVER               ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_PHY_RSTZ,4,2               ## @DSI_PHY_RSTZ
	.comm	_PHY_ENFORCEPLL,4,2             ## @PHY_ENFORCEPLL
	.comm	_PHY_ENABLECLK,4,2              ## @PHY_ENABLECLK
	.comm	_PHY_UNRSTZ,4,2                 ## @PHY_UNRSTZ
	.comm	_PHY_UNSHUTDOWNZ,4,2            ## @PHY_UNSHUTDOWNZ
	.comm	_DSI_PHY_STATUS,8,3             ## @DSI_PHY_STATUS
	.comm	_PHY_LOCK,4,2                   ## @PHY_LOCK
	.comm	_PHY_STATUS_TIMEOUT_US,4,2      ## @PHY_STATUS_TIMEOUT_US
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to wait phy lock state\n"

	.comm	_PHY_STOP_STATE_CLK_LANE,4,2    ## @PHY_STOP_STATE_CLK_LANE
L_.str.1:                               ## @.str.1
	.asciz	"failed to wait phy clk lane stop state\n"

	.no_dead_strip	_dw_mipi_dsi_dphy_enable
.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_dphy_enable
_dw_mipi_dsi_dphy_enable:               ; @dw_mipi_dsi_dphy_enable
	.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
Lloh0:
	adrp	x8, _DSI_PHY_RSTZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSI_PHY_RSTZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _PHY_ENFORCEPLL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_ENFORCEPLL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PHY_ENABLECLK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHY_ENABLECLK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _PHY_UNRSTZ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PHY_UNRSTZ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _PHY_UNSHUTDOWNZ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PHY_UNSHUTDOWNZ@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_dsi_write
Lloh15:
	adrp	x20, _DSI_PHY_STATUS@GOTPAGE
Lloh16:
	ldr	x20, [x20, _DSI_PHY_STATUS@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
Lloh17:
	adrp	x21, _PHY_STATUS_TIMEOUT_US@GOTPAGE
Lloh18:
	ldr	x21, [x21, _PHY_STATUS_TIMEOUT_US@GOTPAGEOFF]
	ldr	w4, [x21]
	mov	w2, #0
	mov	w3, #1000
	bl	_readl_poll_timeout
	cbz	w0, LBB0_2
; %bb.1:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_2:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	ldr	w4, [x21]
	mov	w2, #0
	mov	w3, #1000
	bl	_readl_poll_timeout
	cbz	w0, LBB0_4
; %bb.3:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	b	_DRM_DEBUG_DRIVER
LBB0_4:
	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 AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_PHY_RSTZ,4,2               ; @DSI_PHY_RSTZ
	.comm	_PHY_ENFORCEPLL,4,2             ; @PHY_ENFORCEPLL
	.comm	_PHY_ENABLECLK,4,2              ; @PHY_ENABLECLK
	.comm	_PHY_UNRSTZ,4,2                 ; @PHY_UNRSTZ
	.comm	_PHY_UNSHUTDOWNZ,4,2            ; @PHY_UNSHUTDOWNZ
	.comm	_DSI_PHY_STATUS,8,3             ; @DSI_PHY_STATUS
	.comm	_PHY_LOCK,4,2                   ; @PHY_LOCK
	.comm	_PHY_STATUS_TIMEOUT_US,4,2      ; @PHY_STATUS_TIMEOUT_US
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to wait phy lock state\n"

	.comm	_PHY_STOP_STATE_CLK_LANE,4,2    ; @PHY_STOP_STATE_CLK_LANE
l_.str.1:                               ; @.str.1
	.asciz	"failed to wait phy clk lane stop state\n"

	.no_dead_strip	_dw_mipi_dsi_dphy_enable
.subsections_via_symbols
