	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxllib_handle_fault            ## -- Begin function cxllib_handle_fault
	.p2align	4, 0x90
_cxllib_handle_fault:                   ## @cxllib_handle_fault
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_get_vma_info
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rax
	xorl	%ebx, %ebx
	subq	%rax, %rbx
	andq	%r14, %rbx
	addq	%r14, %r15
	cmpq	%r15, %rbx
	jae	LBB0_11
## %bb.4:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-64(%rbp), %rbx
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	-56(%rbp), %rbx
	jb	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_get_vma_info
	testl	%eax, %eax
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_cxl_handle_mm_fault
	testl	%eax, %eax
	jne	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	-48(%rbp), %rbx
	cmpq	%r15, %rbx
	jb	LBB0_5
	jmp	LBB0_11
LBB0_1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%eax, %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxllib_handle_fault            ; -- Begin function cxllib_handle_fault
	.p2align	2
_cxllib_handle_fault:                   ; @cxllib_handle_fault
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #8
	bl	_get_vma_info
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	x8, [sp, #8]
	neg	x8, x8
	and	x21, x8, x23
	add	x22, x22, x23
	cmp	x21, x22
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [sp, #16]
	cmp	x21, x8
	ccmp	x21, x9, #2, hs
	b.lo	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_get_vma_info
	cbnz	w0, LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_cxl_handle_mm_fault
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	add	x21, x8, x21
	cmp	x21, x22
	b.lo	LBB0_3
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
