	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmhub_v9_4_init_gart_aperture_regs
_mmhub_v9_4_init_gart_aperture_regs:    ## @mmhub_v9_4_init_gart_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_amdgpu_gmc_pd_addr
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_mmhub_v9_4_setup_vm_pt_regs
	movq	_MMHUB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_LO32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MMHUB_INSTANCE_REGISTER_OFFSET@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	imull	%ebx, %ecx
	movl	(%r14), %r8d
	sarl	$12, %r8d
	xorl	%esi, %esi
	callq	_WREG32_SOC15_OFFSET
	movl	(%r15), %edi
	movq	_mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_HI32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	imull	%ebx, %ecx
	xorl	%esi, %esi
	callq	_WREG32_SOC15_OFFSET
	movl	(%r15), %edi
	movq	_mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_LO32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	imull	%ebx, %ecx
	movl	4(%r14), %r8d
	sarl	$12, %r8d
	xorl	%esi, %esi
	callq	_WREG32_SOC15_OFFSET
	movl	(%r15), %edi
	movq	_mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_HI32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	imull	(%r12), %ebx
	xorl	%esi, %esi
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_SOC15_OFFSET            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMHUB,4,2                      ## @MMHUB
	.comm	_mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_LO32,4,2 ## @mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_LO32
	.comm	_MMHUB_INSTANCE_REGISTER_OFFSET,4,2 ## @MMHUB_INSTANCE_REGISTER_OFFSET
	.comm	_mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_HI32,4,2 ## @mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_HI32
	.comm	_mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_LO32,4,2 ## @mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_LO32
	.comm	_mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_HI32,4,2 ## @mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_HI32
	.no_dead_strip	_mmhub_v9_4_init_gart_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_gart_aperture_regs
_mmhub_v9_4_init_gart_aperture_regs:    ; @mmhub_v9_4_init_gart_aperture_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, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_amdgpu_gmc_pd_addr
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_mmhub_v9_4_setup_vm_pt_regs
Lloh0:
	adrp	x21, _MMHUB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MMHUB@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_LO32@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_LO32@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x22, _MMHUB_INSTANCE_REGISTER_OFFSET@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MMHUB_INSTANCE_REGISTER_OFFSET@GOTPAGEOFF]
	ldr	w8, [x22]
	mul	w3, w8, w19
	ldr	w8, [x20]
	asr	w4, w8, #12
	mov	w1, #0
	bl	_WREG32_SOC15_OFFSET
	ldr	w0, [x21]
Lloh7:
	adrp	x8, _mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_HI32@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_HI32@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	w8, [x22]
	mul	w3, w8, w19
	mov	w1, #0
	bl	_WREG32_SOC15_OFFSET
Lloh10:
	adrp	x8, _mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_LO32@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_LO32@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh12:
	ldr	w2, [x8]
	ldr	w8, [x22]
	mul	w3, w8, w19
	ldr	w8, [x20, #4]
	asr	w4, w8, #12
	mov	w1, #0
	bl	_WREG32_SOC15_OFFSET
	ldr	w0, [x21]
Lloh13:
	adrp	x8, _mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_HI32@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_HI32@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w8, [x22]
	mul	w3, w8, w19
	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_OFFSET
	.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	_mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_LO32,4,2 ; @mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_LO32
	.comm	_MMHUB_INSTANCE_REGISTER_OFFSET,4,2 ; @MMHUB_INSTANCE_REGISTER_OFFSET
	.comm	_mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_HI32,4,2 ; @mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_START_ADDR_HI32
	.comm	_mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_LO32,4,2 ; @mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_LO32
	.comm	_mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_HI32,4,2 ; @mmVML2VC0_VM_CONTEXT0_PAGE_TABLE_END_ADDR_HI32
	.no_dead_strip	_mmhub_v9_4_init_gart_aperture_regs
.subsections_via_symbols
