	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_dpi_config_pol
_mtk_dpi_config_pol:                    ## @mtk_dpi_config_pol
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MTK_DPI_POLARITY_RISING@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	xorl	%edx, %edx
	cmpq	%r9, (%rsi)
	movq	_CK_POL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r8d, %ecx
	cmovel	%edx, %ecx
	cmpq	%r9, 8(%rsi)
	movq	_DE_POL@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	%r10d, %eax
	cmovel	%edx, %eax
	orl	%ecx, %eax
	cmpq	%r9, 16(%rsi)
	movq	_HSYNC_POL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %r11d
	cmovel	%edx, %r11d
	cmpq	%r9, 24(%rsi)
	movq	_VSYNC_POL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	cmovnel	%r9d, %edx
	orl	%r11d, %edx
	orl	%eax, %edx
	movq	_DPI_OUTPUT_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r8d, %r10d
	orl	%r9d, %ecx
	orl	%r10d, %ecx
	popq	%rbp
	jmp	_mtk_dpi_mask                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_DPI_POLARITY_RISING,8,3    ## @MTK_DPI_POLARITY_RISING
	.comm	_CK_POL,4,2                     ## @CK_POL
	.comm	_DE_POL,4,2                     ## @DE_POL
	.comm	_HSYNC_POL,4,2                  ## @HSYNC_POL
	.comm	_VSYNC_POL,4,2                  ## @VSYNC_POL
	.comm	_DPI_OUTPUT_SETTING,4,2         ## @DPI_OUTPUT_SETTING
	.no_dead_strip	_mtk_dpi_config_pol
.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_pol
_mtk_dpi_config_pol:                    ; @mtk_dpi_config_pol
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MTK_DPI_POLARITY_RISING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTK_DPI_POLARITY_RISING@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CK_POL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CK_POL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	w9, [x9]
	ldp	x10, x11, [x1]
	cmp	x10, x8
	csel	w10, wzr, w9, eq
Lloh6:
	adrp	x12, _DE_POL@GOTPAGE
Lloh7:
	ldr	x12, [x12, _DE_POL@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	cmp	x11, x8
	csel	w11, wzr, w12, eq
	orr	w10, w11, w10
Lloh9:
	adrp	x11, _HSYNC_POL@GOTPAGE
Lloh10:
	ldr	x11, [x11, _HSYNC_POL@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	ldp	x13, x14, [x1, #16]
	cmp	x13, x8
	csel	w13, wzr, w11, eq
	orr	w10, w10, w13
Lloh12:
	adrp	x13, _VSYNC_POL@GOTPAGE
Lloh13:
	ldr	x13, [x13, _VSYNC_POL@GOTPAGEOFF]
Lloh14:
	ldr	w13, [x13]
	cmp	x14, x8
	csel	w8, wzr, w13, eq
	orr	w2, w10, w8
Lloh15:
	adrp	x8, _DPI_OUTPUT_SETTING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DPI_OUTPUT_SETTING@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	orr	w8, w12, w9
	orr	w8, w8, w11
	orr	w3, w8, w13
	b	_mtk_dpi_mask
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_DPI_POLARITY_RISING,8,3    ; @MTK_DPI_POLARITY_RISING
	.comm	_CK_POL,4,2                     ; @CK_POL
	.comm	_DE_POL,4,2                     ; @DE_POL
	.comm	_HSYNC_POL,4,2                  ; @HSYNC_POL
	.comm	_VSYNC_POL,4,2                  ; @VSYNC_POL
	.comm	_DPI_OUTPUT_SETTING,4,2         ; @DPI_OUTPUT_SETTING
	.no_dead_strip	_mtk_dpi_config_pol
.subsections_via_symbols
