	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp_calc_mmu_control_value
_malidp_calc_mmu_control_value:         ## @malidp_calc_mmu_control_value
	.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	_MALIDP_PREFETCH_MODE_NONE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_2:
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	_MALIDP_MMU_CTRL_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_MALIDP_PREFETCH_MODE_PARTIAL@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_MALIDP_MMU_CTRL_MODE@GOTPCREL(%rip), %rax
	orq	(%rax), %r12
	movl	%esi, %edi
	callq	_MALIDP_MMU_CTRL_PP_NUM_REQ
	orq	%rax, %r12
LBB0_4:
	movq	_SZ_64K@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	sete	%al
	movq	_SZ_2M@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	sete	%cl
	orb	%al, %cl
	cmpb	$1, %cl
	jne	LBB0_8
## %bb.5:
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_MALIDP_MMU_CTRL_PX_PS
	orq	%rax, %r12
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_7
LBB0_8:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MALIDP_PREFETCH_MODE_NONE,4,2  ## @MALIDP_PREFETCH_MODE_NONE
	.comm	_MALIDP_MMU_CTRL_EN,8,3         ## @MALIDP_MMU_CTRL_EN
	.comm	_MALIDP_PREFETCH_MODE_PARTIAL,4,2 ## @MALIDP_PREFETCH_MODE_PARTIAL
	.comm	_MALIDP_MMU_CTRL_MODE,8,3       ## @MALIDP_MMU_CTRL_MODE
	.comm	_SZ_64K,8,3                     ## @SZ_64K
	.comm	_SZ_2M,8,3                      ## @SZ_2M
	.no_dead_strip	_malidp_calc_mmu_control_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp_calc_mmu_control_value
_malidp_calc_mmu_control_value:         ; @malidp_calc_mmu_control_value
	.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
Lloh0:
	adrp	x8, _MALIDP_PREFETCH_MODE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MALIDP_PREFETCH_MODE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_7
LBB0_2:
	mov	x21, x3
	mov	x19, x2
Lloh3:
	adrp	x8, _MALIDP_MMU_CTRL_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MALIDP_MMU_CTRL_EN@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
Lloh6:
	adrp	x8, _MALIDP_PREFETCH_MODE_PARTIAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MALIDP_PREFETCH_MODE_PARTIAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _MALIDP_MMU_CTRL_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MALIDP_MMU_CTRL_MODE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	orr	x20, x8, x20
	mov	x0, x1
	bl	_MALIDP_MMU_CTRL_PP_NUM_REQ
	orr	x20, x20, x0
LBB0_4:
Lloh12:
	adrp	x8, _SZ_64K@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SZ_64K@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _SZ_2M@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SZ_2M@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x21
	ccmp	x8, x21, #4, ne
	ccmp	w19, #1, #8, eq
	b.lt	LBB0_7
; %bb.5:
	mov	w21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_MALIDP_MMU_CTRL_PX_PS
	orr	x20, x0, x20
	add	w21, w21, #1
	cmp	w19, w21
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MALIDP_PREFETCH_MODE_NONE,4,2  ; @MALIDP_PREFETCH_MODE_NONE
	.comm	_MALIDP_MMU_CTRL_EN,8,3         ; @MALIDP_MMU_CTRL_EN
	.comm	_MALIDP_PREFETCH_MODE_PARTIAL,4,2 ; @MALIDP_PREFETCH_MODE_PARTIAL
	.comm	_MALIDP_MMU_CTRL_MODE,8,3       ; @MALIDP_MMU_CTRL_MODE
	.comm	_SZ_64K,8,3                     ; @SZ_64K
	.comm	_SZ_2M,8,3                      ; @SZ_2M
	.no_dead_strip	_malidp_calc_mmu_control_value
.subsections_via_symbols
