	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_check_faults
_gen8_check_faults:                     ## @gen8_check_faults
	.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	8(%rdi), %r14
	movl	(%rdi), %edi
	callq	_INTEL_GEN
	movl	%eax, %r15d
	cmpl	$12, %eax
	jl	LBB0_1
## %bb.2:
	movq	_GEN12_RING_FAULT_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GEN8_RING_FAULT_REG@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_GEN12_FAULT_TLB_DATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_GEN8_FAULT_TLB_DATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_GEN12_FAULT_TLB_DATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_GEN8_FAULT_TLB_DATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_intel_uncore_read
	movl	%eax, %r12d
	movq	_RING_FAULT_VALID@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.4:
	cmpl	$12, %r15d
	cmovgel	-48(%rbp), %r13d                ## 4-byte Folded Reload
	cmovgel	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_intel_uncore_read
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_intel_uncore_read
	movl	%eax, %ebx
	callq	_upper_32_bits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_lower_32_bits
	movl	%eax, %r15d
	movq	_FAULT_GTT_SEL@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	movl	%r12d, %edi
	callq	_GEN8_RING_FAULT_ENGINE_ID
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_RING_FAULT_SRCID
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_RING_FAULT_FAULT_TYPE
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movq	%rbx, %rcx
	movl	%r13d, %r8d
	movl	%r14d, %r9d
	callq	_DRM_DEBUG_DRIVER
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN12_RING_FAULT_REG,4,2       ## @GEN12_RING_FAULT_REG
	.comm	_GEN12_FAULT_TLB_DATA0,4,2      ## @GEN12_FAULT_TLB_DATA0
	.comm	_GEN12_FAULT_TLB_DATA1,4,2      ## @GEN12_FAULT_TLB_DATA1
	.comm	_GEN8_RING_FAULT_REG,4,2        ## @GEN8_RING_FAULT_REG
	.comm	_GEN8_FAULT_TLB_DATA0,4,2       ## @GEN8_FAULT_TLB_DATA0
	.comm	_GEN8_FAULT_TLB_DATA1,4,2       ## @GEN8_FAULT_TLB_DATA1
	.comm	_RING_FAULT_VALID,4,2           ## @RING_FAULT_VALID
	.comm	_FAULT_VA_HIGH_BITS,4,2         ## @FAULT_VA_HIGH_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected fault\n\tAddr: 0x%08x_%08x\n\tAddress space: %s\n\tEngine ID: %d\n\tSource ID: %d\n\tType: %d\n"

	.comm	_FAULT_GTT_SEL,4,2              ## @FAULT_GTT_SEL
L_.str.1:                               ## @.str.1
	.asciz	"GGTT"

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

	.no_dead_strip	_gen8_check_faults
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_check_faults
_gen8_check_faults:                     ; @gen8_check_faults
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x20, [x0, #8]
	ldr	w0, [x0]
	bl	_INTEL_GEN
	mov	x21, x0
Lloh0:
	adrp	x8, _GEN12_RING_FAULT_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN12_RING_FAULT_REG@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GEN8_RING_FAULT_REG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GEN8_RING_FAULT_REG@GOTPAGEOFF]
	cmp	w0, #11
	csel	x8, x8, x9, gt
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _GEN12_FAULT_TLB_DATA0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GEN12_FAULT_TLB_DATA0@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
Lloh7:
	adrp	x8, _GEN8_FAULT_TLB_DATA0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GEN8_FAULT_TLB_DATA0@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
Lloh10:
	adrp	x8, _GEN12_FAULT_TLB_DATA1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GEN12_FAULT_TLB_DATA1@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x8]
Lloh13:
	adrp	x8, _GEN8_FAULT_TLB_DATA1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GEN8_FAULT_TLB_DATA1@GOTPAGEOFF]
Lloh15:
	ldr	w25, [x8]
	mov	x0, x20
	bl	_intel_uncore_read
Lloh16:
	adrp	x8, _RING_FAULT_VALID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RING_FAULT_VALID@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	cmp	w21, #11
	csel	w21, w24, w25, gt
	csel	w1, w22, w23, gt
	mov	x0, x20
	bl	_intel_uncore_read
	mov	x0, x20
	mov	x1, x21
	bl	_intel_uncore_read
	mov	x20, x0
	bl	_upper_32_bits
	mov	x21, x0
	bl	_lower_32_bits
	mov	x22, x0
Lloh19:
	adrp	x8, _FAULT_GTT_SEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FAULT_GTT_SEL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, l_.str.1@PAGE
Lloh23:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh24:
	adrp	x10, l_.str.2@PAGE
Lloh25:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, w20
	csel	x20, x10, x9, eq
	mov	x0, x19
	bl	_GEN8_RING_FAULT_ENGINE_ID
	mov	x23, x0
	mov	x0, x19
	bl	_RING_FAULT_SRCID
	mov	x24, x0
	mov	x0, x19
	bl	_RING_FAULT_FAULT_TYPE
	mov	x6, x0
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x23
	mov	x5, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_DRM_DEBUG_DRIVER
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN12_RING_FAULT_REG,4,2       ; @GEN12_RING_FAULT_REG
	.comm	_GEN12_FAULT_TLB_DATA0,4,2      ; @GEN12_FAULT_TLB_DATA0
	.comm	_GEN12_FAULT_TLB_DATA1,4,2      ; @GEN12_FAULT_TLB_DATA1
	.comm	_GEN8_RING_FAULT_REG,4,2        ; @GEN8_RING_FAULT_REG
	.comm	_GEN8_FAULT_TLB_DATA0,4,2       ; @GEN8_FAULT_TLB_DATA0
	.comm	_GEN8_FAULT_TLB_DATA1,4,2       ; @GEN8_FAULT_TLB_DATA1
	.comm	_RING_FAULT_VALID,4,2           ; @RING_FAULT_VALID
	.comm	_FAULT_VA_HIGH_BITS,4,2         ; @FAULT_VA_HIGH_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected fault\n\tAddr: 0x%08x_%08x\n\tAddress space: %s\n\tEngine ID: %d\n\tSource ID: %d\n\tType: %d\n"

	.comm	_FAULT_GTT_SEL,4,2              ; @FAULT_GTT_SEL
l_.str.1:                               ; @.str.1
	.asciz	"GGTT"

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

	.no_dead_strip	_gen8_check_faults
.subsections_via_symbols
