	.file	"extr_dma-buf.c_dma_buf_mmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dma_buf_mmap
	.type	dma_buf_mmap, @function
dma_buf_mmap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	sete	dil
	test	rsi, rsi
	sete	al
	or	edi, eax
	movzx	edi, dil
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR 16[rbx]
	cmp	QWORD PTR [rax], 0
	je	.L12
	mov	rdi, rbp
	call	vma_pages@PLT
	add	rax, r12
	jnc	.L5
	mov	r12d, DWORD PTR EOVERFLOW[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	vma_pages@PLT
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	rdx, QWORD PTR [rbx]
	add	rax, r12
	shr	rdx, cl
	cmp	rax, rdx
	jbe	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	call	get_file@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	r13, QWORD PTR 8[rbp]
	mov	rsi, rbp
	mov	QWORD PTR 0[rbp], r12
	mov	rdi, rbx
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR 16[rbx]
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	test	r13, r13
	je	.L1
	mov	rdi, r13
	call	fput@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	QWORD PTR 8[rbp], r13
	mov	rdi, QWORD PTR 8[rbx]
	call	fput@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	dma_buf_mmap, .-dma_buf_mmap
	.comm	PAGE_SHIFT,4,4
	.comm	EOVERFLOW,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_dma-buf.c_dma_buf_mmap.c"
	.text
	.align	2
	.global	dma_buf_mmap
	.syntax unified
	.arm
	.fpu softvfp
	.type	dma_buf_mmap, %function
dma_buf_mmap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r1
	cmp	r0, #0
	lsr	r3, r3, #5
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	movne	r0, r3
	moveq	r0, #1
	mov	r4, r2
	mov	r5, r1
	bl	WARN_ON
	cmp	r0, #0
	bne	.L15
	ldr	r3, [r6, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	mov	r0, r5
	bl	vma_pages
	cmn	r0, r4
	bcc	.L5
	ldr	r3, .L18
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r5
	bl	vma_pages
	ldr	r3, .L18+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	add	r0, r0, r4
	cmp	r0, r2, lsr r3
	bls	.L6
.L15:
	ldr	r3, .L18+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r0, [r6, #4]
	bl	get_file
	ldmib	r6, {r2, r3}
	ldr	r7, [r5, #4]
	ldr	r3, [r3]
	str	r4, [r5]
	mov	r1, r5
	mov	r0, r6
	str	r2, [r5, #4]
	blx	r3
	subs	r4, r0, #0
	bne	.L17
	cmp	r7, #0
	beq	.L1
	mov	r0, r7
	bl	fput
	b	.L1
.L17:
	ldr	r0, [r6, #4]
	str	r7, [r5, #4]
	bl	fput
	b	.L1
.L19:
	.align	2
.L18:
	.word	EOVERFLOW
	.word	PAGE_SHIFT
	.word	EINVAL
	.size	dma_buf_mmap, .-dma_buf_mmap
	.comm	PAGE_SHIFT,4,4
	.comm	EOVERFLOW,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
