	.file	"extr_videobuf2-dma-sg.c_vb2_dma_sg_dmabuf_ops_map.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to map scatterlist\n"
	.text
	.p2align 4
	.type	vb2_dma_sg_dmabuf_ops_map, @function
vb2_dma_sg_dmabuf_ops_map:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR 8[rdi]
	mov	rbx, QWORD PTR 16[rdi]
	mov	rdi, r13
	call	mutex_lock@PLT
	movsx	rcx, DWORD PTR [rbx]
	lea	r14, 4[rbx]
	cmp	ecx, r12d
	je	.L7
	cmp	rcx, QWORD PTR DMA_NONE[rip]
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR 0[rbp]
	jne	.L9
	mov	ecx, r12d
	call	dma_map_sg@PLT
	mov	DWORD PTR 4[rbx], eax
	test	eax, eax
	je	.L10
.L5:
	mov	DWORD PTR [rbx], r12d
.L7:
	mov	rdi, r13
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r14
	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
.L9:
	.cfi_restore_state
	call	dma_unmap_sg@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 12[rbx]
	mov	ecx, r12d
	mov	rax, QWORD PTR DMA_NONE[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	DWORD PTR [rbx], eax
	call	dma_map_sg@PLT
	mov	DWORD PTR 4[rbx], eax
	test	eax, eax
	jne	.L5
.L10:
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	edi, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	edi
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.cfi_endproc
.LFE0:
	.size	vb2_dma_sg_dmabuf_ops_map, .-vb2_dma_sg_dmabuf_ops_map
	.comm	EIO,4,4
	.comm	DMA_NONE,8,8
	.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_videobuf2-dma-sg.c_vb2_dma_sg_dmabuf_ops_map.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to map scatterlist\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vb2_dma_sg_dmabuf_ops_map, %function
vb2_dma_sg_dmabuf_ops_map:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [r0, #8]
	mov	r6, r1
	mov	r7, r4
	ldr	r8, [r0, #4]
	mov	r5, r0
	mov	r0, r8
	bl	mutex_lock
	ldr	r3, [r7], #4
	cmp	r3, r6
	beq	.L7
	ldr	r9, .L11
	ldr	r0, [r5]
	ldr	r2, [r9]
	ldr	r1, [r4, #12]
	cmp	r3, r2
	ldr	r2, [r4, #8]
	bne	.L9
.L4:
	mov	r3, r6
	bl	dma_map_sg
	cmp	r0, #0
	str	r0, [r4, #4]
	strne	r6, [r4]
	beq	.L10
.L7:
	mov	r0, r8
	bl	mutex_unlock
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	bl	dma_unmap_sg
	ldr	r3, [r9]
	ldr	r0, [r5]
	ldr	r1, [r4, #12]
	ldr	r2, [r4, #8]
	str	r3, [r4]
	b	.L4
.L10:
	ldr	r0, .L11+4
	bl	pr_err
	mov	r0, r8
	bl	mutex_unlock
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	ERR_PTR
.L12:
	.align	2
.L11:
	.word	DMA_NONE
	.word	.LC0
	.word	EIO
	.size	vb2_dma_sg_dmabuf_ops_map, .-vb2_dma_sg_dmabuf_ops_map
	.comm	EIO,4,4
	.comm	DMA_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
