	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmc_v10_0_process_interrupt
_gmc_v10_0_process_interrupt:           ## @gmc_v10_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	(%rdx), %r13
	callq	_amdgpu_sriov_vf
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	movq	_AMDGPU_GFXHUB_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	4(%r12,%r13,8), %edi
	callq	_RREG32
LBB0_3:
	movl	4(%r12,%r13,8), %edi
	callq	_RREG32
	movl	%eax, %r14d
	movl	(%r12,%r13,8), %edi
	movl	$1, %esi
	movl	$-2, %edx
	callq	_WREG32_P
LBB0_4:
	xorl	%eax, %eax
	callq	_printk_ratelimit
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	12(%rbx), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_amdgpu_vm_get_task_info
	movl	(%r15), %edi
	cmpq	$0, (%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	24(%rbx), %ecx
	movl	20(%rbx), %r8d
	movl	12(%rbx), %r10d
	movl	16(%rbx), %r9d
	movl	-52(%rbp), %r11d
	movl	-56(%rbp), %r12d
	movl	-64(%rbp), %r13d
	movl	-60(%rbp), %r14d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r13
	pushq	%r14
	pushq	%r12
	pushq	%r11
	pushq	%r10
	callq	_dev_err
	addq	$48, %rsp
	movl	(%r15), %edi
	movl	8(%rbx), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_amdgpu_sriov_vf
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r15), %r14d
	movq	_GCVM_L2_PROTECTION_FAULT_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MORE_FAULTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r15), %r14d
	movl	(%r12), %esi
	movq	_WALKER_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	leaq	L_.str.6(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r15), %r14d
	movl	(%r12), %esi
	movq	_PERMISSION_FAULTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r15), %r14d
	movl	(%r12), %esi
	movq	_MAPPING_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	leaq	L_.str.8(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r15), %r14d
	movl	(%r12), %esi
	movq	_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	leaq	L_.str.9(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_GFXHUB_0,8,3            ## @AMDGPU_GFXHUB_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%s] page fault (src_id:%u ring:%u vmid:%u pasid:%u, for process %s pid %d thread %s pid %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"mmhub"

L_.str.2:                               ## @.str.2
	.asciz	"gfxhub"

L_.str.3:                               ## @.str.3
	.asciz	"  in page starting at address 0x%016llx from client %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"GCVM_L2_PROTECTION_FAULT_STATUS:0x%08X\n"

L_.str.5:                               ## @.str.5
	.asciz	"\t MORE_FAULTS: 0x%lx\n"

	.comm	_GCVM_L2_PROTECTION_FAULT_STATUS,4,2 ## @GCVM_L2_PROTECTION_FAULT_STATUS
	.comm	_MORE_FAULTS,4,2                ## @MORE_FAULTS
L_.str.6:                               ## @.str.6
	.asciz	"\t WALKER_ERROR: 0x%lx\n"

	.comm	_WALKER_ERROR,4,2               ## @WALKER_ERROR
L_.str.7:                               ## @.str.7
	.asciz	"\t PERMISSION_FAULTS: 0x%lx\n"

	.comm	_PERMISSION_FAULTS,4,2          ## @PERMISSION_FAULTS
L_.str.8:                               ## @.str.8
	.asciz	"\t MAPPING_ERROR: 0x%lx\n"

	.comm	_MAPPING_ERROR,4,2              ## @MAPPING_ERROR
L_.str.9:                               ## @.str.9
	.asciz	"\t RW: 0x%lx\n"

	.comm	_RW,4,2                         ## @RW
	.no_dead_strip	_gmc_v10_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_v10_0_process_interrupt
_gmc_v10_0_process_interrupt:           ; @gmc_v10_0_process_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x2
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	x22, [x2]
	bl	_amdgpu_sriov_vf
	cbz	w0, LBB0_2
; %bb.1:
	mov	w20, #0
	bl	_printk_ratelimit
	cbnz	x0, LBB0_5
	b	LBB0_7
LBB0_2:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _AMDGPU_GFXHUB_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMDGPU_GFXHUB_0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	add	x8, x20, x22, lsl #3
	ldr	w0, [x8, #4]
	bl	_RREG32
LBB0_4:
	add	x22, x20, x22, lsl #3
	ldr	w0, [x22, #4]
	bl	_RREG32
	mov	x20, x0
	ldr	w0, [x22]
	mov	w1, #1
	mov	w2, #-2
	bl	_WREG32_P
	bl	_printk_ratelimit
	cbz	x0, LBB0_7
LBB0_5:
	sub	x0, x29, #48
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w1, [x21, #12]
	sub	x2, x29, #48
	mov	x0, x19
	bl	_amdgpu_vm_get_task_info
	ldr	w0, [x19]
	ldr	x8, [x21]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldp	w10, w9, [x21, #20]
	ldp	w12, w11, [x21, #12]
	ldp	w14, w13, [x29, #-40]
	ldp	w16, w15, [x29, #-48]
	stp	x15, x16, [sp, #56]
	stp	x13, x14, [sp, #40]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	str	x8, [sp]
	bl	_dev_err
	ldr	w0, [x19]
	ldr	w8, [x21, #8]
	str	x8, [sp, #8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_amdgpu_sriov_vf
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x19]
	str	x20, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	ldr	w21, [x19]
Lloh13:
	adrp	x22, _GCVM_L2_PROTECTION_FAULT_STATUS@GOTPAGE
Lloh14:
	ldr	x22, [x22, _GCVM_L2_PROTECTION_FAULT_STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh15:
	adrp	x8, _MORE_FAULTS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MORE_FAULTS@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_GET_FIELD
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w21, [x19]
	ldr	w1, [x22]
Lloh20:
	adrp	x8, _WALKER_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WALKER_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_GET_FIELD
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w21, [x19]
	ldr	w1, [x22]
Lloh25:
	adrp	x8, _PERMISSION_FAULTS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PERMISSION_FAULTS@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_GET_FIELD
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w21, [x19]
	ldr	w1, [x22]
Lloh30:
	adrp	x8, _MAPPING_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MAPPING_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_GET_FIELD
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w19, [x19]
	ldr	w1, [x22]
Lloh35:
	adrp	x8, _RW@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RW@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_GET_FIELD
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh38:
	adrp	x1, l_.str.9@PAGE
Lloh39:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_GFXHUB_0,8,3            ; @AMDGPU_GFXHUB_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%s] page fault (src_id:%u ring:%u vmid:%u pasid:%u, for process %s pid %d thread %s pid %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"mmhub"

l_.str.2:                               ; @.str.2
	.asciz	"gfxhub"

l_.str.3:                               ; @.str.3
	.asciz	"  in page starting at address 0x%016llx from client %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"GCVM_L2_PROTECTION_FAULT_STATUS:0x%08X\n"

l_.str.5:                               ; @.str.5
	.asciz	"\t MORE_FAULTS: 0x%lx\n"

	.comm	_GCVM_L2_PROTECTION_FAULT_STATUS,4,2 ; @GCVM_L2_PROTECTION_FAULT_STATUS
	.comm	_MORE_FAULTS,4,2                ; @MORE_FAULTS
l_.str.6:                               ; @.str.6
	.asciz	"\t WALKER_ERROR: 0x%lx\n"

	.comm	_WALKER_ERROR,4,2               ; @WALKER_ERROR
l_.str.7:                               ; @.str.7
	.asciz	"\t PERMISSION_FAULTS: 0x%lx\n"

	.comm	_PERMISSION_FAULTS,4,2          ; @PERMISSION_FAULTS
l_.str.8:                               ; @.str.8
	.asciz	"\t MAPPING_ERROR: 0x%lx\n"

	.comm	_MAPPING_ERROR,4,2              ; @MAPPING_ERROR
l_.str.9:                               ; @.str.9
	.asciz	"\t RW: 0x%lx\n"

	.comm	_RW,4,2                         ; @RW
	.no_dead_strip	_gmc_v10_0_process_interrupt
.subsections_via_symbols
