	.file	"465477.c"
	.intel_syntax noprefix
	.text
	.globl	key_size
	.section	.rodata
	.type	key_size, @object
	.size	key_size, 1
key_size:
	.byte	4
	.globl	word_size
	.type	word_size, @object
	.size	word_size, 1
word_size:
	.byte	16
	.globl	bytes
	.type	bytes, @object
	.size	bytes, 1
bytes:
	.byte	2
	.globl	rounds
	.type	rounds, @object
	.size	rounds, 1
rounds:
	.byte	32
	.globl	z_sequence
	.align 8
	.type	z_sequence, @object
	.size	z_sequence, 8
z_sequence:
	.quad	1856417836235662431
	.align 8
.LC0:
	.string	"X: %02x, Y: %02x, K0: %02x, K1: %02x, K2: %02x, K3: %02x \n"
	.text
	.globl	expand_simon_64_32
	.type	expand_simon_64_32, @function
expand_simon_64_32:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	BYTE PTR -82[rbp], 0
	jmp	.L2
.L3:
	mov	eax, 2
	movzx	eax, al
	mov	edx, 2
	movzx	ecx, dl
	movzx	edx, BYTE PTR -82[rbp]
	imul	edx, ecx
	movsx	rcx, edx
	mov	rdx, QWORD PTR -104[rbp]
	lea	rsi, [rcx+rdx]
	movzx	edx, BYTE PTR -82[rbp]
	lea	rcx, -48[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rcx, rdx
	mov	rdx, rax
	mov	rdi, rcx
	call	memcpy@PLT
	movzx	eax, BYTE PTR -82[rbp]
	add	eax, 1
	mov	BYTE PTR -82[rbp], al
.L2:
	mov	eax, 4
	cmp	BYTE PTR -82[rbp], al
	jb	.L3
	mov	eax, 2
	movzx	edx, al
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, 16
	movzx	edx, al
	mov	eax, 64
	sub	eax, edx
	mov	rdx, -1
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], -4
	mov	BYTE PTR -82[rbp], 0
	jmp	.L4
.L7:
	mov	eax, 4
	movzx	eax, al
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -48[rbp+rax*8]
	shr	rax, 3
	mov	rsi, rax
	mov	eax, 4
	movzx	eax, al
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -48[rbp+rax*8]
	and	eax, 7
	mov	rdx, rax
	mov	eax, 16
	movzx	eax, al
	sub	eax, 3
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rax, rsi
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	xor	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	shr	rax
	mov	rsi, rax
	mov	rax, QWORD PTR -64[rbp]
	and	eax, 1
	mov	rdx, rax
	mov	eax, 16
	movzx	eax, al
	sub	eax, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rax, rsi
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	xor	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	xor	QWORD PTR -64[rbp], rax
	movabs	rsi, 1856417836235662431
	movzx	ecx, BYTE PTR -82[rbp]
	mov	eax, ecx
	shr	al
	movzx	edx, al
	mov	eax, edx
	sal	eax, 5
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	shr	ax, 8
	shr	al, 4
	mov	edx, 62
	imul	eax, edx
	mov	edx, eax
	mov	eax, ecx
	sub	eax, edx
	movzx	eax, al
	mov	ecx, eax
	shr	rsi, cl
	mov	rax, rsi
	and	eax, 1
	xor	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	xor	QWORD PTR -64[rbp], rax
	mov	BYTE PTR -81[rbp], 0
	jmp	.L5
.L6:
	movzx	eax, BYTE PTR -81[rbp]
	add	eax, 1
	movzx	ecx, BYTE PTR -81[rbp]
	cdqe
	mov	rdx, QWORD PTR -48[rbp+rax*8]
	movsx	rax, ecx
	mov	QWORD PTR -48[rbp+rax*8], rdx
	movzx	eax, BYTE PTR -81[rbp]
	add	eax, 1
	mov	BYTE PTR -81[rbp], al
