	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_dsi_set_display_mode
_exynos_dsi_set_display_mode:           ## @exynos_dsi_set_display_mode
	.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
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	(%rcx), %r12
	movl	(%rax), %r14d
	movq	_MIPI_DSI_MODE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	$15, %edi
	callq	_DSIM_CMD_ALLOW
	movl	%eax, %ebx
	movq	32(%r12), %rdi
	subq	(%r12), %rdi
	callq	_DSIM_STABLE_VFP
	orl	%eax, %ebx
	movq	56(%r12), %rdi
	subq	40(%r12), %rdi
	callq	_DSIM_MAIN_VBP
	orl	%eax, %ebx
	movq	_DSIM_MVPORCH_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_exynos_dsi_write
	movq	16(%r12), %rdi
	subq	8(%r12), %rdi
	callq	_DSIM_MAIN_HFP
	movl	%eax, %ebx
	movq	48(%r12), %rdi
	subq	24(%r12), %rdi
	callq	_DSIM_MAIN_HBP
	orl	%eax, %ebx
	movq	_DSIM_MHPORCH_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_exynos_dsi_write
	movq	40(%r12), %rdi
	subq	32(%r12), %rdi
	callq	_DSIM_MAIN_VSA
	movl	%eax, %ebx
	movq	24(%r12), %rdi
	subq	16(%r12), %rdi
	callq	_DSIM_MAIN_HSA
	orl	%eax, %ebx
	movq	_DSIM_MSYNC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_exynos_dsi_write
LBB0_2:
	movq	8(%r12), %rdi
	movl	%r14d, %esi
	callq	_DSIM_MAIN_HRESOL
	movl	%eax, %ebx
	movq	(%r12), %rdi
	movl	%r14d, %esi
	callq	_DSIM_MAIN_VRESOL
	orl	%eax, %ebx
	movq	_DSIM_MDRESOL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_exynos_dsi_write
	movl	4(%r15), %edi
	movq	(%r12), %rcx
	movq	8(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ## @MIPI_DSI_MODE_VIDEO
	.comm	_DSIM_MVPORCH_REG,4,2           ## @DSIM_MVPORCH_REG
	.comm	_DSIM_MHPORCH_REG,4,2           ## @DSIM_MHPORCH_REG
	.comm	_DSIM_MSYNC_REG,4,2             ## @DSIM_MSYNC_REG
	.comm	_DSIM_MDRESOL_REG,4,2           ## @DSIM_MDRESOL_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LCD size = %dx%d\n"

	.no_dead_strip	_exynos_dsi_set_display_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_dsi_set_display_mode
_exynos_dsi_set_display_mode:           ; @exynos_dsi_set_display_mode
	.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
	ldp	x9, x8, [x0, #8]
	ldr	x22, [x8]
	ldr	w20, [x9]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MIPI_DSI_MODE_VIDEO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #15
	bl	_DSIM_CMD_ALLOW
	mov	x21, x0
	ldr	x8, [x22, #32]
	ldr	x9, [x22]
	sub	x0, x8, x9
	bl	_DSIM_STABLE_VFP
	orr	w21, w0, w21
	ldr	x8, [x22, #56]
	ldr	x9, [x22, #40]
	sub	x0, x8, x9
	bl	_DSIM_MAIN_VBP
	orr	w2, w21, w0
Lloh3:
	adrp	x8, _DSIM_MVPORCH_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSIM_MVPORCH_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_exynos_dsi_write
	ldp	x9, x8, [x22, #8]
	sub	x0, x8, x9
	bl	_DSIM_MAIN_HFP
	mov	x21, x0
	ldr	x8, [x22, #48]
	ldr	x9, [x22, #24]
	sub	x0, x8, x9
	bl	_DSIM_MAIN_HBP
	orr	w2, w0, w21
Lloh6:
	adrp	x8, _DSIM_MHPORCH_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DSIM_MHPORCH_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_exynos_dsi_write
	ldp	x9, x8, [x22, #32]
	sub	x0, x8, x9
	bl	_DSIM_MAIN_VSA
	mov	x21, x0
	ldp	x9, x8, [x22, #16]
	sub	x0, x8, x9
	bl	_DSIM_MAIN_HSA
	orr	w2, w0, w21
Lloh9:
	adrp	x8, _DSIM_MSYNC_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSIM_MSYNC_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_exynos_dsi_write
LBB0_2:
	ldr	x0, [x22, #8]
	mov	x1, x20
	bl	_DSIM_MAIN_HRESOL
	mov	x21, x0
	ldr	x0, [x22]
	mov	x1, x20
	bl	_DSIM_MAIN_VRESOL
	orr	w2, w0, w21
Lloh12:
	adrp	x8, _DSIM_MDRESOL_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DSIM_MDRESOL_REG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_exynos_dsi_write
	ldr	w0, [x19, #4]
	ldp	x3, x2, [x22]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@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	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ; @MIPI_DSI_MODE_VIDEO
	.comm	_DSIM_MVPORCH_REG,4,2           ; @DSIM_MVPORCH_REG
	.comm	_DSIM_MHPORCH_REG,4,2           ; @DSIM_MHPORCH_REG
	.comm	_DSIM_MSYNC_REG,4,2             ; @DSIM_MSYNC_REG
	.comm	_DSIM_MDRESOL_REG,4,2           ; @DSIM_MDRESOL_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LCD size = %dx%d\n"

	.no_dead_strip	_exynos_dsi_set_display_mode
.subsections_via_symbols
