	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_emit_irq
_i915_emit_irq:                         ## @i915_emit_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movq	(%rax), %rax
	movq	(%rax), %rbx
	callq	_i915_kernel_lost_context
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movl	(%r14), %eax
	leal	1(%rax), %ecx
	cmpl	$-1, %eax
	movl	$1, %eax
	cmovgel	%ecx, %eax
	movl	%eax, (%r14)
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movl	%eax, (%rcx)
LBB0_2:
	movl	$4, %edi
	callq	_BEGIN_LP_RING
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_MI_STORE_DWORD_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OUT_RING
	movq	_I915_BREADCRUMB_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MI_STORE_DWORD_INDEX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	callq	_OUT_RING
	movl	(%r14), %edi
	callq	_OUT_RING
	movq	_MI_USER_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_LP_RING
LBB0_4:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_MI_STORE_DWORD_INDEX,4,2       ## @MI_STORE_DWORD_INDEX
	.comm	_I915_BREADCRUMB_INDEX,4,2      ## @I915_BREADCRUMB_INDEX
	.comm	_MI_STORE_DWORD_INDEX_SHIFT,4,2 ## @MI_STORE_DWORD_INDEX_SHIFT
	.comm	_MI_USER_INTERRUPT,4,2          ## @MI_USER_INTERRUPT
	.no_dead_strip	_i915_emit_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_emit_irq
_i915_emit_irq:                         ; @i915_emit_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x8, x19, [x0]
	ldr	x8, [x8]
	ldr	x20, [x8]
	bl	_i915_kernel_lost_context
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w8, [x19]
	cmn	w8, #1
	mov	w9, #1
	csinc	w8, w9, w8, lt
	str	w8, [x19]
	ldr	x9, [x20]
	cbz	x9, LBB0_2
; %bb.1:
	str	w8, [x9]
LBB0_2:
	mov	w0, #4
	bl	_BEGIN_LP_RING
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _MI_STORE_DWORD_INDEX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MI_STORE_DWORD_INDEX@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_OUT_RING
Lloh5:
	adrp	x8, _I915_BREADCRUMB_INDEX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I915_BREADCRUMB_INDEX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MI_STORE_DWORD_INDEX_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MI_STORE_DWORD_INDEX_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	bl	_OUT_RING
	ldr	w0, [x19]
	bl	_OUT_RING
Lloh11:
	adrp	x8, _MI_USER_INTERRUPT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MI_USER_INTERRUPT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_OUT_RING
	bl	_ADVANCE_LP_RING
LBB0_4:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_MI_STORE_DWORD_INDEX,4,2       ; @MI_STORE_DWORD_INDEX
	.comm	_I915_BREADCRUMB_INDEX,4,2      ; @I915_BREADCRUMB_INDEX
	.comm	_MI_STORE_DWORD_INDEX_SHIFT,4,2 ; @MI_STORE_DWORD_INDEX_SHIFT
	.comm	_MI_USER_INTERRUPT,4,2          ; @MI_USER_INTERRUPT
	.no_dead_strip	_i915_emit_irq
.subsections_via_symbols