.L5:
	movzx	eax, BYTE PTR -81[rbp]
	mov	edx, 4
	movzx	edx, dl
	sub	edx, 1
	cmp	eax, edx
	jl	.L6
	mov	eax, 4
	movzx	eax, al
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	and	rax, QWORD PTR -80[rbp]
	mov	rdx, rax
	movsx	rax, ecx
	mov	QWORD PTR -48[rbp+rax*8], rdx
	mov	eax, 2
	movzx	edx, al
	mov	eax, 2
	movzx	eax, al
	movzx	ecx, BYTE PTR -82[rbp]
	add	ecx, 1
	imul	eax, ecx
	movsx	rcx, eax
	mov	rax, QWORD PTR -112[rbp]
	add	rcx, rax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rsi, QWORD PTR -24[rbp]
	mov	r8, QWORD PTR -32[rbp]
	mov	rdi, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	movzx	eax, BYTE PTR -82[rbp]
	add	eax, 1
	mov	BYTE PTR -82[rbp], al
.L4:
	mov	eax, 32
	cmp	BYTE PTR -82[rbp], al
	jb	.L7
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	expand_simon_64_32, .-expand_simon_64_32
	.section	.rodata
.LC1:
	.string	"X: %02x, Y: %02x \n"
	.text
	.globl	encrypt_simon_64_32
	.type	encrypt_simon_64_32, @function
encrypt_simon_64_32:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR -26[rbp], ax
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, WORD PTR 2[rax]
	mov	WORD PTR -24[rbp], ax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L10
.L11:
	movzx	eax, WORD PTR -24[rbp]
	add	eax, eax
	mov	esi, eax
	movzx	edx, WORD PTR -24[rbp]
	mov	eax, 16
	movzx	eax, al
	sub	eax, 1
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	or	eax, esi
	mov	WORD PTR -22[rbp], ax
	movzx	eax, WORD PTR -24[rbp]
	sal	eax, 8
	mov	esi, eax
	movzx	edx, WORD PTR -24[rbp]
	mov	eax, 16
	movzx	eax, al
	sub	eax, 8
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	or	esi, eax
	mov	edx, esi
	movzx	eax, WORD PTR -22[rbp]
	and	eax, edx
	mov	WORD PTR -22[rbp], ax
	movzx	eax, WORD PTR -26[rbp]
	xor	WORD PTR -22[rbp], ax
	movzx	eax, WORD PTR -24[rbp]
	sal	eax, 2
	mov	esi, eax
	movzx	edx, WORD PTR -24[rbp]
	mov	eax, 16
	movzx	eax, al
	sub	eax, 2
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	or	esi, eax
	mov	edx, esi
	movzx	eax, WORD PTR -22[rbp]
	xor	eax, edx
	mov	WORD PTR -22[rbp], ax
	movzx	eax, WORD PTR -24[rbp]
	mov	WORD PTR -26[rbp], ax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	xor	ax, WORD PTR -22[rbp]
	mov	WORD PTR -24[rbp], ax
	movzx	edx, WORD PTR -26[rbp]
	movzx	eax, WORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -20[rbp], 1
.L10:
	mov	eax, 32
	movzx	eax, al
	cmp	DWORD PTR -20[rbp], eax
	jl	.L11
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR -26[rbp]
	mov	WORD PTR [rax], dx
	add	QWORD PTR -8[rbp], 2
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR -24[rbp]
	mov	WORD PTR [rax], dx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	encrypt_simon_64_32, .-encrypt_simon_64_32
	.globl	decrypt_simon_64_32
	.type	decrypt_simon_64_32, @function
decrypt_simon_64_32:
.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR -26[rbp], ax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR 2[rax]
	mov	WORD PTR -24[rbp], ax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, 32
	movzx	eax, al
	sub	eax, 1
	mov	DWORD PTR -20[rbp], eax
	jmp	.L14
.L15:
	movzx	eax, WORD PTR -26[rbp]
	add	eax, eax
	mov	esi, eax
	movzx	edx, WORD PTR -26[rbp]
	mov	eax, 16
	movzx	eax, al
	sub	eax, 1
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	or	eax, esi
	mov	WORD PTR -22[rbp], ax
	movzx	eax, WORD PTR -26[rbp]
	sal	eax, 8
	mov	esi, eax
	movzx	edx, WORD PTR -26[rbp]
	mov	eax, 16
	movzx	eax, al
	sub	eax, 8
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	or	esi, eax
	mov	edx, esi
	movzx	eax, WORD PTR -22[rbp]
	and	eax, edx
	mov	WORD PTR -22[rbp], ax
	movzx	eax, WORD PTR -24[rbp]
	xor	WORD PTR -22[rbp], ax
	movzx	eax, WORD PTR -26[rbp]
	sal	eax, 2
	mov	esi, eax
	movzx	edx, WORD PTR -26[rbp]
	mov	eax, 16
	movzx	eax, al
	sub	eax, 2
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	or	esi, eax
	mov	edx, esi
	movzx	eax, WORD PTR -22[rbp]
	xor	eax, edx
	mov	WORD PTR -22[rbp], ax
	movzx	eax, WORD PTR -26[rbp]
	mov	WORD PTR -24[rbp], ax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	xor	ax, WORD PTR -22[rbp]
	mov	WORD PTR -26[rbp], ax
	sub	DWORD PTR -20[rbp], 1
