	.file	"extr_vm_user.c_vm_read_list.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vm_read_list
	.type	vm_read_list, @function
vm_read_list:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR VM_MAP_NULL[rip], rdi
	je	.L2
	cmp	QWORD PTR VM_MAP_ENTRY_MAX[rip], rdx
	jl	.L2
	mov	r12, QWORD PTR KERN_SUCCESS[rip]
	test	rdx, rdx
	jle	.L1
	sal	rdx, 4
	mov	r14, rdi
	lea	r13, 12[rsp]
	mov	rbx, rsi
	lea	rbp, [rsi+rdx]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	QWORD PTR 8[rbx], 0
	mov	QWORD PTR [rbx], 0
.L7:
	add	rbx, 16
	cmp	rbx, rbp
	je	.L1
.L8:
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	QWORD PTR 16[rsp], rsi
	test	rdx, rdx
	je	.L5
	mov	ecx, DWORD PTR FALSE[rip]
	mov	r8, r13
	mov	rdi, r14
	call	vm_map_copyin@PLT
	cmp	QWORD PTR KERN_SUCCESS[rip], rax
	mov	r12, rax
	jne	.L5
	xor	eax, eax
	mov	r12d, DWORD PTR 12[rsp]
	call	current_task@PLT
	lea	rsi, 16[rsp]
	mov	edi, DWORD PTR [rax]
	mov	edx, r12d
	call	vm_map_copyout@PLT
	cmp	QWORD PTR KERN_SUCCESS[rip], rax
	mov	r12, rax
	je	.L16
	mov	edi, DWORD PTR 12[rsp]
	call	vm_map_copy_discard@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12, QWORD PTR KERN_INVALID_ARGUMENT[rip]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.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
.L16:
	.cfi_restore_state
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR vm_offset_t[rip]
	call	CAST_DOWN@PLT
	mov	QWORD PTR 8[rbx], rax
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vm_read_list, .-vm_read_list
	.comm	vm_offset_t,4,4
	.comm	VM_MAP_NULL,8,8
	.comm	VM_MAP_ENTRY_MAX,8,8
	.comm	KERN_SUCCESS,8,8
	.comm	KERN_INVALID_ARGUMENT,8,8
	.comm	FALSE,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_vm_user.c_vm_read_list.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vm_read_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	vm_read_list, %function
vm_read_list:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L18
	sub	sp, sp, #28
	ldr	r3, [r3]
	cmp	r3, r0
	ldr	r3, .L18+4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r3, r2
	blt	.L2
	ldr	r8, .L18+12
	cmp	r2, #0
	ldr	fp, [r8]
	ble	.L1
	add	r4, r1, #4
	mov	r7, r0
	mov	r6, #0
	ldr	r9, .L18+16
	ldr	r10, .L18+20
	add	r5, r4, r2, lsl #3
	b	.L8
.L5:
	str	r6, [r4]
	str	r6, [r4, #-4]
.L7:
	add	r4, r4, #8
	cmp	r4, r5
	beq	.L1
.L8:
	ldr	r2, [r4, #-4]
	ldr	r1, [r4]
	cmp	r2, #0
	str	r1, [sp, #16]
	beq	.L5
	add	r3, sp, #12
	str	r3, [sp]
	mov	r0, r7
	ldr	r3, [r9]
	bl	vm_map_copyin
	ldr	r3, [r8]
	mov	fp, r0
	cmp	r3, r0
	bne	.L5
	bl	current_task
	ldr	r2, [sp, #12]
	ldr	r0, [r0]
	add	r1, sp, #16
	bl	vm_map_copyout
	ldr	r3, [r8]
	mov	fp, r0
	cmp	r3, r0
	beq	.L16
	ldr	r0, [sp, #12]
	bl	vm_map_copy_discard
	b	.L5
.L2:
	ldr	r3, .L18+24
	ldr	fp, [r3]
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, fp
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r1, [sp, #16]
	ldr	r0, [r10]
	bl	CAST_DOWN
	str	r0, [r4]
	b	.L7
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	VM_MAP_NULL
	.word	.LC0
	.word	VM_MAP_ENTRY_MAX
	.word	KERN_SUCCESS
	.word	FALSE
	.word	vm_offset_t
	.word	KERN_INVALID_ARGUMENT
	.size	vm_read_list, .-vm_read_list
	.comm	vm_offset_t,4,4
	.comm	VM_MAP_NULL,4,4
	.comm	VM_MAP_ENTRY_MAX,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_INVALID_ARGUMENT,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
