	.file	"extr_atmel-aes.c_atmel_aes_cpu_transfer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atmel_aes_cpu_transfer, @function
atmel_aes_cpu_transfer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	xor	edi, edi
	call	AES_IDATAR@PLT
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, eax
	call	atmel_aes_write_block@PLT
	mov	esi, DWORD PTR AES_ISR[rip]
	mov	rdi, rbp
	call	atmel_aes_read@PLT
	mov	edx, DWORD PTR AES_INT_DATARDY[rip]
	test	edx, eax
	je	.L13
.L3:
	mov	r12d, DWORD PTR 0[rbp]
	xor	edi, edi
	call	AES_ODATAR@PLT
	mov	rdi, rbp
	mov	edx, r12d
	mov	esi, eax
	call	atmel_aes_read_block@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	rdx, QWORD PTR AES_BLOCK_SIZE[rip]
	lea	r12d, 4[rax]
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR 0[rbp], r12d
	sub	rax, rdx
	mov	QWORD PTR 8[rbp], rax
	cmp	rdx, rax
	jle	.L14
	mov	edi, DWORD PTR 40[rbp]
	mov	r13d, DWORD PTR 32[rbp]
	mov	r12d, DWORD PTR 36[rbp]
	call	sg_nents@PLT
	mov	edi, DWORD PTR 40[rbp]
	mov	ecx, r13d
	mov	esi, eax
	mov	edx, r12d
	call	sg_copy_from_buffer@PLT
	test	eax, eax
	jne	.L5
	mov	esi, DWORD PTR EINVAL[rip]
	test	esi, esi
	jne	.L15
.L5:
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rax, atmel_aes_cpu_transfer[rip]
	mov	esi, DWORD PTR AES_IER[rip]
	mov	rdi, rbp
	mov	QWORD PTR 16[rbp], rax
	call	atmel_aes_write@PLT
	mov	eax, DWORD PTR EINPROGRESS[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	eax
	ret
.L15:
	.cfi_restore_state
	mov	rdi, rbp
	neg	esi
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	atmel_aes_complete@PLT
	.cfi_endproc
.LFE0:
	.size	atmel_aes_cpu_transfer, .-atmel_aes_cpu_transfer
	.comm	EINVAL,4,4
	.comm	EINPROGRESS,4,4
	.comm	AES_ISR,4,4
	.comm	AES_INT_DATARDY,4,4
	.comm	AES_IER,4,4
	.comm	AES_BLOCK_SIZE,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_atmel-aes.c_atmel_aes_cpu_transfer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atmel_aes_cpu_transfer, %function
atmel_aes_cpu_transfer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r5, .L16
	ldr	r7, .L16+4
	ldr	r6, .L16+8
	b	.L3
.L14:
	mov	r0, #0
	bl	AES_IDATAR
	ldr	r2, [r4]
	mov	r1, r0
	mov	r0, r4
	bl	atmel_aes_write_block
	mov	r0, r4
	ldr	r1, [r7]
	bl	atmel_aes_read
	ldr	r2, [r6]
	tst	r2, r0
	beq	.L13
.L3:
	mov	r0, #0
	bl	AES_ODATAR
	ldr	r2, [r4]
	mov	r1, r0
	mov	r0, r4
	bl	atmel_aes_read_block
	ldm	r4, {r2, r3}
	ldr	r1, [r5]
	add	r2, r2, #4
	sub	r3, r3, r1
	cmp	r1, r3
	stm	r4, {r2, r3}
	ble	.L14
	ldr	r5, [r4, #24]
	mov	r0, r5
	bl	sg_nents
	ldr	r3, [r4, #16]
	mov	r1, r0
	ldr	r2, [r4, #20]
	mov	r0, r5
	bl	sg_copy_from_buffer
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L16+12
	ldr	r1, [r3]
	cmp	r1, #0
	bne	.L15
.L5:
	mov	r0, r4
	ldr	r3, [r4, #12]
	pop	{r4, r5, r6, r7, r8, lr}
	bx	r3
.L13:
	ldr	r3, .L16+16
	ldr	r1, .L16+20
	mov	r0, r4
	str	r1, [r4, #8]
	ldr	r1, [r3]
	bl	atmel_aes_write
	ldr	r3, .L16+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	rsb	r1, r1, #0
	b	atmel_aes_complete
.L17:
	.align	2
.L16:
	.word	AES_BLOCK_SIZE
	.word	AES_ISR
	.word	AES_INT_DATARDY
	.word	EINVAL
	.word	AES_IER
	.word	atmel_aes_cpu_transfer
	.word	EINPROGRESS
	.size	atmel_aes_cpu_transfer, .-atmel_aes_cpu_transfer
	.comm	EINVAL,4,4
	.comm	EINPROGRESS,4,4
	.comm	AES_ISR,4,4
	.comm	AES_INT_DATARDY,4,4
	.comm	AES_IER,4,4
	.comm	AES_BLOCK_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
