	.file	"extr_efa_verbs.c___efa_mmap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"key[%#llx] does not have valid entry\n"
	.align 8
.LC1:
	.string	"Mapping address[%#llx], length[%#llx], mmap_flag[%d]\n"
	.align 8
.LC2:
	.string	"Couldn't mmap address[%#llx] length[%#llx] mmap_flag[%d] err[%d]\n"
	.text
	.p2align 4
	.type	__efa_mmap, @function
__efa_mmap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	mov	ecx, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	mov	edx, r15d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdi
	call	mmap_entry_get@PLT
	test	rax, rax
	je	.L21
	mov	r8d, DWORD PTR 4[rax]
	mov	edx, DWORD PTR [rax]
	mov	rbx, rax
	mov	ecx, r13d
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ibdev_dbg@PLT
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	r15d, DWORD PTR [rbx]
	mov	eax, DWORD PTR 4[rbx]
	sar	r15d, cl
	cmp	eax, 129
	je	.L4
	cmp	eax, 130
	je	.L5
	cmp	eax, 128
	je	.L22
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L8:
	test	r12d, r12d
	jne	.L10
.L11:
	xor	r12d, r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[r14]
	call	pgprot_noncached@PLT
.L19:
	mov	rdi, r12
	mov	r8d, eax
	mov	ecx, r13d
	mov	edx, r15d
	mov	rsi, r14
	call	rdma_user_mmap_io@PLT
	mov	r12d, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR 16[r14]
	call	pgprot_writecombine@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rbp, QWORD PTR [r14]
	cmp	rbp, QWORD PTR 8[r14]
	jb	.L9
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	add	rbp, QWORD PTR PAGE_SIZE[rip]
	add	r15d, 1
	cmp	QWORD PTR 8[r14], rbp
	jbe	.L11
.L9:
	mov	edi, r15d
	call	pfn_to_page@PLT
	mov	rsi, rbp
	mov	rdi, r14
	mov	edx, eax
	call	vm_insert_page@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L23
.L10:
	mov	r8d, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	r9d, r12d
	mov	ecx, r13d
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	ibdev_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR 8[rsp]
	mov	edx, r15d
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	ibdev_dbg@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	__efa_mmap, .-__efa_mmap
	.comm	PAGE_SIZE,8,8
	.comm	PAGE_SHIFT,4,4
	.comm	EINVAL,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_efa_verbs.c___efa_mmap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"key[%#llx] does not have valid entry\012\000"
	.align	2
.LC1:
	.ascii	"Mapping address[%#llx], length[%#llx], mmap_flag[%d"
	.ascii	"]\012\000"
	.align	2
.LC2:
	.ascii	"Couldn't mmap address[%#llx] length[%#llx] mmap_fla"
	.ascii	"g[%d] err[%d]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__efa_mmap, %function
__efa_mmap:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	ldr	r9, [sp, #48]
	mov	r4, r3
	mov	r6, r2
	mov	r2, r3
	mov	r3, r9
	mov	r8, r0
	mov	r10, r1
	bl	mmap_entry_get
	subs	r7, r0, #0
	beq	.L21
	ldm	r7, {r2, r3}
	mov	r0, r8
	str	r3, [sp]
	ldr	r1, .L24
	mov	r3, r9
	bl	ibdev_dbg
	ldr	r2, .L24+4
	ldr	r3, [r7, #4]
	ldr	r2, [r2]
	ldr	r5, [r7]
	cmp	r3, #129
	asr	r5, r5, r2
	beq	.L4
	cmp	r3, #130
	beq	.L5
	cmp	r3, #128
	beq	.L22
	ldr	r3, .L24+8
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L8:
	cmp	r4, #0
	bne	.L10
.L11:
	mov	r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r0, [r6, #8]
	bl	pgprot_noncached
.L19:
	str	r0, [sp]
	mov	r2, r5
	mov	r1, r6
	mov	r0, r10
	mov	r3, r9
	bl	rdma_user_mmap_io
	mov	r4, r0
	b	.L8
.L22:
	ldr	r0, [r6, #8]
	bl	pgprot_writecombine
	b	.L19
.L5:
	ldr	fp, [r6]
	ldr	r3, [r6, #4]
	cmp	fp, r3
	bcs	.L11
	ldr	r10, .L24+12
	b	.L9
.L23:
	ldr	r2, [r10]
	ldr	r3, [r6, #4]
	add	fp, fp, r2
	cmp	r3, fp
	add	r5, r5, #1
	bls	.L11
.L9:
	mov	r0, r5
	bl	pfn_to_page
	mov	r1, fp
	mov	r2, r0
	mov	r0, r6
	bl	vm_insert_page
	subs	r4, r0, #0
	beq	.L23
.L10:
	ldr	r2, [r7]
	str	r4, [sp, #4]
	ldr	r1, [r7, #4]
	mov	r3, r9
	str	r1, [sp]
	mov	r0, r8
	ldr	r1, .L24+16
	bl	ibdev_dbg
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	r2, r4
	mov	r0, r8
	ldr	r1, .L24+20
	bl	ibdev_dbg
	ldr	r3, .L24+8
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC1
	.word	PAGE_SHIFT
	.word	EINVAL
	.word	PAGE_SIZE
	.word	.LC2
	.word	.LC0
	.size	__efa_mmap, .-__efa_mmap
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
