	.file	"extr_cxllib.c_cxllib_handle_fault.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cxllib_handle_fault
	.type	cxllib_handle_fault, @function
cxllib_handle_fault:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 8[rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L6
	lea	r14, 48[rsp]
	lea	r13, 40[rsp]
	mov	r12, rcx
	mov	rbx, rdi
	lea	r15, 32[rsp]
	mov	r8, r14
	mov	rcx, r13
	mov	QWORD PTR 24[rsp], rsi
	mov	rdx, r15
	call	get_vma_info@PLT
	mov	DWORD PTR 20[rsp], eax
	test	eax, eax
	jne	.L1
	mov	r9, QWORD PTR 48[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	neg	r9
	and	r9, rsi
	add	rsi, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[rsp], rsi
	mov	rbp, r9
	cmp	r9, rsi
	jb	.L4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	add	rbp, QWORD PTR 48[rsp]
	cmp	rbp, QWORD PTR 8[rsp]
	jnb	.L1
.L4:
	cmp	QWORD PTR 32[rsp], rbp
	ja	.L5
	cmp	QWORD PTR 40[rsp], rbp
	ja	.L8
.L5:
	mov	r8, r14
	mov	rcx, r13
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, rbx
	call	get_vma_info@PLT
	test	eax, eax
	jne	.L17
.L8:
	mov	rdx, rbp
	mov	rsi, r12
	mov	rdi, rbx
	call	cxl_handle_mm_fault@PLT
	test	eax, eax
	je	.L14
.L6:
	mov	eax, DWORD PTR EFAULT[rip]
	neg	eax
	mov	DWORD PTR 20[rsp], eax
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	mov	eax, DWORD PTR 20[rsp]
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	DWORD PTR 20[rsp], eax
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cxllib_handle_fault, .-cxllib_handle_fault
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cxllib.c_cxllib_handle_fault.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cxllib_handle_fault
	.syntax unified
	.arm
	.fpu softvfp
	.type	cxllib_handle_fault, %function
cxllib_handle_fault:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r3
	ldr	r3, .L19
	sub	sp, sp, #28
	subs	r5, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L6
	add	r9, sp, #16
	mov	r6, r2
	add	r3, sp, #12
	add	r2, sp, #8
	str	r9, [sp]
	mov	r4, r1
	bl	get_vma_info
	subs	r8, r0, #0
	bne	.L1
	ldr	r1, [sp, #16]
	add	r6, r4, r6
	rsb	r1, r1, #0
	and	r4, r4, r1
	cmp	r4, r6
	bcc	.L4
	b	.L1
.L14:
	ldr	r3, [sp, #16]
	add	r4, r4, r3
	cmp	r4, r6
	bcs	.L1
.L4:
	ldr	r3, [sp, #8]
	cmp	r3, r4
	bhi	.L5
	ldr	r3, [sp, #12]
	cmp	r3, r4
	bhi	.L8
.L5:
	mov	r1, r4
	mov	r0, r5
	str	r9, [sp]
	add	r3, sp, #12
	add	r2, sp, #8
	bl	get_vma_info
	cmp	r0, #0
	bne	.L17
.L8:
	mov	r2, r4
	mov	r1, r7
	mov	r0, r5
	bl	cxl_handle_mm_fault
	cmp	r0, #0
	beq	.L14
.L6:
	ldr	r3, .L19+4
	ldr	r8, [r3]
	rsb	r8, r8, #0
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r8
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L17:
	mov	r8, r0
	b	.L1
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	EFAULT
	.size	cxllib_handle_fault, .-cxllib_handle_fault
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
