	.file	"extr_omapfb-main.c_omapfb_mmap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"user mmap region start %lx, len %d, off %lx\n"
	.text
	.p2align 4
	.type	omapfb_mmap, @function
omapfb_mmap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	FB2OFB@PLT
	mov	rdi, QWORD PTR [rax]
	mov	rbx, rax
	call	omapfb_get_mem_region@PLT
	mov	rdi, rbx
	mov	r12, rax
	call	omapfb_get_region_paddr@PLT
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	r14d, DWORD PTR [r14]
	lea	rdi, .LC0[rip]
	mov	r13, rax
	mov	eax, DWORD PTR 0[rbp]
	mov	rsi, r13
	mov	edx, r14d
	sal	eax, cl
	mov	ecx, eax
	call	DBG@PLT
	mov	edi, DWORD PTR 24[rbp]
	call	pgprot_writecombine@PLT
	mov	QWORD PTR 8[rbp], r12
	mov	rsi, r13
	mov	edx, r14d
	mov	DWORD PTR 24[rbp], eax
	lea	rax, mmap_user_ops[rip]
	mov	rdi, rbp
	mov	QWORD PTR 16[rbp], rax
	call	vm_iomap_memory@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L6
	mov	rdi, r12
	call	atomic_inc@PLT
	mov	rdi, r12
	call	omapfb_put_mem_region@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	call	omapfb_put_mem_region@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.cfi_endproc
.LFE0:
	.size	omapfb_mmap, .-omapfb_mmap
	.comm	mmap_user_ops,4,4
	.comm	PAGE_SHIFT,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_omapfb-main.c_omapfb_mmap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"user mmap region start %lx, len %d, off %lx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	omapfb_mmap, %function
omapfb_mmap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r8, r0
	bl	FB2OFB
	mov	r5, r0
	ldr	r0, [r0]
	bl	omapfb_get_mem_region
	mov	r6, r0
	mov	r0, r5
	bl	omapfb_get_region_paddr
	ldr	r3, .L7
	ldr	r1, [r4]
	ldr	r8, [r8]
	ldr	r3, [r3]
	mov	r2, r8
	lsl	r3, r1, r3
	mov	r7, r0
	mov	r1, r0
	ldr	r0, .L7+4
	bl	DBG
	ldr	r0, [r4, #12]
	bl	pgprot_writecombine
	ldr	r3, .L7+8
	str	r0, [r4, #12]
	str	r6, [r4, #4]
	mov	r0, r4
	str	r3, [r4, #8]
	mov	r2, r8
	mov	r1, r7
	bl	vm_iomap_memory
	subs	r4, r0, #0
	bne	.L6
	mov	r0, r6
	bl	atomic_inc
	mov	r0, r6
	bl	omapfb_put_mem_region
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r0, [r5]
	bl	omapfb_put_mem_region
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	PAGE_SHIFT
	.word	.LC0
	.word	mmap_user_ops
	.size	omapfb_mmap, .-omapfb_mmap
	.comm	mmap_user_ops,4,4
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
