	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp550_disable_memwrite
_malidp550_disable_memwrite:            ## @malidp550_disable_memwrite
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_MALIDP_DE_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_malidp_get_block_base
	movq	%rax, %rbx
	movq	_MALIDP550_SE_MEMWRITE_ONESHOT@GOTPCREL(%rip), %rax
	movq	_MALIDP_SE_MEMWRITE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_MALIDP550_SE_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_malidp_hw_clearbits
	movq	_MALIDP_SCALE_ENGINE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MALIDP_DE_DISPLAY_FUNC@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_malidp_hw_clearbits            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MALIDP_DE_BLOCK,4,2            ## @MALIDP_DE_BLOCK
	.comm	_MALIDP550_SE_MEMWRITE_ONESHOT,4,2 ## @MALIDP550_SE_MEMWRITE_ONESHOT
	.comm	_MALIDP_SE_MEMWRITE_EN,4,2      ## @MALIDP_SE_MEMWRITE_EN
	.comm	_MALIDP550_SE_CONTROL,8,3       ## @MALIDP550_SE_CONTROL
	.comm	_MALIDP_SCALE_ENGINE_EN,4,2     ## @MALIDP_SCALE_ENGINE_EN
	.comm	_MALIDP_DE_DISPLAY_FUNC,8,3     ## @MALIDP_DE_DISPLAY_FUNC
	.no_dead_strip	_malidp550_disable_memwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp550_disable_memwrite
_malidp550_disable_memwrite:            ; @malidp550_disable_memwrite
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MALIDP_DE_BLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MALIDP_DE_BLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_malidp_get_block_base
	mov	x20, x0
Lloh3:
	adrp	x8, _MALIDP550_SE_MEMWRITE_ONESHOT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MALIDP550_SE_MEMWRITE_ONESHOT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MALIDP_SE_MEMWRITE_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MALIDP_SE_MEMWRITE_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh9:
	adrp	x8, _MALIDP550_SE_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MALIDP550_SE_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_malidp_hw_clearbits
Lloh12:
	adrp	x8, _MALIDP_SCALE_ENGINE_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MALIDP_SCALE_ENGINE_EN@GOTPAGEOFF]
Lloh14:
	adrp	x9, _MALIDP_DE_DISPLAY_FUNC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MALIDP_DE_DISPLAY_FUNC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	ldr	x8, [x9]
	add	x2, x8, x20
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_malidp_hw_clearbits
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MALIDP_DE_BLOCK,4,2            ; @MALIDP_DE_BLOCK
	.comm	_MALIDP550_SE_MEMWRITE_ONESHOT,4,2 ; @MALIDP550_SE_MEMWRITE_ONESHOT
	.comm	_MALIDP_SE_MEMWRITE_EN,4,2      ; @MALIDP_SE_MEMWRITE_EN
	.comm	_MALIDP550_SE_CONTROL,8,3       ; @MALIDP550_SE_CONTROL
	.comm	_MALIDP_SCALE_ENGINE_EN,4,2     ; @MALIDP_SCALE_ENGINE_EN
	.comm	_MALIDP_DE_DISPLAY_FUNC,8,3     ; @MALIDP_DE_DISPLAY_FUNC
	.no_dead_strip	_malidp550_disable_memwrite
.subsections_via_symbols
