	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfxhub_v2_0_init_system_aperture_regs
_gfxhub_v2_0_init_system_aperture_regs: ## @gfxhub_v2_0_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_GC@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_mmGCMC_VM_AGP_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_WREG32_SOC15
	movl	(%r14), %edi
	movq	_mmGCMC_VM_AGP_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_WREG32_SOC15
	movl	(%r14), %edi
	movq	_mmGCMC_VM_AGP_BOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$16777215, %ecx                 ## imm = 0xFFFFFF
	callq	_WREG32_SOC15
	movl	(%r14), %edi
	movq	_mmGCMC_VM_SYSTEM_APERTURE_LOW_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%rbx), %ecx
	sarl	$18, %ecx
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	movl	(%r14), %edi
	movq	_mmGCMC_VM_SYSTEM_APERTURE_HIGH_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%rbx), %ecx
	sarl	$18, %ecx
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	movl	16(%rbx), %ecx
	subl	8(%rbx), %ecx
	addl	4(%rbx), %ecx
	movl	(%r14), %edi
	movq	_mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	sarl	$12, %ecx
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	movl	(%r14), %edi
	movq	_mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	movl	(%r14), %edi
	movq	_mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	sarl	$12, %ecx
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	movl	(%r14), %edi
	movq	_mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	movl	(%r14), %edi
	movq	_GCVM_L2_PROTECTION_FAULT_CNTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	movl	$1, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32_FIELD15                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.comm	_mmGCMC_VM_AGP_BASE,4,2         ## @mmGCMC_VM_AGP_BASE
	.comm	_mmGCMC_VM_AGP_TOP,4,2          ## @mmGCMC_VM_AGP_TOP
	.comm	_mmGCMC_VM_AGP_BOT,4,2          ## @mmGCMC_VM_AGP_BOT
	.comm	_mmGCMC_VM_SYSTEM_APERTURE_LOW_ADDR,4,2 ## @mmGCMC_VM_SYSTEM_APERTURE_LOW_ADDR
	.comm	_mmGCMC_VM_SYSTEM_APERTURE_HIGH_ADDR,4,2 ## @mmGCMC_VM_SYSTEM_APERTURE_HIGH_ADDR
	.comm	_mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB,4,2 ## @mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB
	.comm	_mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB,4,2 ## @mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB
	.comm	_mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32,4,2 ## @mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32
	.comm	_mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32,4,2 ## @mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32
	.comm	_GCVM_L2_PROTECTION_FAULT_CNTL2,4,2 ## @GCVM_L2_PROTECTION_FAULT_CNTL2
	.comm	_ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY,4,2 ## @ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY
	.no_dead_strip	_gfxhub_v2_0_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 gfxhub_v2_0_init_system_aperture_regs
_gfxhub_v2_0_init_system_aperture_regs: ; @gfxhub_v2_0_init_system_aperture_regs
	.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	x20, _GC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GC@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _mmGCMC_VM_AGP_BASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmGCMC_VM_AGP_BASE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #0
	bl	_WREG32_SOC15
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _mmGCMC_VM_AGP_TOP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmGCMC_VM_AGP_TOP@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #0
	bl	_WREG32_SOC15
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _mmGCMC_VM_AGP_BOT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmGCMC_VM_AGP_BOT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #16777215
	bl	_WREG32_SOC15
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _mmGCMC_VM_SYSTEM_APERTURE_LOW_ADDR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmGCMC_VM_SYSTEM_APERTURE_LOW_ADDR@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w8, [x19, #8]
	asr	w3, w8, #18
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _mmGCMC_VM_SYSTEM_APERTURE_HIGH_ADDR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mmGCMC_VM_SYSTEM_APERTURE_HIGH_ADDR@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w8, [x19, #12]
	asr	w3, w8, #18
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w8, [x19, #16]
	ldp	w10, w9, [x19, #4]
	sub	w8, w8, w9
	add	w8, w8, w10
	ldr	w0, [x20]
Lloh17:
	adrp	x9, _mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB@GOTPAGE
Lloh18:
	ldr	x9, [x9, _mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x9]
	asr	w3, w8, #12
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w0, [x20]
Lloh20:
	adrp	x8, _mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w0, [x20]
Lloh23:
	adrp	x8, _mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32@GOTPAGE
Lloh24:
	ldr	x8, [x8, _mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	ldr	w8, [x19]
	asr	w3, w8, #12
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w0, [x20]
Lloh26:
	adrp	x8, _mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32@GOTPAGE
Lloh27:
	ldr	x8, [x8, _mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w0, [x20]
Lloh29:
	adrp	x8, _GCVM_L2_PROTECTION_FAULT_CNTL2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GCVM_L2_PROTECTION_FAULT_CNTL2@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w4, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32_FIELD15
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.comm	_mmGCMC_VM_AGP_BASE,4,2         ; @mmGCMC_VM_AGP_BASE
	.comm	_mmGCMC_VM_AGP_TOP,4,2          ; @mmGCMC_VM_AGP_TOP
	.comm	_mmGCMC_VM_AGP_BOT,4,2          ; @mmGCMC_VM_AGP_BOT
	.comm	_mmGCMC_VM_SYSTEM_APERTURE_LOW_ADDR,4,2 ; @mmGCMC_VM_SYSTEM_APERTURE_LOW_ADDR
	.comm	_mmGCMC_VM_SYSTEM_APERTURE_HIGH_ADDR,4,2 ; @mmGCMC_VM_SYSTEM_APERTURE_HIGH_ADDR
	.comm	_mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB,4,2 ; @mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_LSB
	.comm	_mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB,4,2 ; @mmGCMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR_MSB
	.comm	_mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32,4,2 ; @mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_LO32
	.comm	_mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32,4,2 ; @mmGCVM_L2_PROTECTION_FAULT_DEFAULT_ADDR_HI32
	.comm	_GCVM_L2_PROTECTION_FAULT_CNTL2,4,2 ; @GCVM_L2_PROTECTION_FAULT_CNTL2
	.comm	_ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY,4,2 ; @ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY
	.no_dead_strip	_gfxhub_v2_0_init_system_aperture_regs
.subsections_via_symbols
