	.file	"149027.c"
	.intel_syntax noprefix
	.text
	.globl	inFile
	.bss
	.align 8
	.type	inFile, @object
	.size	inFile, 8
inFile:
	.zero	8
	.globl	outFile
	.align 8
	.type	outFile, @object
	.size	outFile, 8
outFile:
	.zero	8
	.globl	randomFile
	.align 8
	.type	randomFile, @object
	.size	randomFile, 8
randomFile:
	.zero	8
	.text
	.globl	getBit
	.type	getBit, @function
getBit:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	DWORD PTR -8[rbp], esi
	mov	BYTE PTR -4[rbp], al
	cmp	DWORD PTR -8[rbp], 7
	ja	.L2
	mov	eax, DWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L11:
	movsx	eax, BYTE PTR -4[rbp]
	and	eax, 1
	jmp	.L12
.L10:
	movsx	eax, BYTE PTR -4[rbp]
	and	eax, 2
	jmp	.L12
.L9:
	movsx	eax, BYTE PTR -4[rbp]
	and	eax, 4
	jmp	.L12
.L8:
	movsx	eax, BYTE PTR -4[rbp]
	and	eax, 8
	jmp	.L12
.L7:
	movsx	eax, BYTE PTR -4[rbp]
	and	eax, 16
	jmp	.L12
.L6:
	movsx	eax, BYTE PTR -4[rbp]
	and	eax, 32
	jmp	.L12
.L5:
	movsx	eax, BYTE PTR -4[rbp]
	and	eax, 64
	jmp	.L12
.L3:
	movsx	eax, BYTE PTR -4[rbp]
	and	eax, 128
	jmp	.L12
.L2:
	mov	eax, 0
.L12:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getBit, .-getBit
	.globl	strToBase8
	.type	strToBase8, @function
strToBase8:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, 1
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L16
	mov	eax, 0
	jmp	.L15
