// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]def2fgd/src/main.cpp
// Function: main
int main(int argc, char** argv)
{
    const char* format = "";
    const char* inputFileName = 0;
    const char* outputFileName = 0;
    FGDWriteOptions options;

    const char* package = "def2fgd";
    const char* localeDir = LOCALEDIR;

    generateLocale(package, localeDir);

    std::vector<const char*> positionalArgs;
    const char* programName = argv[0];
    for(int i=1; i<argc; ++i) {
        const char* arg = argv[i];
        if (strcmp(arg, "-format") == 0) {
            if (format[0]) {
                fputs(translate("-format option repetition\n").c_str(), stderr);
                return EXIT_FAILURE;
            }

            i++;
            if (i < argc) {
                format = argv[i];
            } else {
                fputs(translate("-format requires argument\n").c_str(), stderr);
                return EXIT_FAILURE;
            }
        } else if (strcmp(arg, "-bob") == 0) {
            if (options.bob) {
                printBobparms(options);
                return EXIT_FAILURE;
            }

            options.bobparms[0] = 180;
            options.bobparms[1] = 8;
            options.bobparms[2] = 0;
            options.bob = true;
        } else if (strcmp(arg, "-bobparms") == 0) {
            if (options.bob) {
                printBobparms(options);
                return EXIT_FAILURE;
            }

            i++;
            if (i < argc) {
                char* current = argv[i];
                options.bobparms[0] = static_cast<int>(strtol(current, &current, 10));
                options.bobparms[1] = static_cast<int>(strtol(current, &current, 10));
                options.bobparms[2] = static_cast<int>(strtol(current, NULL, 10));
                options.bob = true;
            } else {
                fputs(translate("-bobparms requires argument\n").c_str(), stderr);
                return EXIT_FAILURE;
            }
        } else if (strcmp(arg, "-offset-glob") == 0) {
            i++;
            if (i < argc) {
                options.offsetPatterns.push_back(argv[i]);
            } else {
                fputs(translate("-offset-glob requires argument\n").c_str(), stderr);
                return EXIT_FAILURE;
            }
        } else if (strcmp(arg, "-bob-glob") == 0) {
            i++;
            if (i < argc) {
                options.bobPatterns.push_back(argv[i]);
            } else {
                fputs(translate("-bob-glob requires argument\n").c_str(), stderr);
                return EXIT_FAILURE;
            }

        } else if (strcmp(arg, "-noauto-bob-glob") == 0) {
            options.useDefaultBobPatterns = false;
        } else if (strcmp(arg, "-noauto-offset-glob") == 0) {
            options.useDefaultOffsetPatterns = false;
        } else if (strcmp(arg, "-help") == 0 || strcmp(arg, "--help") == 0 || strcmp(arg, "-h") == 0) {
            printHelp(programName);
            return EXIT_SUCCESS;
        } else if (strcmp(arg, "-version") == 0 || strcmp(arg, "--version") == 0) {
            printVersion();
            return EXIT_SUCCESS;
        } else if (strcmp(arg, "--") == 0) {
            for (; ++i<argc;) {
                positionalArgs.push_back(argv[i]);
            }
        } else if (arg[0] == '-' && arg[1] != '\0') {
            fprintf(stderr, translate("Unknown parameter: %s\n").c_str(), arg);
            printHint(argv[0]);
            return EXIT_FAILURE;
        } else {
            positionalArgs.push_back(arg);
        }
    }

    if (positionalArgs.size() > 0) {
        inputFileName = positionalArgs[0];
        if (positionalArgs.size() > 1) {
            outputFileName = positionalArgs[1];
        }
    }

    if (inputFileName && strcmp(inputFileName, "-") == 0) {
        inputFileName = 0;
    }

    if (outputFileName && strcmp(outputFileName, "-") == 0) {
        outputFileName = 0;
    }

    if (format[0] == '\0') {
        if (inputFileName) {
            const char* extension = strrchr(inputFileName, '.');
            if (extension && strcmp(extension, ".ent") == 0){
                format = "ent";
            } else if (extension && strcmp(extension, ".def") == 0) {
                format = "def";
            } else {
                fputs(translate("Could not detect input format. Use -format option to explicitly set it.\n").c_str(), stderr);
                return EXIT_FAILURE;
            }
        } else {
            fputs(translate("No input file name nor format given.\n").c_str(), stderr);
            printHint(argv[0]);
            return EXIT_FAILURE;
        }
    }

    std::istream* inStream = &std::cin;
    std::ostream* outStream = &std::cout;

    std::ifstream inFile;
    std::ofstream outFile;

    if (inputFileName != 0) {
        inFile.open(inputFileName);
        if (!inFile) {
            fprintf(stderr, translate("Could not open file %s for reading: %s\n").c_str(), inputFileName, strerror(errno));
            return EXIT_FAILURE;
        }
        inStream = &inFile;
    }

    try
    {
        std::vector<Entity> entities;
        if (strcmp(format, "def") == 0) {
            entities = readDefFile(*inStream);
        } else if (strcmp(format, "ent") == 0) {
            entities = readEntFile(*inStream);
        } else {
            fprintf(stderr, translate("Unknown format '%s'\n").c_str(), format);
            return EXIT_FAILURE;
        }

        if (outputFileName) {
            outFile.open(outputFileName);
            if (!outFile) {
                fprintf(stderr, translate("Could not open file %s for writing: %s\n").c_str(), outputFileName, strerror(errno));
                return EXIT_FAILURE;
            }
            outStream = &outFile;
        }

        writefgd(*outStream, entities, options);
        outStream->flush();
    }
    catch(DefReadError& e)
    {
        if (inputFileName) {
            fprintf(stderr, translate("%s:%d:%d: error: %s\n").c_str(), inputFileName, e.line(), e.column(), e.what());
        } else {
            fprintf(stderr, translate("%d:%d: error: %s\n").c_str(), e.line(), e.column(), e.what());
        }

        return EXIT_FAILURE;
    }
    catch(std::exception& e)
    {
        fprintf(stderr, translate("Error: %s\n").c_str(), e.what());
        return EXIT_FAILURE;
    }
    return EXIT_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5a8, %rsp            # imm = 0x5A8
movq %rsi, 0x10(%rsp)
movl %edi, %ebp
movw $0x100, 0x8c(%rsp)      # imm = 0x100
movb $0x1, 0x8e(%rsp)
movl $0x0, 0x88(%rsp)
movq $0x0, 0x80(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x90(%rsp)
movups %xmm0, 0xa0(%rsp)
movups %xmm0, 0xb0(%rsp)
leaq 0x79cf(%rip), %rdi      # 0xc5f8
leaq 0x79d0(%rip), %rsi      # 0xc600
leaq 0x75b7(%rip), %rbx      # 0xc1ee
movq %rbx, %rdx
callq 0xb1bc
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq $0x0, 0x8(%rsp)
cmpl $0x2, %ebp
setge %r12b
jl 0x51b8
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xc0(%rsp)
movl $0x1, %r15d
leaq 0x756b(%rip), %rax      # 0xc1ee
movq %rax, 0x18(%rsp)
movq $0x0, 0x8(%rsp)
leaq 0xe0(%rsp), %rbx
leaq 0x140(%rsp), %r14
movslq %r15d, %rax
movq 0x10(%rsp), %rcx
movq (%rcx,%rax,8), %r13
movq %r13, 0x3a8(%rsp)
movq %r13, %rdi
leaq 0x7948(%rip), %rsi      # 0xc607
callq 0x3310
testl %eax, %eax
je 0x4e18
movq %r13, %rdi
leaq 0x796f(%rip), %rsi      # 0xc645
callq 0x3310
testl %eax, %eax
je 0x4e48
movq %r13, %rdi
leaq 0x795d(%rip), %rsi      # 0xc64a
callq 0x3310
testl %eax, %eax
je 0x4e74
movq %r13, %rdi
leaq 0x79c2(%rip), %rsi      # 0xc6c6
callq 0x3310
testl %eax, %eax
je 0x4e9c
movq %r13, %rdi
leaq 0x799a(%rip), %rsi      # 0xc6b5
callq 0x3310
testl %eax, %eax
je 0x4f7d
movq %r13, %rdi
leaq 0x797c(%rip), %rsi      # 0xc6ae
callq 0x3310
testl %eax, %eax
je 0x4fbc
movq %r13, %rdi
leaq 0x7976(%rip), %rsi      # 0xc6bf
callq 0x3310
testl %eax, %eax
je 0x4ff4
movq %r13, %rdi
leaq 0x7974(%rip), %rsi      # 0xc6d4
callq 0x3310
testl %eax, %eax
je 0x4fd7
movq %r13, %rdi
leaq 0x795c(%rip), %rsi      # 0xc6d3
callq 0x3310
testl %eax, %eax
je 0x4fd7
movq %r13, %rdi
leaq 0x794c(%rip), %rsi      # 0xc6da
callq 0x3310
testl %eax, %eax
je 0x4fd7
movq %r13, %rdi
leaq 0x7939(%rip), %rsi      # 0xc6de
callq 0x3310
testl %eax, %eax
je 0x5065
movq %r13, %rdi
leaq 0x7921(%rip), %rsi      # 0xc6dd
callq 0x3310
testl %eax, %eax
je 0x5065
movq %r13, %rdi
leaq 0x7914(%rip), %rsi      # 0xc6e7
callq 0x3310
testl %eax, %eax
je 0x5106
cmpb $0x2d, (%r13)
leaq 0x1a0(%rsp), %rbx
jne 0x4dfa
cmpb $0x0, 0x1(%r13)
jne 0x5172
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0x5159
movq %r13, (%rsi)
addq $0x8, 0x48(%rsp)
jmp 0x4f56
movq 0x18(%rsp), %rax
cmpb $0x0, (%rax)
jne 0x5001
incl %r15d
cmpl %ebp, %r15d
jge 0x502d
movslq %r15d, %rax
movq 0x10(%rsp), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, 0x18(%rsp)
jmp 0x4f56
cmpb $0x1, 0x8c(%rsp)
je 0x4e7e
movabsq $0x8000000b4, %rax      # imm = 0x8000000B4
movq %rax, 0x80(%rsp)
movl $0x0, 0x88(%rsp)
jmp 0x4f4e
cmpb $0x0, 0x8c(%rsp)
je 0x4edb
leaq 0x80(%rsp), %rdi
callq 0x34ec
movl $0x1, %eax
movq %rax, 0x8(%rsp)
xorl %ebx, %ebx
jmp 0x4f58
incl %r15d
cmpl %ebp, %r15d
jge 0x508a
movslq %r15d, %rax
movq 0x10(%rsp), %rcx
leaq (%rcx,%rax,8), %rdx
movq 0x98(%rsp), %rsi
cmpq 0xa0(%rsp), %rsi
je 0x4fc6
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, 0x98(%rsp)
jmp 0x4f56
incl %r15d
cmpl %ebp, %r15d
jge 0x50ae
movslq %r15d, %rax
movq 0x10(%rsp), %rcx
movq (%rcx,%rax,8), %rdi
movq %rdi, 0x1a0(%rsp)
leaq 0x1a0(%rsp), %rbx
movq %rbx, %rsi
movl $0xa, %edx
callq 0x3320
movl %eax, 0x80(%rsp)
movq 0x1a0(%rsp), %rdi
movq %rbx, %rsi
movl $0xa, %edx
callq 0x3320
movl %eax, 0x84(%rsp)
movq 0x1a0(%rsp), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x3320
movl %eax, 0x88(%rsp)
movb $0x1, 0x8c(%rsp)
movb $0x1, %bl
testb %bl, %bl
je 0x51bd
incl %r15d
cmpl %ebp, %r15d
setl %r12b
leaq 0xe0(%rsp), %rbx
jl 0x4ca1
jmp 0x51bd
incl %r15d
cmpl %ebp, %r15d
jge 0x50da
movslq %r15d, %rax
movq 0x10(%rsp), %rcx
leaq (%rcx,%rax,8), %rdx
movq 0xb0(%rsp), %rsi
cmpq 0xb8(%rsp), %rsi
je 0x5051
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, 0xb0(%rsp)
jmp 0x4f56
movb $0x0, 0x8d(%rsp)
jmp 0x4f56
movb $0x1, %bl
leaq 0x90(%rsp), %rdi
callq 0x61fe
jmp 0x4f58
xorl %ebx, %ebx
movq 0xc0(%rsp), %rdi
callq 0x4b64
movq $0x0, 0x8(%rsp)
jmp 0x4f58
movb $0x0, 0x8e(%rsp)
jmp 0x4f56
leaq 0x180(%rsp), %rbx
movq %rbx, %rdi
leaq 0x75fc(%rip), %rsi      # 0xc60f
callq 0xb1bd
movq %rbx, %rdi
leaq 0x190(%rsp), %rsi
callq 0x36dd
jmp 0x4e8b
movq %rbx, %rdi
leaq 0x75f3(%rip), %rsi      # 0xc62a
callq 0xb1bd
movq %rbx, %rdi
leaq 0xf0(%rsp), %rsi
callq 0x3714
jmp 0x4e8b
movb $0x1, %bl
leaq 0xa8(%rsp), %rdi
callq 0x61fe
jmp 0x4f58
xorl %ebx, %ebx
leaq 0x751c(%rip), %rdi      # 0xc58a
leaq 0x6fc3(%rip), %rsi      # 0xc038
xorl %eax, %eax
callq 0x3060
movq $0x0, 0x8(%rsp)
jmp 0x4f58
movq %r14, %rdi
leaq 0x75dd(%rip), %rsi      # 0xc671
callq 0xb1bd
movq %r14, %rdi
leaq 0x150(%rsp), %rsi
callq 0x366f
jmp 0x4e8b
leaq 0x160(%rsp), %rbx
movq %rbx, %rdi
leaq 0x7594(%rip), %rsi      # 0xc654
callq 0xb1bd
movq %rbx, %rdi
leaq 0x170(%rsp), %rsi
callq 0x36a6
jmp 0x4e8b
leaq 0x120(%rsp), %rbx
movq %rbx, %rdi
leaq 0x75a5(%rip), %rsi      # 0xc691
callq 0xb1bd
movq %rbx, %rdi
leaq 0x130(%rsp), %rsi
callq 0x3638
jmp 0x4e8b
incl %r15d
movb $0x1, %bl
cmpl %ebp, %r15d
jge 0x4f58
movslq %r15d, %rax
movq 0x10(%rsp), %rcx
leaq (%rcx,%rax,8), %r13
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0x513b
movq (%r13), %rax
movq %rax, (%rsi)
addq $0x8, 0x48(%rsp)
jmp 0x5148
leaq 0x40(%rsp), %rdi
movq %r13, %rdx
callq 0x61fe
addq $0x8, %r13
incl %r15d
cmpl %r15d, %ebp
jne 0x5120
jmp 0x4f58
movb $0x1, %bl
leaq 0x40(%rsp), %rdi
leaq 0x3a8(%rsp), %rdx
callq 0x61fe
jmp 0x4f58
movq 0xbe47(%rip), %rax      # 0x10fc0
movq (%rax), %r13
movq %rbx, %rdi
leaq 0x7564(%rip), %rsi      # 0xc6ea
callq 0xb1bd
movq %rbx, %rdi
leaq 0x3a8(%rsp), %rsi
movq %r13, %rdx
leaq 0x1b0(%rsp), %rcx
callq 0x35fd
movq 0x10(%rsp), %rax
movq (%rax), %rdi
callq 0x3490
jmp 0x4e8b
movq %rbx, 0x18(%rsp)
testb $0x1, %r12b
je 0x51cd
movq 0x8(%rsp), %r14
jmp 0x54c3
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
subq %rax, %rcx
je 0x51f0
movq (%rax), %r13
cmpq $0x9, %rcx
movq 0x18(%rsp), %r15
jb 0x51fc
movq 0x8(%rax), %rbp
jmp 0x51fe
xorl %ebp, %ebp
xorl %r13d, %r13d
movq 0x18(%rsp), %r15
jmp 0x51fe
xorl %ebp, %ebp
testq %r13, %r13
je 0x521d
leaq 0x74de(%rip), %rsi      # 0xc6e8
movq %r13, %rdi
callq 0x3310
xorl %r12d, %r12d
testl %eax, %eax
cmovneq %r13, %r12
jmp 0x5220
xorl %r12d, %r12d
testq %rbp, %rbp
je 0x523f
leaq 0x74bc(%rip), %rsi      # 0xc6e8
movq %rbp, %rdi
callq 0x3310
xorl %r13d, %r13d
testl %eax, %eax
cmovneq %rbp, %r13
jmp 0x5242
xorl %r13d, %r13d
cmpb $0x0, (%r15)
jne 0x52b3
testq %r12, %r12
je 0x558d
movq %r12, %rdi
movl $0x2e, %esi
callq 0x3290
testq %rax, %rax
je 0x5529
movq %rax, %r14
leaq 0x7490(%rip), %rsi      # 0xc701
movq %rax, %rdi
callq 0x3310
movb $0x1, %bl
testl %eax, %eax
je 0x529f
leaq 0x7480(%rip), %rsi      # 0xc706
movq %r14, %rdi
callq 0x3310
testl %eax, %eax
jne 0x5529
leaq 0x746a(%rip), %r15      # 0xc707
jmp 0x52a6
leaq 0x745c(%rip), %r15      # 0xc702
movq 0x8(%rsp), %r14
testb %bl, %bl
je 0x54c3
leaq 0x1a0(%rsp), %rdi
callq 0x32b0
leaq 0x3a8(%rsp), %rdi
callq 0x33e0
testq %r12, %r12
je 0x5336
leaq 0x1a0(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x3180
movq 0x1a0(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x1c0(%rsp,%rax)
je 0x533d
movq 0xbcb9(%rip), %rax      # 0x10fc0
movq (%rax), %rbx
leaq 0x7469(%rip), %rsi      # 0xc77a
leaq 0x20(%rsp), %rdi
callq 0xb1bd
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x377a
movl $0x1, %r14d
jmp 0x547e
movq 0xbc93(%rip), %r14      # 0x10fd0
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
leaq 0x73b2(%rip), %rsi      # 0xc707
movq %r15, %rdi
callq 0x3310
testl %eax, %eax
je 0x538a
leaq 0x739a(%rip), %rsi      # 0xc702
movq %r15, %rdi
callq 0x3310
testl %eax, %eax
jne 0x5557
leaq 0xc8(%rsp), %rdi
movq %r14, %rsi
callq 0x8b1e
jmp 0x539a
leaq 0xc8(%rsp), %rdi
movq %r14, %rsi
callq 0x6373
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, (%rdi)
movaps 0x60(%rsp), %xmm0
movq 0x70(%rsp), %rax
leaq 0xc8(%rsp), %rbx
movups (%rbx), %xmm1
movaps %xmm1, 0x60(%rsp)
movq 0x10(%rbx), %rcx
movq %rcx, 0x70(%rsp)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movups %xmm1, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x5b12
movq %rbx, %rdi
callq 0x5b12
testq %r13, %r13
je 0x544d
leaq 0x3a8(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x10, %edx
callq 0x3070
movq 0x3a8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x3c8(%rsp,%rax)
je 0x5454
movq 0xbb9c(%rip), %rax      # 0x10fc0
movq (%rax), %rbx
leaq 0x7389(%rip), %rsi      # 0xc7b7
leaq 0x20(%rsp), %rdi
callq 0xb1bd
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x37fd
jmp 0x5582
movq 0xbb64(%rip), %rbx      # 0x10fb8
leaq 0x60(%rsp), %rsi
leaq 0x80(%rsp), %rdx
movq %rbx, %rdi
callq 0x3c14
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x31b0
leaq 0x60(%rsp), %rdi
callq 0x5b12
movq 0xbb13(%rip), %rax      # 0x10f98
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x3b0(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x3a8(%rsp,%rcx)
callq 0x3210
leaq 0x4a0(%rsp), %rdi
callq 0x30e0
leaq 0x1a0(%rsp), %rdi
callq 0x3090
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x54da
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x3250
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x54f7
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x3250
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x5514
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x3250
movl %r14d, %eax
addq $0x5a8, %rsp            # imm = 0x5A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x71db(%rip), %rsi      # 0xc70b
leaq 0x100(%rsp), %rdi
callq 0xb1bd
leaq 0x100(%rsp), %rdi
callq 0x374b
movl $0x1, %r14d
xorl %ebx, %ebx
jmp 0x52ab
movq 0xba62(%rip), %rax      # 0x10fc0
movq (%rax), %r14
leaq 0x723a(%rip), %rsi      # 0xc7a2
leaq 0x20(%rsp), %rdi
callq 0xb1bd
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x37d0
movl $0x1, %r14d
jmp 0x5474
leaq 0x71c0(%rip), %rsi      # 0xc754
leaq 0x1a0(%rsp), %rdi
callq 0xb1bd
leaq 0x1a0(%rsp), %rdi
callq 0x3897
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movl $0x1, %r14d
callq 0x3490
jmp 0x54c3
jmp 0x57ca
jmp 0x57ca
jmp 0x57ca
jmp 0x5624
jmp 0x57ca
jmp 0x5624
jmp 0x5624
jmp 0x5624
jmp 0x55e4
movq %rax, %rbx
leaq 0x3a8(%rsp), %rdi
callq 0x3370
jmp 0x55fe
jmp 0x57ca
movq %rax, %rbx
leaq 0x1a0(%rsp), %rdi
callq 0x3090
jmp 0x57cd
jmp 0x57ca
jmp 0x57ca
jmp 0x57ca
jmp 0x57ca
movq %rdx, %r14
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x5b12
cmpl $0x2, %r14d
jne 0x56a8
movq %rbx, %rdi
callq 0x3110
movq %rax, %r14
movq 0xb974(%rip), %rax      # 0x10fc0
movq (%rax), %rbx
testq %r12, %r12
jne 0x56f8
leaq 0x718e(%rip), %rsi      # 0xc7ed
leaq 0x20(%rsp), %rdi
callq 0xb1bd
movq 0x20(%rsp), %r15
movq %r14, %rdi
callq 0x6368
movq %rax, %r12
movq %r14, %rdi
callq 0x636e
movq %rax, %r13
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x3340
jmp 0x5746
cmpl $0x1, %r14d
jne 0x55e7
movq %rbx, %rdi
callq 0x3110
movq %rax, %rbx
movq 0xb8fc(%rip), %rax      # 0x10fc0
movq (%rax), %r14
leaq 0x7111(%rip), %rsi      # 0xc7df
leaq 0x20(%rsp), %rdi
callq 0xb1bd
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3853
movl $0x1, %r14d
callq 0x33c0
jmp 0x547e
leaq 0x70eb(%rip), %rsi      # 0xc7ea
leaq 0x20(%rsp), %rdi
callq 0xb1bd
movq 0x20(%rsp), %r15
movq %r14, %rdi
callq 0x6368
movq %rax, %r13
movq %r14, %rdi
callq 0x636e
movq %rax, %rbp
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %rbp, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x3340
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5761
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3250
movl $0x1, %r14d
callq 0x33c0
jmp 0x547e
jmp 0x55e4
jmp 0x55e4
jmp 0x577d
movq %rax, %rbx
jmp 0x57af
jmp 0x5791
movq %rax, %rbx
callq 0x33c0
jmp 0x55e7
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x57af
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3250
callq 0x33c0
jmp 0x55e7
movq %rax, %rdi
callq 0x5b56
movq %rax, %rbx
jmp 0x57e4
jmp 0x57ca
jmp 0x57ca
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x57e4
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x3250
leaq 0x80(%rsp), %rdi
callq 0x5b62
movq %rbx, %rdi
callq 0x3420
nop