	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmhub_v1_0_set_fault_enable_default ## -- Begin function mmhub_v1_0_set_fault_enable_default
	.p2align	4, 0x90
_mmhub_v1_0_set_fault_enable_default:   ## @mmhub_v1_0_set_fault_enable_default
	.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
	callq	_amdgpu_sriov_vf
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_MMHUB@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_mmVM_L2_PROTECTION_FAULT_CNTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	_VM_L2_PROTECTION_FAULT_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_RANGE_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_PDE0_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_PDE1_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_PDE2_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_TRANSLATE_FURTHER_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_NACK_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_DUMMY_PAGE_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_VALID_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_READ_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_WRITE_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_EXECUTE_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.2:
	movl	(%r12), %esi
	movq	_CRASH_ON_NO_RETRY_FAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_CRASH_ON_RETRY_FAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
LBB0_3:
	movl	(%r14), %edi
	movl	(%r15), %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	_mmVM_L2_PROTECTION_FAULT_CNTL,4,2 ## @mmVM_L2_PROTECTION_FAULT_CNTL
	.comm	_VM_L2_PROTECTION_FAULT_CNTL,4,2 ## @VM_L2_PROTECTION_FAULT_CNTL
	.comm	_RANGE_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ## @RANGE_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_PDE0_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ## @PDE0_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_PDE1_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ## @PDE1_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_PDE2_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ## @PDE2_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_TRANSLATE_FURTHER_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ## @TRANSLATE_FURTHER_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_NACK_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ## @NACK_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_DUMMY_PAGE_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ## @DUMMY_PAGE_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_VALID_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ## @VALID_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_READ_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ## @READ_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_WRITE_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ## @WRITE_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_EXECUTE_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ## @EXECUTE_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_CRASH_ON_NO_RETRY_FAULT,4,2    ## @CRASH_ON_NO_RETRY_FAULT
	.comm	_CRASH_ON_RETRY_FAULT,4,2       ## @CRASH_ON_RETRY_FAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmhub_v1_0_set_fault_enable_default ; -- Begin function mmhub_v1_0_set_fault_enable_default
	.p2align	2
_mmhub_v1_0_set_fault_enable_default:   ; @mmhub_v1_0_set_fault_enable_default
	.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
	bl	_amdgpu_sriov_vf
	cbz	x0, LBB0_2
; %bb.1:
	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
LBB0_2:
Lloh0:
	adrp	x20, _MMHUB@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MMHUB@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _mmVM_L2_PROTECTION_FAULT_CNTL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _mmVM_L2_PROTECTION_FAULT_CNTL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_RREG32_SOC15
Lloh4:
	adrp	x22, _VM_L2_PROTECTION_FAULT_CNTL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _VM_L2_PROTECTION_FAULT_CNTL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh6:
	adrp	x8, _RANGE_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RANGE_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh9:
	adrp	x8, _PDE0_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PDE0_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh12:
	adrp	x8, _PDE1_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PDE1_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh15:
	adrp	x8, _PDE2_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PDE2_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh18:
	adrp	x8, _TRANSLATE_FURTHER_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRANSLATE_FURTHER_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh21:
	adrp	x8, _NACK_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NACK_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh24:
	adrp	x8, _DUMMY_PAGE_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DUMMY_PAGE_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh27:
	adrp	x8, _VALID_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VALID_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh30:
	adrp	x8, _READ_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _READ_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh33:
	adrp	x8, _WRITE_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _WRITE_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh36:
	adrp	x8, _EXECUTE_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EXECUTE_PROTECTION_FAULT_ENABLE_DEFAULT@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_REG_SET_FIELD
	mov	x3, x0
	cbnz	w19, LBB0_4
; %bb.3:
	ldr	w1, [x22]
Lloh39:
	adrp	x8, _CRASH_ON_NO_RETRY_FAULT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CRASH_ON_NO_RETRY_FAULT@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x3
	mov	w3, #1
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh42:
	adrp	x8, _CRASH_ON_RETRY_FAULT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CRASH_ON_RETRY_FAULT@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x3, x0
LBB0_4:
	ldr	w0, [x20]
	ldr	w2, [x21]
	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	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.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
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_MMHUB,4,2                      ; @MMHUB
	.comm	_mmVM_L2_PROTECTION_FAULT_CNTL,4,2 ; @mmVM_L2_PROTECTION_FAULT_CNTL
	.comm	_VM_L2_PROTECTION_FAULT_CNTL,4,2 ; @VM_L2_PROTECTION_FAULT_CNTL
	.comm	_RANGE_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ; @RANGE_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_PDE0_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ; @PDE0_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_PDE1_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ; @PDE1_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_PDE2_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ; @PDE2_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_TRANSLATE_FURTHER_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ; @TRANSLATE_FURTHER_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_NACK_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ; @NACK_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_DUMMY_PAGE_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ; @DUMMY_PAGE_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_VALID_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ; @VALID_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_READ_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ; @READ_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_WRITE_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ; @WRITE_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_EXECUTE_PROTECTION_FAULT_ENABLE_DEFAULT,4,2 ; @EXECUTE_PROTECTION_FAULT_ENABLE_DEFAULT
	.comm	_CRASH_ON_NO_RETRY_FAULT,4,2    ; @CRASH_ON_NO_RETRY_FAULT
	.comm	_CRASH_ON_RETRY_FAULT,4,2       ; @CRASH_ON_RETRY_FAULT
.subsections_via_symbols
