	.file	"extr_gntdev-dmabuf.c_dmabuf_exp_alloc_backing_storage.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Wrong dma-buf flags: 0x%x\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"can't map %d pages: over limit\n"
	.text
	.p2align 4
	.type	dmabuf_exp_alloc_backing_storage, @function
dmabuf_exp_alloc_backing_storage:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	xor	edi, edi
	test	edx, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	setle	dil
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	call	unlikely@PLT
	test	rax, rax
	jne	.L15
	test	DWORD PTR GNTDEV_DMA_FLAG_WC[rip], r12d
	je	.L3
	test	DWORD PTR GNTDEV_DMA_FLAG_COHERENT[rip], r12d
	jne	.L17
.L3:
	mov	edx, r12d
	mov	esi, ebp
	mov	rdi, r13
	call	gntdev_alloc_map@PLT
	mov	r12, rax
	test	rax, rax
	je	.L14
	mov	edi, ebp
	call	gntdev_account_mapped_pages@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L18
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.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
.L17:
	.cfi_restore_state
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
.L15:
	mov	edi, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	edi
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	call	pr_debug@PLT
	mov	rsi, r12
	xor	edi, edi
	call	gntdev_put_map@PLT
.L14:
	mov	edi, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	edi
	jmp	ERR_PTR@PLT
	.cfi_endproc
.LFE0:
	.size	dmabuf_exp_alloc_backing_storage, .-dmabuf_exp_alloc_backing_storage
	.comm	GNTDEV_DMA_FLAG_WC,4,4
	.comm	GNTDEV_DMA_FLAG_COHERENT,4,4
	.comm	ENOMEM,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_gntdev-dmabuf.c_dmabuf_exp_alloc_backing_storage.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Wrong dma-buf flags: 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"can't map %d pages: over limit\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dmabuf_exp_alloc_backing_storage, %function
dmabuf_exp_alloc_backing_storage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	movgt	r0, #0
	movle	r0, #1
	mov	r4, r1
	mov	r6, r2
	bl	unlikely
	cmp	r0, #0
	bne	.L13
	ldr	r3, .L18
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L3
	ldr	r3, .L18+4
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L16
.L3:
	mov	r2, r4
	mov	r0, r5
	mov	r1, r6
	bl	gntdev_alloc_map
	subs	r4, r0, #0
	beq	.L14
	mov	r0, r6
	bl	gntdev_account_mapped_pages
	bl	unlikely
	cmp	r0, #0
	bne	.L17
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L16:
	mov	r1, r4
	ldr	r0, .L18+8
	bl	pr_debug
.L13:
	pop	{r4, r5, r6, lr}
	ldr	r3, .L18+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	ERR_PTR
.L17:
	mov	r1, r6
	ldr	r0, .L18+16
	bl	pr_debug
	mov	r1, r4
	mov	r0, #0
	bl	gntdev_put_map
.L14:
	pop	{r4, r5, r6, lr}
	ldr	r3, .L18+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	ERR_PTR
.L19:
	.align	2
.L18:
	.word	GNTDEV_DMA_FLAG_WC
	.word	GNTDEV_DMA_FLAG_COHERENT
	.word	.LC0
	.word	EINVAL
	.word	.LC1
	.word	ENOMEM
	.size	dmabuf_exp_alloc_backing_storage, .-dmabuf_exp_alloc_backing_storage
	.comm	GNTDEV_DMA_FLAG_WC,4,4
	.comm	GNTDEV_DMA_FLAG_COHERENT,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
