	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_de_misc_irq_handler
_gen8_de_misc_irq_handler:              ## @gen8_de_misc_irq_handler
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_GEN8_DE_MISC_GSE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_intel_opregion_asle_intr
	movq	_GEN8_DE_EDP_PSR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_GEN8_DE_EDP_PSR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
LBB0_5:
	movq	_EDP_PSR_IIR@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_psr_irq_handler
	movl	(%r15), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN8_DE_MISC_GSE,4,2           ## @GEN8_DE_MISC_GSE
	.comm	_GEN8_DE_EDP_PSR,4,2            ## @GEN8_DE_EDP_PSR
	.comm	_EDP_PSR_IIR,4,2                ## @EDP_PSR_IIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected DE Misc interrupt\n"

	.no_dead_strip	_gen8_de_misc_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_de_misc_irq_handler
_gen8_de_misc_irq_handler:              ; @gen8_de_misc_irq_handler
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GEN8_DE_MISC_GSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN8_DE_MISC_GSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_intel_opregion_asle_intr
Lloh3:
	adrp	x8, _GEN8_DE_EDP_PSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN8_DE_EDP_PSR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.2:
	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_3:
Lloh6:
	adrp	x8, _GEN8_DE_EDP_PSR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GEN8_DE_EDP_PSR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
LBB0_4:
Lloh9:
	adrp	x21, _EDP_PSR_IIR@GOTPAGE
Lloh10:
	ldr	x21, [x21, _EDP_PSR_IIR@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_I915_READ
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_intel_psr_irq_handler
	ldr	w0, [x21]
	mov	x1, x20
	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	_I915_WRITE
LBB0_5:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	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	_DRM_ERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN8_DE_MISC_GSE,4,2           ; @GEN8_DE_MISC_GSE
	.comm	_GEN8_DE_EDP_PSR,4,2            ; @GEN8_DE_EDP_PSR
	.comm	_EDP_PSR_IIR,4,2                ; @EDP_PSR_IIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected DE Misc interrupt\n"

	.no_dead_strip	_gen8_de_misc_irq_handler
.subsections_via_symbols
