	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp550_modeset
_malidp550_modeset:                     ## @malidp550_modeset
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	_MALIDP_DE_DEFAULT_PREFETCH_START@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rdi), %esi
	movq	8(%rdi), %rax
	movq	(%rax), %rdx
	callq	_malidp_hw_write
	movq	_MALIDP550_DE_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_malidp_hw_write
	movq	_MALIDP_BGND_COLOR_R@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$12, %eax
	andl	$16711680, %eax                 ## imm = 0xFF0000
	movq	_MALIDP_BGND_COLOR_G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$4, %ecx
	andl	$65280, %ecx                    ## imm = 0xFF00
	orl	%eax, %ecx
	movq	_MALIDP_BGND_COLOR_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shrl	$4, %eax
	movzbl	%al, %esi
	orl	%ecx, %esi
	movq	_MALIDP550_DE_BGND_COLOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_malidp_hw_write
	movl	32(%r12), %edi
	callq	_MALIDP_DE_H_FRONTPORCH
	movl	%eax, %ebx
	movl	28(%r12), %edi
	callq	_MALIDP_DE_H_BACKPORCH
	orl	%eax, %ebx
	movq	_MALIDP550_TIMINGS_BASE@GOTPCREL(%rip), %r15
	movq	_MALIDP_DE_H_TIMINGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	(%r15), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_malidp_hw_write
	movl	24(%r12), %edi
	callq	_MALIDP550_DE_V_FRONTPORCH
	movl	%eax, %ebx
	movl	20(%r12), %edi
	callq	_MALIDP_DE_V_BACKPORCH
	orl	%eax, %ebx
	movq	_MALIDP_DE_V_TIMINGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	(%r15), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_malidp_hw_write
	movl	16(%r12), %edi
	callq	_MALIDP_DE_H_SYNCWIDTH
	movl	%eax, %ebx
	movl	12(%r12), %edi
	callq	_MALIDP_DE_V_SYNCWIDTH
	orl	%ebx, %eax
	movl	(%r12), %ecx
	movq	_DISPLAY_FLAGS_HSYNC_HIGH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	je	LBB0_2
## %bb.1:
	movq	_MALIDP550_HSYNCPOL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	orl	%edx, %eax
	movq	_DISPLAY_FLAGS_VSYNC_HIGH@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	je	LBB0_4
## %bb.3:
	movq	_MALIDP550_VSYNCPOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%ecx, %eax
	movq	_MALIDP_DE_SYNC_WIDTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	(%r15), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_malidp_hw_write
	movl	8(%r12), %edi
	callq	_MALIDP_DE_H_ACTIVE
	movl	%eax, %ebx
	movl	4(%r12), %edi
	callq	_MALIDP_DE_V_ACTIVE
	orl	%eax, %ebx
	movq	_MALIDP_DE_HV_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	(%r15), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_malidp_hw_write
	movq	_DISPLAY_FLAGS_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MALIDP_DISP_FUNC_ILACED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MALIDP_DE_DISPLAY_FUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_malidp_hw_setbits              ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_malidp_hw_clearbits            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MALIDP_DE_DEFAULT_PREFETCH_START,4,2 ## @MALIDP_DE_DEFAULT_PREFETCH_START
	.comm	_MALIDP550_DE_CONTROL,8,3       ## @MALIDP550_DE_CONTROL
	.comm	_MALIDP_BGND_COLOR_R,4,2        ## @MALIDP_BGND_COLOR_R
	.comm	_MALIDP_BGND_COLOR_G,4,2        ## @MALIDP_BGND_COLOR_G
	.comm	_MALIDP_BGND_COLOR_B,4,2        ## @MALIDP_BGND_COLOR_B
	.comm	_MALIDP550_DE_BGND_COLOR,8,3    ## @MALIDP550_DE_BGND_COLOR
	.comm	_MALIDP550_TIMINGS_BASE,8,3     ## @MALIDP550_TIMINGS_BASE
	.comm	_MALIDP_DE_H_TIMINGS,8,3        ## @MALIDP_DE_H_TIMINGS
	.comm	_MALIDP_DE_V_TIMINGS,8,3        ## @MALIDP_DE_V_TIMINGS
	.comm	_DISPLAY_FLAGS_HSYNC_HIGH,4,2   ## @DISPLAY_FLAGS_HSYNC_HIGH
	.comm	_MALIDP550_HSYNCPOL,4,2         ## @MALIDP550_HSYNCPOL
	.comm	_DISPLAY_FLAGS_VSYNC_HIGH,4,2   ## @DISPLAY_FLAGS_VSYNC_HIGH
	.comm	_MALIDP550_VSYNCPOL,4,2         ## @MALIDP550_VSYNCPOL
	.comm	_MALIDP_DE_SYNC_WIDTH,8,3       ## @MALIDP_DE_SYNC_WIDTH
	.comm	_MALIDP_DE_HV_ACTIVE,8,3        ## @MALIDP_DE_HV_ACTIVE
	.comm	_DISPLAY_FLAGS_INTERLACED,4,2   ## @DISPLAY_FLAGS_INTERLACED
	.comm	_MALIDP_DISP_FUNC_ILACED,4,2    ## @MALIDP_DISP_FUNC_ILACED
	.comm	_MALIDP_DE_DISPLAY_FUNC,4,2     ## @MALIDP_DE_DISPLAY_FUNC
	.no_dead_strip	_malidp550_modeset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp550_modeset
