	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_irq_psl9                   ## -- Begin function cxl_irq_psl9
	.p2align	4, 0x90
_cxl_irq_psl9:                          ## @cxl_irq_psl9
	.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
	movl	%edi, %ebx
	movl	(%rdx), %r13d
	movl	4(%rdx), %r12d
	movq	%rsi, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_trace_cxl_psl9_irq
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_pr_devel
	movq	_CXL_PSL9_DSISR_An_TF@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_1
## %bb.11:
	movl	16(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_devel
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_cxl_fault             ## TAILCALL
LBB0_1:
	movq	_CXL_PSL9_DSISR_An_PE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_2
## %bb.12:
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	12(%r15), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_2:
	movq	_CXL_PSL9_DSISR_An_AE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_7
## %bb.3:
	movl	8(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_devel
	cmpl	$0, (%r14)
	je	LBB0_5
## %bb.4:
	movq	24(%r14), %rdi
	movl	16(%r14), %edx
	movl	8(%r15), %ecx
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err_ratelimited
	jmp	LBB0_6
LBB0_7:
	movq	_CXL_PSL9_DSISR_An_OC@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_devel
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	jmp	LBB0_10
LBB0_5:
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movl	8(%r15), %eax
	movl	%eax, 12(%r14)
	movl	$1, (%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock
	leaq	4(%r14), %rdi
	callq	_wake_up_all
LBB0_6:
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CXL_PSL_TFC_An_A@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CXL interrupt %i for afu pe: %i DSISR: %#llx DAR: %#llx\n"

	.comm	_CXL_PSL9_DSISR_An_TF,4,2       ## @CXL_PSL9_DSISR_An_TF
L_.str.1:                               ## @.str.1
	.asciz	"CXL interrupt: Scheduling translation fault handling for later (pe: %i)\n"

	.comm	_CXL_PSL9_DSISR_An_PE,4,2       ## @CXL_PSL9_DSISR_An_PE
	.comm	_cxl_ops,8,3                    ## @cxl_ops
	.comm	_CXL_PSL9_DSISR_An_AE,4,2       ## @CXL_PSL9_DSISR_An_AE
L_.str.2:                               ## @.str.2
	.asciz	"CXL interrupt: AFU Error 0x%016llx\n"

L_.str.3:                               ## @.str.3
	.asciz	"CXL AFU Error undelivered to pe %i: 0x%016llx\n"

	.comm	_CXL_PSL_TFC_An_A,4,2           ## @CXL_PSL_TFC_An_A
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_CXL_PSL9_DSISR_An_OC,4,2       ## @CXL_PSL9_DSISR_An_OC
L_.str.4:                               ## @.str.4
	.asciz	"CXL interrupt: OS Context Warning\n"

L_.str.5:                               ## @.str.5
	.asciz	"Unhandled CXL PSL IRQ\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_irq_psl9                   ; -- Begin function cxl_irq_psl9
	.p2align	2
_cxl_irq_psl9:                          ; @cxl_irq_psl9
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x19, x1
	mov	x23, x0
	ldp	w21, w22, [x2]
	mov	x0, x1
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_trace_cxl_psl9_irq
	ldr	w8, [x19, #16]
	stp	x21, x22, [sp, #16]
	stp	x23, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_devel
Lloh2:
	adrp	x8, _CXL_PSL9_DSISR_An_TF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CXL_PSL9_DSISR_An_TF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_devel
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_schedule_cxl_fault
LBB0_2:
Lloh7:
	adrp	x8, _CXL_PSL9_DSISR_An_PE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CXL_PSL9_DSISR_An_PE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _cxl_ops@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cxl_ops@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x3, [x8, #8]
	ldr	w2, [x20, #12]
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	br	x3
LBB0_4:
Lloh13:
	adrp	x8, _CXL_PSL9_DSISR_An_AE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CXL_PSL9_DSISR_An_AE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_devel
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.6:
	ldr	x0, [x19, #24]
	ldr	w2, [x19, #16]
	ldr	w3, [x20, #8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err_ratelimited
	b	LBB0_11
LBB0_7:
Lloh20:
	adrp	x8, _CXL_PSL9_DSISR_An_OC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CXL_PSL9_DSISR_An_OC@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_devel
LBB0_9:
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_WARN
	b	LBB0_12
LBB0_10:
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x20, #8]
	str	w8, [x19, #12]
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x21
	bl	_spin_unlock
	add	x0, x19, #4
	bl	_wake_up_all
LBB0_11:
Lloh27:
	adrp	x8, _cxl_ops@GOTPAGE
Lloh28:
	ldr	x8, [x8, _cxl_ops@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _CXL_PSL_TFC_An_A@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CXL_PSL_TFC_An_A@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #0
	blr	x8
LBB0_12:
Lloh33:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CXL interrupt %i for afu pe: %i DSISR: %#llx DAR: %#llx\n"

	.comm	_CXL_PSL9_DSISR_An_TF,4,2       ; @CXL_PSL9_DSISR_An_TF
l_.str.1:                               ; @.str.1
	.asciz	"CXL interrupt: Scheduling translation fault handling for later (pe: %i)\n"

	.comm	_CXL_PSL9_DSISR_An_PE,4,2       ; @CXL_PSL9_DSISR_An_PE
	.comm	_cxl_ops,8,3                    ; @cxl_ops
	.comm	_CXL_PSL9_DSISR_An_AE,4,2       ; @CXL_PSL9_DSISR_An_AE
l_.str.2:                               ; @.str.2
	.asciz	"CXL interrupt: AFU Error 0x%016llx\n"

l_.str.3:                               ; @.str.3
	.asciz	"CXL AFU Error undelivered to pe %i: 0x%016llx\n"

	.comm	_CXL_PSL_TFC_An_A,4,2           ; @CXL_PSL_TFC_An_A
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_CXL_PSL9_DSISR_An_OC,4,2       ; @CXL_PSL9_DSISR_An_OC
l_.str.4:                               ; @.str.4
	.asciz	"CXL interrupt: OS Context Warning\n"

l_.str.5:                               ; @.str.5
	.asciz	"Unhandled CXL PSL IRQ\n"

.subsections_via_symbols
