	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen6_rps_irq_handler           ## -- Begin function gen6_rps_irq_handler
	.p2align	4, 0x90
_gen6_rps_irq_handler:                  ## @gen6_rps_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, %r14d
	movq	%rdi, %rbx
	testl	%esi, (%rdi)
	je	LBB0_4
## %bb.1:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	(%rbx), %esi
	andl	%r14d, %esi
	movq	%r15, %rdi
	callq	_gen6_gt_pm_mask_irq
	cmpq	$0, 32(%rbx)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %eax
	andl	%r14d, %eax
	orl	%eax, 24(%rbx)
	leaq	28(%rbx), %rdi
	callq	_schedule_work
LBB0_3:
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_4:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$7, %eax
	jg	LBB0_8
## %bb.5:
	movq	_PM_VEBOX_USER_INTERRUPT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	movq	_VECS0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_intel_engine_breadcrumbs_irq
LBB0_7:
	movq	_PM_VEBOX_CS_ERROR_INTERRUPT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.9:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG                      ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM_VEBOX_USER_INTERRUPT,4,2    ## @PM_VEBOX_USER_INTERRUPT
	.comm	_VECS0,8,3                      ## @VECS0
	.comm	_PM_VEBOX_CS_ERROR_INTERRUPT,4,2 ## @PM_VEBOX_CS_ERROR_INTERRUPT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Command parser error, pm_iir 0x%08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen6_rps_irq_handler           ; -- Begin function gen6_rps_irq_handler
	.p2align	2
_gen6_rps_irq_handler:                  ; @gen6_rps_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	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	tst	w8, w1
	b.eq	LBB0_4
; %bb.1:
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x20]
	and	w1, w8, w19
	mov	x0, x21
	bl	_gen6_gt_pm_mask_irq
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x20]
	and	w8, w8, w19
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
	add	x0, x20, #28
	bl	_schedule_work
LBB0_3:
	mov	x0, x21
	bl	_spin_unlock
LBB0_4:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #7
	b.gt	LBB0_9
; %bb.5:
Lloh0:
	adrp	x8, _PM_VEBOX_USER_INTERRUPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM_VEBOX_USER_INTERRUPT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _VECS0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VECS0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_intel_engine_breadcrumbs_irq
LBB0_7:
Lloh6:
	adrp	x8, _PM_VEBOX_CS_ERROR_INTERRUPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PM_VEBOX_CS_ERROR_INTERRUPT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_9
; %bb.8:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	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_DEBUG
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PM_VEBOX_USER_INTERRUPT,4,2    ; @PM_VEBOX_USER_INTERRUPT
	.comm	_VECS0,8,3                      ; @VECS0
	.comm	_PM_VEBOX_CS_ERROR_INTERRUPT,4,2 ; @PM_VEBOX_CS_ERROR_INTERRUPT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Command parser error, pm_iir 0x%08x\n"

.subsections_via_symbols