.L17:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 7
	add	eax, 48
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 8
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 16
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	add	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 32
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	add	eax, ecx
	lea	edx, 48[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 32
	lea	edx, 31[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 5
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 64
	lea	edx, 31[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 5
	add	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 128
	lea	edx, 31[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 5
	add	eax, ecx
	lea	edx, 48[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 2
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -16[rbp], 3
	add	QWORD PTR -24[rbp], 1
.L16:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L17
	mov	rax, QWORD PTR -8[rbp]
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	strToBase8, .-strToBase8
	.globl	fmakes
	.type	fmakes, @function
fmakes:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 1
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	mov	BYTE PTR -21[rbp], 0
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -21[rbp]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -20[rbp], eax
.L19:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L20
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -21[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	je	.L20
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 10
	jne	.L21
.L20:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fmakes, .-fmakes
	.globl	closeAll
	.type	closeAll, @function
closeAll:
.LFB9:
	.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 outFile[rip]
	test	rax, rax
	je	.L25
	mov	rax, QWORD PTR outFile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L25:
	mov	rax, QWORD PTR inFile[rip]
	test	rax, rax
	je	.L27
	mov	rax, QWORD PTR inFile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L27:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	closeAll, .-closeAll
	.globl	power2
	.type	power2, @function
power2:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	BYTE PTR -1[rbp], 2
	cmp	DWORD PTR -20[rbp], 0
	jne	.L29
	mov	eax, 1
	jmp	.L30
.L29:
	sub	DWORD PTR -20[rbp], 1
	jmp	.L31
.L32:
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, eax
	mov	BYTE PTR -1[rbp], al
.L31:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -20[rbp], edx
	test	eax, eax
	jne	.L32
	movzx	eax, BYTE PTR -1[rbp]
.L30:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	power2, .-power2
	.section	.rodata
.LC0:
	.string	"\nbh8 v2.2016!\n============\n"
.LC1:
	.string	"\n=====\nDONE!\n"
	.align 8
.LC2:
	.ascii	"\nUSAGE:\n\nbh8 -i [infile] (optional arguments)\n\nARGUMENT"
	.ascii	"S:\n\n"
	.string	"-d = decrypt the infile\n-h = show this message and exit\n-l = use /dev/random, if available(very slow)\n-o [outfile] = specify a outfile\n-p [password] = specify the password to use\n-v = give pointless(debugging) messages\n-y = overwrite files without asking\n\n"
.LC3:
	.string	"%s%s"
.LC4:
	.string	"-h"
.LC5:
	.string	"-i"
.LC6:
	.string	"-p"
.LC7:
	.string	"-o"
.LC8:
	.string	"-d"
.LC9:
	.string	"-v"
.LC10:
	.string	"-y"
.LC11:
	.string	"-l"
.LC12:
	.string	"ERROR: No input file given!\n"
.LC13:
	.string	"%s%s%s"
.LC14:
	.string	"Password:"
	.align 8
.LC15:
	.string	"ERROR: Could not allocate memory\n"
.LC16:
	.string	"The base8 password is "
.LC17:
	.string	"%s%s\n"
	.align 8
.LC18:
	.string	"ERROR: You cannot write to infile(yet)!\n"
.LC19:
	.string	"rb"
	.align 8
.LC20:
	.string	"ERROR: Specified infile does not exist!\n"
	.align 8
.LC21:
	.string	"Outfile already exits! Do you wish to overwrite?(y/n)"
.LC22:
	.string	"%c"
.LC23:
	.string	"'y' not given! Exiting\n"
.LC24:
	.string	"wb"
	.align 8
.LC25:
	.string	"ERROR: Cannot write to out file!\n"
.LC26:
	.string	" Will be decrypted to "
.LC27:
	.string	"%s%s%s\n"
	.align 8
.LC28:
	.string	"ERROR: Could not read infile!\n"
	.align 8
.LC29:
	.string	"ERROR: Could not write to outfile!\n"
.LC30:
	.string	"/dev/random"
	.align 8
.LC31:
	.string	"WARNING: -l given! Prepare to wait forever!"
.LC32:
	.string	"/dev/urandom"
.LC33:
	.string	"Using /dev/urandom"
	.align 8
.LC34:
	.string	"ERROR: No random device detected!\n"
.LC35:
	.string	" Will be encrypted to "
	.align 8
.LC36:
	.string	"ERROR: Could not read random device!\n"
.LC37:
	.string	"\n=====\nDONE!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	BYTE PTR -63[rbp], 0
	mov	BYTE PTR -62[rbp], 0
	mov	BYTE PTR -61[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	cmp	DWORD PTR -68[rbp], 1
	jg	.L36
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 2
	jmp	.L75
.L44:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L37
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 3
	jmp	.L75
.L37:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L38
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L36
.L38:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L39
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L36
.L39:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L36
.L40:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L41
	mov	DWORD PTR -52[rbp], 1
	jmp	.L36
.L41:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L42
	mov	DWORD PTR -48[rbp], 1
	jmp	.L36
.L42:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L43
	mov	DWORD PTR -60[rbp], 1
	jmp	.L36
.L43:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L36
	mov	DWORD PTR -44[rbp], 1
.L36:
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -56[rbp], edx
	cmp	eax, 1
	jg	.L44
	cmp	QWORD PTR -32[rbp], 0
	jne	.L45
	lea	rcx, .LC1[rip]
	lea	rdx, .LC2[rip]
	lea	rsi, .LC12[rip]
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 4
	jmp	.L75
.L45:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L46
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fmakes
	mov	QWORD PTR -16[rbp], rax
.L46:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strToBase8
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L47
	lea	rdx, .LC1[rip]
	lea	rsi, .LC15[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 13
	jmp	.L75
.L47:
	cmp	DWORD PTR -48[rbp], 1
	jne	.L48
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	lea	rsi, .LC16[rip]
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
.L48:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L49
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 5
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L50
	lea	rdx, .LC1[rip]
	lea	rsi, .LC15[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 13
	jmp	.L75
.L50:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 946364974
	mov	BYTE PTR 4[rax], 0
.L49:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L51
	lea	rdx, .LC1[rip]
	lea	rsi, .LC18[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L75
.L51:
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR inFile[rip], rax
	mov	rax, QWORD PTR inFile[rip]
	test	rax, rax
	jne	.L52
	lea	rdx, .LC1[rip]
	lea	rsi, .LC20[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 6
	jmp	.L75
.L52:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR outFile[rip], rax
	mov	rax, QWORD PTR outFile[rip]
	test	rax, rax
	je	.L53
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jne	.L53
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 121
	je	.L53
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 89
	je	.L53
	lea	rdx, .LC1[rip]
	lea	rsi, .LC23[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 7
	jmp	.L75
.L53:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR outFile[rip], rax
	mov	rax, QWORD PTR outFile[rip]
	test	rax, rax
	jne	.L54
	lea	rdx, .LC1[rip]
	lea	rsi, .LC25[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 8
	jmp	.L75
.L54:
	mov	rax, QWORD PTR inFile[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR outFile[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	cmp	DWORD PTR -52[rbp], 1
	jne	.L55
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rdx
	lea	rdx, .LC26[rip]
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L56
.L61:
	mov	rdx, QWORD PTR inFile[rip]
	lea	rax, -63[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L57
	mov	rax, QWORD PTR inFile[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L57
	lea	rdx, .LC1[rip]
	lea	rsi, .LC28[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	closeAll
	mov	eax, 10
	jmp	.L75
.L57:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	power2
	mov	BYTE PTR -61[rbp], al
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	movzx	eax, BYTE PTR -63[rbp]
	movsx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	getBit
	test	eax, eax
	je	.L58
	movzx	eax, BYTE PTR -62[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR -61[rbp]
	add	eax, edx
	mov	BYTE PTR -62[rbp], al
.L58:
	add	DWORD PTR -40[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L59
	mov	DWORD PTR -40[rbp], 0
.L59:
	add	DWORD PTR -36[rbp], 1
	cmp	DWORD PTR -36[rbp], 7
	jle	.L56
	mov	rdx, QWORD PTR outFile[rip]
	lea	rax, -62[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L60
	lea	rdx, .LC1[rip]
	lea	rsi, .LC29[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	closeAll
	mov	eax, 9
	jmp	.L75
.L60:
	mov	DWORD PTR -36[rbp], 0
	mov	BYTE PTR -62[rbp], 0
.L56:
	mov	rax, QWORD PTR inFile[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L61
	jmp	.L62
.L55:
	cmp	DWORD PTR -44[rbp], 1
	jne	.L63
	lea	rsi, .LC19[rip]
	lea	rdi, .LC30[rip]
	call	fopen@PLT
	mov	QWORD PTR randomFile[rip], rax
	mov	rax, QWORD PTR randomFile[rip]
	test	rax, rax
	je	.L63
	lea	rdi, .LC31[rip]
	call	puts@PLT
	jmp	.L64
.L63:
	lea	rsi, .LC19[rip]
	lea	rdi, .LC32[rip]
	call	fopen@PLT
	mov	QWORD PTR randomFile[rip], rax
	mov	rax, QWORD PTR randomFile[rip]
	test	rax, rax
	je	.L65
	cmp	DWORD PTR -48[rbp], 1
	jne	.L64
	lea	rdi, .LC33[rip]
	call	puts@PLT
	jmp	.L64
.L65:
	lea	rdx, .LC1[rip]
	lea	rsi, .LC34[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 12
	jmp	.L75
.L64:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rdx
	lea	rdx, .LC35[rip]
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -36[rbp], 8
	jmp	.L66
.L74:
	cmp	DWORD PTR -36[rbp], 7
	jle	.L67
	mov	rdx, QWORD PTR inFile[rip]
	lea	rax, -63[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L68
	mov	rax, QWORD PTR inFile[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L68
	lea	rdx, .LC1[rip]
	lea	rsi, .LC28[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	closeAll
	mov	eax, 9
	jmp	.L75
.L68:
	mov	DWORD PTR -36[rbp], 0
.L67:
	mov	rax, QWORD PTR randomFile[rip]
	test	rax, rax
	jne	.L69
	call	rand@PLT
	mov	BYTE PTR -62[rbp], al
	jmp	.L70
.L69:
	mov	rdx, QWORD PTR randomFile[rip]
	lea	rax, -62[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L70
	lea	rdx, .LC1[rip]
	lea	rsi, .LC36[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	closeAll
	mov	eax, 11
	jmp	.L75
.L70:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	edi, eax
	call	power2
	mov	BYTE PTR -61[rbp], al
	movzx	eax, BYTE PTR -63[rbp]
	movsx	eax, al
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getBit
	test	eax, eax
	je	.L71
	movzx	eax, BYTE PTR -62[rbp]
	or	al, BYTE PTR -61[rbp]
	mov	BYTE PTR -62[rbp], al
	jmp	.L72
.L71:
	movzx	eax, BYTE PTR -61[rbp]
	not	eax
	mov	edx, eax
	movzx	eax, BYTE PTR -62[rbp]
	and	eax, edx
	mov	BYTE PTR -62[rbp], al
.L72:
	mov	rdx, QWORD PTR outFile[rip]
	lea	rax, -62[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L73
	lea	rdx, .LC1[rip]
	lea	rsi, .LC29[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	closeAll
	mov	eax, 9
	jmp	.L75
.L73:
	add	DWORD PTR -36[rbp], 1
	add	DWORD PTR -40[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L66
	mov	DWORD PTR -40[rbp], 0
.L66:
	mov	rax, QWORD PTR inFile[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L74
.L62:
	mov	eax, 0
	call	closeAll
	lea	rdi, .LC37[rip]
	call	puts@PLT
	mov	eax, 0
.L75:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L76
	call	__stack_chk_fail@PLT
.L76:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"149027.c"
	.text
	.global	inFile
	.bss
	.align	2
	.type	inFile, %object
	.size	inFile, 4
inFile:
	.space	4
	.global	outFile
	.align	2
	.type	outFile, %object
	.size	outFile, 4
outFile:
	.space	4
	.global	randomFile
	.align	2
	.type	randomFile, %object
	.size	randomFile, 4
randomFile:
	.space	4
	.text
	.align	2
	.global	getBit
	.syntax unified
	.arm
	.fpu softvfp
	.type	getBit, %function
getBit:
	@ 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, r0
	str	r1, [fp, #-12]
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L11:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	and	r3, r3, #1
	b	.L12
.L10:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	and	r3, r3, #2
	b	.L12
.L9:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	and	r3, r3, #4
	b	.L12
.L8:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	and	r3, r3, #8
	b	.L12
.L7:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	and	r3, r3, #16
	b	.L12
.L6:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	and	r3, r3, #32
	b	.L12
.L5:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	and	r3, r3, #64
	b	.L12
.L3:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	and	r3, r3, #128
	b	.L12
.L2:
	mov	r3, #0
.L12:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getBit, .-getBit
	.align	2
	.global	strToBase8
	.syntax unified
	.arm
	.fpu softvfp
	.type	strToBase8, %function
strToBase8:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r3, #1
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L16
	mov	r3, #0
	b	.L15
.L17:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #7
	and	r3, r3, #255
	add	r3, r3, #48
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #8
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #16
	add	r1, r3, #7
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #3
	and	r3, r3, #255
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #32
	add	r1, r3, #7
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #3
	and	r3, r3, #255
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #32
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #64
	add	r1, r3, #31
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #5
	and	r3, r3, #255
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #128
	add	r1, r3, #31
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #5
	and	r3, r3, #255
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L16:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-8]
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	strToBase8, .-strToBase8
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fmakes
	.syntax unified
	.arm
	.fpu softvfp
	.type	fmakes, %function
fmakes:
	@ 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	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #1
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	strb	r3, [fp, #-17]
	b	.L19
.L21:
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	realloc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
.L19:
	ldr	r0, [fp, #-24]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	sub	r0, fp, #17
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L21
.L20:
	ldr	r3, [fp, #-16]
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC0
	.size	fmakes, .-fmakes
	.align	2
	.global	closeAll
	.syntax unified
	.arm
	.fpu softvfp
	.type	closeAll, %function
closeAll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L30
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L30
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L27:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L30+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L29:
	nop
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	outFile
	.word	inFile
	.size	closeAll, .-closeAll
	.align	2
	.global	power2
	.syntax unified
	.arm
	.fpu softvfp
	.type	power2, %function
power2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #2
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L33
	mov	r3, #1
	b	.L34
.L33:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L35
.L36:
	ldrb	r3, [fp, #-5]
	lsl	r3, r3, #1
	strb	r3, [fp, #-5]
.L35:
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	str	r2, [fp, #-16]
	cmp	r3, #0
	bne	.L36
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
.L34:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	power2, .-power2
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012bh8 v2.2016!\012============\012\000"
	.align	2
.LC2:
	.ascii	"\012=====\012DONE!\012\000"
	.align	2
.LC3:
	.ascii	"\012USAGE:\012\012bh8 -i [infile] (optional argumen"
	.ascii	"ts)\012\012ARGUMENTS:\012\012-d = decrypt the infil"
	.ascii	"e\012-h = show this message and exit\012-l = use /d"
	.ascii	"ev/random, if available(very slow)\012-o [outfile] "
	.ascii	"= specify a outfile\012-p [password] = specify the "
	.ascii	"password to use\012-v = give pointless(debugging) m"
	.ascii	"essages\012-y = overwrite files without asking\012\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"%s%s\000"
	.align	2
.LC5:
	.ascii	"-h\000"
	.align	2
.LC6:
	.ascii	"-i\000"
	.align	2
.LC7:
	.ascii	"-p\000"
	.align	2
.LC8:
	.ascii	"-o\000"
	.align	2
.LC9:
	.ascii	"-d\000"
	.align	2
.LC10:
	.ascii	"-v\000"
	.align	2
.LC11:
	.ascii	"-y\000"
	.align	2
.LC12:
	.ascii	"-l\000"
	.align	2
.LC13:
	.ascii	"ERROR: No input file given!\012\000"
	.align	2
.LC14:
	.ascii	"%s%s%s\000"
	.align	2
.LC15:
	.ascii	"Password:\000"
	.align	2
.LC16:
	.ascii	"ERROR: Could not allocate memory\012\000"
	.align	2
.LC17:
	.ascii	"The base8 password is \000"
	.align	2
.LC18:
	.ascii	"%s%s\012\000"
	.align	2
.LC19:
	.ascii	".bh8\000"
	.align	2
.LC20:
	.ascii	"ERROR: You cannot write to infile(yet)!\012\000"
	.align	2
.LC21:
	.ascii	"rb\000"
	.align	2
.LC22:
	.ascii	"ERROR: Specified infile does not exist!\012\000"
	.align	2
.LC23:
	.ascii	"Outfile already exits! Do you wish to overwrite?(y/"
	.ascii	"n)\000"
	.align	2
.LC24:
	.ascii	"%c\000"
	.align	2
.LC25:
	.ascii	"'y' not given! Exiting\012\000"
	.align	2
.LC26:
	.ascii	"wb\000"
	.align	2
.LC27:
	.ascii	"ERROR: Cannot write to out file!\012\000"
	.align	2
.LC28:
	.ascii	" Will be decrypted to \000"
	.align	2
.LC29:
	.ascii	"%s%s%s\012\000"
	.align	2
.LC30:
	.ascii	"ERROR: Could not read infile!\012\000"
	.align	2
.LC31:
	.ascii	"ERROR: Could not write to outfile!\012\000"
	.align	2
.LC32:
	.ascii	"/dev/random\000"
	.align	2
.LC33:
	.ascii	"WARNING: -l given! Prepare to wait forever!\000"
	.align	2
.LC34:
	.ascii	"/dev/urandom\000"
	.align	2
.LC35:
	.ascii	"Using /dev/urandom\000"
	.align	2
.LC36:
	.ascii	"ERROR: No random device detected!\012\000"
	.align	2
.LC37:
	.ascii	" Will be encrypted to \000"
	.align	2
.LC38:
	.ascii	"ERROR: Could not read random device!\012\000"
	.align	2
.LC39:
	.ascii	"\012=====\012DONE!\000"
	.align	2
.LC40:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L81
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-51]
	mov	r3, #0
	strb	r3, [fp, #-50]
	mov	r3, #0
	strb	r3, [fp, #-49]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L81+4
	bl	puts
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bgt	.L40
	ldr	r2, .L81+8
	ldr	r1, .L81+12
	ldr	r0, .L81+16
	bl	printf
	mov	r3, #2
	b	.L79
.L48:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L81+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	ldr	r2, .L81+8
	ldr	r1, .L81+12
	ldr	r0, .L81+16
	bl	printf
	mov	r3, #3
	b	.L79
.L41:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L81+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	b	.L40
.L42:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L81+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	b	.L40
.L43:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L81+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	b	.L40
.L44:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L81+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L40
.L45:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L81+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L46
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L40
.L46:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L81+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L47
	mov	r3, #1
	str	r3, [fp, #-48]
	b	.L40
.L47:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L81+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	mov	r3, #1
	str	r3, [fp, #-20]
.L40:
	ldr	r3, [fp, #-44]
	sub	r2, r3, #1
	str	r2, [fp, #-44]
	cmp	r3, #1
	bgt	.L48
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L49
	ldr	r3, .L81+8
	ldr	r2, .L81+12
	ldr	r1, .L81+52
	ldr	r0, .L81+56
	bl	printf
	mov	r3, #4
	b	.L79
.L49:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L50
	ldr	r0, .L81+60
	bl	printf
	ldr	r3, .L81+64
	ldr	r3, [r3]
	mov	r0, r3
	bl	fmakes
	str	r0, [fp, #-32]
.L50:
	ldr	r0, [fp, #-32]
	bl	strToBase8
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L51
	ldr	r2, .L81+8
	ldr	r1, .L81+68
	ldr	r0, .L81+16
	bl	printf
	mov	r3, #13
	b	.L79
.L51:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L52
	ldr	r2, [fp, #-32]
	ldr	r1, .L81+72
	ldr	r0, .L81+76
	bl	printf
.L52:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L53
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #5
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L54
	ldr	r2, .L81+8
	ldr	r1, .L81+68
	ldr	r0, .L81+16
	bl	printf
	mov	r3, #13
	b	.L79
.L54:
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-36]
	bl	strcat
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldr	r2, .L81+80
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
.L53:
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-36]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	ldr	r2, .L81+8
	ldr	r1, .L81+84
	ldr	r0, .L81+16
	bl	printf
	mov	r3, #0
	b	.L79
.L55:
	ldr	r1, .L81+88
	ldr	r0, [fp, #-40]
	bl	fopen
	mov	r3, r0
	ldr	r2, .L81+92
	str	r3, [r2]
	ldr	r3, .L81+92
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L56
	ldr	r2, .L81+8
	ldr	r1, .L81+96
	ldr	r0, .L81+16
	bl	printf
	mov	r3, #6
	b	.L79
.L56:
	ldr	r1, .L81+88
	ldr	r0, [fp, #-36]
	bl	fopen
	mov	r3, r0
	ldr	r2, .L81+100
	str	r3, [r2]
	ldr	r3, .L81+100
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L57
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L57
	ldr	r0, .L81+104
	bl	puts
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L81+108
	bl	__isoc99_scanf
	ldr	r3, [fp, #-48]
	cmp	r3, #121
	beq	.L57
	ldr	r3, [fp, #-48]
	cmp	r3, #89
	beq	.L57
	ldr	r2, .L81+8
	ldr	r1, .L81+112
	ldr	r0, .L81+16
	bl	printf
	mov	r3, #7
	b	.L79
.L57:
	ldr	r1, .L81+116
	ldr	r0, [fp, #-36]
	bl	fopen
	mov	r3, r0
	ldr	r2, .L81+100
	str	r3, [r2]
	ldr	r3, .L81+100
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L58
	ldr	r2, .L81+8
	ldr	r1, .L81+120
	ldr	r0, .L81+16
	bl	printf
	mov	r3, #8
	b	.L79
.L58:
	ldr	r3, .L81+92
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, .L81+100
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L59
	ldr	r3, [fp, #-36]
	ldr	r2, .L81+124
	ldr	r1, [fp, #-40]
	ldr	r0, .L81+128
	bl	printf
	b	.L60
.L65:
	ldr	r3, .L81+92
	ldr	r3, [r3]
	sub	r0, fp, #51
	mov	r2, #1
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L61
	ldr	r3, .L81+92
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L61
	ldr	r2, .L81+8
	ldr	r1, .L81+132
	ldr	r0, .L81+16
	bl	printf
	bl	closeAll
	mov	r3, #10
	b	.L79
.L61:
	ldr	r0, [fp, #-12]
	bl	power2
	mov	r3, r0
	strb	r3, [fp, #-49]
	ldrb	r0, [fp, #-51]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	mov	r1, r3
	bl	getBit
	mov	r3, r0
	cmp	r3, #0
	beq	.L62
	ldrb	r2, [fp, #-50]	@ zero_extendqisi2
	ldrb	r3, [fp, #-49]
	add	r3, r2, r3
	and	r3, r3, #255
	strb	r3, [fp, #-50]
.L62:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L63
	mov	r3, #0
	str	r3, [fp, #-16]
.L63:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L60
	ldr	r3, .L81+100
	ldr	r3, [r3]
	sub	r0, fp, #50
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L64
	ldr	r2, .L81+8
	ldr	r1, .L81+136
	ldr	r0, .L81+16
	bl	printf
	bl	closeAll
	mov	r3, #9
	b	.L79
.L64:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	strb	r3, [fp, #-50]
.L60:
	ldr	r3, .L81+92
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
	b	.L66
.L59:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L67
	ldr	r1, .L81+88
	ldr	r0, .L81+140
	bl	fopen
	mov	r3, r0
	ldr	r2, .L81+144
	str	r3, [r2]
	ldr	r3, .L81+144
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L67
	ldr	r0, .L81+148
	bl	puts
	b	.L68
.L67:
	ldr	r1, .L81+88
	ldr	r0, .L81+152
	bl	fopen
	mov	r3, r0
	ldr	r2, .L81+144
	str	r3, [r2]
	ldr	r3, .L81+144
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L68
	ldr	r0, .L81+156
	bl	puts
	b	.L68
.L69:
	ldr	r2, .L81+8
	ldr	r1, .L81+160
	ldr	r0, .L81+16
	bl	printf
	mov	r3, #12
	b	.L79
.L68:
	ldr	r3, [fp, #-36]
	ldr	r2, .L81+164
	ldr	r1, [fp, #-40]
	ldr	r0, .L81+128
	bl	printf
	mov	r3, #8
	str	r3, [fp, #-12]
	b	.L70
.L78:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L71
	ldr	r3, .L81+92
	ldr	r3, [r3]
	sub	r0, fp, #51
	mov	r2, #1
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L72
	ldr	r3, .L81+92
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
	ldr	r2, .L81+8
	ldr	r1, .L81+132
	ldr	r0, .L81+16
	bl	printf
	bl	closeAll
	mov	r3, #9
	b	.L79
.L72:
	mov	r3, #0
	str	r3, [fp, #-12]
.L71:
	ldr	r3, .L81+144
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L73
	bl	rand
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-50]
	b	.L74
.L73:
	ldr	r3, .L81+144
	ldr	r3, [r3]
	sub	r0, fp, #50
	mov	r2, #1
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L74
	ldr	r2, .L81+8
	ldr	r1, .L81+168
	ldr	r0, .L81+16
	bl	printf
	bl	closeAll
	mov	r3, #11
	b	.L79
.L74:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	mov	r0, r3
	bl	power2
	mov	r3, r0
	strb	r3, [fp, #-49]
	ldrb	r3, [fp, #-51]	@ zero_extendqisi2
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	getBit
	mov	r3, r0
	cmp	r3, #0
	beq	.L75
	ldrb	r2, [fp, #-50]	@ zero_extendqisi2
	ldrb	r3, [fp, #-49]
	orr	r3, r2, r3
	and	r3, r3, #255
	strb	r3, [fp, #-50]
	b	.L76
.L75:
	ldrsb	r3, [fp, #-49]
	mvn	r3, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrb	r3, [fp, #-50]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, r2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-50]
.L76:
	ldr	r3, .L81+100
	ldr	r3, [r3]
	sub	r0, fp, #50
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L77
	ldr	r2, .L81+8
	ldr	r1, .L81+136
	ldr	r0, .L81+16
	bl	printf
	bl	closeAll
	mov	r3, #9
	b	.L79
.L77:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L70
	mov	r3, #0
	str	r3, [fp, #-16]
.L70:
	ldr	r3, .L81+92
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L78
.L66:
	bl	closeAll
	ldr	r0, .L81+172
	bl	puts
	mov	r3, #0
.L79:
	ldr	r2, .L81
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L80
	bl	__stack_chk_fail
.L80:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L82:
	.align	2
.L81:
	.word	.LC40
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	stdin
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	inFile
	.word	.LC22
	.word	outFile
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	randomFile
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
