	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmhub_v2_0_init_cache_regs
_mmhub_v2_0_init_cache_regs:            ## @mmhub_v2_0_init_cache_regs
	.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	%rdi, %r15
	movq	_MMHUB@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_mmMMVM_L2_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	_MMVM_L2_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_ENABLE_L2_CACHE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_ENABLE_L2_FRAGMENT_PROCESSING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_ENABLE_DEFAULT_PAGE_OUT_TO_SYSTEM_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_L2_PDE0_CACHE_TAG_GENERATION_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_PDE_FAULT_CLASSIFICATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_CONTEXT1_IDENTITY_ACCESS_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_IDENTITY_MODE_FRAGMENT_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r14), %edi
	movl	(%r12), %edx
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	movl	(%r14), %edi
	movq	_mmMMVM_L2_CNTL2@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	_MMVM_L2_CNTL2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_INVALIDATE_ALL_L1_TLBS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_INVALIDATE_L2_CACHE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%r14), %edi
	movl	(%r12), %edx
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	movq	_mmMMVM_L2_CNTL3_DEFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%r15)
	movl	(%rax), %edi
	setne	%bl
	movq	_MMVM_L2_CNTL3@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_BANK_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	(%rbx,%rbx,2), %ecx
	addl	$9, %ecx
	leal	(%rbx,%rbx,2), %ebx
	addl	$6, %ebx
	callq	_REG_SET_FIELD
	movl	(%r15), %esi
	movq	_L2_CACHE_BIGK_FRAGMENT_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r14), %edi
	movq	_mmMMVM_L2_CNTL3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	movq	_mmMMVM_L2_CNTL4_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MMVM_L2_CNTL4@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_VMC_TAP_PDE_REQUEST_PHYSICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_VMC_TAP_PTE_REQUEST_PHYSICAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r14), %edi
	movq	_mmMMVM_L2_CNTL4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_SOC15                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMHUB,4,2                      ## @MMHUB
	.comm	_mmMMVM_L2_CNTL,4,2             ## @mmMMVM_L2_CNTL
	.comm	_MMVM_L2_CNTL,4,2               ## @MMVM_L2_CNTL
	.comm	_ENABLE_L2_CACHE,4,2            ## @ENABLE_L2_CACHE
	.comm	_ENABLE_L2_FRAGMENT_PROCESSING,4,2 ## @ENABLE_L2_FRAGMENT_PROCESSING
	.comm	_ENABLE_DEFAULT_PAGE_OUT_TO_SYSTEM_MEMORY,4,2 ## @ENABLE_DEFAULT_PAGE_OUT_TO_SYSTEM_MEMORY
	.comm	_L2_PDE0_CACHE_TAG_GENERATION_MODE,4,2 ## @L2_PDE0_CACHE_TAG_GENERATION_MODE
	.comm	_PDE_FAULT_CLASSIFICATION,4,2   ## @PDE_FAULT_CLASSIFICATION
	.comm	_CONTEXT1_IDENTITY_ACCESS_MODE,4,2 ## @CONTEXT1_IDENTITY_ACCESS_MODE
	.comm	_IDENTITY_MODE_FRAGMENT_SIZE,4,2 ## @IDENTITY_MODE_FRAGMENT_SIZE
	.comm	_mmMMVM_L2_CNTL2,4,2            ## @mmMMVM_L2_CNTL2
	.comm	_MMVM_L2_CNTL2,4,2              ## @MMVM_L2_CNTL2
	.comm	_INVALIDATE_ALL_L1_TLBS,4,2     ## @INVALIDATE_ALL_L1_TLBS
	.comm	_INVALIDATE_L2_CACHE,4,2        ## @INVALIDATE_L2_CACHE
	.comm	_mmMMVM_L2_CNTL3_DEFAULT,4,2    ## @mmMMVM_L2_CNTL3_DEFAULT
	.comm	_MMVM_L2_CNTL3,4,2              ## @MMVM_L2_CNTL3
	.comm	_BANK_SELECT,4,2                ## @BANK_SELECT
	.comm	_L2_CACHE_BIGK_FRAGMENT_SIZE,4,2 ## @L2_CACHE_BIGK_FRAGMENT_SIZE
	.comm	_mmMMVM_L2_CNTL3,4,2            ## @mmMMVM_L2_CNTL3
	.comm	_mmMMVM_L2_CNTL4_DEFAULT,4,2    ## @mmMMVM_L2_CNTL4_DEFAULT
	.comm	_MMVM_L2_CNTL4,4,2              ## @MMVM_L2_CNTL4
	.comm	_VMC_TAP_PDE_REQUEST_PHYSICAL,4,2 ## @VMC_TAP_PDE_REQUEST_PHYSICAL
	.comm	_VMC_TAP_PTE_REQUEST_PHYSICAL,4,2 ## @VMC_TAP_PTE_REQUEST_PHYSICAL
	.comm	_mmMMVM_L2_CNTL4,4,2            ## @mmMMVM_L2_CNTL4
	.no_dead_strip	_mmhub_v2_0_init_cache_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmhub_v2_0_init_cache_regs
