	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmc_v6_0_process_interrupt
_gmc_v6_0_process_interrupt:            ## @gmc_v6_0_process_interrupt
	.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
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	_mmVM_CONTEXT1_PROTECTION_FAULT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r15d
	movq	_mmVM_CONTEXT1_PROTECTION_FAULT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_mmVM_CONTEXT1_CNTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	movl	$-2, %edx
	callq	_WREG32_P
	movl	%r15d, %eax
	orl	%ebx, %eax
	je	LBB0_5
## %bb.1:
	movq	_amdgpu_vm_fault_stop@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_AMDGPU_VM_FAULT_STOP_FIRST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gmc_v6_0_set_fault_enable_default
LBB0_3:
	xorl	%eax, %eax
	callq	_printk_ratelimit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	movl	8(%r12), %edx
	movq	(%r12), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_gmc_v6_0_vm_decode_fault
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmVM_CONTEXT1_PROTECTION_FAULT_ADDR,4,2 ## @mmVM_CONTEXT1_PROTECTION_FAULT_ADDR
	.comm	_mmVM_CONTEXT1_PROTECTION_FAULT_STATUS,4,2 ## @mmVM_CONTEXT1_PROTECTION_FAULT_STATUS
	.comm	_mmVM_CONTEXT1_CNTL2,4,2        ## @mmVM_CONTEXT1_CNTL2
	.comm	_amdgpu_vm_fault_stop,8,3       ## @amdgpu_vm_fault_stop
	.comm	_AMDGPU_VM_FAULT_STOP_FIRST,8,3 ## @AMDGPU_VM_FAULT_STOP_FIRST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPU fault detected: %d 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"  VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x%08X\n"

L_.str.2:                               ## @.str.2
	.asciz	"  VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x%08X\n"

	.no_dead_strip	_gmc_v6_0_process_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmc_v6_0_process_interrupt
_gmc_v6_0_process_interrupt:            ; @gmc_v6_0_process_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _mmVM_CONTEXT1_PROTECTION_FAULT_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmVM_CONTEXT1_PROTECTION_FAULT_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x20, x0
Lloh3:
	adrp	x8, _mmVM_CONTEXT1_PROTECTION_FAULT_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmVM_CONTEXT1_PROTECTION_FAULT_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x21, x0
Lloh6:
	adrp	x8, _mmVM_CONTEXT1_CNTL2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mmVM_CONTEXT1_CNTL2@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #1
	mov	w2, #-2
	bl	_WREG32_P
	orr	w8, w20, w21
	cbz	w8, LBB0_5
; %bb.1:
Lloh9:
	adrp	x8, _amdgpu_vm_fault_stop@GOTPAGE
Lloh10:
	ldr	x8, [x8, _amdgpu_vm_fault_stop@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _AMDGPU_VM_FAULT_STOP_FIRST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AMDGPU_VM_FAULT_STOP_FIRST@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_gmc_v6_0_set_fault_enable_default
LBB0_3:
	bl	_printk_ratelimit
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	ldr	w2, [x22, #8]
	ldr	x8, [x22]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	bl	_gmc_v6_0_vm_decode_fault
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mmVM_CONTEXT1_PROTECTION_FAULT_ADDR,4,2 ; @mmVM_CONTEXT1_PROTECTION_FAULT_ADDR
	.comm	_mmVM_CONTEXT1_PROTECTION_FAULT_STATUS,4,2 ; @mmVM_CONTEXT1_PROTECTION_FAULT_STATUS
	.comm	_mmVM_CONTEXT1_CNTL2,4,2        ; @mmVM_CONTEXT1_CNTL2
	.comm	_amdgpu_vm_fault_stop,8,3       ; @amdgpu_vm_fault_stop
	.comm	_AMDGPU_VM_FAULT_STOP_FIRST,8,3 ; @AMDGPU_VM_FAULT_STOP_FIRST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPU fault detected: %d 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"  VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x%08X\n"

l_.str.2:                               ; @.str.2
	.asciz	"  VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x%08X\n"

	.no_dead_strip	_gmc_v6_0_process_interrupt
.subsections_via_symbols
