	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function event_interrupt_isr_v9
_event_interrupt_isr_v9:                ## @event_interrupt_isr_v9
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_SOC15_VMID_FROM_IH_ENTRY
	xorl	%r15d, %r15d
	cmpq	32(%r13), %rax
	jl	LBB0_9
## %bb.1:
	movq	%rax, %r12
	cmpq	40(%r13), %rax
	jg	LBB0_9
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_SOC15_SOURCE_ID_FROM_IH_ENTRY
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_SOC15_CLIENT_ID_FROM_IH_ENTRY
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_SOC15_PASID_FROM_IH_ENTRY
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movq	_KFD_SCHED_POLICY_NO_HWS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	16(%r13), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	8(%r13), %rax
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	*(%rax)
	movq	%rax, %r13
	movq	24(%r14), %rdi
	callq	_le32_to_cpu
	andq	$-65536, %rax                   ## imm = 0xFFFF0000
	movq	%r13, %rdi
	orq	%rax, %rdi
	callq	_cpu_to_le32
	movq	%rax, 24(%r14)
	movq	%r13, %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movq	%r15, %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_7:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	xorl	%r15d, %r15d
	movq	%r14, %r13
	movq	%r14, %rsi
	movq	%rdx, %r14
	movq	%r12, %rcx
	movq	%rax, %r8
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_pr_debug
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rcx
	movq	24(%rbx), %r8
	movq	32(%rbx), %r9
	movups	40(%rbx), %xmm0
	movq	56(%rbx), %rax
	movq	%rax, 16(%rsp)
	movups	%xmm0, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	leaq	L_.str.2(%rip), %rsi
	callq	_WARN_ONCE
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	_SOC15_INTSRC_CP_END_OF_PIPE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	sete	%al
	movq	_SOC15_INTSRC_SDMA_TRAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	sete	%cl
	orb	%al, %cl
	movq	_SOC15_INTSRC_SQ_INTERRUPT_MSG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	sete	%al
	movq	_SOC15_INTSRC_CP_BAD_OPCODE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r14
	sete	%dl
	orb	%al, %dl
	orb	%cl, %dl
	movq	_SOC15_IH_CLIENTID_VMC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	sete	%al
	movq	_SOC15_IH_CLIENTID_VMC1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	sete	%cl
	orb	%al, %cl
	movq	_SOC15_IH_CLIENTID_UTCL2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	sete	%al
	orb	%cl, %al
	orb	%dl, %al
	movzbl	%al, %r15d
	andl	$1, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KFD_SCHED_POLICY_NO_HWS,8,3    ## @KFD_SCHED_POLICY_NO_HWS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"client id 0x%x, source id %d, vmid %d, pasid 0x%x. raw data:\n"

