	.file	"extr_linux_compat.c_linux_cdev_pager_fault.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	linux_cdev_pager_fault, @function
linux_cdev_pager_fault:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdi, QWORD PTR [rdi]
	call	linux_cdev_handle_find@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbx, rax
	setne	dil
	call	MPASS@PLT
	mov	rax, QWORD PTR 0[rbp]
	xor	edi, edi
	cmp	QWORD PTR [rbx], rax
	sete	dil
	call	MPASS@PLT
	xor	edi, edi
	cmp	QWORD PTR 24[rbx], 0
	je	.L2
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], r12
	setg	dil
.L2:
	call	likely@PLT
	mov	r8, rax
	mov	eax, DWORD PTR VM_PAGER_FAIL[rip]
	test	r8, r8
	jne	.L12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbx]
	call	IDX_TO_OFF@PLT
	mov	r14, QWORD PTR 0[r13]
	add	r12, rax
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR PG_FICTITIOUS[rip], eax
	jne	.L13
	mov	rdi, rbp
	call	VM_OBJECT_WUNLOCK@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	rdi, r12
	call	vm_page_getfake@PLT
	mov	rdi, rbp
	mov	r14, rax
	call	VM_OBJECT_WLOCK@PLT
	mov	rcx, QWORD PTR 0[r13]
	mov	rsi, rbp
	mov	rdi, r14
	mov	edx, DWORD PTR 4[rcx]
	call	vm_page_replace_checked@PLT
	mov	rdi, QWORD PTR 0[r13]
	call	vm_page_free@PLT
	mov	QWORD PTR 0[r13], r14
.L5:
	mov	rdi, r14
	call	vm_page_valid@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR VM_PAGER_OK[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edx, DWORD PTR 8[rbp]
	mov	rsi, r12
	mov	rdi, r14
	call	vm_page_updatefake@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	linux_cdev_pager_fault, .-linux_cdev_pager_fault
	.comm	VM_PAGER_OK,4,4
	.comm	VM_PAGER_FAIL,4,4
	.comm	PG_FICTITIOUS,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_linux_compat.c_linux_cdev_pager_fault.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	linux_cdev_pager_fault, %function
linux_cdev_pager_fault:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mov	r6, r1
	mov	r7, r3
	bl	linux_cdev_handle_find
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	MPASS
	ldr	r0, [r4]
	ldr	r3, [r5]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	MPASS
	ldr	r2, [r4, #12]
	cmp	r2, #0
	moveq	r0, r2
	beq	.L2
	ldr	r2, [r4, #4]
	cmp	r2, r6
	movle	r0, #0
	movgt	r0, #1
.L2:
	bl	likely
	cmp	r0, #0
	bne	.L10
	ldr	r3, .L12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r0, [r4, #8]
	bl	IDX_TO_OFF
	ldr	r4, [r7]
	ldr	r3, .L12+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	add	r6, r0, r6
	tst	r2, r3
	bne	.L11
	mov	r0, r5
	bl	VM_OBJECT_WUNLOCK
	ldr	r1, [r5, #4]
	mov	r0, r6
	bl	vm_page_getfake
	mov	r4, r0
	mov	r0, r5
	bl	VM_OBJECT_WLOCK
	ldr	r3, [r7]
	mov	r1, r5
	ldr	r2, [r3, #4]
	mov	r0, r4
	bl	vm_page_replace_checked
	ldr	r0, [r7]
	bl	vm_page_free
	str	r4, [r7]
.L5:
	mov	r0, r4
	bl	vm_page_valid
	ldr	r3, .L12+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r1, r6
	mov	r0, r4
	ldr	r2, [r5, #4]
	bl	vm_page_updatefake
	b	.L5
.L13:
	.align	2
.L12:
	.word	VM_PAGER_FAIL
	.word	PG_FICTITIOUS
	.word	VM_PAGER_OK
	.size	linux_cdev_pager_fault, .-linux_cdev_pager_fault
	.comm	VM_PAGER_OK,4,4
	.comm	VM_PAGER_FAIL,4,4
	.comm	PG_FICTITIOUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
