// File: /workspace/github_cpp_makefile_star2_O3/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 0xb968
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xbffc
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x33662(%rip), %rdi     # 0x3efc0
callq 0x95c0
jmp 0xb9ff
cmpl $0x2, %edi
jne 0xb9dc
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 0xba24
movq 0x33624(%rip), %r14     # 0x3efc0
leaq 0x1e7d4(%rip), %rsi     # 0x2a177
movl $0x12, %edx
movq %r14, %rdi
callq 0x95c0
movq 0x8(%rbx), %r15
testq %r15, %r15
je 0xba6b
movq %r15, %rdi
callq 0x91e0
movq 0x335f4(%rip), %rdi     # 0x3efc0
movq %r15, %rsi
movq %rax, %rdx
callq 0x95c0
jmp 0xba83
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xbffc
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x335c6(%rip), %rdi     # 0x3efc0
callq 0x95c0
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xba1a
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x90a0
movl $0x40, %ebp
jmp 0xbd22
movq 0x33595(%rip), %r14     # 0x3efc0
leaq 0x1e727(%rip), %rsi     # 0x2a159
movl $0x18, %edx
movq %r14, %rdi
callq 0x95c0
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
je 0xbbe7
movq %rbx, %rdi
callq 0x91e0
movq 0x33565(%rip), %rdi     # 0x3efc0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x95c0
jmp 0xbbff
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x9690
movq 0x33536(%rip), %r14     # 0x3efc0
leaq 0x1e6e1(%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 0x33504(%rip), %rdi     # 0x3efc0
callq 0x9320
movq %rax, %rdi
callq 0x92b0
movq 0x8(%rbx), %r14
movl $0x3, %edi
callq 0x9120
testl %eax, %eax
je 0xbb28
movl %eax, %edi
callq 0x9210
movq %rax, %r14
movq 0x334d4(%rip), %rbx     # 0x3efc0
leaq 0x1e785(%rip), %rsi     # 0x2a278
movl $0x37, %edx
movq %rbx, %rdi
callq 0x95c0
testq %r14, %r14
je 0xbb9b
movq %r14, %rdi
callq 0x91e0
movq 0x334a8(%rip), %rdi     # 0x3efc0
movq %r14, %rsi
movq %rax, %rdx
callq 0x95c0
jmp 0xbbb2
movl $0x100, %edi            # imm = 0x100
callq 0x9250
movq %rax, %rbx
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %rsp, %rdi
callq 0x1b7e8
leaq 0x1e6c1(%rip), %rax     # 0x2a20d
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %rsp, %rdi
callq 0x1b8f8
leaq 0x20(%rsp), %r15
movq %rsp, %rsi
movl $0x1, %edx
movq %r15, %rdi
callq 0x19f9c
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x19fa4
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xbcdd
xorl %ebp, %ebp
callq 0xc10d
jmp 0xbcef
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 0x333f0(%rip), %rdi     # 0x3efc0
callq 0x9320
movl $0x46, %ebp
movq %rax, %rdi
callq 0x92b0
jmp 0xbd0e
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x9690
movq 0x333ba(%rip), %rbx     # 0x3efc0
leaq 0x1e565(%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 0x33388(%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 0x1a1c4
movq %rsp, %rdi
leaq 0x50(%rsp), %rdx
movq %rbx, %rsi
callq 0x1a214
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xbc7c
callq 0xc10d
jmp 0xbcc2
movq 0x3333d(%rip), %rbx     # 0x3efc0
leaq 0x1e51b(%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 0x3330b(%rip), %rdi     # 0x3efc0
callq 0x9320
movq %rax, %rdi
callq 0x92b0
movq %rsp, %rdi
callq 0xc4da
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xbcd9
callq 0x91b0
xorl %ebp, %ebp
jmp 0xbd0e
leaq 0x48(%rsp), %rdi
movq %rbx, (%rdi)
callq 0xc284
movl $0x44, %ebp
leaq 0x40(%rsp), %rdi
callq 0xc4da
movq %rsp, %rdi
callq 0x1b8b0
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 0xbd34
movq %rdx, %r15
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0xc4da
jmp 0xbd4c
movq %rdx, %r15
movq %rax, %r14
cmpl $0x1, %r15d
jne 0xbd89
movq %r14, %rdi
callq 0x9060
movq %rbx, 0x20(%rsp)
cmpb $0x0, (%rbx)
jne 0xbd70
movl (%rax), %edi
callq 0x9210
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rdi
callq 0xc284
callq 0x94a0
movl $0x46, %ebp
jmp 0xbcf9
cmpl $0x2, %r15d
jne 0xbeab
movq %r14, %rdi
callq 0x9060
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0xc17e
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x33207(%rip), %rdi     # 0x3efc0
callq 0x95c0
movq %rax, %rdi
callq 0x9610
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbde1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x90a0
leaq 0x20(%rsp), %rsi
movq $0x0, (%rsi)
movq %rsp, %rdi
callq 0xc333
testb %al, %al
je 0xbe50
movq 0x331c0(%rip), %r14     # 0x3efc0
leaq 0x1e42a(%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 0x3318d(%rip), %rdi     # 0x3efc0
leaq 0x1e433(%rip), %rsi     # 0x2a26d
movl $0xa, %edx
callq 0x95c0
movq 0x33175(%rip), %rdi     # 0x3efc0
callq 0x9610
movl $0x1, %ebp
callq 0x94a0
jmp 0xbcf9
jmp 0xbea5
jmp 0xbe93
movq %rdx, %r15
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbe99
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x90a0
jmp 0xbe99
movq %rdx, %r15
movq %rax, %r14
callq 0x94a0
jmp 0xbeab
movq %rdx, %r15
movq %rax, %r14
callq 0x94a0
jmp 0xbeab
jmp 0xbfbd
movq %rdx, %r15
movq %rax, %r14
movq %rsp, %rdi
callq 0x1b8b0
jmp 0xbebb
movq %rdx, %r15
movq %rax, %r14
movq %rbx, %rdi
callq 0x91b0
jmp 0xbecb
movq %rdx, %r15
movq %rax, %r14
cmpl $0x1, %r15d
jne 0xbfea
movq %r14, %rdi
callq 0x9060
movl (%rax), %edi
callq 0x9210
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0xc284
callq 0x94a0
movl $0x46, %ebp
jmp 0xbd09
movq %rax, %r14
callq 0x94a0
jmp 0xbfea
movq %rdx, %rbx
movq %rax, %r14
jmp 0xbf21
movq %rdx, %rbx
movq %rax, %r14
movq %rsp, %rdi
callq 0xc4da
cmpl $0x2, %ebx
jne 0xbfac
movq %r14, %rdi
callq 0x9060
movq %rsp, %rdi
movq %rax, %rsi
callq 0xc17e
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x33073(%rip), %rdi     # 0x3efc0
callq 0x95c0
movq %rax, %rdi
callq 0x9610
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbf75
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x90a0
callq 0x94a0
jmp 0xbcca
movq %rax, %r14
jmp 0xbfac
movq %rax, %r14
jmp 0xbfa7
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbfa7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x90a0
callq 0x94a0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xbfea
callq 0x91b0
jmp 0xbfea
movq %rax, %rdi
callq 0xc4cf
jmp 0xbfc7
movq %rax, %r14
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbff4
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x90a0
jmp 0xbff4
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x9030
movq %r14, %rdi
callq 0x9390