	.file	"103824.c"
	.intel_syntax noprefix
	.text
	.globl	sBox
	.data
	.align 16
	.type	sBox, @object
	.size	sBox, 16
sBox:
	.string	"\f\005\006\013\t"
	.ascii	"\n\r\003\016\017\b\004\007\001\002"
	.globl	key
	.bss
	.align 8
	.type	key, @object
	.size	key, 10
key:
	.zero	10
	.globl	message
	.align 8
	.type	message, @object
	.size	message, 8
message:
	.zero	8
	.globl	encryptRound
	.type	encryptRound, @object
	.size	encryptRound, 1
encryptRound:
	.zero	1
	.globl	myKey
	.align 8
	.type	myKey, @object
	.size	myKey, 8
myKey:
	.zero	8
	.globl	myMessage
	.align 8
	.type	myMessage, @object
	.size	myMessage, 8
myMessage:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: ./present.out [opts] -k <key> -m <message>\n"
.LC1:
	.string	"  -k <key> \n"
.LC2:
	.string	"  -m <message> \n"
	.text
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 50
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC3:
	.string	"%02X "
	.text
	.globl	printKey
	.type	printKey, @function
printKey:
.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, 16
	mov	BYTE PTR -1[rbp], 0
	jmp	.L3
.L4:
	movzx	edx, BYTE PTR -1[rbp]
	mov	eax, 9
	sub	eax, edx
	cdqe
	lea	rdx, key[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L3:
	cmp	BYTE PTR -1[rbp], 9
	jbe	.L4
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printKey, .-printKey
	.globl	printMessage
	.type	printMessage, @function
printMessage:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	BYTE PTR -1[rbp], 0
	jmp	.L6
.L7:
	movzx	edx, BYTE PTR -1[rbp]
	mov	eax, 7
	sub	eax, edx
	cdqe
	lea	rdx, message[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L6:
	cmp	BYTE PTR -1[rbp], 7
	jbe	.L7
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printMessage, .-printMessage
	.globl	addRoundKey
	.type	addRoundKey, @function
addRoundKey:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	BYTE PTR -1[rbp], 0
	jmp	.L9
.L10:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, message[rip]
	movzx	ecx, BYTE PTR [rax+rdx]
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 2
	cdqe
	lea	rdx, key[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movzx	eax, BYTE PTR -1[rbp]
	xor	ecx, edx
	cdqe
	lea	rdx, message[rip]
	mov	BYTE PTR [rax+rdx], cl
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L9:
	cmp	BYTE PTR -1[rbp], 7
	jbe	.L10
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	addRoundKey, .-addRoundKey
	.globl	substitutionLayer
	.type	substitutionLayer, @function
substitutionLayer:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	BYTE PTR -3[rbp], 0
	jmp	.L12
.L13:
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, message[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	and	eax, 15
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, message[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	shr	al, 4
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -2[rbp]
	cdqe
	lea	rdx, sBox[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	and	eax, 15
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, sBox[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	and	eax, 15
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	sal	eax, 4
	mov	BYTE PTR -1[rbp], al
	movzx	ecx, BYTE PTR -3[rbp]
	movzx	eax, BYTE PTR -1[rbp]
	or	al, BYTE PTR -2[rbp]
	mov	edx, eax
	movsx	rax, ecx
	lea	rcx, message[rip]
	mov	BYTE PTR [rax+rcx], dl
	movzx	eax, BYTE PTR -3[rbp]
	add	eax, 1
	mov	BYTE PTR -3[rbp], al
.L12:
	cmp	BYTE PTR -3[rbp], 7
	jbe	.L13
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	substitutionLayer, .-substitutionLayer
	.globl	permutationLayer
	.type	permutationLayer, @function
permutationLayer:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -22[rbp], 0
	jmp	.L15
.L16:
	movzx	eax, BYTE PTR -22[rbp]
	cdqe
	mov	BYTE PTR -16[rbp+rax], 0
	movzx	eax, BYTE PTR -22[rbp]
	add	eax, 1
	mov	BYTE PTR -22[rbp], al
.L15:
	cmp	BYTE PTR -22[rbp], 7
	jbe	.L16
	mov	BYTE PTR -24[rbp], 0
	jmp	.L17
.L20:
	cmp	BYTE PTR -24[rbp], 63
	jne	.L18
	mov	BYTE PTR -23[rbp], 63
	jmp	.L19
.L18:
	movzx	eax, BYTE PTR -24[rbp]
	lea	edx, 0[0+rax*4]
	movsx	rax, edx
	imul	rax, rax, -2113396605
	shr	rax, 32
	add	eax, edx
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 6
	sub	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	BYTE PTR -23[rbp], al
	movzx	eax, BYTE PTR -23[rbp]
	lea	edx, 0[0+rax*4]
	movsx	rax, edx
	imul	rax, rax, -2113396605
	shr	rax, 32
	add	eax, edx
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 6
	sub	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	BYTE PTR -23[rbp], al
.L19:
	movzx	eax, BYTE PTR -24[rbp]
	shr	al, 3
	mov	BYTE PTR -21[rbp], al
	movzx	eax, BYTE PTR -24[rbp]
	and	eax, 7
	mov	BYTE PTR -20[rbp], al
	movzx	eax, BYTE PTR -23[rbp]
	shr	al, 3
	mov	BYTE PTR -19[rbp], al
	movzx	eax, BYTE PTR -23[rbp]
	and	eax, 7
	mov	BYTE PTR -18[rbp], al
	movzx	eax, BYTE PTR -21[rbp]
	cdqe
	lea	rdx, message[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	edx, al
	movzx	eax, BYTE PTR -20[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	mov	BYTE PTR -17[rbp], al
	movzx	edx, BYTE PTR -17[rbp]
	movzx	eax, BYTE PTR -18[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	BYTE PTR -17[rbp], al
	movzx	eax, BYTE PTR -19[rbp]
	cdqe
	movzx	eax, BYTE PTR -16[rbp+rax]
	movzx	ecx, BYTE PTR -19[rbp]
	or	al, BYTE PTR -17[rbp]
	mov	edx, eax
	movsx	rax, ecx
	mov	BYTE PTR -16[rbp+rax], dl
	movzx	eax, BYTE PTR -24[rbp]
	add	eax, 1
	mov	BYTE PTR -24[rbp], al
.L17:
	cmp	BYTE PTR -24[rbp], 63
	jbe	.L20
	mov	BYTE PTR -22[rbp], 0
	jmp	.L21
.L22:
	movzx	eax, BYTE PTR -22[rbp]
	movzx	ecx, BYTE PTR -22[rbp]
	cdqe
	movzx	edx, BYTE PTR -16[rbp+rax]
	movsx	rax, ecx
	lea	rcx, message[rip]
	mov	BYTE PTR [rax+rcx], dl
	movzx	eax, BYTE PTR -22[rbp]
	add	eax, 1
	mov	BYTE PTR -22[rbp], al
.L21:
	cmp	BYTE PTR -22[rbp], 7
	jbe	.L22
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	permutationLayer, .-permutationLayer
	.globl	GenerateRoundKey
	.type	GenerateRoundKey, @function
GenerateRoundKey:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	eax, BYTE PTR key[rip]
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR key[rip+1]
	mov	BYTE PTR -3[rbp], al
	mov	BYTE PTR -5[rbp], 0
	jmp	.L25
.L26:
	movzx	eax, BYTE PTR -5[rbp]
	add	eax, 2
	movzx	ecx, BYTE PTR -5[rbp]
	cdqe
	lea	rdx, key[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, key[rip]
	mov	BYTE PTR [rax+rcx], dl
	movzx	eax, BYTE PTR -5[rbp]
	add	eax, 1
	mov	BYTE PTR -5[rbp], al
.L25:
	cmp	BYTE PTR -5[rbp], 7
	jbe	.L26
	movzx	eax, BYTE PTR -4[rbp]
	mov	BYTE PTR key[rip+8], al
	movzx	eax, BYTE PTR -3[rbp]
	mov	BYTE PTR key[rip+9], al
	movzx	eax, BYTE PTR key[rip]
	mov	BYTE PTR -4[rbp], al
	mov	BYTE PTR -5[rbp], 0
	jmp	.L27
.L28:
	movzx	eax, BYTE PTR -5[rbp]
	cdqe
	lea	rdx, key[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	shr	al, 3
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -5[rbp]
	add	eax, 1
	cdqe
	lea	rdx, key[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	sal	eax, 5
	mov	BYTE PTR -1[rbp], al
	movzx	ecx, BYTE PTR -5[rbp]
	movzx	eax, BYTE PTR -2[rbp]
	or	al, BYTE PTR -1[rbp]
	mov	edx, eax
	movsx	rax, ecx
	lea	rcx, key[rip]
	mov	BYTE PTR [rax+rcx], dl
	movzx	eax, BYTE PTR -5[rbp]
	add	eax, 1
	mov	BYTE PTR -5[rbp], al
.L27:
	cmp	BYTE PTR -5[rbp], 8
	jbe	.L28
	movzx	eax, BYTE PTR key[rip+9]
	shr	al, 3
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	sal	eax, 5
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -2[rbp]
	or	al, BYTE PTR -1[rbp]
	mov	BYTE PTR key[rip+9], al
	movzx	eax, BYTE PTR key[rip+9]
	and	eax, 15
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR key[rip+9]
	shr	al, 4
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, sBox[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	sal	eax, 4
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -2[rbp]
	or	al, BYTE PTR -1[rbp]
	mov	BYTE PTR key[rip+9], al
	movzx	eax, BYTE PTR encryptRound[rip]
	add	eax, 1
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -2[rbp]
	and	eax, 1
	test	eax, eax
	je	.L29
	movzx	eax, BYTE PTR key[rip+1]
	xor	eax, -128
	mov	BYTE PTR key[rip+1], al
.L29:
	movzx	eax, BYTE PTR -2[rbp]
	shr	al
	and	eax, 15
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR key[rip+2]
	xor	al, BYTE PTR -2[rbp]
	mov	BYTE PTR key[rip+2], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	GenerateRoundKey, .-GenerateRoundKey
	.globl	encryptPresent
	.type	encryptPresent, @function
encryptPresent:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	BYTE PTR encryptRound[rip], 0
	jmp	.L31
.L32:
	mov	eax, 0
	call	addRoundKey
	call	substitutionLayer
	call	permutationLayer
	mov	eax, 0
	call	GenerateRoundKey
	movzx	eax, BYTE PTR encryptRound[rip]
	add	eax, 1
	mov	BYTE PTR encryptRound[rip], al
.L31:
	movzx	eax, BYTE PTR encryptRound[rip]
	cmp	al, 30
	jbe	.L32
	mov	eax, 0
	call	addRoundKey
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	encryptPresent, .-encryptPresent
	.section	.rodata
	.align 8
.LC4:
	.string	"%hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx"
.LC5:
	.string	"loadkey(): input error!"
	.text
	.globl	loadkey
	.type	loadkey, @function
loadkey:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, key[rip]
	push	rdx
	lea	rdx, key[rip+1]
	push	rdx
	lea	rdx, key[rip+2]
	push	rdx
	lea	rdx, key[rip+3]
	push	rdx
	lea	rdx, key[rip+4]
	push	rdx
	lea	rdx, key[rip+5]
	push	rdx
	lea	r9, key[rip+6]
	lea	r8, key[rip+7]
	lea	rcx, key[rip+8]
	lea	rdx, key[rip+9]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 48
	cmp	eax, 10
	je	.L34
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L35
.L34:
	mov	eax, 0
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	loadkey, .-loadkey
	.section	.rodata
	.align 8
.LC6:
	.string	"%hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx"
.LC7:
	.string	"loadMessage(): input error!"
	.text
	.globl	loadMessage
	.type	loadMessage, @function
loadMessage:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, message[rip]
	push	rdx
	lea	rdx, message[rip+1]
	push	rdx
	lea	rdx, message[rip+2]
	push	rdx
	lea	rdx, message[rip+3]
	push	rdx
	lea	r9, message[rip+4]
	lea	r8, message[rip+5]
	lea	rcx, message[rip+6]
	lea	rdx, message[rip+7]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 32
	cmp	eax, 8
	je	.L37
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L38
.L37:
	mov	eax, 0
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	loadMessage, .-loadMessage
	.section	.rodata
.LC8:
	.string	"k:m:?"
	.text
	.type	parse_opts, @function
parse_opts:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	jmp	.L40
.L44:
	cmp	DWORD PTR -4[rbp], 107
	je	.L41
	cmp	DWORD PTR -4[rbp], 109
	je	.L42
	jmp	.L45
.L41:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR myKey[rip], rax
	jmp	.L40
.L42:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR myMessage[rip], rax
	jmp	.L40
.L45:
	mov	eax, 0
	call	usage
	nop
.L40:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC8[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L44
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	parse_opts, .-parse_opts
	.section	.rodata
	.align 8
.LC9:
	.ascii	"USAGE: \n   %s [ -k KEY ]\n\n      KEY   80-bit key v hexa z"
	.ascii	"apisu\n            vychozi "
	.string	"hodnota je 00 00 00 00 00 00 00 00 00 00\n    \n      Program cte Message ze stdin o SIZE 64 bitu (1 blok)    n      v hexa zapisu\n\nEXAMPLE\n   echo \"FF FF FF FF FF FF FF FF\" | %s \n   echo \"FF FF FF FF FF FF FF FF\" | %s -k \"FF FF FF FF FF F    F FF FF FF FF\"\n"
.LC10:
	.string	"Hello PRESENT!"
.LC11:
	.string	"Message to encrypt: "
.LC12:
	.string	"Encryption key:     "
.LC13:
	.string	"Ciphertext:         "
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jg	.L47
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L48
.L47:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parse_opts
	mov	rax, QWORD PTR myKey[rip]
	mov	rdi, rax
	call	loadkey
	test	al, al
	je	.L49
	mov	eax, 2
	jmp	.L48
.L49:
	mov	rax, QWORD PTR myMessage[rip]
	mov	rdi, rax
	call	loadMessage
	test	al, al
	je	.L50
	mov	eax, 3
	jmp	.L48
.L50:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	call	printMessage
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	call	printKey
	call	encryptPresent
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	call	printMessage
	mov	eax, 0
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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	"103824.c"
	.text
	.global	sBox
	.data
	.align	2
	.type	sBox, %object
	.size	sBox, 16
sBox:
	.ascii	"\014\005\006\013\011\000\012\015\003\016\017\010\004"
	.ascii	"\007\001\002"
	.global	key
	.bss
	.align	2
	.type	key, %object
	.size	key, 10
key:
	.space	10
	.global	message
	.align	2
	.type	message, %object
	.size	message, 8
message:
	.space	8
	.global	encryptRound
	.type	encryptRound, %object
	.size	encryptRound, 1
encryptRound:
	.space	1
	.comm	myKey,4,4
	.comm	myMessage,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: ./present.out [opts] -k <key> -m <message>\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"  -k <key> \012\000"
	.align	2
.LC2:
	.ascii	"  -m <message> \012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #50
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L2+8
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L2+12
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%02X \000"
	.text
	.align	2
	.global	printKey
	.syntax unified
	.arm
	.fpu softvfp
	.type	printKey, %function
printKey:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L5
.L6:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	rsb	r3, r3, #9
	ldr	r2, .L7
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L7+4
	bl	printf
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L5:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #9
	bls	.L6
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	key
	.word	.LC3
	.size	printKey, .-printKey
	.align	2
	.global	printMessage
	.syntax unified
	.arm
	.fpu softvfp
	.type	printMessage, %function
printMessage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L10
.L11:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	rsb	r3, r3, #7
	ldr	r2, .L12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L12+4
	bl	printf
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L10:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L11
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	message
	.word	.LC3
	.size	printMessage, .-printMessage
	.align	2
	.global	addRoundKey
	.syntax unified
	.arm
	.fpu softvfp
	.type	addRoundKey, %function
addRoundKey:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L15
.L16:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L17
	ldrb	r1, [r2, r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #2
	ldr	r2, .L17+4
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	eor	r2, r2, r1
	and	r1, r2, #255
	ldr	r2, .L17
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L15:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L16
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	message
	.word	key
	.size	addRoundKey, .-addRoundKey
	.align	2
	.global	substitutionLayer
	.syntax unified
	.arm
	.fpu softvfp
	.type	substitutionLayer, %function
substitutionLayer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	strb	r3, [fp, #-7]
	b	.L20
.L21:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L22
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #15
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L22
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	ldr	r2, .L22+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #15
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L22+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #15
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsl	r3, r3, #4
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldrb	r1, [fp, #-5]
	ldrb	r2, [fp, #-6]
	orr	r2, r1, r2
	and	r1, r2, #255
	ldr	r2, .L22
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-7]
.L20:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L21
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	message
	.word	sBox
	.size	substitutionLayer, .-substitutionLayer
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	permutationLayer
	.syntax unified
	.arm
	.fpu softvfp
	.type	permutationLayer, %function
permutationLayer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-22]
	b	.L25
.L26:
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-12]
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-22]
.L25:
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L26
	mov	r3, #0
	strb	r3, [fp, #-24]
	b	.L27
.L30:
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #63
	bne	.L28
	mov	r3, #63
	strb	r3, [fp, #-23]
	b	.L29
.L28:
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	lsl	r2, r3, #2
	ldr	r3, .L34+4
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #6
	sub	r3, r3, r1
	sub	r1, r2, r3
	mov	r3, r1
	strb	r3, [fp, #-23]
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	lsl	r2, r3, #2
	ldr	r3, .L34+4
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #6
	sub	r3, r3, r1
	sub	r1, r2, r3
	mov	r3, r1
	strb	r3, [fp, #-23]
.L29:
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	lsr	r3, r3, #3
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-24]
	and	r3, r3, #7
	strb	r3, [fp, #-20]
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	lsr	r3, r3, #3
	strb	r3, [fp, #-19]
	ldrb	r3, [fp, #-23]
	and	r3, r3, #7
	strb	r3, [fp, #-18]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	ldr	r2, .L34+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	asr	r3, r2, r3
	and	r3, r3, #255
	and	r3, r3, #1
	strb	r3, [fp, #-17]
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	lsl	r3, r2, r3
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-12]	@ zero_extendqisi2
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]
	orr	r2, r1, r2
	and	r2, r2, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-12]
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-24]
.L27:
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #63
	bls	.L30
	mov	r3, #0
	strb	r3, [fp, #-22]
	b	.L31
.L32:
	ldrb	r2, [fp, #-22]	@ zero_extendqisi2
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	sub	r1, fp, #4
	add	r2, r1, r2
	ldrb	r1, [r2, #-12]	@ zero_extendqisi2
	ldr	r2, .L34+8
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-22]
.L31:
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L32
	nop
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC4
	.word	-2113396605
	.word	message
	.size	permutationLayer, .-permutationLayer
	.align	2
	.global	GenerateRoundKey
	.syntax unified
	.arm
	.fpu softvfp
	.type	GenerateRoundKey, %function
GenerateRoundKey:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L42
	ldrb	r3, [r3]
	strb	r3, [fp, #-8]
	ldr	r3, .L42
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-7]
	mov	r3, #0
	strb	r3, [fp, #-9]
	b	.L37
.L38:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	add	r2, r3, #2
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r1, .L42
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L42
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-9]
.L37:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L38
	ldr	r2, .L42
	ldrb	r3, [fp, #-8]
	strb	r3, [r2, #8]
	ldr	r2, .L42
	ldrb	r3, [fp, #-7]
	strb	r3, [r2, #9]
	ldr	r3, .L42
	ldrb	r3, [r3]
	strb	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-9]
	b	.L39
.L40:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r2, .L42
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsr	r3, r3, #3
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	add	r3, r3, #1
	ldr	r2, .L42
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsl	r3, r3, #5
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldrb	r1, [fp, #-6]
	ldrb	r2, [fp, #-5]
	orr	r2, r1, r2
	and	r1, r2, #255
	ldr	r2, .L42
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-9]
.L39:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #8
	bls	.L40
	ldr	r3, .L42
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	lsr	r3, r3, #3
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	lsl	r3, r3, #5
	strb	r3, [fp, #-5]
	ldrb	r2, [fp, #-6]
	ldrb	r3, [fp, #-5]
	orr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, .L42
	strb	r2, [r3, #9]
	ldr	r3, .L42
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	and	r3, r3, #15
	strb	r3, [fp, #-6]
	ldr	r3, .L42
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	lsr	r3, r3, #4
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L42+4
	ldrb	r3, [r2, r3]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsl	r3, r3, #4
	strb	r3, [fp, #-5]
	ldrb	r2, [fp, #-6]
	ldrb	r3, [fp, #-5]
	orr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, .L42
	strb	r2, [r3, #9]
	ldr	r3, .L42+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L41
	ldr	r3, .L42
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	eor	r3, r3, #127
	mvn	r3, r3
	and	r2, r3, #255
	ldr	r3, .L42
	strb	r2, [r3, #1]
.L41:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	lsr	r3, r3, #1
	and	r3, r3, #255
	and	r3, r3, #15
	strb	r3, [fp, #-6]
	ldr	r3, .L42
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	ldrb	r3, [fp, #-6]
	eor	r3, r3, r2
	and	r2, r3, #255
	ldr	r3, .L42
	strb	r2, [r3, #2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L43:
	.align	2
.L42:
	.word	key
	.word	sBox
	.word	encryptRound
	.size	GenerateRoundKey, .-GenerateRoundKey
	.align	2
	.global	encryptPresent
	.syntax unified
	.arm
	.fpu softvfp
	.type	encryptPresent, %function
encryptPresent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L47
	mov	r2, #0
	strb	r2, [r3]
	b	.L45
.L46:
	bl	addRoundKey
	bl	substitutionLayer
	bl	permutationLayer
	bl	GenerateRoundKey
	ldr	r3, .L47
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L47
	strb	r2, [r3]
.L45:
	ldr	r3, .L47
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #30
	bls	.L46
	bl	addRoundKey
	nop
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	encryptRound
	.size	encryptPresent, .-encryptPresent
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx\000"
	.align	2
.LC6:
	.ascii	"loadkey(): input error!\000"
	.text
	.align	2
	.global	loadkey
	.syntax unified
	.arm
	.fpu softvfp
	.type	loadkey, %function
loadkey:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-8]
	ldr	r3, .L52
	str	r3, [sp, #28]
	ldr	r3, .L52+4
	str	r3, [sp, #24]
	ldr	r3, .L52+8
	str	r3, [sp, #20]
	ldr	r3, .L52+12
	str	r3, [sp, #16]
	ldr	r3, .L52+16
	str	r3, [sp, #12]
	ldr	r3, .L52+20
	str	r3, [sp, #8]
	ldr	r3, .L52+24
	str	r3, [sp, #4]
	ldr	r3, .L52+28
	str	r3, [sp]
	ldr	r3, .L52+32
	ldr	r2, .L52+36
	ldr	r1, .L52+40
	ldr	r0, [fp, #-8]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #10
	beq	.L50
	ldr	r0, .L52+44
	bl	puts
	mov	r3, #1
	b	.L51
.L50:
	mov	r3, #0
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	key
	.word	key+1
	.word	key+2
	.word	key+3
	.word	key+4
	.word	key+5
	.word	key+6
	.word	key+7
	.word	key+8
	.word	key+9
	.word	.LC5
	.word	.LC6
	.size	loadkey, .-loadkey
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx\000"
	.align	2
.LC8:
	.ascii	"loadMessage(): input error!\000"
	.text
	.align	2
	.global	loadMessage
	.syntax unified
	.arm
	.fpu softvfp
	.type	loadMessage, %function
loadMessage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-8]
	ldr	r3, .L57
	str	r3, [sp, #20]
	ldr	r3, .L57+4
	str	r3, [sp, #16]
	ldr	r3, .L57+8
	str	r3, [sp, #12]
	ldr	r3, .L57+12
	str	r3, [sp, #8]
	ldr	r3, .L57+16
	str	r3, [sp, #4]
	ldr	r3, .L57+20
	str	r3, [sp]
	ldr	r3, .L57+24
	ldr	r2, .L57+28
	ldr	r1, .L57+32
	ldr	r0, [fp, #-8]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #8
	beq	.L55
	ldr	r0, .L57+36
	bl	puts
	mov	r3, #1
	b	.L56
.L55:
	mov	r3, #0
.L56:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	message
	.word	message+1
	.word	message+2
	.word	message+3
	.word	message+4
	.word	message+5
	.word	message+6
	.word	message+7
	.word	.LC7
	.word	.LC8
	.size	loadMessage, .-loadMessage
	.section	.rodata
	.align	2
.LC9:
	.ascii	"k:m:?\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_opts, %function
parse_opts:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	b	.L60
.L64:
	ldr	r3, [fp, #-8]
	cmp	r3, #107
	beq	.L61
	ldr	r3, [fp, #-8]
	cmp	r3, #109
	beq	.L62
	b	.L65
.L61:
	ldr	r3, .L66
	ldr	r3, [r3]
	ldr	r2, .L66+4
	str	r3, [r2]
	b	.L60
.L62:
	ldr	r3, .L66
	ldr	r3, [r3]
	ldr	r2, .L66+8
	str	r3, [r2]
	b	.L60
.L65:
	bl	usage
	nop
.L60:
	ldr	r2, .L66+12
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getopt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L64
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	optarg
	.word	myKey
	.word	myMessage
	.word	.LC9
	.size	parse_opts, .-parse_opts
	.section	.rodata
	.align	2
.LC10:
	.ascii	"USAGE: \012   %s [ -k KEY ]\012\012      KEY   80-b"
	.ascii	"it key v hexa zapisu\012            vychozi hodnota"
	.ascii	" je 00 00 00 00 00 00 00 00 00 00\012    \012      "
	.ascii	"Program cte Message ze stdin o SIZE 64 bitu (1 blok"
	.ascii	")    n      v hexa zapisu\012\012EXAMPLE\012   echo"
	.ascii	" \"FF FF FF FF FF FF FF FF\" | %s \012   echo \"FF "
	.ascii	"FF FF FF FF FF FF FF\" | %s -k \"FF FF FF FF FF F  "
	.ascii	"  F FF FF FF FF\"\012\000"
	.align	2
.LC11:
	.ascii	"Hello PRESENT!\000"
	.align	2
.LC12:
	.ascii	"Message to encrypt: \000"
	.align	2
.LC13:
	.ascii	"Encryption key:     \000"
	.align	2
.LC14:
	.ascii	"Ciphertext:         \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L69
	ldr	r3, [fp, #-12]
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r0, .L73
	bl	printf
	mov	r3, #1
	b	.L70
.L69:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	parse_opts
	ldr	r3, .L73+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	loadkey
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
	mov	r3, #2
	b	.L70
.L71:
	ldr	r3, .L73+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	loadMessage
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	mov	r3, #3
	b	.L70
.L72:
	ldr	r0, .L73+12
	bl	puts
	ldr	r0, .L73+16
	bl	printf
	bl	printMessage
	ldr	r0, .L73+20
	bl	printf
	bl	printKey
	bl	encryptPresent
	ldr	r0, .L73+24
	bl	printf
	bl	printMessage
	mov	r3, #0
.L70:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC10
	.word	myKey
	.word	myMessage
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
