	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmhub_v2_0_init                ## -- Begin function mmhub_v2_0_init
	.p2align	4, 0x90
_mmhub_v2_0_init:                       ## @mmhub_v2_0_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	_AMDGPU_MMHUB_0@GOTPCREL(%rip), %rax
	movq	_MMHUB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imulq	$56, (%rax), %rbx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%rax, 48(%r14,%rbx)
	movl	(%r15), %edi
	movq	_mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%rax, 40(%r14,%rbx)
	movl	(%r15), %edi
	movq	_mmMMVM_INVALIDATE_ENG0_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%rax, 32(%r14,%rbx)
	movl	(%r15), %edi
	movq	_mmMMVM_INVALIDATE_ENG0_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%rax, 24(%r14,%rbx)
	movl	(%r15), %edi
	movq	_mmMMVM_CONTEXT0_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%rax, 16(%r14,%rbx)
	movl	(%r15), %edi
	movq	_mmMMVM_L2_PROTECTION_FAULT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%rax, 8(%r14,%rbx)
	movl	(%r15), %edi
	movq	_mmMMVM_L2_PROTECTION_FAULT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%rax, (%r14,%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_MMHUB_0,8,3             ## @AMDGPU_MMHUB_0
	.comm	_MMHUB,4,2                      ## @MMHUB
	.comm	_mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32,4,2 ## @mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32
	.comm	_mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32,4,2 ## @mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32
	.comm	_mmMMVM_INVALIDATE_ENG0_REQ,4,2 ## @mmMMVM_INVALIDATE_ENG0_REQ
	.comm	_mmMMVM_INVALIDATE_ENG0_ACK,4,2 ## @mmMMVM_INVALIDATE_ENG0_ACK
	.comm	_mmMMVM_CONTEXT0_CNTL,4,2       ## @mmMMVM_CONTEXT0_CNTL
	.comm	_mmMMVM_L2_PROTECTION_FAULT_STATUS,4,2 ## @mmMMVM_L2_PROTECTION_FAULT_STATUS
	.comm	_mmMMVM_L2_PROTECTION_FAULT_CNTL,4,2 ## @mmMMVM_L2_PROTECTION_FAULT_CNTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmhub_v2_0_init                ; -- Begin function mmhub_v2_0_init
	.p2align	2
_mmhub_v2_0_init:                       ; @mmhub_v2_0_init
	.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
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _AMDGPU_MMHUB_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGPU_MMHUB_0@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x19, _MMHUB@GOTPAGE
Lloh4:
	ldr	x19, [x19, _MMHUB@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	w8, #56
	madd	x20, x21, x8, x20
	str	x0, [x20, #48]
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	str	x0, [x20, #40]
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _mmMMVM_INVALIDATE_ENG0_REQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmMMVM_INVALIDATE_ENG0_REQ@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	str	x0, [x20, #32]
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _mmMMVM_INVALIDATE_ENG0_ACK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mmMMVM_INVALIDATE_ENG0_ACK@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	str	x0, [x20, #24]
	ldr	w0, [x19]
Lloh17:
	adrp	x8, _mmMMVM_CONTEXT0_CNTL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mmMMVM_CONTEXT0_CNTL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	str	x0, [x20, #16]
	ldr	w0, [x19]
Lloh20:
	adrp	x8, _mmMMVM_L2_PROTECTION_FAULT_STATUS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mmMMVM_L2_PROTECTION_FAULT_STATUS@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	str	x0, [x20, #8]
	ldr	w0, [x19]
Lloh23:
	adrp	x8, _mmMMVM_L2_PROTECTION_FAULT_CNTL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _mmMMVM_L2_PROTECTION_FAULT_CNTL@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	str	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	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_MMHUB_0,8,3             ; @AMDGPU_MMHUB_0
	.comm	_MMHUB,4,2                      ; @MMHUB
	.comm	_mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32,4,2 ; @mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32
	.comm	_mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32,4,2 ; @mmMMVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32
	.comm	_mmMMVM_INVALIDATE_ENG0_REQ,4,2 ; @mmMMVM_INVALIDATE_ENG0_REQ
	.comm	_mmMMVM_INVALIDATE_ENG0_ACK,4,2 ; @mmMMVM_INVALIDATE_ENG0_ACK
	.comm	_mmMMVM_CONTEXT0_CNTL,4,2       ; @mmMMVM_CONTEXT0_CNTL
	.comm	_mmMMVM_L2_PROTECTION_FAULT_STATUS,4,2 ; @mmMMVM_L2_PROTECTION_FAULT_STATUS
	.comm	_mmMMVM_L2_PROTECTION_FAULT_CNTL,4,2 ; @mmMMVM_L2_PROTECTION_FAULT_CNTL
.subsections_via_symbols