.L14:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L15
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR -26[rbp]
	mov	WORD PTR [rax], dx
	add	QWORD PTR -8[rbp], 2
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR -24[rbp]
	mov	WORD PTR [rax], dx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	decrypt_simon_64_32, .-decrypt_simon_64_32
	.section	.rodata
.LC2:
	.string	"Test Simon 64/32"
	.align 8
.LC3:
	.string	"Plaintext %02x, %02x, %02x, %02x \n"
	.align 8
.LC4:
	.string	"Encrypted %02x, %02x, %02x, %02x \n"
	.align 8
.LC5:
	.string	"Decrypted %02x, %02x, %02x, %02x \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 32
	movzx	edx, al
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	sub	rax, 1
	mov	QWORD PTR -128[rbp], rax
	mov	eax, 32
	movzx	edx, al
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, 32
	movzx	edx, al
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	eax, 32
	movzx	edx, al
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L18:
	cmp	rsp, rdx
	je	.L19
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L18
.L19:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L20
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L20:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -120[rbp], rax
	movabs	rax, 1808214010957922560
	mov	QWORD PTR -104[rbp], rax
	mov	DWORD PTR -108[rbp], 1701144695
	mov	rdx, QWORD PTR -120[rbp]
	lea	rax, -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	expand_simon_64_32
	lea	rdx, -96[rbp]
	lea	rcx, -108[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	encrypt_simon_64_32
	lea	rdx, -96[rbp]
	lea	rcx, -80[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	decrypt_simon_64_32
	movzx	eax, BYTE PTR -105[rbp]
	movzx	esi, al
	movzx	eax, BYTE PTR -106[rbp]
	movzx	ecx, al
	movzx	eax, BYTE PTR -107[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -108[rbp]
	movzx	eax, al
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -93[rbp]
	movzx	esi, al
	movzx	eax, BYTE PTR -94[rbp]
	movzx	ecx, al
	movzx	eax, BYTE PTR -95[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -96[rbp]
	movzx	eax, al
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -77[rbp]
	movzx	esi, al
	movzx	eax, BYTE PTR -78[rbp]
	movzx	ecx, al
	movzx	eax, BYTE PTR -79[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -80[rbp]
	movzx	eax, al
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.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	"465477.c"
	.text
	.global	key_size
	.section	.rodata
	.type	key_size, %object
	.size	key_size, 1
key_size:
	.byte	4
	.global	word_size
	.type	word_size, %object
	.size	word_size, 1
word_size:
	.byte	16
	.global	bytes
	.type	bytes, %object
	.size	bytes, 1
bytes:
	.byte	2
	.global	rounds
	.type	rounds, %object
	.size	rounds, 1
rounds:
	.byte	32
	.global	z_sequence
	.align	3
	.type	z_sequence, %object
	.size	z_sequence, 8
z_sequence:
	.word	-1283021729
	.word	432230959
	.align	2
.LC0:
	.ascii	"X: %02x, Y: %02x, K0: %02x, K1: %02x, K2: %02x, K3:"
	.ascii	" %02x \012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	expand_simon_64_32
	.syntax unified
	.arm
	.fpu softvfp
	.type	expand_simon_64_32, %function
expand_simon_64_32:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #232
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L9+8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r0, fp, #68
	mov	r3, #32
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #0
	strb	r3, [fp, #-102]
	b	.L2
.L3:
	ldrb	r3, [fp, #-102]	@ zero_extendqisi2
	sub	r2, fp, #68
	lsl	r3, r3, #3
	add	r0, r2, r3
	mov	r3, #2
	mov	r2, r3
	ldrb	r3, [fp, #-102]	@ zero_extendqisi2
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-112]
	add	r1, r3, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldrb	r3, [fp, #-102]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-102]
.L2:
	mov	r2, #4
	ldrb	r3, [fp, #-102]	@ zero_extendqisi2
	cmp	r3, r2
	bcc	.L3
	mov	r3, #2
	mov	r2, r3
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	memcpy
	mov	r3, #16
	rsb	r1, r3, #64
	mvn	r2, #0
	mvn	r3, #0
	rsb	ip, r1, #32
	sub	r0, r1, #32
	lsr	r4, r2, r1
	orr	r4, r4, r3, lsl ip
	orr	r4, r4, r3, lsr r0
	lsr	r5, r3, r1
	str	r4, [fp, #-100]
	str	r5, [fp, #-96]
	mvn	r2, #3
	mvn	r3, #0
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	mov	r3, #0
	strb	r3, [fp, #-102]
	b	.L4
.L7:
	mov	r3, #4
	sub	r3, r3, #1
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #40
	ldmia	r3, {r2-r3}
	mov	r4, #0
	mov	r5, #0
	lsr	r4, r2, #3
	orr	r4, r4, r3, lsl #29
	lsr	r5, r3, #3
	mov	r3, #4
	sub	r3, r3, #1
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #40
	ldmia	r3, {r0-r1}
	mov	r2, #7
	mov	r3, #0
	and	ip, r0, r2
	str	ip, [fp, #-140]
	and	r3, r1, r3
	str	r3, [fp, #-136]
	mov	r3, #16
	sub	r3, r3, #3
	sub	r1, r3, #32
	rsb	r2, r3, #32
	sub	r7, fp, #140
	ldmia	r7, {r6-r7}
	mov	r0, r7
	lsl	r0, r0, r3
	str	r0, [fp, #-120]
	ldr	r0, [fp, #-120]
	mov	ip, r6
	orr	r1, r0, ip, lsl r1
	str	r1, [fp, #-120]
	ldr	r1, [fp, #-120]
	mov	r0, r6
	orr	r2, r1, r0, lsr r2
	str	r2, [fp, #-120]
	mov	r2, r6
	lsl	r3, r2, r3
	str	r3, [fp, #-124]
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	mov	r1, r2
	orr	r1, r4, r1
	str	r1, [fp, #-172]
	orr	r3, r5, r3
	str	r3, [fp, #-168]
	sub	r4, fp, #172
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-84]
	str	r4, [fp, #-80]
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	eor	ip, r2, r0
	str	ip, [fp, #-180]
	eor	r3, r3, r1
	str	r3, [fp, #-176]
	sub	r4, fp, #180
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-84]
	str	r4, [fp, #-80]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	mov	r4, #0
	mov	r5, #0
	lsr	r4, r2, #1
	orr	r4, r4, r3, lsl #31
	lsr	r5, r3, #1
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	mov	r2, #1
	mov	r3, #0
	and	ip, r0, r2
	str	ip, [fp, #-148]
	and	r3, r1, r3
	str	r3, [fp, #-144]
	mov	r3, #16
	sub	r3, r3, #1
	sub	r1, r3, #32
	rsb	r2, r3, #32
	sub	r7, fp, #148
	ldmia	r7, {r6-r7}
	mov	r0, r7
	lsl	r0, r0, r3
	str	r0, [fp, #-128]
	ldr	r0, [fp, #-128]
	mov	ip, r6
	orr	r1, r0, ip, lsl r1
	str	r1, [fp, #-128]
	ldr	r1, [fp, #-128]
	mov	r0, r6
	orr	r2, r1, r0, lsr r2
	str	r2, [fp, #-128]
	mov	r2, r6
	lsl	r3, r2, r3
	str	r3, [fp, #-132]
	sub	r3, fp, #132
	ldmia	r3, {r2-r3}
	mov	r1, r2
	orr	r1, r4, r1
	str	r1, [fp, #-188]
	orr	r3, r5, r3
	str	r3, [fp, #-184]
	sub	r4, fp, #188
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-76]
	str	r4, [fp, #-72]
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	eor	ip, r2, r0
	str	ip, [fp, #-196]
	eor	r3, r3, r1
	str	r3, [fp, #-192]
	sub	r4, fp, #196
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-84]
	str	r4, [fp, #-80]
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	eor	ip, r0, r2
	str	ip, [fp, #-204]
	eor	r3, r1, r3
	str	r3, [fp, #-200]
	sub	r4, fp, #204
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-84]
	str	r4, [fp, #-80]
	adr	r1, .L9
	ldmia	r1, {r0-r1}
	ldrb	ip, [fp, #-102]	@ zero_extendqisi2
	lsr	r2, ip, #1
	ldr	r3, .L9+12
	umull	lr, r3, r2, r3
	lsr	r2, r3, #4
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #1
	sub	r3, ip, r3
	and	r3, r3, #255
	rsb	ip, r3, #32
	sub	r2, r3, #32
	lsr	r8, r0, r3
	orr	r8, r8, r1, lsl ip
	orr	r8, r8, r1, lsr r2
	lsr	r9, r1, r3
	mov	r2, #1
	mov	r3, #0
	and	r1, r8, r2
	str	r1, [fp, #-156]
	and	r3, r9, r3
	str	r3, [fp, #-152]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	sub	r1, fp, #156
	ldmia	r1, {r0-r1}
	mov	ip, r0
	eor	ip, r2, ip
	str	ip, [fp, #-212]
	eor	r3, r3, r1
	str	r3, [fp, #-208]
	sub	r4, fp, #212
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-76]
	str	r4, [fp, #-72]
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	eor	ip, r0, r2
	str	ip, [fp, #-220]
	eor	r3, r1, r3
	str	r3, [fp, #-216]
	sub	r4, fp, #220
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-84]
	str	r4, [fp, #-80]
	mov	r3, #0
	strb	r3, [fp, #-101]
	b	.L5
.L6:
	ldrb	r3, [fp, #-101]	@ zero_extendqisi2
	add	r3, r3, #1
	ldrb	r2, [fp, #-101]	@ zero_extendqisi2
	lsl	r3, r3, #3
	sub	r1, fp, #28
	add	r3, r1, r3
	sub	r3, r3, #40
	ldmia	r3, {r0-r1}
	lsl	r3, r2, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #40
	stm	r3, {r0-r1}
	ldrb	r3, [fp, #-101]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-101]
.L5:
	ldrb	r2, [fp, #-101]	@ zero_extendqisi2
	mov	r3, #4
	sub	r3, r3, #1
	cmp	r2, r3
	blt	.L6
	mov	r3, #4
	sub	ip, r3, #1
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	and	lr, r0, r2
	str	lr, [fp, #-164]
	and	r3, r1, r3
	str	r3, [fp, #-160]
	lsl	r3, ip, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #40
	sub	r2, fp, #164
	ldmia	r2, {r1-r2}
	stm	r3, {r1-r2}
	mov	r3, #2
	mov	r2, r3
	ldrb	r3, [fp, #-102]	@ zero_extendqisi2
	add	r3, r3, #1
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-116]
	add	r0, r3, r2
	mov	r3, #2
	mov	r2, r3
	sub	r3, fp, #68
	mov	r1, r3
	bl	memcpy
	sub	r7, fp, #68
	ldmia	r7, {r6-r7}
	sub	r5, fp, #60
	ldmia	r5, {r4-r5}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [sp, #32]
	str	r3, [sp, #36]
	str	r0, [sp, #24]
	str	r1, [sp, #28]
	str	r4, [sp, #16]
	str	r5, [sp, #20]
	str	r6, [sp, #8]
	str	r7, [sp, #12]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	ldr	r0, .L9+16
	bl	printf
	ldrb	r3, [fp, #-102]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-102]
.L4:
	mov	r2, #32
	ldrb	r3, [fp, #-102]	@ zero_extendqisi2
	cmp	r3, r2
	bcc	.L7
	nop
	ldr	r3, .L9+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L10:
	.align	3
.L9:
	.word	-1283021729
	.word	432230959
	.word	.LC1
	.word	-2078209981
	.word	.LC0
	.size	expand_simon_64_32, .-expand_simon_64_32
	.section	.rodata
	.align	2
.LC2:
	.ascii	"X: %02x, Y: %02x \012\000"
	.text
	.align	2
	.global	encrypt_simon_64_32
	.syntax unified
	.arm
	.fpu softvfp
	.type	encrypt_simon_64_32, %function
encrypt_simon_64_32:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3]	@ movhi
	strh	r3, [fp, #-22]	@ movhi
	ldr	r3, [fp, #-36]
	ldrh	r3, [r3, #2]	@ movhi
	strh	r3, [fp, #-20]	@ movhi
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L12
.L13:
	ldrh	r3, [fp, #-20]
	lsl	r3, r3, #1
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrh	r1, [fp, #-20]
	mov	r3, #16
	sub	r3, r3, #1
	asr	r3, r1, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-20]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrh	r1, [fp, #-20]
	mov	r3, #16
	sub	r3, r3, #8
	asr	r3, r1, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrsh	r3, [fp, #-18]
	and	r3, r3, r2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r2, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-22]	@ movhi
	eor	r3, r3, r2
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-20]
	lsl	r3, r3, #2
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrh	r1, [fp, #-20]
	mov	r3, #16
	sub	r3, r3, #2
	asr	r3, r1, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrsh	r3, [fp, #-18]
	eor	r3, r3, r2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-20]	@ movhi
	strh	r3, [fp, #-22]	@ movhi
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrh	r2, [r3]
	ldrh	r3, [fp, #-18]	@ movhi
	eor	r3, r3, r2
	strh	r3, [fp, #-20]	@ movhi
	ldrh	r3, [fp, #-20]
	ldrh	r2, [fp, #-22]
	mov	r1, r3
	ldr	r0, .L15
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L12:
	mov	r3, #32
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	blt	.L13
	ldr	r3, [fp, #-8]
	ldrh	r2, [fp, #-22]	@ movhi
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrh	r2, [fp, #-20]	@ movhi
	strh	r2, [r3]	@ movhi
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC2
	.size	encrypt_simon_64_32, .-encrypt_simon_64_32
	.align	2
	.global	decrypt_simon_64_32
	.syntax unified
	.arm
	.fpu softvfp
	.type	decrypt_simon_64_32, %function
decrypt_simon_64_32:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldrh	r3, [r3]	@ movhi
	strh	r3, [fp, #-22]	@ movhi
	ldr	r3, [fp, #-40]
	ldrh	r3, [r3, #2]	@ movhi
	strh	r3, [fp, #-20]	@ movhi
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-8]
	mov	r3, #32
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L18
.L19:
	ldrh	r3, [fp, #-22]
	lsl	r3, r3, #1
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrh	r1, [fp, #-22]
	mov	r3, #16
	sub	r3, r3, #1
	asr	r3, r1, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-22]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrh	r1, [fp, #-22]
	mov	r3, #16
	sub	r3, r3, #8
	asr	r3, r1, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrsh	r3, [fp, #-18]
	and	r3, r3, r2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r2, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-20]	@ movhi
	eor	r3, r3, r2
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-22]
	lsl	r3, r3, #2
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrh	r1, [fp, #-22]
	mov	r3, #16
	sub	r3, r3, #2
	asr	r3, r1, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrsh	r3, [fp, #-18]
	eor	r3, r3, r2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-22]	@ movhi
	strh	r3, [fp, #-20]	@ movhi
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrh	r2, [r3]
	ldrh	r3, [fp, #-18]	@ movhi
	eor	r3, r3, r2
	strh	r3, [fp, #-22]	@ movhi
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L18:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L19
	ldr	r3, [fp, #-8]
	ldrh	r2, [fp, #-22]	@ movhi
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrh	r2, [fp, #-20]	@ movhi
	strh	r2, [r3]	@ movhi
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	decrypt_simon_64_32, .-decrypt_simon_64_32
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Test Simon 64/32\000"
	.align	2
.LC5:
	.ascii	"Plaintext %02x, %02x, %02x, %02x \012\000"
	.align	2
.LC6:
	.ascii	"Encrypted %02x, %02x, %02x, %02x \012\000"
	.align	2
.LC7:
	.ascii	"Decrypted %02x, %02x, %02x, %02x \012\000"
	.align	2
.LC4:
	.ascii	"\000\001\010\011\020\021\030\031"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r0, .L24+4
	bl	puts
	mov	r3, #32
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r3, r3, #1
	str	r3, [fp, #-68]
	mov	r3, #32
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #32
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #32
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #0
	str	r3, [fp, #-64]
	ldr	r2, .L24+8
	sub	r3, fp, #56
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L24+12
	str	r3, [fp, #-60]
	sub	r3, fp, #56
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	expand_simon_64_32
	sub	r2, fp, #48
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	encrypt_simon_64_32
	sub	r2, fp, #48
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	decrypt_simon_64_32
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-59]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-58]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L24+16
	bl	printf
	ldrb	r3, [fp, #-48]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-47]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-46]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L24+20
	bl	printf
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-31]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L24+24
	bl	printf
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC8
	.word	.LC3
	.word	.LC4
	.word	1701144695
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
