	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxl_handle_segment_miss
_cxl_handle_segment_miss:               ## @cxl_handle_segment_miss
	.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	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_devel
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_trace_cxl_ste_miss
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_cxl_fault_segment
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_cxl_ack_ae
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_mb
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CXL_PSL_TFC_An_R@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
LBB0_3:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CXL interrupt: Segment fault pe: %i ea: %#llx\n"

	.comm	_cxl_ops,8,3                    ## @cxl_ops
	.comm	_CXL_PSL_TFC_An_R,4,2           ## @CXL_PSL_TFC_An_R
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_cxl_handle_segment_miss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxl_handle_segment_miss
_cxl_handle_segment_miss:               ; @cxl_handle_segment_miss
	.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, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_devel
	mov	x0, x19
	mov	x1, x20
	bl	_trace_cxl_ste_miss
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_cxl_fault_segment
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_cxl_ack_ae
	b	LBB0_3
LBB0_2:
	bl	_mb
Lloh2:
	adrp	x8, _cxl_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cxl_ops@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _CXL_PSL_TFC_An_R@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CXL_PSL_TFC_An_R@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #0
	blr	x8
LBB0_3:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CXL interrupt: Segment fault pe: %i ea: %#llx\n"

	.comm	_cxl_ops,8,3                    ; @cxl_ops
	.comm	_CXL_PSL_TFC_An_R,4,2           ; @CXL_PSL_TFC_An_R
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_cxl_handle_segment_miss
.subsections_via_symbols