L_.str.1:                               ## @.str.1
	.asciz	"%8X, %8X, %8X, %8X, %8X, %8X, %8X, %8X.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Bug: No PASID in KFD interrupt"

	.comm	_SOC15_INTSRC_CP_END_OF_PIPE,8,3 ## @SOC15_INTSRC_CP_END_OF_PIPE
	.comm	_SOC15_INTSRC_SDMA_TRAP,8,3     ## @SOC15_INTSRC_SDMA_TRAP
	.comm	_SOC15_INTSRC_SQ_INTERRUPT_MSG,8,3 ## @SOC15_INTSRC_SQ_INTERRUPT_MSG
	.comm	_SOC15_INTSRC_CP_BAD_OPCODE,8,3 ## @SOC15_INTSRC_CP_BAD_OPCODE
	.comm	_SOC15_IH_CLIENTID_VMC,8,3      ## @SOC15_IH_CLIENTID_VMC
	.comm	_SOC15_IH_CLIENTID_VMC1,8,3     ## @SOC15_IH_CLIENTID_VMC1
	.comm	_SOC15_IH_CLIENTID_UTCL2,8,3    ## @SOC15_IH_CLIENTID_UTCL2
	.no_dead_strip	_event_interrupt_isr_v9
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function event_interrupt_isr_v9
_event_interrupt_isr_v9:                ; @event_interrupt_isr_v9
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x26, x3
	mov	x23, x2
	mov	x21, x1
	mov	x24, x0
	mov	x0, x1
	bl	_SOC15_VMID_FROM_IH_ENTRY
	ldr	x8, [x24, #32]
	cmp	x0, x8
	b.lt	LBB0_7
; %bb.1:
	mov	x22, x0
	ldr	x8, [x24, #40]
	cmp	x0, x8
	b.gt	LBB0_7
; %bb.2:
	mov	x0, x21
	bl	_SOC15_SOURCE_ID_FROM_IH_ENTRY
	mov	x20, x0
	mov	x0, x21
	bl	_SOC15_CLIENT_ID_FROM_IH_ENTRY
	mov	x19, x0
	mov	x0, x21
	bl	_SOC15_PASID_FROM_IH_ENTRY
	mov	x25, x0
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x24, #24]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _KFD_SCHED_POLICY_NO_HWS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KFD_SCHED_POLICY_NO_HWS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x26]
	ldr	x8, [x24, #16]
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x21
	bl	_memcpy
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
	ldr	w0, [x24]
	mov	x1, x22
	blr	x8
	mov	x25, x0
	ldr	x0, [x23, #24]
	bl	_le32_to_cpu
	and	x8, x0, #0xffffffffffff0000
	orr	x0, x8, x25
	bl	_cpu_to_le32
	str	x0, [x23, #24]
	b	LBB0_6
LBB0_5:
	mov	x25, #0
LBB0_6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	mov	x4, x25
	bl	_pr_debug
	ldp	x1, x2, [x21]
	ldp	x3, x4, [x21, #16]
	ldr	q0, [x21, #32]
	ldp	x8, x9, [x21, #48]
	stp	x8, x9, [sp, #16]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	str	q0, [sp]
	bl	_pr_debug
	cmp	x25, #0
	cset	w0, eq
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_WARN_ONCE
	cbz	x0, LBB0_9
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
Lloh9:
	adrp	x8, _SOC15_INTSRC_CP_END_OF_PIPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOC15_INTSRC_CP_END_OF_PIPE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _SOC15_INTSRC_SDMA_TRAP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SOC15_INTSRC_SDMA_TRAP@GOTPAGEOFF]
	cmp	x20, x8
Lloh14:
	ldr	x8, [x9]
	ccmp	x20, x8, #4, ne
Lloh15:
	adrp	x8, _SOC15_INTSRC_SQ_INTERRUPT_MSG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SOC15_INTSRC_SQ_INTERRUPT_MSG@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ccmp	x20, x8, #4, ne
Lloh18:
	adrp	x8, _SOC15_INTSRC_CP_BAD_OPCODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SOC15_INTSRC_CP_BAD_OPCODE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _SOC15_IH_CLIENTID_VMC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SOC15_IH_CLIENTID_VMC@GOTPAGEOFF]
	ccmp	x20, x8, #4, ne
Lloh23:
	ldr	x8, [x9]
	ccmp	x19, x8, #4, ne
Lloh24:
	adrp	x8, _SOC15_IH_CLIENTID_VMC1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SOC15_IH_CLIENTID_VMC1@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ccmp	x19, x8, #4, ne
Lloh27:
	adrp	x8, _SOC15_IH_CLIENTID_UTCL2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SOC15_IH_CLIENTID_UTCL2@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ccmp	x19, x8, #4, ne
	cset	w0, eq
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_KFD_SCHED_POLICY_NO_HWS,8,3    ; @KFD_SCHED_POLICY_NO_HWS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"client id 0x%x, source id %d, vmid %d, pasid 0x%x. raw data:\n"

l_.str.1:                               ; @.str.1
	.asciz	"%8X, %8X, %8X, %8X, %8X, %8X, %8X, %8X.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Bug: No PASID in KFD interrupt"

	.comm	_SOC15_INTSRC_CP_END_OF_PIPE,8,3 ; @SOC15_INTSRC_CP_END_OF_PIPE
	.comm	_SOC15_INTSRC_SDMA_TRAP,8,3     ; @SOC15_INTSRC_SDMA_TRAP
	.comm	_SOC15_INTSRC_SQ_INTERRUPT_MSG,8,3 ; @SOC15_INTSRC_SQ_INTERRUPT_MSG
	.comm	_SOC15_INTSRC_CP_BAD_OPCODE,8,3 ; @SOC15_INTSRC_CP_BAD_OPCODE
	.comm	_SOC15_IH_CLIENTID_VMC,8,3      ; @SOC15_IH_CLIENTID_VMC
	.comm	_SOC15_IH_CLIENTID_VMC1,8,3     ; @SOC15_IH_CLIENTID_VMC1
	.comm	_SOC15_IH_CLIENTID_UTCL2,8,3    ; @SOC15_IH_CLIENTID_UTCL2
	.no_dead_strip	_event_interrupt_isr_v9
.subsections_via_symbols
