	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mipi_dsi_dpi_config
_dw_mipi_dsi_dpi_config:                ## @dw_mipi_dsi_dpi_config
	.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
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_DPI_COLOR_CODING_24BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_5:
	movq	_DPI_COLOR_CODING_18BIT_1@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_DPI_COLOR_CODING_18BIT_2@GOTPCREL(%rip), %rax
	movq	_LOOSELY18_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	jmp	LBB0_8
LBB0_6:
	movq	_DPI_COLOR_CODING_16BIT_1@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r14d
LBB0_8:
	movl	(%rsi), %ebx
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	je	LBB0_10
## %bb.9:
	movq	_VSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	je	LBB0_12
## %bb.11:
	movq	_HSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_12:
	orl	%eax, %ebx
	movq	_DSI_DPI_VCID@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	4(%r15), %edi
	callq	_DPI_VCID
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_dsi_write
	movq	_DSI_DPI_COLOR_CODING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_dsi_write
	movq	_DSI_DPI_CFG_POL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dsi_write
	movq	_DSI_DPI_LP_CMD_TIM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$4, %edi
	callq	_OUTVACT_LPCMD_TIME
	movl	%eax, %ebx
	movl	$4, %edi
	callq	_INVACT_LPCMD_TIME
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsi_write                      ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_DPI_COLOR_CODING_24BIT,4,2     ## @DPI_COLOR_CODING_24BIT
	.comm	_DPI_COLOR_CODING_18BIT_2,4,2   ## @DPI_COLOR_CODING_18BIT_2
	.comm	_LOOSELY18_EN,4,2               ## @LOOSELY18_EN
	.comm	_DPI_COLOR_CODING_18BIT_1,4,2   ## @DPI_COLOR_CODING_18BIT_1
	.comm	_DPI_COLOR_CODING_16BIT_1,4,2   ## @DPI_COLOR_CODING_16BIT_1
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.comm	_VSYNC_ACTIVE_LOW,4,2           ## @VSYNC_ACTIVE_LOW
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_HSYNC_ACTIVE_LOW,4,2           ## @HSYNC_ACTIVE_LOW
	.comm	_DSI_DPI_VCID,4,2               ## @DSI_DPI_VCID
	.comm	_DSI_DPI_COLOR_CODING,4,2       ## @DSI_DPI_COLOR_CODING
	.comm	_DSI_DPI_CFG_POL,4,2            ## @DSI_DPI_CFG_POL
	.comm	_DSI_DPI_LP_CMD_TIM,4,2         ## @DSI_DPI_LP_CMD_TIM
	.no_dead_strip	_dw_mipi_dsi_dpi_config
.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_dpi_config
_dw_mipi_dsi_dpi_config:                ; @dw_mipi_dsi_dpi_config
	.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
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _DPI_COLOR_CODING_24BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DPI_COLOR_CODING_24BIT@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	mov	w20, #0
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x8, _DPI_COLOR_CODING_18BIT_1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DPI_COLOR_CODING_18BIT_1@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _DPI_COLOR_CODING_18BIT_2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPI_COLOR_CODING_18BIT_2@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _LOOSELY18_EN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LOOSELY18_EN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w20, w9, w8
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _DPI_COLOR_CODING_16BIT_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DPI_COLOR_CODING_16BIT_1@GOTPAGEOFF]
LBB0_7:
	ldr	w20, [x8]
LBB0_8:
	ldr	w8, [x1]
Lloh14:
	adrp	x9, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _VSYNC_ACTIVE_LOW@GOTPAGE
Lloh18:
	ldr	x10, [x10, _VSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	tst	w9, w8
Lloh20:
	adrp	x9, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
	csel	w10, wzr, w10, eq
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x11, _HSYNC_ACTIVE_LOW@GOTPAGE
Lloh24:
	ldr	x11, [x11, _HSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	tst	w9, w8
	csel	w8, wzr, w11, eq
	orr	w21, w8, w10
Lloh26:
	adrp	x8, _DSI_DPI_VCID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DSI_DPI_VCID@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
	ldr	w0, [x19, #4]
	bl	_DPI_VCID
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_dsi_write
Lloh29:
	adrp	x8, _DSI_DPI_COLOR_CODING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DSI_DPI_COLOR_CODING@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_dsi_write
Lloh32:
	adrp	x8, _DSI_DPI_CFG_POL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DSI_DPI_CFG_POL@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_dsi_write
Lloh35:
	adrp	x8, _DSI_DPI_LP_CMD_TIM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DSI_DPI_LP_CMD_TIM@GOTPAGEOFF]
Lloh37:
	ldr	w20, [x8]
	mov	w0, #4
	bl	_OUTVACT_LPCMD_TIME
	mov	x21, x0
	mov	w0, #4
	bl	_INVACT_LPCMD_TIME
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, x20
	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	_dsi_write
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_DPI_COLOR_CODING_24BIT,4,2     ; @DPI_COLOR_CODING_24BIT
	.comm	_DPI_COLOR_CODING_18BIT_2,4,2   ; @DPI_COLOR_CODING_18BIT_2
	.comm	_LOOSELY18_EN,4,2               ; @LOOSELY18_EN
	.comm	_DPI_COLOR_CODING_18BIT_1,4,2   ; @DPI_COLOR_CODING_18BIT_1
	.comm	_DPI_COLOR_CODING_16BIT_1,4,2   ; @DPI_COLOR_CODING_16BIT_1
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.comm	_VSYNC_ACTIVE_LOW,4,2           ; @VSYNC_ACTIVE_LOW
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_HSYNC_ACTIVE_LOW,4,2           ; @HSYNC_ACTIVE_LOW
	.comm	_DSI_DPI_VCID,4,2               ; @DSI_DPI_VCID
	.comm	_DSI_DPI_COLOR_CODING,4,2       ; @DSI_DPI_COLOR_CODING
	.comm	_DSI_DPI_CFG_POL,4,2            ; @DSI_DPI_CFG_POL
	.comm	_DSI_DPI_LP_CMD_TIM,4,2         ; @DSI_DPI_LP_CMD_TIM
	.no_dead_strip	_dw_mipi_dsi_dpi_config
.subsections_via_symbols
