	.file	"extr_qib_file_ops.c_mmap_ureg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"FAIL mmap userreg: reqlen %lx > PAGE\n"
	.text
	.p2align 4
	.type	mmap_ureg, @function
mmap_ureg:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	rdi, rdx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movsx	rax, DWORD PTR PAGE_SIZE[rip]
	mov	edx, DWORD PTR [rsi]
	test	DWORD PTR QIB_HAS_HDRSUPP[rip], edx
	mov	rdx, QWORD PTR 0[rbp]
	lea	ecx, [rax+rax]
	movsx	rcx, ecx
	cmovne	rax, rcx
	sub	rdx, QWORD PTR 8[rbp]
	cmp	rdx, rax
	jbe	.L4
	mov	edi, DWORD PTR 16[rsi]
	lea	rsi, .LC0[rip]
	call	qib_devinfo@PLT
	mov	eax, DWORD PTR EFAULT[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rbx, QWORD PTR 8[rsi]
	add	rbx, rdi
	mov	edi, DWORD PTR 20[rbp]
	call	pgprot_noncached@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	r9, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	DWORD PTR 20[rbp], eax
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	r8d, eax
	mov	eax, DWORD PTR VM_DONTCOPY[rip]
	or	eax, DWORD PTR VM_DONTEXPAND[rip]
	sub	r9, rsi
	or	DWORD PTR 16[rbp], eax
	shr	rbx, cl
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rcx, r9
	mov	rdx, rbx
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	io_remap_pfn_range@PLT
	.cfi_endproc
.LFE0:
	.size	mmap_ureg, .-mmap_ureg
	.comm	VM_DONTEXPAND,4,4
	.comm	VM_DONTCOPY,4,4
	.comm	QIB_HAS_HDRSUPP,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,8,8
	.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_qib_file_ops.c_mmap_ureg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FAIL mmap userreg: reqlen %lx > PAGE\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmap_ureg, %function
mmap_ureg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r3, .L8
	ldr	lr, [r1]
	ldr	ip, [r3]
	ldr	r3, .L8+4
	tst	lr, ip
	ldr	r0, [r3]
	mov	ip, r2
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	lslne	r0, r0, #1
	sub	r2, r3, r2
	cmp	r2, r0
	sub	sp, sp, #12
	bls	.L4
	ldr	r0, [r1, #8]
	ldr	r1, .L8+8
	bl	qib_devinfo
	ldr	r3, .L8+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L4:
	ldr	r5, [r1, #4]
	ldr	r0, [r4, #12]
	add	r5, ip, r5
	bl	pgprot_noncached
	ldr	r2, .L8+16
	ldr	r3, .L8+20
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r2, .L8+24
	orr	r3, ip, r3
	ldr	ip, [r4, #8]
	ldr	r1, [r4, #4]
	str	r0, [r4, #12]
	ldr	r2, [r2]
	str	r0, [sp]
	orr	ip, ip, r3
	ldr	r3, [r4]
	mov	r0, r4
	lsr	r2, r5, r2
	str	ip, [r4, #8]
	sub	r3, r3, r1
	bl	io_remap_pfn_range
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	.align	2
.L8:
	.word	QIB_HAS_HDRSUPP
	.word	PAGE_SIZE
	.word	.LC0
	.word	EFAULT
	.word	VM_DONTCOPY
	.word	VM_DONTEXPAND
	.word	PAGE_SHIFT
	.size	mmap_ureg, .-mmap_ureg
	.comm	VM_DONTEXPAND,4,4
	.comm	VM_DONTCOPY,4,4
	.comm	QIB_HAS_HDRSUPP,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
