	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cik_event_interrupt_isr
_cik_event_interrupt_isr:               ## @cik_event_interrupt_isr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %r13
	movq	(%rsi), %rax
	movq	_CIK_INTSRC_GFX_PAGE_INV_FAULT@GOTPCREL(%rip), %r12
	movq	_CIK_INTSRC_GFX_MEM_PROT_FAULT@GOTPCREL(%rip), %rsi
	cmpq	(%r12), %rax
	je	LBB0_2
## %bb.1:
	cmpq	(%rsi), %rax
	jne	LBB0_6
LBB0_2:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_CHIP_HAWAII@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_6
## %bb.3:
	movl	$1, (%rcx)
	movups	(%r14), %xmm0
	movups	%xmm0, (%r15)
	movl	8(%rbx), %edi
	callq	*(%r13)
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	movl	%eax, %esi
	callq	*8(%r13)
	movzbl	8(%r15), %ecx
	movl	%r14d, %edx
	shll	$8, %edx
	orl	%ecx, %edx
	movl	%eax, %ecx
	shll	$16, %ecx
	orl	%edx, %ecx
	movl	%ecx, 8(%r15)
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	cmpl	(%rbx), %r14d
	jb	LBB0_12
## %bb.13:
	cmpl	4(%rbx), %r14d
	setbe	%al
	jmp	LBB0_15
LBB0_6:
	movl	8(%r14), %eax
	movzbl	%ah, %ecx
	cmpl	(%rbx), %ecx
	jb	LBB0_12
## %bb.8:
	cmpl	4(%rbx), %ecx
	ja	LBB0_12
## %bb.10:
	movq	%rsi, %r15
	xorl	%edi, %edi
	cmpl	$65536, %eax                    ## imm = 0x10000
	setb	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN_ONCE
	testq	%rax, %rax
	je	LBB0_14
LBB0_12:
	xorl	%eax, %eax
LBB0_15:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	(%r14), %rax
	movq	_CIK_INTSRC_CP_END_OF_PIPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_CIK_INTSRC_SDMA_TRAP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%dl
	orb	%cl, %dl
	movq	_CIK_INTSRC_SQ_INTERRUPT_MSG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_CIK_INTSRC_CP_BAD_OPCODE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	sete	%bl
	orb	%cl, %bl
	orb	%dl, %bl
	cmpq	(%r12), %rax
	sete	%cl
	cmpq	(%r15), %rax
	sete	%al
	orb	%cl, %al
	orb	%bl, %al
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_CIK_INTSRC_GFX_PAGE_INV_FAULT,8,3 ## @CIK_INTSRC_GFX_PAGE_INV_FAULT
	.comm	_CIK_INTSRC_GFX_MEM_PROT_FAULT,8,3 ## @CIK_INTSRC_GFX_MEM_PROT_FAULT
	.comm	_CHIP_HAWAII,8,3                ## @CHIP_HAWAII
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW bug: No PASID in KFD interrupt"

	.comm	_CIK_INTSRC_CP_END_OF_PIPE,8,3  ## @CIK_INTSRC_CP_END_OF_PIPE
	.comm	_CIK_INTSRC_SDMA_TRAP,8,3       ## @CIK_INTSRC_SDMA_TRAP
	.comm	_CIK_INTSRC_SQ_INTERRUPT_MSG,8,3 ## @CIK_INTSRC_SQ_INTERRUPT_MSG
	.comm	_CIK_INTSRC_CP_BAD_OPCODE,8,3   ## @CIK_INTSRC_CP_BAD_OPCODE
	.no_dead_strip	_cik_event_interrupt_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cik_event_interrupt_isr
_cik_event_interrupt_isr:               ; @cik_event_interrupt_isr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x22, _CIK_INTSRC_GFX_PAGE_INV_FAULT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CIK_INTSRC_GFX_PAGE_INV_FAULT@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x23, _CIK_INTSRC_GFX_MEM_PROT_FAULT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CIK_INTSRC_GFX_MEM_PROT_FAULT@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _CHIP_HAWAII@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CHIP_HAWAII@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x21, x2
	ldr	x22, [x19, #24]
	mov	w8, #1
	str	w8, [x3]
	ldr	q0, [x20]
	str	q0, [x2]
	ldr	x8, [x22]
	ldr	w0, [x19, #8]
	blr	x8
	mov	x20, x0
	ldr	x8, [x22, #8]
	ldr	w0, [x19, #8]
	mov	x1, x20
	blr	x8
	ldrb	w8, [x21, #8]
	bfi	w8, w20, #8, #24
	orr	w8, w8, w0, lsl #16
	str	w8, [x21, #8]
	cbz	w0, LBB0_9
; %bb.3:
	ldr	w8, [x19]
	cmp	w20, w8
	b.lo	LBB0_8
; %bb.4:
	ldr	w8, [x19, #4]
	cmp	w20, w8
	cset	w0, ls
	b	LBB0_9
LBB0_5:
	ldr	w8, [x20, #8]
	ubfx	w9, w8, #8, #8
	ldr	w10, [x19]
	cmp	w9, w10
	b.lo	LBB0_8
; %bb.6:
	ldr	w10, [x19, #4]
	cmp	w9, w10
	b.hi	LBB0_8
; %bb.7:
	cmp	w8, #16, lsl #12                ; =65536
	cset	w0, lo
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN_ONCE
	cbz	x0, LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _CIK_INTSRC_CP_END_OF_PIPE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CIK_INTSRC_CP_END_OF_PIPE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh12:
	adrp	x9, _CIK_INTSRC_SDMA_TRAP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CIK_INTSRC_SDMA_TRAP@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _CIK_INTSRC_SQ_INTERRUPT_MSG@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CIK_INTSRC_SQ_INTERRUPT_MSG@GOTPAGEOFF]
	ccmp	x8, x9, #4, ne
Lloh17:
	ldr	x9, [x10]
	ccmp	x8, x9, #4, ne
Lloh18:
	adrp	x9, _CIK_INTSRC_CP_BAD_OPCODE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CIK_INTSRC_CP_BAD_OPCODE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	ldr	x9, [x22]
	ccmp	x8, x9, #4, ne
	ldr	x9, [x23]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	b	LBB0_9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.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	_CIK_INTSRC_GFX_PAGE_INV_FAULT,8,3 ; @CIK_INTSRC_GFX_PAGE_INV_FAULT
	.comm	_CIK_INTSRC_GFX_MEM_PROT_FAULT,8,3 ; @CIK_INTSRC_GFX_MEM_PROT_FAULT
	.comm	_CHIP_HAWAII,8,3                ; @CHIP_HAWAII
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW bug: No PASID in KFD interrupt"

	.comm	_CIK_INTSRC_CP_END_OF_PIPE,8,3  ; @CIK_INTSRC_CP_END_OF_PIPE
	.comm	_CIK_INTSRC_SDMA_TRAP,8,3       ; @CIK_INTSRC_SDMA_TRAP
	.comm	_CIK_INTSRC_SQ_INTERRUPT_MSG,8,3 ; @CIK_INTSRC_SQ_INTERRUPT_MSG
	.comm	_CIK_INTSRC_CP_BAD_OPCODE,8,3   ; @CIK_INTSRC_CP_BAD_OPCODE
	.no_dead_strip	_cik_event_interrupt_isr
.subsections_via_symbols
