	.file	"926229.c"
	.intel_syntax noprefix
	.text
	.globl	crypto_stream_speck6496ctr_ref
	.type	crypto_stream_speck6496ctr_ref, @function
crypto_stream_speck6496ctr_ref:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -168[rbp], rdi
	mov	QWORD PTR -176[rbp], rsi
	mov	QWORD PTR -184[rbp], rdx
	mov	QWORD PTR -192[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L11
.L2:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -132[rbp], eax
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -128[rbp], eax
	mov	DWORD PTR -152[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -152[rbp]
	mov	DWORD PTR -124[rbp+rax*4], edx
	add	DWORD PTR -152[rbp], 1
.L4:
	cmp	DWORD PTR -152[rbp], 2
	jbe	.L5
	lea	rdx, -112[rbp]
	lea	rax, -124[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	ExpandKey
	mov	DWORD PTR -148[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -160[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -156[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	add	eax, 1
	mov	DWORD PTR -132[rbp], eax
	lea	rdx, -112[rbp]
	lea	rcx, -156[rbp]
	lea	rax, -160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	Encrypt
	mov	eax, DWORD PTR -148[rbp]
	add	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -160[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -148[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -156[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -148[rbp], 2
	sub	QWORD PTR -176[rbp], 8
.L6:
	cmp	QWORD PTR -176[rbp], 7
	ja	.L7
	cmp	QWORD PTR -176[rbp], 0
	je	.L8
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -160[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -156[rbp], eax
	lea	rdx, -112[rbp]
	lea	rcx, -156[rbp]
	lea	rax, -160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	Encrypt
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR -160[rbp]
	mov	DWORD PTR [rdx], eax
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -152[rbp], 0
	jmp	.L9
.L10:
	mov	edx, DWORD PTR -152[rbp]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -148[rbp]
	lea	ecx, 0[0+rdx*4]
	mov	edx, DWORD PTR -152[rbp]
	add	edx, ecx
	mov	ecx, edx
	mov	rdx, QWORD PTR -168[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -152[rbp], 1
.L9:
	mov	eax, DWORD PTR -152[rbp]
	cmp	QWORD PTR -176[rbp], rax
	ja	.L10
.L8:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L11:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	crypto_stream_speck6496ctr_ref, .-crypto_stream_speck6496ctr_ref
	.globl	crypto_stream_speck6496ctr_ref_xor
	.type	crypto_stream_speck6496ctr_ref_xor, @function
crypto_stream_speck6496ctr_ref_xor:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	QWORD PTR -168[rbp], rdi
	mov	QWORD PTR -176[rbp], rsi
	mov	QWORD PTR -184[rbp], rdx
	mov	QWORD PTR -192[rbp], rcx
	mov	QWORD PTR -200[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -184[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L23
.L14:
	mov	rax, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -132[rbp], eax
	mov	rax, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -128[rbp], eax
	mov	DWORD PTR -152[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -152[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -152[rbp]
	mov	DWORD PTR -124[rbp+rax*4], edx
	add	DWORD PTR -152[rbp], 1
.L16:
	cmp	DWORD PTR -152[rbp], 2
	jbe	.L17
	lea	rdx, -112[rbp]
	lea	rax, -124[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	ExpandKey
	mov	DWORD PTR -148[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -160[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -156[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	add	eax, 1
	mov	DWORD PTR -132[rbp], eax
	lea	rdx, -112[rbp]
	lea	rcx, -156[rbp]
	lea	rax, -160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	Encrypt
	mov	eax, DWORD PTR -148[rbp]
	add	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR -160[rbp]
	mov	eax, DWORD PTR -148[rbp]
	add	eax, 1
	mov	eax, eax
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rsi
	xor	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -148[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR -156[rbp]
	mov	eax, DWORD PTR -148[rbp]
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rsi
	xor	edx, ecx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -148[rbp], 2
	sub	QWORD PTR -184[rbp], 8
.L18:
	cmp	QWORD PTR -184[rbp], 7
	ja	.L19
	cmp	QWORD PTR -184[rbp], 0
	je	.L20
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -160[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -156[rbp], eax
	lea	rdx, -112[rbp]
	lea	rcx, -156[rbp]
	lea	rax, -160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	Encrypt
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR -160[rbp]
	mov	DWORD PTR [rdx], eax
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -152[rbp], 0
	jmp	.L21
.L22:
	mov	edx, DWORD PTR -152[rbp]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -148[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR -152[rbp]
	add	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -148[rbp]
	lea	esi, 0[0+rax*4]
	mov	eax, DWORD PTR -152[rbp]
	add	eax, esi
	mov	esi, eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rsi
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -152[rbp], 1
.L21:
	mov	eax, DWORD PTR -152[rbp]
	cmp	QWORD PTR -184[rbp], rax
	ja	.L22
.L20:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L23:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	crypto_stream_speck6496ctr_ref_xor, .-crypto_stream_speck6496ctr_ref_xor
	.globl	Encrypt
	.type	Encrypt, @function
Encrypt:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L26
.L27:
	ror	DWORD PTR -8[rbp], 8
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	xor	DWORD PTR -8[rbp], eax
	rol	DWORD PTR -4[rbp], 3
	mov	eax, DWORD PTR -8[rbp]
	xor	DWORD PTR -4[rbp], eax
	add	DWORD PTR -12[rbp], 1
.L26:
	cmp	DWORD PTR -12[rbp], 25
	jbe	.L27
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Encrypt, .-Encrypt
	.globl	Decrypt
	.type	Decrypt, @function
Decrypt:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 25
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -8[rbp]
	xor	DWORD PTR -4[rbp], eax
	ror	DWORD PTR -4[rbp], 3
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	xor	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	DWORD PTR -8[rbp], eax
	rol	DWORD PTR -8[rbp], 8
	sub	DWORD PTR -12[rbp], 1
.L30:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L31
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Decrypt, .-Decrypt
	.globl	ExpandKey
	.type	ExpandKey, @function
ExpandKey:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	ror	DWORD PTR -8[rbp], 8
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	xor	DWORD PTR -8[rbp], eax
	rol	DWORD PTR -4[rbp], 3
	mov	eax, DWORD PTR -8[rbp]
	xor	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	ror	DWORD PTR -12[rbp], 8
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	xor	DWORD PTR -12[rbp], eax
	rol	DWORD PTR -4[rbp], 3
	mov	eax, DWORD PTR -12[rbp]
	xor	DWORD PTR -4[rbp], eax
	add	DWORD PTR -16[rbp], 2
.L34:
	cmp	DWORD PTR -16[rbp], 25
	jbe	.L35
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	ExpandKey, .-ExpandKey
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"926229.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	crypto_stream_speck6496ctr_ref
	.syntax unified
	.arm
	.fpu softvfp
	.type	crypto_stream_speck6496ctr_ref, %function
crypto_stream_speck6496ctr_ref:
	@ args = 8, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #176
	str	r0, [fp, #-168]
	str	r2, [fp, #-180]
	str	r3, [fp, #-176]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-172]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-184]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-144]
	sub	r3, fp, #180
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L2
	ldr	r0, [fp, #-144]
	bl	free
	mov	r3, #0
	b	.L11
.L2:
	ldr	r3, [fp, #-172]
	ldr	r3, [r3]
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-172]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-136]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L4
.L5:
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-184]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-120]
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L4:
	ldr	r3, [fp, #-152]
	cmp	r3, #2
	bls	.L5
	sub	r2, fp, #120
	sub	r3, fp, #132
	mov	r1, r2
	mov	r0, r3
	bl	ExpandKey
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L6
.L7:
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
	sub	r2, fp, #120
	sub	r1, fp, #156
	sub	r3, fp, #160
	mov	r0, r3
	bl	Encrypt
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r2, [fp, #-160]
	str	r2, [r3]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r2, [fp, #-156]
	str	r2, [r3]
	ldr	r3, [fp, #-148]
	add	r3, r3, #2
	str	r3, [fp, #-148]
	sub	r3, fp, #180
	ldmia	r3, {r2-r3}
	subs	r4, r2, #8
	sbc	r5, r3, #0
	str	r4, [fp, #-180]
	str	r5, [fp, #-176]
.L6:
	sub	r3, fp, #180
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #7
	bhi	.L7
	sub	r3, fp, #180
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L8
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-156]
	sub	r2, fp, #120
	sub	r1, fp, #156
	sub	r3, fp, #160
	mov	r0, r3
	bl	Encrypt
	ldr	r3, [fp, #-144]
	add	r3, r3, #4
	ldr	r2, [fp, #-160]
	str	r2, [r3]
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-144]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L9
.L10:
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-152]
	add	r2, r2, r3
	ldr	r3, [fp, #-148]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-152]
	add	r3, r1, r3
	ldr	r1, [fp, #-168]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L9:
	ldr	r3, [fp, #-152]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #180
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L10
.L8:
	ldr	r0, [fp, #-144]
	bl	free
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	crypto_stream_speck6496ctr_ref, .-crypto_stream_speck6496ctr_ref
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	crypto_stream_speck6496ctr_ref_xor
	.syntax unified
	.arm
	.fpu softvfp
	.type	crypto_stream_speck6496ctr_ref_xor, %function
crypto_stream_speck6496ctr_ref_xor:
	@ args = 8, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #176
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	str	r2, [fp, #-180]
	str	r3, [fp, #-176]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-184]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-188]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-144]
	sub	r3, fp, #180
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L16
	ldr	r0, [fp, #-144]
	bl	free
	mov	r3, #0
	b	.L25
.L16:
	ldr	r3, [fp, #-184]
	ldr	r3, [r3]
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-184]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-136]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L18
.L19:
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-188]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-120]
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L18:
	ldr	r3, [fp, #-152]
	cmp	r3, #2
	bls	.L19
	sub	r2, fp, #120
	sub	r3, fp, #132
	mov	r1, r2
	mov	r0, r3
	bl	ExpandKey
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L20
.L21:
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
	sub	r2, fp, #120
	sub	r1, fp, #156
	sub	r3, fp, #160
	mov	r0, r3
	bl	Encrypt
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-172]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r2, [fp, #-160]
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r0, [fp, #-168]
	add	r3, r0, r3
	eor	r2, r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-172]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-168]
	add	r3, r0, r3
	eor	r2, r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-148]
	add	r3, r3, #2
	str	r3, [fp, #-148]
	sub	r3, fp, #180
	ldmia	r3, {r2-r3}
	subs	r4, r2, #8
	sbc	r5, r3, #0
	str	r4, [fp, #-180]
	str	r5, [fp, #-176]
.L20:
	sub	r3, fp, #180
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #7
	bhi	.L21
	sub	r3, fp, #180
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L22
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-156]
	sub	r2, fp, #120
	sub	r1, fp, #156
	sub	r3, fp, #160
	mov	r0, r3
	bl	Encrypt
	ldr	r3, [fp, #-144]
	add	r3, r3, #4
	ldr	r2, [fp, #-160]
	str	r2, [r3]
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-144]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L23
.L24:
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-152]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-148]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-152]
	add	r3, r2, r3
	ldr	r2, [fp, #-172]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-148]
	lsl	r0, r3, #2
	ldr	r3, [fp, #-152]
	add	r3, r0, r3
	ldr	r0, [fp, #-168]
	add	r3, r0, r3
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L23:
	ldr	r3, [fp, #-152]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #180
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L24
.L22:
	ldr	r0, [fp, #-144]
	bl	free
	mov	r3, #0
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC1
	.size	crypto_stream_speck6496ctr_ref_xor, .-crypto_stream_speck6496ctr_ref_xor
	.align	2
	.global	Encrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	Encrypt, %function
Encrypt:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L30
.L31:
	ldr	r3, [fp, #-12]
	ror	r3, r3, #8
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	eor	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ror	r3, r3, #29
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	eor	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L30:
	ldr	r3, [fp, #-16]
	cmp	r3, #25
	bls	.L31
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	Encrypt, .-Encrypt
	.align	2
	.global	Decrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	Decrypt, %function
Decrypt:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #25
	str	r3, [fp, #-16]
	b	.L34
.L35:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	eor	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ror	r3, r3, #3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	eor	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ror	r3, r3, #24
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L34:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L35
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	Decrypt, .-Decrypt
	.align	2
	.global	ExpandKey
	.syntax unified
	.arm
	.fpu softvfp
	.type	ExpandKey, %function
ExpandKey:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L38
.L39:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ror	r3, r3, #8
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	eor	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ror	r3, r3, #29
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	eor	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ror	r3, r3, #8
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	eor	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	ror	r3, r3, #29
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	eor	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
.L38:
	ldr	r3, [fp, #-20]
	cmp	r3, #25
	bls	.L39
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ExpandKey, .-ExpandKey
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
