	.file	"extr_main.c_dm_mmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dm_mmap, @function
dm_mmap:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	to_mucontext@PLT
	mov	edi, DWORD PTR [r12]
	mov	r15, rax
	call	to_mdev@PLT
	mov	edi, DWORD PTR 20[rbp]
	mov	QWORD PTR 8[rsp], rax
	call	get_extended_index@PLT
	mov	r14, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	sub	r14, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [r15]
	mov	rdx, rax
	mov	rbx, rax
	mov	r13, r14
	shr	r13, cl
	add	r13, rax
	mov	rsi, r13
	call	find_next_zero_bit@PLT
	cmp	r13, rax
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR memic_bar_start_addr[rip]
	mov	rdi, QWORD PTR [rax]
	mov	r13, QWORD PTR [rdi]
	call	MLX5_CAP64_DEV_MEM@PLT
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	edi, DWORD PTR 16[rbp]
	add	r13, rax
	shr	r13, cl
	call	pgprot_writecombine@PLT
	add	r13, rbx
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rcx, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	r8d, eax
	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
	jmp	rdma_user_mmap_io@PLT
	.cfi_endproc
.LFE0:
	.size	dm_mmap, .-dm_mmap
	.comm	memic_bar_start_addr,4,4
	.comm	PAGE_SHIFT,8,8
	.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_main.c_dm_mmap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dm_mmap, %function
dm_mmap:
	@ args = 0, 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
	mov	r4, r1
	mov	r8, r0
	bl	to_mucontext
	mov	r7, r0
	ldr	r0, [r8]
	bl	to_mdev
	mov	r10, r0
	ldr	r0, [r4, #12]
	bl	get_extended_index
	mov	r5, r0
	ldr	fp, .L6
	ldr	r9, [r4]
	ldr	r3, [r4, #4]
	ldr	r6, [fp]
	sub	r9, r9, r3
	add	r6, r0, r9, lsr r6
	mov	r1, r6
	mov	r2, r5
	ldr	r0, [r7]
	bl	find_next_zero_bit
	cmp	r6, r0
	beq	.L2
	ldr	r3, .L6+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L6+8
	ldr	r0, [r10]
	ldr	r1, [r3]
	ldr	r6, [r0]
	bl	MLX5_CAP64_DEV_MEM
	ldr	r2, [fp]
	add	r6, r6, r0
	ldr	r0, [r4, #8]
	add	r5, r5, r6, lsr r2
	bl	pgprot_writecombine
	mov	r2, r5
	str	r0, [sp]
	mov	r3, r9
	mov	r1, r4
	mov	r0, r8
	bl	rdma_user_mmap_io
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	.align	2
.L6:
	.word	PAGE_SHIFT
	.word	EINVAL
	.word	memic_bar_start_addr
	.size	dm_mmap, .-dm_mmap
	.comm	memic_bar_start_addr,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
