	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmhub_v9_4_init_system_aperture_regs
_mmhub_v9_4_init_system_aperture_regs:  ## @mmhub_v9_4_init_system_aperture_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_MMHUB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rax, %r15
	movq	_mmVMSHAREDVC0_MC_VM_AGP_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MMHUB_INSTANCE_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rax, %rbx
	imull	%esi, %ecx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_WREG32_SOC15_OFFSET
	movl	(%r15), %edi
	movq	_mmVMSHAREDVC0_MC_VM_AGP_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	imull	%r14d, %ecx
	movsbl	11(%r13), %r8d
	xorl	%esi, %esi
	callq	_WREG32_SOC15_OFFSET
	movl	(%r15), %edi
	movq	_mmVMSHAREDVC0_MC_VM_AGP_BOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	imull	%r14d, %ecx
	movsbl	15(%r13), %r8d
	xorl	%esi, %esi
	callq	_WREG32_SOC15_OFFSET
	movl	(%r15), %r15d
	movq	_mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%rbx), %ebx
	imull	%r14d, %ebx
	movl	12(%r13), %esi
	movl	24(%r13), %edi
	callq	_min
	sarl	$18, %eax
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_WREG32_SOC15_OFFSET
	movq	_MMHUB@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_MMHUB_INSTANCE_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	imull	%r14d, %ebx
	movl	8(%r13), %esi
	movl	20(%r13), %edi
	callq	_max
	sarl	$18, %eax
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_WREG32_SOC15_OFFSET
	movl	28(%r13), %r8d
	subl	16(%r13), %r8d
	addl	4(%r13), %r8d
	movq	_MMHUB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MMHUB_INSTANCE_REGISTER_OFFSET@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	imull	%r14d, %ecx
	sarl	$12, %r8d
	xorl	%esi, %esi
	callq	_WREG32_SOC15_OFFSET
	movl	(%r15), %edi
	movq	_mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	imull	%r14d, %ecx
	xorl	%esi, %esi
	callq	_WREG32_SOC15_OFFSET
	movl	(%r15), %edi
	movq	_mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	imull	%r14d, %ecx
	movl	(%r13), %r8d
	sarl	$12, %r8d
	xorl	%esi, %esi
	callq	_WREG32_SOC15_OFFSET
	movl	(%r15), %edi
	movq	_mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	imull	%r14d, %ecx
	xorl	%esi, %esi
	callq	_WREG32_SOC15_OFFSET
	movl	(%r15), %edi
	movq	_mmVML2PF0_VM_L2_PROTECTION_FAULT_CNTL2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	(%r12), %ecx
	imull	%r14d, %ecx
	xorl	%esi, %esi
	callq	_RREG32_SOC15_OFFSET
	movq	_VML2PF0_VM_L2_PROTECTION_FAULT_CNTL2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%r15), %edi
	movl	(%rbx), %edx
	imull	(%r12), %r14d
	xorl	%esi, %esi
	movl	%r14d, %ecx
	movl	%eax, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_SOC15_OFFSET            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMHUB,4,2                      ## @MMHUB
	.comm	_mmVMSHAREDVC0_MC_VM_AGP_BASE,4,2 ## @mmVMSHAREDVC0_MC_VM_AGP_BASE
	.comm	_MMHUB_INSTANCE_REGISTER_OFFSET,4,2 ## @MMHUB_INSTANCE_REGISTER_OFFSET
	.comm	_mmVMSHAREDVC0_MC_VM_AGP_TOP,4,2 ## @mmVMSHAREDVC0_MC_VM_AGP_TOP
	.comm	_mmVMSHAREDVC0_MC_VM_AGP_BOT,4,2 ## @mmVMSHAREDVC0_MC_VM_AGP_BOT
	.comm	_mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR,4,2 ## @mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR
	.comm	_mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR,4,2 ## @mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR
	.comm	_mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB,4,2 ## @mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB
	.comm	_mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB,4,2 ## @mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB
	.comm	_mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32,4,2 ## @mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32
	.comm	_mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32,4,2 ## @mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32
	.comm	_mmVML2PF0_VM_L2_PROTECTION_FAULT_CNTL2,4,2 ## @mmVML2PF0_VM_L2_PROTECTION_FAULT_CNTL2
	.comm	_VML2PF0_VM_L2_PROTECTION_FAULT_CNTL2,4,2 ## @VML2PF0_VM_L2_PROTECTION_FAULT_CNTL2
	.comm	_ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY,4,2 ## @ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY
	.no_dead_strip	_mmhub_v9_4_init_system_aperture_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmhub_v9_4_init_system_aperture_regs
_mmhub_v9_4_init_system_aperture_regs:  ; @mmhub_v9_4_init_system_aperture_regs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _MMHUB@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MMHUB@GOTPAGEOFF]
Lloh2:
	adrp	x8, _mmVMSHAREDVC0_MC_VM_AGP_BASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmVMSHAREDVC0_MC_VM_AGP_BASE@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x25, _MMHUB_INSTANCE_REGISTER_OFFSET@GOTPAGE
Lloh6:
	ldr	x25, [x25, _MMHUB_INSTANCE_REGISTER_OFFSET@GOTPAGEOFF]
	ldr	w8, [x25]
	mul	w3, w8, w1
	mov	w1, #0
	mov	w4, #0
	bl	_WREG32_SOC15_OFFSET
	ldr	w0, [x24]
