	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_dsi_enable
_exynos_dsi_enable:                     ## @exynos_dsi_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_encoder_to_dsi
	movq	%rax, %rbx
	movq	_DSIM_STATE_ENABLED@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	jne	LBB0_10
## %bb.1:
	movl	4(%rbx), %edi
	callq	_pm_runtime_get_sync
	movl	(%r14), %eax
	orl	%eax, (%rbx)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	callq	_drm_panel_prepare
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_3
LBB0_4:
	movl	16(%rbx), %edi
	callq	_drm_bridge_pre_enable
LBB0_5:
	movq	%rbx, %rdi
	callq	_exynos_dsi_set_display_mode
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_exynos_dsi_set_display_enable
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	callq	_drm_panel_enable
	testl	%eax, %eax
	jns	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_exynos_dsi_set_display_enable
	movq	8(%rbx), %rdi
	callq	_drm_panel_unprepare
LBB0_3:
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movl	4(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pm_runtime_put                 ## TAILCALL
LBB0_8:
	movl	16(%rbx), %edi
	callq	_drm_bridge_enable
LBB0_9:
	movq	_DSIM_STATE_VIDOUT_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSIM_STATE_ENABLED,4,2         ## @DSIM_STATE_ENABLED
	.comm	_DSIM_STATE_VIDOUT_AVAILABLE,4,2 ## @DSIM_STATE_VIDOUT_AVAILABLE
	.no_dead_strip	_exynos_dsi_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_dsi_enable
_exynos_dsi_enable:                     ; @exynos_dsi_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_encoder_to_dsi
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _DSIM_STATE_ENABLED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DSIM_STATE_ENABLED@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_pm_runtime_get_sync
	ldr	w8, [x20]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_drm_panel_prepare
	tbz	w0, #31, LBB0_4
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19, #16]
	bl	_drm_bridge_pre_enable
LBB0_4:
	mov	x0, x19
	bl	_exynos_dsi_set_display_mode
	mov	x0, x19
	mov	w1, #1
	bl	_exynos_dsi_set_display_enable
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.5:
	bl	_drm_panel_enable
	tbz	w0, #31, LBB0_9
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_exynos_dsi_set_display_enable
	ldr	x0, [x19, #8]
	bl	_drm_panel_unprepare
LBB0_7:
	ldr	w8, [x20]
	ldp	w9, w0, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pm_runtime_put
LBB0_8:
	ldr	w0, [x19, #16]
	bl	_drm_bridge_enable
LBB0_9:
Lloh2:
	adrp	x8, _DSIM_STATE_VIDOUT_AVAILABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSIM_STATE_VIDOUT_AVAILABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DSIM_STATE_ENABLED,4,2         ; @DSIM_STATE_ENABLED
	.comm	_DSIM_STATE_VIDOUT_AVAILABLE,4,2 ; @DSIM_STATE_VIDOUT_AVAILABLE
	.no_dead_strip	_exynos_dsi_enable
.subsections_via_symbols
