	.file	"92199.c"
	.intel_syntax noprefix
	.text
	.globl	key_size
	.section	.rodata
	.type	key_size, @object
	.size	key_size, 1
key_size:
	.byte	2
	.globl	word_size
	.type	word_size, @object
	.size	word_size, 1
word_size:
	.byte	64
	.globl	bytes
	.type	bytes, @object
	.size	bytes, 1
bytes:
	.byte	8
	.globl	rounds
	.type	rounds, @object
	.size	rounds, 1
rounds:
	.byte	68
	.globl	z_sequence
	.align 8
	.type	z_sequence, @object
	.size	z_sequence, 8
z_sequence:
	.quad	3704765419025600245
	.text
	.globl	expand_simon_128_128
	.type	expand_simon_128_128, @function
expand_simon_128_128:
.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 -80[rbp], -1
	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, 8
	movzx	eax, al
	mov	edx, 8
	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, 2
	cmp	BYTE PTR -82[rbp], al
	jb	.L3
	mov	eax, 8
	movzx	edx, al
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	QWORD PTR -72[rbp], -4
	mov	BYTE PTR -82[rbp], 0
	jmp	.L4
.L7:
	mov	eax, 2
	movzx	eax, al
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -48[rbp+rax*8]
	shr	rax, 3
	mov	rsi, rax
	mov	eax, 2
	movzx	eax, al
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -48[rbp+rax*8]
	and	eax, 7
	mov	rdx, rax
	mov	eax, 64
	movzx	eax, al
	sub	eax, 3
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, QWORD PTR -80[rbp]
	or	rax, rsi
	mov	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, 64
	movzx	eax, al
	sub	eax, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, QWORD PTR -80[rbp]
	or	rax, rsi
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	and	rax, QWORD PTR -80[rbp]
	xor	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	xor	QWORD PTR -64[rbp], rax
	movabs	rsi, 3704765419025600245
	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]
	and	rax, QWORD PTR -80[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, 2
	movzx	edx, dl
	sub	edx, 1
	cmp	eax, edx
	jl	.L6
	mov	eax, 64
	movzx	edx, al
	mov	eax, 64
	sub	eax, edx
	mov	rdx, -1
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	mov	edx, 2
	movzx	edx, dl
	lea	ecx, -1[rdx]
	and	rax, QWORD PTR -64[rbp]
	mov	rdx, rax
	movsx	rax, ecx
	mov	QWORD PTR -48[rbp+rax*8], rdx
	mov	eax, 8
	movzx	edx, al
	mov	eax, 8
	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
	movzx	eax, BYTE PTR -82[rbp]
	add	eax, 1
	mov	BYTE PTR -82[rbp], al
.L4:
	mov	eax, 68
	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_128_128, .-expand_simon_128_128
	.globl	encrypt_simon_128_128
	.type	encrypt_simon_128_128, @function
encrypt_simon_128_128:
.LFB7:
	.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 -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -32[rbp], -1
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -52[rbp], 0
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, [rax+rax]
	mov	eax, 64
	movzx	eax, al
	sub	eax, 1
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	or	rax, rsi
	and	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	sal	rax, 8
	mov	rsi, rax
	mov	eax, 64
	movzx	eax, al
	sub	eax, 8
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	or	rax, rsi
	and	rax, QWORD PTR -8[rbp]
	and	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	xor	rax, QWORD PTR -48[rbp]
	and	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, 0[0+rax*4]
	mov	eax, 64
	movzx	eax, al
	sub	eax, 2
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	or	rax, rsi
	xor	rax, QWORD PTR -8[rbp]
	and	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	xor	rax, QWORD PTR -8[rbp]
	and	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -40[rbp], rax
	add	DWORD PTR -52[rbp], 1
.L10:
	mov	eax, 68
	movzx	eax, al
	cmp	DWORD PTR -52[rbp], eax
	jl	.L11
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	add	QWORD PTR -16[rbp], 8
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	encrypt_simon_128_128, .-encrypt_simon_128_128
	.globl	decrypt_simon_128_128
	.type	decrypt_simon_128_128, @function
decrypt_simon_128_128:
.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 -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -32[rbp], -1
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, 68
	movzx	eax, al
	sub	eax, 1
	mov	DWORD PTR -52[rbp], eax
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, [rax+rax]
	mov	eax, 64
	movzx	eax, al
	sub	eax, 1
	mov	rdx, QWORD PTR -48[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	or	rax, rsi
	and	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	sal	rax, 8
	mov	rsi, rax
	mov	eax, 64
	movzx	eax, al
	sub	eax, 8
	mov	rdx, QWORD PTR -48[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	or	rax, rsi
	and	rax, QWORD PTR -8[rbp]
	and	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	xor	rax, QWORD PTR -40[rbp]
	and	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, 0[0+rax*4]
	mov	eax, 64
	movzx	eax, al
	sub	eax, 2
	mov	rdx, QWORD PTR -48[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	or	rax, rsi
	xor	rax, QWORD PTR -8[rbp]
	and	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	xor	rax, QWORD PTR -8[rbp]
	and	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -48[rbp], rax
	sub	DWORD PTR -52[rbp], 1
.L13:
	cmp	DWORD PTR -52[rbp], 0
	jns	.L14
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	add	QWORD PTR -16[rbp], 8
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	decrypt_simon_128_128, .-decrypt_simon_128_128
	.section	.rodata
.LC0:
	.string	"Test Simon 128/128"
	.align 8
.LC1:
	.string	"Plaintext %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x\n"
	.align 8
.LC2:
	.string	"Encrypted %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x\n"
	.align 8
.LC3:
	.string	"Decrypted %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %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, 120
	.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	QWORD PTR -152[rbp], rax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 68
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	cdqe
	sub	rax, 1
	mov	QWORD PTR -144[rbp], rax
	mov	eax, 68
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, 68
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	eax, 68
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	eax, 68
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L16:
	cmp	rsp, rdx
	je	.L17
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L16
.L17:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L18
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L18:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -136[rbp], rax
	movabs	rax, 506097522914230528
	movabs	rdx, 1084818905618843912
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	movabs	rax, 7812731012696405024
	movabs	rdx, 7166182912792162917
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rdx, QWORD PTR -136[rbp]
	lea	rax, -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	expand_simon_128_128
	lea	rdx, -128[rbp]
	lea	rcx, -80[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	encrypt_simon_128_128
	lea	rdx, -128[rbp]
	lea	rcx, -112[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	decrypt_simon_128_128
	movzx	eax, BYTE PTR -65[rbp]
	movzx	ecx, al
	movzx	eax, BYTE PTR -66[rbp]
	movzx	edi, al
	movzx	eax, BYTE PTR -67[rbp]
	movzx	r15d, al
	movzx	eax, BYTE PTR -68[rbp]
	movzx	r14d, al
	movzx	eax, BYTE PTR -69[rbp]
	movzx	r13d, al
	movzx	eax, BYTE PTR -70[rbp]
	movzx	r12d, al
	movzx	eax, BYTE PTR -71[rbp]
	movzx	ebx, al
	movzx	eax, BYTE PTR -72[rbp]
	movzx	r11d, al
	movzx	eax, BYTE PTR -73[rbp]
	movzx	r10d, al
	movzx	eax, BYTE PTR -74[rbp]
	movzx	r9d, al
	movzx	eax, BYTE PTR -75[rbp]
	movzx	r8d, al
	movzx	eax, BYTE PTR -76[rbp]
	movzx	eax, al
	mov	DWORD PTR -156[rbp], eax
	movzx	eax, BYTE PTR -77[rbp]
	movzx	esi, al
	mov	DWORD PTR -160[rbp], esi
	movzx	eax, BYTE PTR -78[rbp]
	movzx	esi, al
	movzx	eax, BYTE PTR -79[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -80[rbp]
	movzx	eax, al
	sub	rsp, 8
	push	rcx
	push	rdi
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	push	r11
	push	r10
	push	r9
	push	r8
	mov	r9d, DWORD PTR -156[rbp]
	mov	r8d, DWORD PTR -160[rbp]
	mov	ecx, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 96
	movzx	eax, BYTE PTR -113[rbp]
	movzx	ecx, al
	movzx	eax, BYTE PTR -114[rbp]
	movzx	edi, al
	movzx	eax, BYTE PTR -115[rbp]
	movzx	r15d, al
	movzx	eax, BYTE PTR -116[rbp]
	movzx	r14d, al
	movzx	eax, BYTE PTR -117[rbp]
	movzx	r13d, al
	movzx	eax, BYTE PTR -118[rbp]
	movzx	r12d, al
	movzx	eax, BYTE PTR -119[rbp]
	movzx	ebx, al
	movzx	eax, BYTE PTR -120[rbp]
	movzx	r11d, al
	movzx	eax, BYTE PTR -121[rbp]
	movzx	r10d, al
	movzx	eax, BYTE PTR -122[rbp]
	movzx	r9d, al
	movzx	eax, BYTE PTR -123[rbp]
	movzx	r8d, al
	movzx	eax, BYTE PTR -124[rbp]
	movzx	eax, al
	mov	DWORD PTR -156[rbp], eax
	movzx	eax, BYTE PTR -125[rbp]
	movzx	esi, al
	mov	DWORD PTR -160[rbp], esi
	movzx	eax, BYTE PTR -126[rbp]
	movzx	esi, al
	movzx	eax, BYTE PTR -127[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -128[rbp]
	movzx	eax, al
	sub	rsp, 8
	push	rcx
	push	rdi
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	push	r11
	push	r10
	push	r9
	push	r8
	mov	r9d, DWORD PTR -156[rbp]
	mov	r8d, DWORD PTR -160[rbp]
	mov	ecx, esi
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 96
	movzx	eax, BYTE PTR -97[rbp]
	movzx	ecx, al
	movzx	eax, BYTE PTR -98[rbp]
	movzx	edi, al
	movzx	eax, BYTE PTR -99[rbp]
	movzx	r15d, al
	movzx	eax, BYTE PTR -100[rbp]
	movzx	r14d, al
	movzx	eax, BYTE PTR -101[rbp]
	movzx	r13d, al
	movzx	eax, BYTE PTR -102[rbp]
	movzx	r12d, al
	movzx	eax, BYTE PTR -103[rbp]
	movzx	ebx, al
	movzx	eax, BYTE PTR -104[rbp]
	movzx	r11d, al
	movzx	eax, BYTE PTR -105[rbp]
	movzx	r10d, al
	movzx	eax, BYTE PTR -106[rbp]
	movzx	r9d, al
	movzx	eax, BYTE PTR -107[rbp]
	movzx	r8d, al
	movzx	eax, BYTE PTR -108[rbp]
	movzx	eax, al
	mov	DWORD PTR -156[rbp], eax
	movzx	eax, BYTE PTR -109[rbp]
	movzx	esi, al
	mov	DWORD PTR -160[rbp], esi
	movzx	eax, BYTE PTR -110[rbp]
	movzx	esi, al
	movzx	eax, BYTE PTR -111[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -112[rbp]
	movzx	eax, al
	sub	rsp, 8
	push	rcx
	push	rdi
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	push	r11
	push	r10
	push	r9
	push	r8
	mov	r9d, DWORD PTR -156[rbp]
	mov	r8d, DWORD PTR -160[rbp]
	mov	ecx, esi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 96
	mov	eax, 0
	mov	rsp, QWORD PTR -152[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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	"92199.c"
	.text
	.global	key_size
	.section	.rodata
	.type	key_size, %object
	.size	key_size, 1
key_size:
	.byte	2
	.global	word_size
	.type	word_size, %object
	.size	word_size, 1
word_size:
	.byte	64
	.global	bytes
	.type	bytes, %object
	.size	bytes, 1
bytes:
	.byte	8
	.global	rounds
	.type	rounds, %object
	.size	rounds, 1
rounds:
	.byte	68
	.global	z_sequence
	.align	3
	.type	z_sequence, %object
	.size	z_sequence, 8
z_sequence:
	.word	422317813
	.word	862582917
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	expand_simon_128_128
	.syntax unified
	.arm
	.fpu softvfp
	.type	expand_simon_128_128, %function
expand_simon_128_128:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #216
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L9+8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mvn	r2, #0
	mvn	r3, #0
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	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, #8
	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, #8
	mov	r2, r3
	bl	memcpy
	ldrb	r3, [fp, #-102]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-102]
.L2:
	mov	r2, #2
	ldrb	r3, [fp, #-102]	@ zero_extendqisi2
	cmp	r3, r2
	bcc	.L3
	mov	r3, #8
	mov	r2, r3
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	memcpy
	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, #2
	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, #2
	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, #64
	sub	r3, r3, #3
	sub	r1, r3, #32
	rsb	r2, r3, #32
	ldr	ip, [fp, #-136]
	lsl	ip, ip, r3
	str	ip, [fp, #-120]
	ldr	ip, [fp, #-120]
	ldr	lr, [fp, #-140]
	orr	r1, ip, lr, lsl r1
	str	r1, [fp, #-120]
	ldr	ip, [fp, #-120]
	sub	r1, fp, #140
	ldmia	r1, {r0-r1}
	mov	lr, r0
	orr	r2, ip, lr, lsr r2
	str	r2, [fp, #-120]
	mov	r2, r0
	lsl	r3, r2, r3
	str	r3, [fp, #-124]
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, ip, r2
	str	ip, [fp, #-156]
	and	r3, r1, r3
	str	r3, [fp, #-152]
	sub	r3, fp, #156
	ldmia	r3, {r2-r3}
	mov	r1, r2
	orr	r1, r4, r1
	str	r1, [fp, #-204]
	orr	r3, r5, r3
	str	r3, [fp, #-200]
	sub	r4, fp, #204
	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, #64
	sub	r3, r3, #1
	sub	r1, r3, #32
	rsb	r2, r3, #32
	ldr	ip, [fp, #-144]
	lsl	ip, ip, r3
	str	ip, [fp, #-128]
	ldr	ip, [fp, #-128]
	ldr	lr, [fp, #-148]
	orr	r1, ip, lr, lsl r1
	str	r1, [fp, #-128]
	ldr	ip, [fp, #-128]
	sub	r1, fp, #148
	ldmia	r1, {r0-r1}
	mov	lr, r0
	orr	r2, ip, lr, lsr r2
	str	r2, [fp, #-128]
	mov	r2, r0
	lsl	r3, r2, r3
	str	r3, [fp, #-132]
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	sub	r1, fp, #132
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, ip, r2
	str	ip, [fp, #-164]
	and	r3, r1, r3
	str	r3, [fp, #-160]
	sub	r3, fp, #164
	ldmia	r3, {r2-r3}
	mov	r1, r2
	orr	r1, r4, r1
	str	r1, [fp, #-212]
	orr	r3, r5, r3
	str	r3, [fp, #-208]
	sub	r4, fp, #212
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-76]
	str	r4, [fp, #-72]
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	and	ip, r0, r2
	str	ip, [fp, #-172]
	and	r3, r1, r3
	str	r3, [fp, #-168]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	sub	r1, fp, #172
	ldmia	r1, {r0-r1}
	mov	ip, r0
	eor	ip, r2, ip
	str	ip, [fp, #-220]
	eor	r3, r3, r1
	str	r3, [fp, #-216]
	sub	r4, fp, #220
	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, #-228]
	eor	r3, r1, r3
	str	r3, [fp, #-224]
	sub	r4, fp, #228
	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	r6, r0, r3
	orr	r6, r6, r1, lsl ip
	orr	r6, r6, r1, lsr r2
	lsr	r7, r1, r3
	mov	r2, #1
	mov	r3, #0
	and	r1, r6, r2
	str	r1, [fp, #-180]
	and	r3, r7, r3
	str	r3, [fp, #-176]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	sub	r1, fp, #180
	ldmia	r1, {r0-r1}
	mov	ip, r0
	eor	ip, ip, r2
	str	ip, [fp, #-188]
	eor	r3, r1, r3
	str	r3, [fp, #-184]
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	sub	r1, fp, #188
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, r2, ip
	str	ip, [fp, #-236]
	and	r3, r3, r1
	str	r3, [fp, #-232]
	sub	r4, fp, #236
	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, #-244]
	eor	r3, r1, r3
	str	r3, [fp, #-240]
	sub	r4, fp, #244
	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, #2
	sub	r3, r3, #1
	cmp	r2, r3
	blt	.L6
	mov	r3, #64
	rsb	r1, r3, #64
	mvn	r2, #0
	mvn	r3, #0
	rsb	ip, r1, #32
	sub	r0, r1, #32
	lsr	r8, r2, r1
	orr	r8, r8, r3, lsl ip
	orr	r8, r8, r3, lsr r0
	lsr	r9, r3, r1
	mov	r3, #2
	sub	r1, r3, #1
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	and	r0, r8, r2
	str	r0, [fp, #-196]
	and	r3, r9, r3
	str	r3, [fp, #-192]
	lsl	r3, r1, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #40
	sub	r2, fp, #196
	ldmia	r2, {r1-r2}
	stm	r3, {r1-r2}
	mov	r3, #8
	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, #8
	mov	r2, r3
	sub	r3, fp, #68
	mov	r1, r3
	bl	memcpy
	ldrb	r3, [fp, #-102]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-102]
.L4:
	mov	r2, #68
	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	422317813
	.word	862582917
	.word	.LC0
	.word	-2078209981
	.size	expand_simon_128_128, .-expand_simon_128_128
	.align	2
	.global	encrypt_simon_128_128
	.syntax unified
	.arm
	.fpu softvfp
	.type	encrypt_simon_128_128, %function
encrypt_simon_128_128:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #176
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	mvn	r2, #0
	mvn	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-84]
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-84]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L12
.L13:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r1, r2, r2
	str	r1, [fp, #-164]
	adc	r3, r3, r3
	str	r3, [fp, #-160]
	sub	r5, fp, #164
	ldmia	r5, {r4-r5}
	mov	r3, #64
	sub	r1, r3, #1
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	rsb	ip, r1, #32
	sub	r0, r1, #32
	lsr	lr, r2, r1
	str	lr, [fp, #-100]
	ldr	lr, [fp, #-100]
	orr	ip, lr, r3, lsl ip
	str	ip, [fp, #-100]
	ldr	ip, [fp, #-100]
	orr	r0, ip, r3, lsr r0
	str	r0, [fp, #-100]
	lsr	r3, r3, r1
	str	r3, [fp, #-96]
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	mov	r1, r2
	orr	r1, r4, r1
	str	r1, [fp, #-108]
	orr	r3, r5, r3
	str	r3, [fp, #-104]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #108
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, r2, ip
	str	ip, [fp, #-172]
	and	r3, r3, r1
	str	r3, [fp, #-168]
	sub	r4, fp, #172
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-36]
	str	r4, [fp, #-32]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #8
	orr	r5, r5, r2, lsr #24
	lsl	r4, r2, #8
	mov	r3, #64
	sub	r1, r3, #8
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	rsb	ip, r1, #32
	sub	r0, r1, #32
	lsr	r8, r2, r1
	orr	r8, r8, r3, lsl ip
	orr	r8, r8, r3, lsr r0
	lsr	r9, r3, r1
	orr	r3, r4, r8
	str	r3, [fp, #-116]
	orr	r3, r5, r9
	str	r3, [fp, #-112]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #116
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, ip, r2
	str	ip, [fp, #-124]
	and	r3, r1, r3
	str	r3, [fp, #-120]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, r2, ip
	str	ip, [fp, #-180]
	and	r3, r3, r1
	str	r3, [fp, #-176]
	sub	r4, fp, #180
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-36]
	str	r4, [fp, #-32]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	eor	ip, r0, r2
	str	ip, [fp, #-132]
	eor	r3, r1, r3
	str	r3, [fp, #-128]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #132
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, r2, ip
	str	ip, [fp, #-188]
	and	r3, r3, r1
	str	r3, [fp, #-184]
	sub	r4, fp, #188
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-36]
	str	r4, [fp, #-32]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #2
	orr	r5, r5, r2, lsr #30
	lsl	r4, r2, #2
	mov	r3, #64
	sub	r1, r3, #2
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	rsb	ip, r1, #32
	sub	r0, r1, #32
	lsr	r6, r2, r1
	orr	r6, r6, r3, lsl ip
	orr	r6, r6, r3, lsr r0
	lsr	r7, r3, r1
	orr	r3, r4, r6
	str	r3, [fp, #-140]
	orr	r3, r5, r7
	str	r3, [fp, #-136]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #140
	ldmia	r1, {r0-r1}
	mov	ip, r0
	eor	ip, ip, r2
	str	ip, [fp, #-148]
	eor	r3, r1, r3
	str	r3, [fp, #-144]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #148
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, r2, ip
	str	ip, [fp, #-196]
	and	r3, r3, r1
	str	r3, [fp, #-192]
	sub	r4, fp, #196
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-36]
	str	r4, [fp, #-32]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-72]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-68]
	add	r3, r3, r2
	ldmia	r3, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	eor	ip, r0, r2
	str	ip, [fp, #-156]
	eor	r3, r1, r3
	str	r3, [fp, #-152]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #156
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, r2, ip
	str	ip, [fp, #-204]
	and	r3, r3, r1
	str	r3, [fp, #-200]
	sub	r4, fp, #204
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L12:
	mov	r3, #68
	mov	r2, r3
	ldr	r3, [fp, #-72]
	cmp	r3, r2
	blt	.L13
	ldr	r1, [fp, #-64]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-64]
	add	r3, r3, #8
	str	r3, [fp, #-64]
	ldr	r1, [fp, #-64]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	encrypt_simon_128_128, .-encrypt_simon_128_128
	.align	2
	.global	decrypt_simon_128_128
	.syntax unified
	.arm
	.fpu softvfp
	.type	decrypt_simon_128_128, %function
decrypt_simon_128_128:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #176
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	mvn	r2, #0
	mvn	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-88]
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-88]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-64]
	mov	r3, #68
	sub	r3, r3, #1
	str	r3, [fp, #-72]
	b	.L15
.L16:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r1, r2, r2
	str	r1, [fp, #-164]
	adc	r3, r3, r3
	str	r3, [fp, #-160]
	sub	r5, fp, #164
	ldmia	r5, {r4-r5}
	mov	r3, #64
	sub	r1, r3, #1
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	rsb	ip, r1, #32
	sub	r0, r1, #32
	lsr	lr, r2, r1
	str	lr, [fp, #-100]
	ldr	lr, [fp, #-100]
	orr	ip, lr, r3, lsl ip
	str	ip, [fp, #-100]
	ldr	ip, [fp, #-100]
	orr	r0, ip, r3, lsr r0
	str	r0, [fp, #-100]
	lsr	r3, r3, r1
	str	r3, [fp, #-96]
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	mov	r1, r2
	orr	r1, r4, r1
	str	r1, [fp, #-108]
	orr	r3, r5, r3
	str	r3, [fp, #-104]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #108
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, r2, ip
	str	ip, [fp, #-172]
	and	r3, r3, r1
	str	r3, [fp, #-168]
	sub	r4, fp, #172
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-36]
	str	r4, [fp, #-32]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #8
	orr	r5, r5, r2, lsr #24
	lsl	r4, r2, #8
	mov	r3, #64
	sub	r1, r3, #8
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	rsb	ip, r1, #32
	sub	r0, r1, #32
	lsr	r8, r2, r1
	orr	r8, r8, r3, lsl ip
	orr	r8, r8, r3, lsr r0
	lsr	r9, r3, r1
	orr	r3, r4, r8
	str	r3, [fp, #-116]
	orr	r3, r5, r9
	str	r3, [fp, #-112]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #116
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, ip, r2
	str	ip, [fp, #-124]
	and	r3, r1, r3
	str	r3, [fp, #-120]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, r2, ip
	str	ip, [fp, #-180]
	and	r3, r3, r1
	str	r3, [fp, #-176]
	sub	r4, fp, #180
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-36]
	str	r4, [fp, #-32]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	eor	ip, r0, r2
	str	ip, [fp, #-132]
	eor	r3, r1, r3
	str	r3, [fp, #-128]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #132
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, r2, ip
	str	ip, [fp, #-188]
	and	r3, r3, r1
	str	r3, [fp, #-184]
	sub	r4, fp, #188
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-36]
	str	r4, [fp, #-32]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #2
	orr	r5, r5, r2, lsr #30
	lsl	r4, r2, #2
	mov	r3, #64
	sub	r1, r3, #2
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	rsb	ip, r1, #32
	sub	r0, r1, #32
	lsr	r6, r2, r1
	orr	r6, r6, r3, lsl ip
	orr	r6, r6, r3, lsr r0
	lsr	r7, r3, r1
	orr	r3, r4, r6
	str	r3, [fp, #-140]
	orr	r3, r5, r7
	str	r3, [fp, #-136]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #140
	ldmia	r1, {r0-r1}
	mov	ip, r0
	eor	ip, ip, r2
	str	ip, [fp, #-148]
	eor	r3, r1, r3
	str	r3, [fp, #-144]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #148
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, r2, ip
	str	ip, [fp, #-196]
	and	r3, r3, r1
	str	r3, [fp, #-192]
	sub	r4, fp, #196
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-36]
	str	r4, [fp, #-32]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-72]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-68]
	add	r3, r3, r2
	ldmia	r3, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	eor	ip, r0, r2
	str	ip, [fp, #-156]
	eor	r3, r1, r3
	str	r3, [fp, #-152]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #156
	ldmia	r1, {r0-r1}
	mov	ip, r0
	and	ip, r2, ip
	str	ip, [fp, #-204]
	and	r3, r3, r1
	str	r3, [fp, #-200]
	sub	r4, fp, #204
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-60]
	str	r4, [fp, #-56]
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	str	r3, [fp, #-72]
.L15:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bge	.L16
	ldr	r1, [fp, #-64]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-64]
	add	r3, r3, #8
	str	r3, [fp, #-64]
	ldr	r1, [fp, #-64]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	decrypt_simon_128_128, .-decrypt_simon_128_128
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Test Simon 128/128\000"
	.align	2
.LC4:
	.ascii	"Plaintext %02x, %02x, %02x, %02x, %02x, %02x, %02x,"
	.ascii	" %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %0"
	.ascii	"2x\012\000"
	.align	2
.LC5:
	.ascii	"Encrypted %02x, %02x, %02x, %02x, %02x, %02x, %02x,"
	.ascii	" %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %0"
	.ascii	"2x\012\000"
	.align	2
.LC6:
	.ascii	"Decrypted %02x, %02x, %02x, %02x, %02x, %02x, %02x,"
	.ascii	" %02x, %02x, %02x, %02x, %02x, %02x, %02x, %02x, %0"
	.ascii	"2x\012\000"
	.align	2
.LC2:
	.ascii	"\000\001\002\003\004\005\006\007\010\011\012\013\014"
	.ascii	"\015\016\017"
	.align	2
.LC3:
	.ascii	" travellers desc"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #156
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r3, sp
	str	r3, [fp, #-120]
	ldr	r0, .L20+4
	bl	puts
	mov	r3, #68
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r3, r3, #1
	str	r3, [fp, #-112]
	mov	r3, #68
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	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, #68
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	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, #68
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #56
	add	r3, r3, #0
	str	r3, [fp, #-108]
	ldr	r3, .L20+8
	sub	ip, fp, #72
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L20+12
	sub	ip, fp, #56
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #72
	ldr	r1, [fp, #-108]
	mov	r0, r3
	bl	expand_simon_128_128
	sub	r2, fp, #104
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, [fp, #-108]
	bl	encrypt_simon_128_128
	sub	r2, fp, #104
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, [fp, #-108]
	bl	decrypt_simon_128_128
	ldrb	r3, [fp, #-56]	@ zero_extendqisi2
	str	r3, [fp, #-124]
	ldrb	r3, [fp, #-55]	@ zero_extendqisi2
	str	r3, [fp, #-128]
	ldrb	r3, [fp, #-54]	@ zero_extendqisi2
	str	r3, [fp, #-132]
	ldrb	r3, [fp, #-53]	@ zero_extendqisi2
	mov	ip, r3
	ldrb	r3, [fp, #-52]	@ zero_extendqisi2
	mov	lr, r3
	ldrb	r3, [fp, #-51]	@ zero_extendqisi2
	mov	r4, r3
	ldrb	r3, [fp, #-50]	@ zero_extendqisi2
	mov	r5, r3
	ldrb	r3, [fp, #-49]	@ zero_extendqisi2
	mov	r6, r3
	ldrb	r3, [fp, #-48]	@ zero_extendqisi2
	mov	r7, r3
	ldrb	r3, [fp, #-47]	@ zero_extendqisi2
	mov	r8, r3
	ldrb	r3, [fp, #-46]	@ zero_extendqisi2
	mov	r9, r3
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	mov	r10, r3
	ldrb	r3, [fp, #-44]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	str	r3, [sp, #48]
	str	r2, [sp, #44]
	str	r1, [sp, #40]
	str	r0, [sp, #36]
	str	r10, [sp, #32]
	str	r9, [sp, #28]
	str	r8, [sp, #24]
	str	r7, [sp, #20]
	str	r6, [sp, #16]
	str	r5, [sp, #12]
	str	r4, [sp, #8]
	str	lr, [sp, #4]
	str	ip, [sp]
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-128]
	ldr	r1, [fp, #-124]
	ldr	r0, .L20+16
	bl	printf
	ldrb	r3, [fp, #-104]	@ zero_extendqisi2
	str	r3, [fp, #-124]
	ldrb	r3, [fp, #-103]	@ zero_extendqisi2
	str	r3, [fp, #-128]
	ldrb	r3, [fp, #-102]	@ zero_extendqisi2
	str	r3, [fp, #-132]
	ldrb	r3, [fp, #-101]	@ zero_extendqisi2
	mov	ip, r3
	ldrb	r3, [fp, #-100]	@ zero_extendqisi2
	mov	lr, r3
	ldrb	r3, [fp, #-99]	@ zero_extendqisi2
	mov	r4, r3
	ldrb	r3, [fp, #-98]	@ zero_extendqisi2
	mov	r5, r3
	ldrb	r3, [fp, #-97]	@ zero_extendqisi2
	mov	r6, r3
	ldrb	r3, [fp, #-96]	@ zero_extendqisi2
	mov	r7, r3
	ldrb	r3, [fp, #-95]	@ zero_extendqisi2
	mov	r8, r3
	ldrb	r3, [fp, #-94]	@ zero_extendqisi2
	mov	r9, r3
	ldrb	r3, [fp, #-93]	@ zero_extendqisi2
	mov	r10, r3
	ldrb	r3, [fp, #-92]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-91]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-90]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-89]	@ zero_extendqisi2
	str	r3, [sp, #48]
	str	r2, [sp, #44]
	str	r1, [sp, #40]
	str	r0, [sp, #36]
	str	r10, [sp, #32]
	str	r9, [sp, #28]
	str	r8, [sp, #24]
	str	r7, [sp, #20]
	str	r6, [sp, #16]
	str	r5, [sp, #12]
	str	r4, [sp, #8]
	str	lr, [sp, #4]
	str	ip, [sp]
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-128]
	ldr	r1, [fp, #-124]
	ldr	r0, .L20+20
	bl	printf
	ldrb	r3, [fp, #-88]	@ zero_extendqisi2
	str	r3, [fp, #-124]
	ldrb	r3, [fp, #-87]	@ zero_extendqisi2
	str	r3, [fp, #-128]
	ldrb	r3, [fp, #-86]	@ zero_extendqisi2
	str	r3, [fp, #-132]
	ldrb	r3, [fp, #-85]	@ zero_extendqisi2
	mov	ip, r3
	ldrb	r3, [fp, #-84]	@ zero_extendqisi2
	mov	lr, r3
	ldrb	r3, [fp, #-83]	@ zero_extendqisi2
	mov	r4, r3
	ldrb	r3, [fp, #-82]	@ zero_extendqisi2
	mov	r5, r3
	ldrb	r3, [fp, #-81]	@ zero_extendqisi2
	mov	r6, r3
	ldrb	r3, [fp, #-80]	@ zero_extendqisi2
	mov	r7, r3
	ldrb	r3, [fp, #-79]	@ zero_extendqisi2
	mov	r8, r3
	ldrb	r3, [fp, #-78]	@ zero_extendqisi2
	mov	r9, r3
	ldrb	r3, [fp, #-77]	@ zero_extendqisi2
	mov	r10, r3
	ldrb	r3, [fp, #-76]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-75]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-74]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-73]	@ zero_extendqisi2
	str	r3, [sp, #48]
	str	r2, [sp, #44]
	str	r1, [sp, #40]
	str	r0, [sp, #36]
	str	r10, [sp, #32]
	str	r9, [sp, #28]
	str	r8, [sp, #24]
	str	r7, [sp, #20]
	str	r6, [sp, #16]
	str	r5, [sp, #12]
	str	r4, [sp, #8]
	str	lr, [sp, #4]
	str	ip, [sp]
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-128]
	ldr	r1, [fp, #-124]
	ldr	r0, .L20+24
	bl	printf
	mov	r3, #0
	ldr	sp, [fp, #-120]
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC7
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