Lloh7:
	adrp	x8, _mmVMSHAREDVC0_MC_VM_AGP_TOP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mmVMSHAREDVC0_MC_VM_AGP_TOP@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	w8, [x25]
	mul	w3, w8, w19
	ldrsb	w4, [x20, #11]
	mov	w1, #0
	bl	_WREG32_SOC15_OFFSET
	ldr	w0, [x24]
Lloh10:
	adrp	x8, _mmVMSHAREDVC0_MC_VM_AGP_BOT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mmVMSHAREDVC0_MC_VM_AGP_BOT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	w8, [x25]
	mul	w3, w8, w19
	ldrsb	w4, [x20, #15]
	mov	w1, #0
	bl	_WREG32_SOC15_OFFSET
Lloh13:
	adrp	x8, _mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR@GOTPAGEOFF]
	ldr	w21, [x24]
Lloh15:
	ldr	w22, [x8]
	ldr	w8, [x25]
	mul	w23, w8, w19
	ldr	w0, [x20, #24]
	ldr	w1, [x20, #12]
	bl	_min
	asr	w4, w0, #18
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	mov	x3, x23
	bl	_WREG32_SOC15_OFFSET
Lloh16:
	adrp	x8, _mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR@GOTPAGEOFF]
	ldr	w21, [x24]
Lloh18:
	ldr	w22, [x8]
	ldr	w8, [x25]
	mul	w23, w8, w19
	ldr	w0, [x20, #20]
	ldr	w1, [x20, #8]
	bl	_max
	asr	w4, w0, #18
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	mov	x3, x23
	bl	_WREG32_SOC15_OFFSET
	ldr	w8, [x20, #28]
	ldr	w9, [x20, #16]
	ldr	w10, [x20, #4]
	sub	w8, w8, w9
	add	w8, w8, w10
	ldr	w0, [x24]
Lloh19:
	adrp	x9, _mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB@GOTPAGE
Lloh20:
	ldr	x9, [x9, _mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x9]
	ldr	w9, [x25]
	mul	w3, w9, w19
	asr	w4, w8, #12
	mov	w1, #0
	bl	_WREG32_SOC15_OFFSET
	ldr	w0, [x24]
Lloh22:
	adrp	x8, _mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	ldr	w8, [x25]
	mul	w3, w8, w19
	mov	w1, #0
	bl	_WREG32_SOC15_OFFSET
Lloh25:
	adrp	x8, _mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32@GOTPAGE
Lloh26:
	ldr	x8, [x8, _mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh27:
	ldr	w2, [x8]
	ldr	w8, [x25]
	mul	w3, w8, w19
	ldr	w8, [x20]
	asr	w4, w8, #12
	mov	w1, #0
	bl	_WREG32_SOC15_OFFSET
	ldr	w0, [x24]
Lloh28:
	adrp	x8, _mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32@GOTPAGE
Lloh29:
	ldr	x8, [x8, _mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	ldr	w8, [x25]
	mul	w3, w8, w19
	mov	w1, #0
	bl	_WREG32_SOC15_OFFSET
	ldr	w0, [x24]
Lloh31:
	adrp	x20, _mmVML2PF0_VM_L2_PROTECTION_FAULT_CNTL2@GOTPAGE
Lloh32:
	ldr	x20, [x20, _mmVML2PF0_VM_L2_PROTECTION_FAULT_CNTL2@GOTPAGEOFF]
	ldr	w2, [x20]
	ldr	w8, [x25]
	mul	w3, w8, w19
	mov	w1, #0
	bl	_RREG32_SOC15_OFFSET
Lloh33:
	adrp	x8, _VML2PF0_VM_L2_PROTECTION_FAULT_CNTL2@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VML2PF0_VM_L2_PROTECTION_FAULT_CNTL2@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x4, x0
	ldr	w0, [x24]
	ldr	w2, [x20]
	ldr	w8, [x25]
	mul	w3, w8, w19
	mov	w1, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_WREG32_SOC15_OFFSET
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MMHUB,4,2                      ; @MMHUB
	.comm	_mmVMSHAREDVC0_MC_VM_AGP_BASE,4,2 ; @mmVMSHAREDVC0_MC_VM_AGP_BASE
	.comm	_MMHUB_INSTANCE_REGISTER_OFFSET,4,2 ; @MMHUB_INSTANCE_REGISTER_OFFSET
	.comm	_mmVMSHAREDVC0_MC_VM_AGP_TOP,4,2 ; @mmVMSHAREDVC0_MC_VM_AGP_TOP
	.comm	_mmVMSHAREDVC0_MC_VM_AGP_BOT,4,2 ; @mmVMSHAREDVC0_MC_VM_AGP_BOT
	.comm	_mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR,4,2 ; @mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_LOW_ADDR
	.comm	_mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR,4,2 ; @mmVMSHAREDVC0_MC_VM_SYSTEM_APERTURE_HIGH_ADDR
	.comm	_mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB,4,2 ; @mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB
	.comm	_mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB,4,2 ; @mmVMSHAREDPF0_MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB
	.comm	_mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32,4,2 ; @mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32
	.comm	_mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32,4,2 ; @mmVML2PF0_VM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32
	.comm	_mmVML2PF0_VM_L2_PROTECTION_FAULT_CNTL2,4,2 ; @mmVML2PF0_VM_L2_PROTECTION_FAULT_CNTL2
	.comm	_VML2PF0_VM_L2_PROTECTION_FAULT_CNTL2,4,2 ; @VML2PF0_VM_L2_PROTECTION_FAULT_CNTL2
	.comm	_ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY,4,2 ; @ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY
	.no_dead_strip	_mmhub_v9_4_init_system_aperture_regs
.subsections_via_symbols
