	.file	"201926.c"
	.intel_syntax noprefix
	.text
	.globl	M
	.section	.rodata
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.long	26
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.long	2
	.text
	.globl	reverse
	.type	reverse, @function
reverse:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -13[rbp], al
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -13[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -12[rbp], 1
	sub	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jle	.L3
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reverse, .-reverse
	.globl	decrypt
	.type	decrypt, @function
decrypt:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	eax, 2
	cdqe
	sub	rax, 1
	mov	QWORD PTR -24[rbp], rax
	mov	eax, 2
	cdqe
	mov	rcx, rax
	mov	ebx, 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L6
.L11:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, 2
	cdqe
	imul	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR 1[rax]
	cmp	dl, al
	jne	.L8
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	eax, 2
	cdqe
	imul	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	jmp	.L9
.L8:
	add	DWORD PTR -32[rbp], 1
.L7:
	cmp	DWORD PTR -32[rbp], 25
	jle	.L10
.L9:
	add	DWORD PTR -28[rbp], 1
.L6:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 8
	jbe	.L11
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	reverse
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	decrypt, .-decrypt
	.globl	encrypt
	.type	encrypt, @function
encrypt:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	eax, 2
	cdqe
	sub	rax, 1
	mov	QWORD PTR -24[rbp], rax
	mov	eax, 2
	cdqe
	mov	rcx, rax
	mov	ebx, 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L14
.L19:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, 2
	cdqe
	imul	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L16
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	eax, 2
	cdqe
	imul	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR [rdx], al
	jmp	.L17
.L16:
	add	DWORD PTR -32[rbp], 1
.L15:
	cmp	DWORD PTR -32[rbp], 25
	jle	.L18
.L17:
	add	DWORD PTR -28[rbp], 1
.L14:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 8
	jbe	.L19
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	reverse
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	encrypt, .-encrypt
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: ./encrypt -t <mappingfile> -m <encryption mode> -i <inputfile>\n"
	.text
	.globl	arg_len_check
	.type	arg_len_check, @function
arg_len_check:
.LFB9:
	.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
	cmp	DWORD PTR -4[rbp], 7
	je	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 70
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 7
	call	exit@PLT
.L24:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	arg_len_check, .-arg_len_check
	.section	.rodata
	.align 8
.LC1:
	.string	"Error: Mapping file %s does not exist\n"
	.text
	.globl	mapping_file_valid
	.type	mapping_file_valid, @function
mapping_file_valid:
.LFB10:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	cmp	QWORD PTR -8[rbp], 0
	jne	.L28
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
.L28:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	mapping_file_valid, .-mapping_file_valid
	.section	.rodata
	.align 8
.LC2:
	.string	"Error: Input word file %s does not exist \n"
	.text
	.globl	input_file_valid
	.type	input_file_valid, @function
input_file_valid:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	cmp	QWORD PTR -8[rbp], 0
	jne	.L32
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
.L32:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	input_file_valid, .-input_file_valid
	.section	.rodata
	.align 8
.LC3:
	.string	"The format of %s is incorrect\n"
	.text
	.globl	mapping_error_check
	.type	mapping_error_check, @function
mapping_error_check:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 344
	.cfi_offset 3, -24
	mov	QWORD PTR -328[rbp], rdi
	mov	QWORD PTR -336[rbp], rsi
	mov	DWORD PTR -340[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, 2
	cdqe
	sub	rax, 1
	mov	QWORD PTR -296[rbp], rax
	mov	eax, 2
	cdqe
	mov	rcx, rax
	mov	ebx, 0
	lea	rdx, -288[rbp]
	mov	eax, 0
	mov	ecx, 13
	mov	rdi, rdx
	rep stosq
	lea	rdx, -176[rbp]
	mov	eax, 0
	mov	ecx, 13
	mov	rdi, rdx
	rep stosq
	movabs	rax, 7523094288207667809
	movabs	rdx, 8101815670912281193
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	movabs	rax, 8680537053616894577
	mov	QWORD PTR -48[rbp], rax
	mov	WORD PTR -40[rbp], 31353
	mov	DWORD PTR -300[rbp], 0
	jmp	.L34
.L39:
	mov	DWORD PTR -304[rbp], 0
	jmp	.L35
.L38:
	mov	eax, DWORD PTR -300[rbp]
	movsx	rdx, eax
	mov	eax, 2
	cdqe
	imul	rdx, rax
	mov	rax, QWORD PTR -328[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -304[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	cmp	dl, al
	jne	.L36
	mov	eax, DWORD PTR -304[rbp]
	cdqe
	mov	DWORD PTR -288[rbp+rax*4], 1
.L36:
	mov	eax, DWORD PTR -300[rbp]
	movsx	rdx, eax
	mov	eax, 2
	cdqe
	imul	rdx, rax
	mov	rax, QWORD PTR -328[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR 1[rax]
	mov	eax, DWORD PTR -304[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	cmp	dl, al
	jne	.L37
	mov	eax, DWORD PTR -304[rbp]
	cdqe
	mov	DWORD PTR -176[rbp+rax*4], 1
.L37:
	add	DWORD PTR -304[rbp], 1
.L35:
	cmp	DWORD PTR -304[rbp], 25
	jle	.L38
	add	DWORD PTR -300[rbp], 1
.L34:
	cmp	DWORD PTR -300[rbp], 25
	jle	.L39
	mov	DWORD PTR -308[rbp], 0
	jmp	.L40
.L43:
	mov	eax, DWORD PTR -308[rbp]
	cdqe
	mov	eax, DWORD PTR -288[rbp+rax*4]
	test	eax, eax
	jne	.L41
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -336[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 4
	call	exit@PLT
.L41:
	mov	eax, DWORD PTR -308[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	test	eax, eax
	jne	.L42
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -336[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 4
	call	exit@PLT
.L42:
	add	DWORD PTR -308[rbp], 1
.L40:
	cmp	DWORD PTR -308[rbp], 25
	jle	.L43
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	mapping_error_check, .-mapping_error_check
	.section	.rodata
.LC4:
	.string	"1"
.LC5:
	.string	"2"
	.align 8
.LC6:
	.string	"You entered %s. Sorry, your mode must be 1 for encryption or 2 for decryption\n"
	.text
	.globl	mode_check
	.type	mode_check, @function
mode_check:
.LFB13:
	.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
	mov	DWORD PTR -8[rbp], edx
	cmp	DWORD PTR -4[rbp], 3
	je	.L47
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 70
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 7
	call	exit@PLT
.L47:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L50
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L50
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 6
	call	exit@PLT
.L50:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	mode_check, .-mode_check
	.globl	populate_csv
	.type	populate_csv, @function
populate_csv:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	QWORD PTR -64[rbp], rcx
	mov	eax, 2
	cdqe
	sub	rax, 1
	mov	QWORD PTR -8[rbp], rax
	mov	eax, 2
	cdqe
	mov	r8, rax
	mov	r9d, 0
	mov	BYTE PTR -22[rbp], 44
	mov	BYTE PTR -21[rbp], 10
	mov	DWORD PTR -16[rbp], 0
	jmp	.L52
.L60:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -23[rbp], al
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	cmp	DWORD PTR -16[rbp], 26
	jne	.L54
	cmp	BYTE PTR -23[rbp], -1
	je	.L54
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 4
	call	exit@PLT
.L58:
	movzx	eax, BYTE PTR -23[rbp]
	cmp	al, BYTE PTR -22[rbp]
	je	.L55
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, 2
	cdqe
	imul	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	movzx	edx, BYTE PTR -23[rbp]
	mov	BYTE PTR [rcx+rax], dl
	add	DWORD PTR -20[rbp], 1
	add	DWORD PTR -12[rbp], 1
	jmp	.L56
.L55:
	movzx	eax, BYTE PTR -23[rbp]
	cmp	al, BYTE PTR -22[rbp]
	jne	.L56
	add	DWORD PTR -12[rbp], 1
.L56:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -23[rbp], al
.L54:
	movzx	eax, BYTE PTR -23[rbp]
	cmp	al, BYTE PTR -21[rbp]
	je	.L57
	cmp	DWORD PTR -20[rbp], 1
	jle	.L58
.L57:
	cmp	DWORD PTR -12[rbp], 3
	je	.L59
	cmp	DWORD PTR -16[rbp], 26
	je	.L59
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 4
	call	exit@PLT
.L59:
	add	DWORD PTR -16[rbp], 1
.L52:
	cmp	DWORD PTR -16[rbp], 26
	jle	.L60
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	populate_csv, .-populate_csv
	.section	.rodata
.LC7:
	.string	"%s\n"
.LC8:
	.string	"%[^\n]"
	.text
	.globl	print_converted_input
	.type	print_converted_input, @function
print_converted_input:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -76[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 2
	cdqe
	sub	rax, 1
	mov	QWORD PTR -40[rbp], rax
	mov	eax, 2
	cdqe
	mov	r8, rax
	mov	r9d, 0
	jmp	.L63
.L65:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L64
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	encrypt
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -32[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L63
.L64:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L63
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	decrypt
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -32[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L63:
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, -1
	jne	.L65
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L67
	call	__stack_chk_fail@PLT
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	print_converted_input, .-print_converted_input
	.section	.rodata
.LC9:
	.string	"-t"
.LC10:
	.string	"-m"
.LC11:
	.string	"-i"
.LC12:
	.string	"r"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	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	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	call	arg_len_check
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	jmp	.L69
.L73:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L70
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	mov	DWORD PTR -100[rbp], eax
	add	DWORD PTR -88[rbp], 1
	jmp	.L71
.L70:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L72
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	mov	DWORD PTR -96[rbp], eax
	add	DWORD PTR -88[rbp], 1
	jmp	.L71
.L72:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L71
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	mov	DWORD PTR -92[rbp], eax
	add	DWORD PTR -88[rbp], 1
.L71:
	add	DWORD PTR -84[rbp], 1
.L69:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L73
	mov	edx, DWORD PTR -96[rbp]
	mov	rcx, QWORD PTR -128[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	mode_check
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -80[rbp], rax
	mov	edx, DWORD PTR -100[rbp]
	mov	rcx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	mapping_file_valid
	lea	rcx, -64[rbp]
	mov	edx, DWORD PTR -100[rbp]
	mov	rsi, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	populate_csv
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edx, DWORD PTR -100[rbp]
	mov	rcx, QWORD PTR -128[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	mapping_error_check
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	edx, DWORD PTR -92[rbp]
	mov	rcx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	input_file_valid
	mov	ecx, DWORD PTR -96[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	print_converted_input
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L75
	call	__stack_chk_fail@PLT
.L75:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.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	"201926.c"
	.text
	.global	M
	.section	.rodata
	.align	2
	.type	M, %object
	.size	M, 4
M:
	.word	26
	.global	N
	.align	2
	.type	N, %object
	.size	N, 4
N:
	.word	2
	.text
	.align	2
	.global	reverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverse, %function
reverse:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [fp, #-17]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L3
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	reverse, .-reverse
	.align	2
	.global	decrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	decrypt, %function
decrypt:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #2
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r3, #2
	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, #0
	str	r3, [fp, #-12]
	b	.L6
.L11:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L7
.L10:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	mov	r1, #2
	mul	r3, r1, r3
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L8
	ldr	r3, [fp, #-16]
	mov	r2, #2
	mul	r3, r2, r3
	ldr	r2, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L9
.L8:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #25
	ble	.L10
.L9:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	bls	.L11
	ldr	r0, [fp, #-24]
	bl	reverse
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	decrypt, .-decrypt
	.align	2
	.global	encrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	encrypt, %function
encrypt:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #2
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r3, #2
	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, #0
	str	r3, [fp, #-12]
	b	.L14
.L19:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L15
.L18:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	mov	r1, #2
	mul	r3, r1, r3
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L16
	ldr	r3, [fp, #-16]
	mov	r2, #2
	mul	r3, r2, r3
	ldr	r2, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r2, [r2, #1]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L17
.L16:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L15:
	ldr	r3, [fp, #-16]
	cmp	r3, #25
	ble	.L18
.L17:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	bls	.L19
	ldr	r0, [fp, #-24]
	bl	reverse
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	encrypt, .-encrypt
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: ./encrypt -t <mappingfile> -m <encryption mo"
	.ascii	"de> -i <inputfile>\012\000"
	.text
	.align	2
	.global	arg_len_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	arg_len_check, %function
arg_len_check:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	beq	.L24
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r2, #70
	mov	r1, #1
	ldr	r0, .L25+4
	bl	fwrite
	mov	r0, #7
	bl	exit
.L24:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	stderr
	.word	.LC0
	.size	arg_len_check, .-arg_len_check
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Error: Mapping file %s does not exist\012\000"
	.text
	.align	2
	.global	mapping_file_valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	mapping_file_valid, %function
mapping_file_valid:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L30
	ldr	r3, .L31
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L31+4
	bl	fprintf
	mov	r0, #3
	bl	exit
.L30:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	stderr
	.word	.LC1
	.size	mapping_file_valid, .-mapping_file_valid
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Error: Input word file %s does not exist \012\000"
	.text
	.align	2
	.global	input_file_valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	input_file_valid, %function
input_file_valid:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L36
	ldr	r3, .L37
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L37+4
	bl	fprintf
	mov	r0, #3
	bl	exit
.L36:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	stderr
	.word	.LC2
	.size	input_file_valid, .-input_file_valid
	.section	.rodata
	.align	2
.LC4:
	.ascii	"The format of %s is incorrect\012\000"
	.align	2
.LC3:
	.ascii	"abcdefghijklmnopqrstuvwxyz"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mapping_error_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	mapping_error_check, %function
mapping_error_check:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-264]
	str	r1, [fp, #-268]
	str	r2, [fp, #-272]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #2
	sub	r3, r3, #1
	str	r3, [fp, #-248]
	mov	r3, #2
	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
	sub	r3, fp, #244
	mov	r2, #104
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #140
	mov	r2, #104
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L52+4
	sub	ip, fp, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	strh	r2, [ip]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-252]
	b	.L40
.L45:
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L41
.L44:
	ldr	r3, [fp, #-252]
	mov	r2, #2
	mul	r3, r2, r3
	ldr	r2, [fp, #-264]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #36
	ldr	r3, [fp, #-256]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L42
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-240]
.L42:
	ldr	r3, [fp, #-252]
	mov	r2, #2
	mul	r3, r2, r3
	ldr	r2, [fp, #-264]
	add	r3, r2, r3
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	sub	r1, fp, #36
	ldr	r3, [fp, #-256]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L43
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-136]
.L43:
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L41:
	ldr	r3, [fp, #-256]
	cmp	r3, #25
	ble	.L44
	ldr	r3, [fp, #-252]
	add	r3, r3, #1
	str	r3, [fp, #-252]
.L40:
	ldr	r3, [fp, #-252]
	cmp	r3, #25
	ble	.L45
	mov	r3, #0
	str	r3, [fp, #-260]
	b	.L46
.L49:
	ldr	r3, [fp, #-260]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-240]
	cmp	r3, #0
	bne	.L47
	ldr	r3, .L52+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-272]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-268]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L52+12
	bl	fprintf
	mov	r0, #4
	bl	exit
.L47:
	ldr	r3, [fp, #-260]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-136]
	cmp	r3, #0
	bne	.L48
	ldr	r3, .L52+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-272]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-268]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L52+12
	bl	fprintf
	mov	r0, #4
	bl	exit
.L48:
	ldr	r3, [fp, #-260]
	add	r3, r3, #1
	str	r3, [fp, #-260]
.L46:
	ldr	r3, [fp, #-260]
	cmp	r3, #25
	ble	.L49
	nop
	ldr	r3, .L52
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC5
	.word	.LC3
	.word	stdout
	.word	.LC4
	.size	mapping_error_check, .-mapping_error_check
	.section	.rodata
	.align	2
.LC6:
	.ascii	"1\000"
	.align	2
.LC7:
	.ascii	"2\000"
	.align	2
.LC8:
	.ascii	"You entered %s. Sorry, your mode must be 1 for encr"
	.ascii	"yption or 2 for decryption\012\000"
	.text
	.align	2
	.global	mode_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	mode_check, %function
mode_check:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	beq	.L55
	ldr	r3, .L59
	ldr	r3, [r3]
	mov	r2, #70
	mov	r1, #1
	ldr	r0, .L59+4
	bl	fwrite
	mov	r0, #7
	bl	exit
.L55:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L59+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L58
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L59+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L58
	ldr	r3, .L59
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L59+16
	bl	fprintf
	mov	r0, #6
	bl	exit
.L58:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	stderr
	.word	.LC0
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	mode_check, .-mode_check
	.align	2
	.global	populate_csv
	.syntax unified
	.arm
	.fpu softvfp
	.type	populate_csv, %function
populate_csv:
	@ 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]
	str	r3, [fp, #-44]
	mov	r3, #2
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r3, #2
	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, #44
	strb	r3, [fp, #-22]
	mov	r3, #10
	strb	r3, [fp, #-21]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L62
.L70:
	ldr	r0, [fp, #-32]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-23]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #26
	bne	.L64
	ldr	r3, .L72
	ldr	r0, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L72+4
	bl	fprintf
	mov	r0, #4
	bl	exit
.L68:
	ldrb	r2, [fp, #-23]	@ zero_extendqisi2
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L65
	ldr	r3, [fp, #-16]
	mov	r2, #2
	mul	r3, r2, r3
	ldr	r2, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r2, [fp, #-23]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L66
.L65:
	ldrb	r2, [fp, #-23]	@ zero_extendqisi2
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L66
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L66:
	ldr	r0, [fp, #-32]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-23]
.L64:
	ldrb	r2, [fp, #-23]	@ zero_extendqisi2
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L67
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	ble	.L68
.L67:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	beq	.L69
	ldr	r3, [fp, #-16]
	cmp	r3, #26
	beq	.L69
	ldr	r3, .L72
	ldr	r0, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L72+4
	bl	fprintf
	mov	r0, #4
	bl	exit
.L69:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L62:
	ldr	r3, [fp, #-16]
	cmp	r3, #26
	ble	.L70
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	stdout
	.word	.LC4
	.size	populate_csv, .-populate_csv
	.section	.rodata
	.align	2
.LC9:
	.ascii	"%s\012\000"
	.align	2
.LC10:
	.ascii	"%[^\012]\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_converted_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_converted_input, %function
print_converted_input:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, .L80
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #2
	sub	r3, r3, #1
	str	r3, [fp, #-36]
	mov	r3, #2
	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
	b	.L75
.L77:
	ldr	r0, [fp, #-40]
	bl	fgetc
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L80+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
	sub	r3, fp, #32
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	encrypt
	ldr	r3, .L80+8
	ldr	r3, [r3]
	sub	r2, fp, #32
	ldr	r1, .L80+12
	mov	r0, r3
	bl	fprintf
	b	.L75
.L76:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L80+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
	sub	r3, fp, #32
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	decrypt
	ldr	r3, .L80+8
	ldr	r3, [r3]
	sub	r2, fp, #32
	ldr	r1, .L80+12
	mov	r0, r3
	bl	fprintf
.L75:
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L80+20
	ldr	r0, [fp, #-40]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L77
	nop
	ldr	r3, .L80
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L79
	bl	__stack_chk_fail
.L79:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L81:
	.align	2
.L80:
	.word	.LC11
	.word	.LC6
	.word	stdout
	.word	.LC9
	.word	.LC7
	.word	.LC10
	.size	print_converted_input, .-print_converted_input
	.section	.rodata
	.align	2
.LC12:
	.ascii	"-t\000"
	.align	2
.LC13:
	.ascii	"-m\000"
	.align	2
.LC14:
	.ascii	"-i\000"
	.align	2
.LC15:
	.ascii	"r\000"
	.align	2
.LC16:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L90
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #60
	mov	r2, #52
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, [fp, #-96]
	bl	arg_len_check
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L83
.L87:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L90+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L84
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	b	.L85
.L84:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L90+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L86
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	b	.L85
.L86:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L90+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L85
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L85:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L83:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L87
	ldr	r2, [fp, #-84]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-76]
	bl	mode_check
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L90+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-68]
	ldr	r2, [fp, #-88]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-68]
	bl	mapping_file_valid
	sub	r3, fp, #60
	ldr	r2, [fp, #-88]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-68]
	bl	populate_csv
	ldr	r0, [fp, #-68]
	bl	fclose
	sub	r3, fp, #60
	ldr	r2, [fp, #-88]
	ldr	r1, [fp, #-100]
	mov	r0, r3
	bl	mapping_error_check
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L90+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-64]
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-64]
	bl	input_file_valid
	sub	r2, fp, #60
	ldr	r3, [fp, #-84]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-64]
	bl	print_converted_input
	ldr	r0, [fp, #-64]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L90
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L89
	bl	__stack_chk_fail
.L89:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	.LC16
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
