	.file	"extr_qib_user_sdma.c_qib_user_sdma_coalesce.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qib_user_sdma_coalesce, @function
qib_user_sdma_coalesce:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rdi
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	mov	QWORD PTR 16[rsp], rsi
	call	alloc_page@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rdi, rax
	mov	rbp, rax
	call	kmap@PLT
	mov	QWORD PTR 24[rsp], rax
	test	rbx, rbx
	je	.L9
	mov	r15, rax
	xor	r14d, r14d
	xor	r12d, r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 0[r13]
	add	r14, 1
	add	r13, 16
	add	r15, rax
	add	r12d, eax
	cmp	r14, rbx
	je	.L4
.L7:
	mov	esi, DWORD PTR 8[r13]
	mov	rdx, QWORD PTR 0[r13]
	mov	rdi, r15
	call	copy_from_user@PLT
	test	eax, eax
	je	.L5
	mov	r12d, DWORD PTR EFAULT[rip]
	neg	r12d
.L6:
	mov	rdi, rbp
	call	kunmap@PLT
	mov	rdi, rbp
	call	__free_page@PLT
.L3:
	endbr64
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r14, QWORD PTR 8[rsp]
	xor	edx, edx
	mov	rsi, rbp
	mov	ecx, r12d
	mov	r8d, DWORD PTR DMA_TO_DEVICE[rip]
	mov	rdi, QWORD PTR [r14]
	call	dma_map_page@PLT
	mov	rdi, QWORD PTR [r14]
	mov	esi, eax
	mov	ebx, eax
	call	dma_mapping_error@PLT
	test	rax, rax
	je	.L8
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	ecx, r12d
	mov	r9d, 1
	xor	r8d, r8d
	push	rbx
	.cfi_def_cfa_offset 112
	xor	edx, edx
	mov	esi, 1
	xor	r12d, r12d
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 120
	push	rbp
	.cfi_def_cfa_offset 128
	mov	rbx, QWORD PTR 48[rsp]
	mov	rdi, rbx
	call	qib_user_sdma_init_frag@PLT
	mov	DWORD PTR [rbx], 2
	add	rsp, 32
	.cfi_def_cfa_offset 96
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	qib_user_sdma_coalesce, .-qib_user_sdma_coalesce
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EFAULT,4,4
	.comm	DMA_TO_DEVICE,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_user_sdma.c_qib_user_sdma_coalesce.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qib_user_sdma_coalesce, %function
qib_user_sdma_coalesce:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L14
	sub	sp, sp, #36
	mov	r10, r0
	ldr	r0, [ip]
	mov	r6, r2
	mov	r7, r3
	str	r1, [sp, #24]
	bl	alloc_page
	subs	r9, r0, #0
	beq	.L13
	bl	kmap
	cmp	r7, #0
	str	r0, [sp, #28]
	beq	.L9
	mov	fp, #0
	mov	r5, r0
	mov	r4, fp
	add	r8, r6, #4
	b	.L7
.L5:
	ldr	r3, [r6, r4, lsl #3]
	add	r4, r4, #1
	cmp	r7, r4
	add	r5, r5, r3
	add	fp, fp, r3
	beq	.L4
.L7:
	mov	r0, r5
	ldr	r2, [r6, r4, lsl #3]
	ldr	r1, [r8, r4, lsl #3]
	bl	copy_from_user
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L14+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L6:
.L3:
	mov	r0, r9
	bl	kunmap
	mov	r0, r9
	bl	__free_page
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	fp, r7
.L4:
	ldr	r2, .L14+8
	mov	r3, fp
	ldr	r1, [r2]
	mov	r2, #0
	str	r1, [sp]
	ldr	r0, [r10]
	mov	r1, r9
	bl	dma_map_page
	mov	r5, r0
	ldr	r0, [r10]
	mov	r1, r5
	bl	dma_mapping_error
	subs	r4, r0, #0
	beq	.L8
	ldr	r3, .L14+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L6
.L13:
	ldr	r3, .L14+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r1, #1
	ldr	r3, [sp, #28]
	str	r5, [sp, #16]
	ldr	r5, [sp, #24]
	str	r3, [sp, #12]
	mov	r2, r4
	mov	r3, fp
	mov	r0, r5
	str	r9, [sp, #8]
	str	r4, [sp]
	str	r1, [sp, #4]
	bl	qib_user_sdma_init_frag
	mov	r3, #2
	mov	r0, r4
	str	r3, [r5]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	GFP_KERNEL
	.word	EFAULT
	.word	DMA_TO_DEVICE
	.word	ENOMEM
	.size	qib_user_sdma_coalesce, .-qib_user_sdma_coalesce
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EFAULT,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
