	.file	"extr_chacha20poly1305.c_chacha_encrypt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	chacha_encrypt, @function
chacha_encrypt:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	crypto_aead_reqtfm@PLT
	mov	edi, eax
	call	crypto_aead_ctx@PLT
	mov	rdi, rbp
	mov	r14, rax
	call	aead_request_ctx@PLT
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	jne	.L2
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	poly_genkey@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rax]
	mov	rbx, rax
	mov	edx, 1
	mov	rsi, rbp
	call	chacha_iv@PLT
	mov	esi, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 8[rbx]
	call	scatterwalk_ffwd@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	r13, rax
	mov	r15, rax
	cmp	DWORD PTR 12[rbp], esi
	je	.L3
	mov	edx, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 4[rbx]
	call	scatterwalk_ffwd@PLT
	mov	r15, rax
.L3:
	lea	r12, 12[rbx]
	mov	edx, DWORD PTR chacha_encrypt_done[rip]
	mov	esi, DWORD PTR [rbx]
	mov	rcx, rbp
	mov	rdi, r12
	call	skcipher_request_set_callback@PLT
	mov	esi, DWORD PTR [r14]
	mov	rdi, r12
	call	skcipher_request_set_tfm@PLT
	mov	r8d, DWORD PTR 16[rbx]
	mov	ecx, DWORD PTR 0[rbp]
	mov	rdi, r12
	mov	rdx, r15
	mov	rsi, r13
	call	skcipher_request_set_crypt@PLT
	mov	rdi, r12
	call	crypto_skcipher_encrypt@PLT
	test	eax, eax
	je	.L4
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	chacha_encrypt, .-chacha_encrypt
	.comm	chacha_encrypt_done,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_chacha20poly1305.c_chacha_encrypt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chacha_encrypt, %function
chacha_encrypt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r4, r0
	bl	crypto_aead_reqtfm
	bl	crypto_aead_ctx
	mov	r8, r0
	mov	r0, r4
	bl	aead_request_ctx
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L2
.L4:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	poly_genkey
.L2:
	mov	r5, r0
	mov	r2, #1
	mov	r1, r4
	ldr	r0, [r0, #16]
	bl	chacha_iv
	ldr	r1, [r4, #12]
	ldr	r2, [r4, #4]
	ldr	r0, [r5, #8]
	bl	scatterwalk_ffwd
	ldr	r1, [r4, #8]
	ldr	r3, [r4, #12]
	mov	r7, r0
	cmp	r3, r1
	moveq	r9, r0
	beq	.L3
	ldr	r2, [r4, #4]
	ldr	r0, [r5, #4]
	bl	scatterwalk_ffwd
	mov	r9, r0
.L3:
	mov	r6, r5
	ldr	r3, .L11
	ldr	r1, [r6], #12
	ldr	r2, [r3]
	mov	r0, r6
	mov	r3, r4
	bl	skcipher_request_set_callback
	ldr	r1, [r8]
	mov	r0, r6
	bl	skcipher_request_set_tfm
	ldr	r3, [r5, #16]
	mov	r2, r9
	str	r3, [sp]
	mov	r1, r7
	ldr	r3, [r4]
	mov	r0, r6
	bl	skcipher_request_set_crypt
	mov	r0, r6
	bl	crypto_skcipher_encrypt
	cmp	r0, #0
	beq	.L4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	.align	2
.L11:
	.word	chacha_encrypt_done
	.size	chacha_encrypt, .-chacha_encrypt
	.comm	chacha_encrypt_done,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