_mmhub_v2_0_init_cache_regs:            ; @mmhub_v2_0_init_cache_regs
	.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	x19, x0
Lloh0:
	adrp	x20, _MMHUB@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MMHUB@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _mmMMVM_L2_CNTL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _mmMMVM_L2_CNTL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_RREG32_SOC15
Lloh4:
	adrp	x22, _MMVM_L2_CNTL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MMVM_L2_CNTL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh6:
	adrp	x8, _ENABLE_L2_CACHE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENABLE_L2_CACHE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh9:
	adrp	x8, _ENABLE_L2_FRAGMENT_PROCESSING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENABLE_L2_FRAGMENT_PROCESSING@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh12:
	adrp	x8, _ENABLE_DEFAULT_PAGE_OUT_TO_SYSTEM_MEMORY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENABLE_DEFAULT_PAGE_OUT_TO_SYSTEM_MEMORY@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh15:
	adrp	x8, _L2_PDE0_CACHE_TAG_GENERATION_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _L2_PDE0_CACHE_TAG_GENERATION_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh18:
	adrp	x8, _PDE_FAULT_CLASSIFICATION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PDE_FAULT_CLASSIFICATION@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh21:
	adrp	x8, _CONTEXT1_IDENTITY_ACCESS_MODE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CONTEXT1_IDENTITY_ACCESS_MODE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh24:
	adrp	x8, _IDENTITY_MODE_FRAGMENT_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IDENTITY_MODE_FRAGMENT_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	mov	x3, x0
	ldr	w0, [x20]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w0, [x20]
Lloh27:
	adrp	x21, _mmMMVM_L2_CNTL2@GOTPAGE
