	.file	"extr_talitos.c_talitos_submit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	talitos_submit, @function
talitos_submit:
.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
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rdx
	mov	QWORD PTR 8[rsp], rcx
	call	dev_get_drvdata@PLT
	mov	r12, rax
	mov	eax, DWORD PTR DESC_HDR_DONE_NOTIFY[rip]
	or	DWORD PTR 0[r13], eax
	lea	rdi, 24[r12]
	call	atomic_inc_return@PLT
	mov	edx, DWORD PTR [r12]
	mov	rdi, QWORD PTR 8[r12]
	xor	esi, esi
	lea	ebp, -1[rdx]
	and	ebp, eax
	movsx	rbp, ebp
	lea	rbx, 0[rbp+rbp*2]
	sal	rbx, 3
	add	rdi, rbx
	add	rdi, 4
	call	spin_lock_irqsave@PLT
	mov	rdi, QWORD PTR 8[r12]
	add	rdi, rbx
	add	rdi, 16
	call	atomic_inc_not_zero@PLT
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR 8[r12]
	mov	rsi, r13
	mov	rdi, r14
	mov	edx, 4
	mov	ecx, DWORD PTR DMA_BIDIRECTIONAL[rip]
	add	rax, rbx
	movsx	r8, DWORD PTR [rax]
	sal	r8, 5
	add	r8, QWORD PTR 8[rax]
	mov	r15, r8
	call	dma_map_single@PLT
	mov	rcx, QWORD PTR 8[r12]
	mov	edx, DWORD PTR 4[r12]
	mov	DWORD PTR 8[r15], eax
	mov	rax, QWORD PTR [rsp]
	add	rcx, rbx
	sub	edx, 1
	mov	QWORD PTR [r15], rax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 24[r15], rax
	mov	eax, DWORD PTR [rcx]
	add	eax, 1
	and	eax, edx
	mov	DWORD PTR [rcx], eax
	xor	eax, eax
	call	smp_wmb@PLT
	mov	QWORD PTR 16[r15], r13
	xor	eax, eax
	call	wmb@PLT
	mov	edi, DWORD PTR 8[r15]
	call	upper_32_bits@PLT
	mov	edi, eax
	call	cpu_to_be32@PLT
	mov	r13, QWORD PTR 16[r12]
	mov	rdi, rbp
	mov	r14d, eax
	call	TALITOS_FF@PLT
	mov	esi, r14d
	lea	rdi, 0[r13+rax]
	call	out_be32@PLT
	mov	edi, DWORD PTR 8[r15]
	call	lower_32_bits@PLT
	mov	edi, eax
	call	cpu_to_be32@PLT
	mov	r13, QWORD PTR 16[r12]
	mov	rdi, rbp
	mov	r14d, eax
	call	TALITOS_FF_LO@PLT
	mov	esi, r14d
	lea	rdi, 0[r13+rax]
	call	out_be32@PLT
	add	rbx, QWORD PTR 8[r12]
	xor	esi, esi
	mov	rdi, rbx
	add	rdi, 4
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR EINPROGRESS[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	add	rbx, QWORD PTR 8[r12]
	xor	esi, esi
	mov	rdi, rbx
	add	rdi, 4
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR EAGAIN[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.cfi_endproc
.LFE0:
	.size	talitos_submit, .-talitos_submit
	.comm	EINPROGRESS,4,4
	.comm	EAGAIN,4,4
	.comm	DMA_BIDIRECTIONAL,4,4
	.comm	DESC_HDR_DONE_NOTIFY,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_talitos.c_talitos_submit.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	talitos_submit, %function
talitos_submit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	sub	sp, sp, #12
	mov	r8, r2
	str	r3, [sp, #4]
	mov	r10, r0
	bl	dev_get_drvdata
	ldr	r2, .L7
	ldr	r3, [r6]
	ldr	r2, [r2]
	mov	r4, r0
	orr	r3, r3, r2
	str	r3, [r6]
	add	r0, r0, #16
	bl	atomic_inc_return
	ldr	r5, [r4]
	ldr	r1, [r4, #8]
	sub	r5, r5, #1
	and	r5, r5, r0
	add	r0, r1, r5, lsl #4
	add	r0, r0, #4
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r1, [r4, #8]
	lsl	r9, r5, #4
	add	r1, r1, r9
	add	r0, r1, #12
	bl	atomic_inc_not_zero
	cmp	r0, #0
	beq	.L6
	ldr	ip, [r4, #8]
	ldr	r3, .L7+4
	add	lr, ip, r9
	mov	r1, r6
	mov	r0, r10
	mov	r2, #4
	ldr	r3, [r3]
	ldr	r10, [lr, #8]
	ldr	fp, [ip, r5, lsl #4]
	bl	dma_map_single
	ldr	r1, [r4, #8]
	ldr	ip, [r4, #4]
	ldr	r2, [r1, r5, lsl #4]
	ldr	r3, [sp, #4]
	sub	ip, ip, #1
	add	r2, r2, #1
	and	r2, r2, ip
	add	r7, r10, fp, lsl #4
	str	r0, [r7, #4]
	str	r8, [r10, fp, lsl #4]
	str	r3, [r7, #12]
	str	r2, [r1, r5, lsl #4]
	bl	smp_wmb
	str	r6, [r7, #8]
	bl	wmb
	mov	r0, r5
	ldr	r6, [r4, #12]
	bl	TALITOS_FF
	mov	r2, r0
	ldr	r0, [r7, #4]
	add	r6, r6, r2
	bl	upper_32_bits
	bl	cpu_to_be32
	mov	r1, r0
	mov	r0, r6
	bl	out_be32
	mov	r0, r5
	ldr	r5, [r4, #12]
	bl	TALITOS_FF_LO
	mov	r2, r0
	ldr	r0, [r7, #4]
	add	r5, r5, r2
	bl	lower_32_bits
	bl	cpu_to_be32
	mov	r1, r0
	mov	r0, r5
	bl	out_be32
	ldr	r0, [r4, #8]
	mov	r1, #0
	add	r0, r0, r9
	add	r0, r0, #4
	bl	spin_unlock_irqrestore
	ldr	r3, .L7+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r0, [r4, #8]
	mov	r1, #0
	add	r0, r0, r9
	add	r0, r0, #4
	bl	spin_unlock_irqrestore
	ldr	r3, .L7+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	.align	2
.L7:
	.word	DESC_HDR_DONE_NOTIFY
	.word	DMA_BIDIRECTIONAL
	.word	EINPROGRESS
	.word	EAGAIN
	.size	talitos_submit, .-talitos_submit
	.comm	EINPROGRESS,4,4
	.comm	EAGAIN,4,4
	.comm	DMA_BIDIRECTIONAL,4,4
	.comm	DESC_HDR_DONE_NOTIFY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
