	.file	"extr_scif_dma.c_scif_writeto.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SCIFAPI writeto: ep %p loffset 0x%lx len 0x%lx roffset 0x%lx flags 0x%x\n"
	.text
	.p2align 4
	.globl	scif_writeto
	.type	scif_writeto, @function
scif_writeto:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edi
	mov	r9, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	mov	rcx, rsi
	lea	rsi, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	push	r8
	.cfi_def_cfa_offset 64
	mov	r8, rdx
	mov	edx, edi
	mov	edi, DWORD PTR scif_info[rip]
	call	dev_dbg@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	scif_unaligned@PLT
	pop	r8
	.cfi_def_cfa_offset 56
	pop	r9
	.cfi_def_cfa_offset 48
	test	rax, rax
	je	.L2
	mov	rcx, QWORD PTR SCIF_MAX_UNALIGNED_BUF_SIZE[rip]
	cmp	r13, rcx
	ja	.L4
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rcx, QWORD PTR SCIF_MAX_UNALIGNED_BUF_SIZE[rip]
	sub	r13, rcx
	add	rbp, rcx
	add	rbx, rcx
	cmp	rcx, r13
	jnb	.L2
.L4:
	mov	eax, DWORD PTR SCIF_LOCAL_TO_REMOTE[rip]
	push	0
	.cfi_def_cfa_offset 56
	mov	rsi, rbp
	mov	edi, r14d
	mov	r9d, r12d
	mov	r8, rbx
	xor	edx, edx
	push	rax
	.cfi_def_cfa_offset 64
	call	scif_rma_copy@PLT
	pop	rsi
	.cfi_def_cfa_offset 56
	pop	rdi
	.cfi_def_cfa_offset 48
	test	eax, eax
	je	.L11
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
.L3:
	endbr64
	mov	eax, DWORD PTR SCIF_LOCAL_TO_REMOTE[rip]
	push	1
	.cfi_def_cfa_offset 56
	mov	rcx, r13
	mov	r9d, r12d
	mov	r8, rbx
	xor	edx, edx
	mov	rsi, rbp
	mov	edi, r14d
	push	rax
	.cfi_def_cfa_offset 64
	call	scif_rma_copy@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	scif_writeto, .-scif_writeto
	.comm	scif_info,4,4
	.comm	SCIF_MAX_UNALIGNED_BUF_SIZE,8,8
	.comm	SCIF_LOCAL_TO_REMOTE,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_scif_dma.c_scif_writeto.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SCIFAPI writeto: ep %p loffset 0x%lx len 0x%lx roff"
	.ascii	"set 0x%lx flags 0x%x\012\000"
	.text
	.align	2
	.global	scif_writeto
	.syntax unified
	.arm
	.fpu softvfp
	.type	scif_writeto, %function
scif_writeto:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	mov	r5, r3
	sub	sp, sp, #20
	stm	sp, {r2, r3}
	ldr	r8, [sp, #56]
	ldr	r1, .L15
	str	r8, [sp, #8]
	mov	r3, r4
	mov	r7, r0
	mov	r6, r2
	mov	r2, r0
	ldr	r0, [r1]
	ldr	r1, .L15+4
	bl	dev_dbg
	mov	r1, r5
	mov	r0, r4
	bl	scif_unaligned
	cmp	r0, #0
	beq	.L12
	ldr	r10, .L15+8
	ldr	r3, [r10]
	cmp	r6, r3
	movhi	fp, #0
	ldrhi	r9, .L15+12
	bhi	.L4
	b	.L12
.L14:
	ldr	r3, [r10]
	sub	r6, r6, r3
	cmp	r3, r6
	add	r4, r4, r3
	add	r5, r5, r3
	bcs	.L2
.L4:
	ldr	r2, [r9]
	mov	r1, r4
	str	r2, [sp, #8]
	mov	r0, r7
	mov	r2, #0
	stm	sp, {r5, r8}
	str	fp, [sp, #12]
	bl	scif_rma_copy
	cmp	r0, #0
	beq	.L14
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r9, .L15+12
.L2:
.L3:
	mov	r2, #1
	ldr	r3, [r9]
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	mov	r1, r4
	mov	r3, r6
	mov	r0, r7
	mov	r2, #0
	str	r8, [sp, #4]
	str	r5, [sp]
	bl	scif_rma_copy
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	.align	2
.L15:
	.word	scif_info
	.word	.LC0
	.word	SCIF_MAX_UNALIGNED_BUF_SIZE
	.word	SCIF_LOCAL_TO_REMOTE
	.size	scif_writeto, .-scif_writeto
	.comm	scif_info,4,4
	.comm	SCIF_MAX_UNALIGNED_BUF_SIZE,4,4
	.comm	SCIF_LOCAL_TO_REMOTE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