Lloh28:
	ldr	x21, [x21, _mmMMVM_L2_CNTL2@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_RREG32_SOC15
Lloh29:
	adrp	x22, _MMVM_L2_CNTL2@GOTPAGE
Lloh30:
	ldr	x22, [x22, _MMVM_L2_CNTL2@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh31:
	adrp	x8, _INVALIDATE_ALL_L1_TLBS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _INVALIDATE_ALL_L1_TLBS@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh34:
	adrp	x8, _INVALIDATE_L2_CACHE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _INVALIDATE_L2_CACHE@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x3, x0
	ldr	w0, [x20]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_WREG32_SOC15
Lloh37:
	adrp	x8, _mmMMVM_L2_CNTL3_DEFAULT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _mmMMVM_L2_CNTL3_DEFAULT@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh40:
	adrp	x21, _MMVM_L2_CNTL3@GOTPAGE
Lloh41:
	ldr	x21, [x21, _MMVM_L2_CNTL3@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh42:
	adrp	x9, _BANK_SELECT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _BANK_SELECT@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x9]
	cmp	x8, #0
	mov	w8, #12
	mov	w9, #9
	csel	w3, w9, w8, eq
	mov	w8, #6
	csel	w19, w8, w9, eq
	bl	_REG_SET_FIELD
	ldr	w1, [x21]
Lloh45:
	adrp	x8, _L2_CACHE_BIGK_FRAGMENT_SIZE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _L2_CACHE_BIGK_FRAGMENT_SIZE@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	mov	x3, x0
	ldr	w0, [x20]
Lloh48:
	adrp	x8, _mmMMVM_L2_CNTL3@GOTPAGE
Lloh49:
	ldr	x8, [x8, _mmMMVM_L2_CNTL3@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_WREG32_SOC15
Lloh51:
	adrp	x8, _mmMMVM_L2_CNTL4_DEFAULT@GOTPAGE
Lloh52:
	ldr	x8, [x8, _mmMMVM_L2_CNTL4_DEFAULT@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
Lloh54:
	adrp	x19, _MMVM_L2_CNTL4@GOTPAGE
Lloh55:
	ldr	x19, [x19, _MMVM_L2_CNTL4@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh56:
	adrp	x8, _VMC_TAP_PDE_REQUEST_PHYSICAL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _VMC_TAP_PDE_REQUEST_PHYSICAL@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	ldr	w1, [x19]
Lloh59:
	adrp	x8, _VMC_TAP_PTE_REQUEST_PHYSICAL@GOTPAGE
Lloh60:
	ldr	x8, [x8, _VMC_TAP_PTE_REQUEST_PHYSICAL@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	mov	x3, x0
Lloh62:
	adrp	x8, _mmMMVM_L2_CNTL4@GOTPAGE
Lloh63:
	ldr	x8, [x8, _mmMMVM_L2_CNTL4@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh64:
	ldr	w2, [x8]
	mov	w1, #0
	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	_WREG32_SOC15
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MMHUB,4,2                      ; @MMHUB
	.comm	_mmMMVM_L2_CNTL,4,2             ; @mmMMVM_L2_CNTL
	.comm	_MMVM_L2_CNTL,4,2               ; @MMVM_L2_CNTL
	.comm	_ENABLE_L2_CACHE,4,2            ; @ENABLE_L2_CACHE
	.comm	_ENABLE_L2_FRAGMENT_PROCESSING,4,2 ; @ENABLE_L2_FRAGMENT_PROCESSING
	.comm	_ENABLE_DEFAULT_PAGE_OUT_TO_SYSTEM_MEMORY,4,2 ; @ENABLE_DEFAULT_PAGE_OUT_TO_SYSTEM_MEMORY
	.comm	_L2_PDE0_CACHE_TAG_GENERATION_MODE,4,2 ; @L2_PDE0_CACHE_TAG_GENERATION_MODE
	.comm	_PDE_FAULT_CLASSIFICATION,4,2   ; @PDE_FAULT_CLASSIFICATION
	.comm	_CONTEXT1_IDENTITY_ACCESS_MODE,4,2 ; @CONTEXT1_IDENTITY_ACCESS_MODE
	.comm	_IDENTITY_MODE_FRAGMENT_SIZE,4,2 ; @IDENTITY_MODE_FRAGMENT_SIZE
	.comm	_mmMMVM_L2_CNTL2,4,2            ; @mmMMVM_L2_CNTL2
	.comm	_MMVM_L2_CNTL2,4,2              ; @MMVM_L2_CNTL2
	.comm	_INVALIDATE_ALL_L1_TLBS,4,2     ; @INVALIDATE_ALL_L1_TLBS
	.comm	_INVALIDATE_L2_CACHE,4,2        ; @INVALIDATE_L2_CACHE
	.comm	_mmMMVM_L2_CNTL3_DEFAULT,4,2    ; @mmMMVM_L2_CNTL3_DEFAULT
	.comm	_MMVM_L2_CNTL3,4,2              ; @MMVM_L2_CNTL3
	.comm	_BANK_SELECT,4,2                ; @BANK_SELECT
	.comm	_L2_CACHE_BIGK_FRAGMENT_SIZE,4,2 ; @L2_CACHE_BIGK_FRAGMENT_SIZE
	.comm	_mmMMVM_L2_CNTL3,4,2            ; @mmMMVM_L2_CNTL3
	.comm	_mmMMVM_L2_CNTL4_DEFAULT,4,2    ; @mmMMVM_L2_CNTL4_DEFAULT
	.comm	_MMVM_L2_CNTL4,4,2              ; @MMVM_L2_CNTL4
	.comm	_VMC_TAP_PDE_REQUEST_PHYSICAL,4,2 ; @VMC_TAP_PDE_REQUEST_PHYSICAL
	.comm	_VMC_TAP_PTE_REQUEST_PHYSICAL,4,2 ; @VMC_TAP_PTE_REQUEST_PHYSICAL
	.comm	_mmMMVM_L2_CNTL4,4,2            ; @mmMMVM_L2_CNTL4
	.no_dead_strip	_mmhub_v2_0_init_cache_regs
.subsections_via_symbols
