	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_dsi_ps_control_vact
_mtk_dsi_ps_control_vact:               ## @mtk_dsi_ps_control_vact
	.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, %r14
	movl	(%rdi), %eax
	xorl	%ebx, %ebx
	cmpl	$131, %eax
	sete	%bl
	xorl	$3, %ebx
	imull	16(%rdi), %ebx
	addl	$-128, %eax
	movl	%ebx, %r15d
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_PACKED_PS_24BIT_RGB888@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_LOOSELY_PS_18BIT_RGB666@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_PACKED_PS_18BIT_RGB666@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_PACKED_PS_16BIT_RGB565@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r15d
	orl	%ebx, %r15d
LBB0_7:
	movl	20(%r14), %edi
	movq	_DSI_VACT_NL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_DSI_PSCTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_DSI_HSTX_CKL_WC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_PACKED_PS_24BIT_RGB888,4,2     ## @PACKED_PS_24BIT_RGB888
	.comm	_PACKED_PS_18BIT_RGB666,4,2     ## @PACKED_PS_18BIT_RGB666
	.comm	_LOOSELY_PS_18BIT_RGB666,4,2    ## @LOOSELY_PS_18BIT_RGB666
	.comm	_PACKED_PS_16BIT_RGB565,4,2     ## @PACKED_PS_16BIT_RGB565
	.comm	_DSI_VACT_NL,8,3                ## @DSI_VACT_NL
	.comm	_DSI_PSCTRL,8,3                 ## @DSI_PSCTRL
	.comm	_DSI_HSTX_CKL_WC,8,3            ## @DSI_HSTX_CKL_WC
	.no_dead_strip	_mtk_dsi_ps_control_vact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_dsi_ps_control_vact
_mtk_dsi_ps_control_vact:               ; @mtk_dsi_ps_control_vact
	.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]
	cmp	w8, #131
	mov	w9, #2
	cinc	w9, w9, ne
	ldr	w10, [x0, #16]
	mul	w20, w9, w10
	sub	w8, w8, #128
	mov	x21, x20
	cmp	w8, #3
	b.hi	LBB0_7
; %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, _PACKED_PS_24BIT_RGB888@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PACKED_PS_24BIT_RGB888@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh4:
	adrp	x8, _LOOSELY_PS_18BIT_RGB666@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LOOSELY_PS_18BIT_RGB666@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _PACKED_PS_18BIT_RGB666@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PACKED_PS_18BIT_RGB666@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _PACKED_PS_16BIT_RGB565@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PACKED_PS_16BIT_RGB565@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	orr	w21, w8, w20
LBB0_7:
	ldr	w0, [x19, #20]
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _DSI_VACT_NL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DSI_VACT_NL@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _DSI_PSCTRL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DSI_PSCTRL@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _DSI_HSTX_CKL_WC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DSI_HSTX_CKL_WC@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, 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	_writel
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_PACKED_PS_24BIT_RGB888,4,2     ; @PACKED_PS_24BIT_RGB888
	.comm	_PACKED_PS_18BIT_RGB666,4,2     ; @PACKED_PS_18BIT_RGB666
	.comm	_LOOSELY_PS_18BIT_RGB666,4,2    ; @LOOSELY_PS_18BIT_RGB666
	.comm	_PACKED_PS_16BIT_RGB565,4,2     ; @PACKED_PS_16BIT_RGB565
	.comm	_DSI_VACT_NL,8,3                ; @DSI_VACT_NL
	.comm	_DSI_PSCTRL,8,3                 ; @DSI_PSCTRL
	.comm	_DSI_HSTX_CKL_WC,8,3            ; @DSI_HSTX_CKL_WC
	.no_dead_strip	_mtk_dsi_ps_control_vact
.subsections_via_symbols