_malidp550_modeset:                     ; @malidp550_modeset
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MALIDP_DE_DEFAULT_PREFETCH_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MALIDP_DE_DEFAULT_PREFETCH_START@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w1, [x0]
	ldr	x8, [x0, #8]
	ldr	x2, [x8]
	bl	_malidp_hw_write
Lloh3:
	adrp	x8, _MALIDP550_DE_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MALIDP550_DE_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_malidp_hw_write
Lloh6:
	adrp	x8, _MALIDP_BGND_COLOR_R@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MALIDP_BGND_COLOR_R@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w8, #12
	and	w1, w8, #0xff0000
Lloh9:
	adrp	x8, _MALIDP_BGND_COLOR_G@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MALIDP_BGND_COLOR_G@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w8, #4
Lloh12:
	adrp	x9, _MALIDP_BGND_COLOR_B@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MALIDP_BGND_COLOR_B@GOTPAGEOFF]
	bfxil	w1, w8, #0, #16
Lloh14:
	ldr	w8, [x9]
	bfxil	w1, w8, #4, #8
Lloh15:
	adrp	x8, _MALIDP550_DE_BGND_COLOR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MALIDP550_DE_BGND_COLOR@GOTPAGEOFF]
Lloh17:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_malidp_hw_write
	ldr	w0, [x20, #32]
	bl	_MALIDP_DE_H_FRONTPORCH
	mov	x21, x0
	ldr	w0, [x20, #28]
	bl	_MALIDP_DE_H_BACKPORCH
Lloh18:
	adrp	x22, _MALIDP550_TIMINGS_BASE@GOTPAGE
Lloh19:
	ldr	x22, [x22, _MALIDP550_TIMINGS_BASE@GOTPAGEOFF]
	orr	w1, w0, w21
	ldr	x8, [x22]
Lloh20:
	adrp	x9, _MALIDP_DE_H_TIMINGS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MALIDP_DE_H_TIMINGS@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x2, x9, x8
	mov	x0, x19
	bl	_malidp_hw_write
	ldr	w0, [x20, #24]
	bl	_MALIDP550_DE_V_FRONTPORCH
	mov	x21, x0
	ldr	w0, [x20, #20]
	bl	_MALIDP_DE_V_BACKPORCH
	orr	w1, w0, w21
	ldr	x8, [x22]
Lloh23:
	adrp	x9, _MALIDP_DE_V_TIMINGS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MALIDP_DE_V_TIMINGS@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x2, x9, x8
	mov	x0, x19
	bl	_malidp_hw_write
	ldr	w0, [x20, #16]
	bl	_MALIDP_DE_H_SYNCWIDTH
	mov	x21, x0
	ldr	w0, [x20, #12]
	bl	_MALIDP_DE_V_SYNCWIDTH
	orr	w8, w0, w21
	ldr	w9, [x20]
Lloh26:
	adrp	x10, _DISPLAY_FLAGS_HSYNC_HIGH@GOTPAGE
Lloh27:
	ldr	x10, [x10, _DISPLAY_FLAGS_HSYNC_HIGH@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
Lloh29:
	adrp	x11, _MALIDP550_HSYNCPOL@GOTPAGE
Lloh30:
	ldr	x11, [x11, _MALIDP550_HSYNCPOL@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w8, w10
Lloh32:
	adrp	x10, _DISPLAY_FLAGS_VSYNC_HIGH@GOTPAGE
Lloh33:
	ldr	x10, [x10, _DISPLAY_FLAGS_VSYNC_HIGH@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
Lloh35:
	adrp	x11, _MALIDP550_VSYNCPOL@GOTPAGE
Lloh36:
	ldr	x11, [x11, _MALIDP550_VSYNCPOL@GOTPAGEOFF]
Lloh37:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w1, w8, w9
	ldr	x8, [x22]
Lloh38:
	adrp	x9, _MALIDP_DE_SYNC_WIDTH@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MALIDP_DE_SYNC_WIDTH@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	add	x2, x9, x8
	mov	x0, x19
	bl	_malidp_hw_write
	ldr	w0, [x20, #8]
	bl	_MALIDP_DE_H_ACTIVE
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_MALIDP_DE_V_ACTIVE
	orr	w1, w0, w21
	ldr	x8, [x22]
Lloh41:
	adrp	x9, _MALIDP_DE_HV_ACTIVE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _MALIDP_DE_HV_ACTIVE@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	add	x2, x9, x8
	mov	x0, x19
	bl	_malidp_hw_write
	ldr	w8, [x20]
Lloh44:
	adrp	x9, _DISPLAY_FLAGS_INTERLACED@GOTPAGE
Lloh45:
	ldr	x9, [x9, _DISPLAY_FLAGS_INTERLACED@GOTPAGEOFF]
Lloh46:
	adrp	x10, _MALIDP_DISP_FUNC_ILACED@GOTPAGE
Lloh47:
	ldr	x10, [x10, _MALIDP_DISP_FUNC_ILACED@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
Lloh49:
	ldr	w1, [x10]
Lloh50:
	adrp	x10, _MALIDP_DE_DISPLAY_FUNC@GOTPAGE
Lloh51:
	ldr	x10, [x10, _MALIDP_DE_DISPLAY_FUNC@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x10]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	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	_malidp_hw_setbits
LBB0_2:
	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	_malidp_hw_clearbits
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh48
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.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 AdrpLdrGot	Lloh18, Lloh19
	.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	_MALIDP_DE_DEFAULT_PREFETCH_START,4,2 ; @MALIDP_DE_DEFAULT_PREFETCH_START
	.comm	_MALIDP550_DE_CONTROL,8,3       ; @MALIDP550_DE_CONTROL
	.comm	_MALIDP_BGND_COLOR_R,4,2        ; @MALIDP_BGND_COLOR_R
	.comm	_MALIDP_BGND_COLOR_G,4,2        ; @MALIDP_BGND_COLOR_G
	.comm	_MALIDP_BGND_COLOR_B,4,2        ; @MALIDP_BGND_COLOR_B
	.comm	_MALIDP550_DE_BGND_COLOR,8,3    ; @MALIDP550_DE_BGND_COLOR
	.comm	_MALIDP550_TIMINGS_BASE,8,3     ; @MALIDP550_TIMINGS_BASE
	.comm	_MALIDP_DE_H_TIMINGS,8,3        ; @MALIDP_DE_H_TIMINGS
	.comm	_MALIDP_DE_V_TIMINGS,8,3        ; @MALIDP_DE_V_TIMINGS
	.comm	_DISPLAY_FLAGS_HSYNC_HIGH,4,2   ; @DISPLAY_FLAGS_HSYNC_HIGH
	.comm	_MALIDP550_HSYNCPOL,4,2         ; @MALIDP550_HSYNCPOL
	.comm	_DISPLAY_FLAGS_VSYNC_HIGH,4,2   ; @DISPLAY_FLAGS_VSYNC_HIGH
	.comm	_MALIDP550_VSYNCPOL,4,2         ; @MALIDP550_VSYNCPOL
	.comm	_MALIDP_DE_SYNC_WIDTH,8,3       ; @MALIDP_DE_SYNC_WIDTH
	.comm	_MALIDP_DE_HV_ACTIVE,8,3        ; @MALIDP_DE_HV_ACTIVE
	.comm	_DISPLAY_FLAGS_INTERLACED,4,2   ; @DISPLAY_FLAGS_INTERLACED
	.comm	_MALIDP_DISP_FUNC_ILACED,4,2    ; @MALIDP_DISP_FUNC_ILACED
	.comm	_MALIDP_DE_DISPLAY_FUNC,4,2     ; @MALIDP_DE_DISPLAY_FUNC
	.no_dead_strip	_malidp550_modeset
.subsections_via_symbols
