	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_dpi_config_vsync
_mtk_dpi_config_vsync:                  ## @mtk_dpi_config_vsync
	.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
	movl	%ecx, %r14d
	movq	%rsi, %rbx
	movl	(%rsi), %eax
	movq	_VSYNC_WIDTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%edx, %r12d
	movq	%rdi, %r15
	movq	_VSYNC_WIDTH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%edx, %esi
	movl	%eax, %edx
	callq	_mtk_dpi_mask
	movl	4(%rbx), %edx
	movq	_VSYNC_HALF_LINE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_VSYNC_HALF_LINE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_mtk_dpi_mask
	movl	8(%rbx), %edx
	movq	_VSYNC_BACK_PORCH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_VSYNC_BACK_PORCH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mtk_dpi_mask
	movl	12(%rbx), %edx
	movq	_VSYNC_FRONT_PORCH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_VSYNC_FRONT_PORCH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtk_dpi_mask                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VSYNC_WIDTH_SHIFT,4,2          ## @VSYNC_WIDTH_SHIFT
	.comm	_VSYNC_WIDTH_MASK,4,2           ## @VSYNC_WIDTH_MASK
	.comm	_VSYNC_HALF_LINE_SHIFT,4,2      ## @VSYNC_HALF_LINE_SHIFT
	.comm	_VSYNC_HALF_LINE_MASK,4,2       ## @VSYNC_HALF_LINE_MASK
	.comm	_VSYNC_BACK_PORCH_SHIFT,4,2     ## @VSYNC_BACK_PORCH_SHIFT
	.comm	_VSYNC_BACK_PORCH_MASK,4,2      ## @VSYNC_BACK_PORCH_MASK
	.comm	_VSYNC_FRONT_PORCH_SHIFT,4,2    ## @VSYNC_FRONT_PORCH_SHIFT
	.comm	_VSYNC_FRONT_PORCH_MASK,4,2     ## @VSYNC_FRONT_PORCH_MASK
	.no_dead_strip	_mtk_dpi_config_vsync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_dpi_config_vsync
_mtk_dpi_config_vsync:                  ; @mtk_dpi_config_vsync
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _VSYNC_WIDTH_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VSYNC_WIDTH_SHIFT@GOTPAGEOFF]
	ldr	w9, [x1]
Lloh2:
	ldr	w8, [x8]
	lsl	w2, w9, w8
Lloh3:
	adrp	x8, _VSYNC_WIDTH_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VSYNC_WIDTH_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_mtk_dpi_mask
Lloh6:
	adrp	x8, _VSYNC_HALF_LINE_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VSYNC_HALF_LINE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x21, #4]
Lloh8:
	ldr	w8, [x8]
	lsl	w2, w9, w8
Lloh9:
	adrp	x8, _VSYNC_HALF_LINE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VSYNC_HALF_LINE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x20
	bl	_mtk_dpi_mask
Lloh12:
	adrp	x8, _VSYNC_BACK_PORCH_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VSYNC_BACK_PORCH_SHIFT@GOTPAGEOFF]
	ldr	w9, [x21, #8]
Lloh14:
	ldr	w8, [x8]
	lsl	w2, w9, w8
Lloh15:
	adrp	x8, _VSYNC_BACK_PORCH_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VSYNC_BACK_PORCH_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x19
	bl	_mtk_dpi_mask
	ldr	w8, [x21, #12]
Lloh18:
	adrp	x9, _VSYNC_FRONT_PORCH_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VSYNC_FRONT_PORCH_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _VSYNC_FRONT_PORCH_MASK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _VSYNC_FRONT_PORCH_MASK@GOTPAGEOFF]
	lsl	w2, w8, w9
Lloh23:
	ldr	w3, [x10]
	mov	x0, x22
	mov	x1, x19
	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	_mtk_dpi_mask
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_VSYNC_WIDTH_SHIFT,4,2          ; @VSYNC_WIDTH_SHIFT
	.comm	_VSYNC_WIDTH_MASK,4,2           ; @VSYNC_WIDTH_MASK
	.comm	_VSYNC_HALF_LINE_SHIFT,4,2      ; @VSYNC_HALF_LINE_SHIFT
	.comm	_VSYNC_HALF_LINE_MASK,4,2       ; @VSYNC_HALF_LINE_MASK
	.comm	_VSYNC_BACK_PORCH_SHIFT,4,2     ; @VSYNC_BACK_PORCH_SHIFT
	.comm	_VSYNC_BACK_PORCH_MASK,4,2      ; @VSYNC_BACK_PORCH_MASK
	.comm	_VSYNC_FRONT_PORCH_SHIFT,4,2    ; @VSYNC_FRONT_PORCH_SHIFT
	.comm	_VSYNC_FRONT_PORCH_MASK,4,2     ; @VSYNC_FRONT_PORCH_MASK
	.no_dead_strip	_mtk_dpi_config_vsync
.subsections_via_symbols
