	.file	"extr_atmel.c_atmel_copy_to_card.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atmel_copy_to_card, @function
atmel_copy_to_card:
.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
	mov	r13, rdi
	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	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	atmel_writeAR@PLT
	and	r12d, 1
	jne	.L12
.L2:
	cmp	ebp, 1
	jle	.L3
	sub	ebp, 2
	mov	r14d, ebp
	shr	r14d
	mov	eax, r14d
	lea	r12, 2[rbx+rax*2]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR DR[rip]
	movzx	edx, WORD PTR [rbx]
	add	rbx, 2
	mov	rdi, r13
	call	atmel_write16@PLT
	cmp	r12, rbx
	jne	.L4
	mov	eax, r14d
	neg	eax
	lea	ebp, 0[rbp+rax*2]
.L3:
	test	ebp, ebp
	jne	.L13
	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
.L12:
	.cfi_restore_state
	movzx	edx, BYTE PTR [rbx]
	mov	esi, DWORD PTR DR[rip]
	mov	rdi, r13
	add	rbx, 1
	sub	ebp, 1
	call	atmel_write8@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	movzx	edx, BYTE PTR [rbx]
	mov	esi, DWORD PTR DR[rip]
	mov	rdi, r13
	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
	jmp	atmel_write8@PLT
	.cfi_endproc
.LFE0:
	.size	atmel_copy_to_card, .-atmel_copy_to_card
	.comm	DR,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_atmel.c_atmel_copy_to_card.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atmel_copy_to_card, %function
atmel_copy_to_card:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	mov	r4, r2
	mov	r7, r3
	mov	r5, r0
	bl	atmel_writeAR
	tst	r6, #1
	bne	.L12
.L2:
	cmp	r7, #1
	ble	.L3
	sub	r7, r7, #2
	lsr	r9, r7, #1
	add	r6, r9, #1
	ldr	r8, .L13
	add	r6, r4, r6, lsl #1
.L4:
	ldrb	r2, [r4]	@ zero_extendqisi2
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	mov	r0, r5
	ldr	r1, [r8]
	add	r4, r4, #2
	orr	r2, r2, r3, lsl #8
	bl	atmel_write16
	cmp	r6, r4
	bne	.L4
	rsb	r9, r9, r9, lsl #31
	add	r7, r7, r9, lsl #1
.L3:
	cmp	r7, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, .L13
	mov	r0, r5
	ldrb	r2, [r4]	@ zero_extendqisi2
	ldr	r1, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	atmel_write8
.L12:
	ldr	r8, .L13
	mov	r0, r5
	ldrb	r2, [r4], #1	@ zero_extendqisi2
	ldr	r1, [r8]
	bl	atmel_write8
	sub	r7, r7, #1
	b	.L2
.L14:
	.align	2
.L13:
	.word	DR
	.size	atmel_copy_to_card, .-atmel_copy_to_card
	.comm	DR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
