// File: /workspace/github_cpp_makefile_star2_O1/errantlinguist[P]Forecast/src/main.cpp
// Function: main
int main(int argc, char** argv)
{
	int result(EXIT_FAILURE);

	if(argc > 2)
	{
		std::cerr << createUsageMessage(argv[0]);
		result = common::getSysExitCode(common::SysExit::INVALID_COMMAND_LINE);
	}
	else if(argc > 1)
	{
		const char* const& input = argv[1];
		std::ifstream infile(input);
		if(infile)
		{
			std::cerr << "Reading from file path \"" << input
					  << "\"..." << std::endl;
			result = readJsonStream(infile);
		}
		else
		{
			std::cerr << "Reading from URL \"" << input
					  << "\"..." << std::endl;
			result = readUrl(input);
		}
		infile.close();
	}
	else
	{
		std::cerr << createUsageMessage(argv[0]);
		result = common::getSysExitCode(common::SysExit::INVALID_COMMAND_LINE);
	}

	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rsi, %rbx
cmpl $0x3, %edi
jl 0xb978
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xc00c
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x33652(%rip), %rdi     # 0x3efc0
callq 0x95c0
jmp 0xba0f
cmpl $0x2, %edi
jne 0xb9ec
movq 0x8(%rbx), %rsi
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x9040
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x70(%rsp,%rax)
je 0xba34
movq 0x33614(%rip), %r14     # 0x3efc0
leaq 0x1e7c4(%rip), %rsi     # 0x2a177
movl $0x12, %edx
movq %r14, %rdi
callq 0x95c0
movq 0x8(%rbx), %r15
testq %r15, %r15
je 0xba7b
movq %r15, %rdi
callq 0x91e0
movq 0x335e4(%rip), %rdi     # 0x3efc0
movq %r15, %rsi
movq %rax, %rdx
callq 0x95c0
jmp 0xba93
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xc00c
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x335b6(%rip), %rdi     # 0x3efc0
callq 0x95c0
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xba2a
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x90a0
movl $0x40, %ebp
jmp 0xbd32
movq 0x33585(%rip), %r14     # 0x3efc0
leaq 0x1e717(%rip), %rsi     # 0x2a159
movl $0x18, %edx
movq %r14, %rdi
callq 0x95c0
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
je 0xbbf7
movq %rbx, %rdi
callq 0x91e0
movq 0x33555(%rip), %rdi     # 0x3efc0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x95c0
jmp 0xbc0f
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x9690
movq 0x33526(%rip), %r14     # 0x3efc0
leaq 0x1e6d1(%rip), %rsi     # 0x2a172
movl $0x4, %edx
movq %r14, %rdi
callq 0x95c0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x9650
movsbl %al, %esi
movq 0x334f4(%rip), %rdi     # 0x3efc0
callq 0x9320
movq %rax, %rdi
callq 0x92b0
movq 0x8(%rbx), %r14
movl $0x3, %edi
callq 0x9120
testl %eax, %eax
je 0xbb38
movl %eax, %edi
callq 0x9210
movq %rax, %r14
movq 0x334c4(%rip), %rbx     # 0x3efc0
leaq 0x1e775(%rip), %rsi     # 0x2a278
movl $0x37, %edx
movq %rbx, %rdi
callq 0x95c0
testq %r14, %r14
je 0xbbab
movq %r14, %rdi
callq 0x91e0
movq 0x33498(%rip), %rdi     # 0x3efc0
movq %r14, %rsi
movq %rax, %rdx
callq 0x95c0
jmp 0xbbc2
movl $0x100, %edi            # imm = 0x100
callq 0x9250
movq %rax, %rbx
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %rsp, %rdi
callq 0x1b7d8
leaq 0x1e6b1(%rip), %rax     # 0x2a20d
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %rsp, %rdi
callq 0x1b8e8
leaq 0x20(%rsp), %r15
movq %rsp, %rsi
movl $0x1, %edx
movq %r15, %rdi
callq 0x19f84
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x19f8c
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xbced
xorl %ebp, %ebp
callq 0xc120
jmp 0xbcff
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x9690
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x9650
movsbl %al, %esi
movq 0x333e0(%rip), %rdi     # 0x3efc0
callq 0x9320
movl $0x46, %ebp
movq %rax, %rdi
callq 0x92b0
jmp 0xbd1e
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x9690
movq 0x333aa(%rip), %rbx     # 0x3efc0
leaq 0x1e555(%rip), %rsi     # 0x2a172
movl $0x4, %edx
movq %rbx, %rdi
callq 0x95c0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x9650
movsbl %al, %esi
movq 0x33378(%rip), %rdi     # 0x3efc0
callq 0x9320
movq %rax, %rdi
callq 0x92b0
leaq 0x20(%rsp), %rbx
movl $0x1, %esi
movq %rbx, %rdi
movl $0x10000, %edx          # imm = 0x10000
callq 0x1a1ac
movq %rsp, %rdi
leaq 0x50(%rsp), %rdx
movq %rbx, %rsi
callq 0x1a1fc
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xbc8c
callq 0xc120
jmp 0xbcd2
movq 0x3332d(%rip), %rbx     # 0x3efc0
leaq 0x1e50b(%rip), %rsi     # 0x2a1a5
movl $0x2e, %edx
movq %rbx, %rdi
callq 0x95c0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x9650
movsbl %al, %esi
movq 0x332fb(%rip), %rdi     # 0x3efc0
callq 0x9320
movq %rax, %rdi
callq 0x92b0
movq %rsp, %rdi
callq 0xc4f0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xbce9
callq 0x91b0
xorl %ebp, %ebp
jmp 0xbd1e
leaq 0x48(%rsp), %rdi
movq %rbx, (%rdi)
callq 0xc29a
movl $0x44, %ebp
leaq 0x40(%rsp), %rdi
callq 0xc4f0
movq %rsp, %rdi
callq 0x1b8a0
movq %rbx, %rdi
callq 0x91b0
callq 0x9570
leaq 0x50(%rsp), %rdi
callq 0x9380
leaq 0x50(%rsp), %rdi
callq 0x9030
movl %ebp, %eax
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0xbd44
movq %rdx, %r15
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0xc4f0
jmp 0xbd5c
movq %rdx, %r15
movq %rax, %r14
cmpl $0x1, %r15d
jne 0xbd99
movq %r14, %rdi
callq 0x9060
movq %rbx, 0x20(%rsp)
cmpb $0x0, (%rbx)
jne 0xbd80
movl (%rax), %edi
callq 0x9210
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rdi
callq 0xc29a
callq 0x94a0
movl $0x46, %ebp
jmp 0xbd09
cmpl $0x2, %r15d
jne 0xbebb
movq %r14, %rdi
callq 0x9060
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0xc191
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x331f7(%rip), %rdi     # 0x3efc0
callq 0x95c0
movq %rax, %rdi
callq 0x9610
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbdf1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x90a0
leaq 0x20(%rsp), %rsi
movq $0x0, (%rsi)
movq %rsp, %rdi
callq 0xc349
testb %al, %al
je 0xbe60
movq 0x331b0(%rip), %r14     # 0x3efc0
leaq 0x1e41a(%rip), %rsi     # 0x2a231
movl $0x3b, %edx
movq %r14, %rdi
callq 0x95c0
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x9690
movq 0x3317d(%rip), %rdi     # 0x3efc0
leaq 0x1e423(%rip), %rsi     # 0x2a26d
movl $0xa, %edx
callq 0x95c0
movq 0x33165(%rip), %rdi     # 0x3efc0
callq 0x9610
movl $0x1, %ebp
callq 0x94a0
jmp 0xbd09
jmp 0xbeb5
jmp 0xbea3
movq %rdx, %r15
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbea9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x90a0
jmp 0xbea9
movq %rdx, %r15
movq %rax, %r14
callq 0x94a0
jmp 0xbebb
movq %rdx, %r15
movq %rax, %r14
callq 0x94a0
jmp 0xbebb
jmp 0xbfcd
movq %rdx, %r15
movq %rax, %r14
movq %rsp, %rdi
callq 0x1b8a0
jmp 0xbecb
movq %rdx, %r15
movq %rax, %r14
movq %rbx, %rdi
callq 0x91b0
jmp 0xbedb
movq %rdx, %r15
movq %rax, %r14
cmpl $0x1, %r15d
jne 0xbffa
movq %r14, %rdi
callq 0x9060
movl (%rax), %edi
callq 0x9210
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0xc29a
callq 0x94a0
movl $0x46, %ebp
jmp 0xbd19
movq %rax, %r14
callq 0x94a0
jmp 0xbffa
movq %rdx, %rbx
movq %rax, %r14
jmp 0xbf31
movq %rdx, %rbx
movq %rax, %r14
movq %rsp, %rdi
callq 0xc4f0
cmpl $0x2, %ebx
jne 0xbfbc
movq %r14, %rdi
callq 0x9060
movq %rsp, %rdi
movq %rax, %rsi
callq 0xc191
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x33063(%rip), %rdi     # 0x3efc0
callq 0x95c0
movq %rax, %rdi
callq 0x9610
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbf85
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x90a0
callq 0x94a0
jmp 0xbcda
movq %rax, %r14
jmp 0xbfbc
movq %rax, %r14
jmp 0xbfb7
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbfb7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x90a0
callq 0x94a0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xbffa
callq 0x91b0
jmp 0xbffa
movq %rax, %rdi
callq 0xc4e5
jmp 0xbfd7
movq %rax, %r14
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc004
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x90a0
jmp 0xc004
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x9030
movq %r14, %rdi
callq 0x9390