	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp500_disable_memwrite
_malidp500_disable_memwrite:            ## @malidp500_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, %rbx
	movq	_MALIDP_DE_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_malidp_get_block_base
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_MW_START@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_MW_RESTART@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	_MW_STOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_3:
	movq	_MALIDP_SE_MEMWRITE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MALIDP500_SE_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %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), %r14
	movq	%rbx, %rdi
	movq	%r14, %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	_MW_START,8,3                   ## @MW_START
	.comm	_MW_RESTART,8,3                 ## @MW_RESTART
	.comm	_MW_STOP,8,3                    ## @MW_STOP
	.comm	_MALIDP_SE_MEMWRITE_EN,4,2      ## @MALIDP_SE_MEMWRITE_EN
	.comm	_MALIDP500_SE_CONTROL,8,3       ## @MALIDP500_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	_malidp500_disable_memwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp500_disable_memwrite
_malidp500_disable_memwrite:            ; @malidp500_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
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _MW_START@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MW_START@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _MW_RESTART@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MW_RESTART@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _MW_STOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MW_STOP@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_2:
Lloh12:
	adrp	x8, _MALIDP_SE_MEMWRITE_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MALIDP_SE_MEMWRITE_EN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _MALIDP500_SE_CONTROL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MALIDP500_SE_CONTROL@GOTPAGEOFF]
Lloh17:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_malidp_hw_clearbits
Lloh18:
	adrp	x8, _MALIDP_SCALE_ENGINE_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MALIDP_SCALE_ENGINE_EN@GOTPAGEOFF]
Lloh20:
	adrp	x9, _MALIDP_DE_DISPLAY_FUNC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MALIDP_DE_DISPLAY_FUNC@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MALIDP_DE_BLOCK,4,2            ; @MALIDP_DE_BLOCK
	.comm	_MW_START,8,3                   ; @MW_START
	.comm	_MW_RESTART,8,3                 ; @MW_RESTART
	.comm	_MW_STOP,8,3                    ; @MW_STOP
	.comm	_MALIDP_SE_MEMWRITE_EN,4,2      ; @MALIDP_SE_MEMWRITE_EN
	.comm	_MALIDP500_SE_CONTROL,8,3       ; @MALIDP500_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	_malidp500_disable_memwrite
.subsections_via_symbols
