// File: /workspace/github_c_makefile_star2_O1/patriciogonzalezvivo[P]tprint/src/main.cpp
// Function: main
int main(int argc, char **argv){

    //  Get a list of ports
#ifdef PLATFORM_RPI
    std::string port = "/dev/ttyAMA0";
#else
    std::string port = "NONE";
#endif

    std::vector<serial::PortInfo> ports = serial::list_ports();
    for (uint i = 0; i < ports.size(); i++){
        // std::cout << ports[i].port << " - " << ports[i].description << " - " << ports[i].hardware_id << std::endl;
        std::string::size_type found = ports[i].description.find("Prolific Technology Inc. USB-Serial Controller");
        if (found != std::string::npos){
            port = ports[i].port;
            break;
        }
    }

    // Contect the printer to the port
    std::cout << "Connecting to port [" << port << "] ";
    if (printer.open(port)){
        printer.setControlParameter(7, 100, 2);
        printer.setAlign(LEFT);
        std::cout << "successfully."<< std::endl;
    } else {
        std::cout << "error."<< std::endl;
        return 0;
    }

    // Load files to watch

    if (argc == 1) {
        std::string line;
        while (std::getline(std::cin, line)){
            printer.print(line+"\n");
        }
    } else {
        for (int i = 1; i < argc ; i++){
            std::string argument = std::string(argv[i]);
            if (    haveExt(argument,"png") || haveExt(argument,"PNG") ||
                    haveExt(argument,"jpg") || haveExt(argument,"JPG") || 
                    haveExt(argument,"jpeg") || haveExt(argument,"JPEG") ){
                // Load Image and print it
                printer.printImg(argument);
            } else if ( haveExt(argument,"txt") || haveExt(argument,"TXT") ||
                        haveExt(argument,"md") || haveExt(argument,"MD") ){
                // Load Text to print
                std::string text = "";
                loadFromPath(argument,&text);
                printer.print(text+"\n");
            } else if (argument == "-s") {
                std::string text = "";
                for (int j = i+1; j < argc ; j++){
                    text += std::string(argv[j]) + " ";
                }
                printer.print(text+"\n");
                break;
            }
        }
    }

    // printer.close();
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movq %rsi, 0x148(%rsp)
movl %edi, 0x34(%rsp)
leaq 0x168(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x12d89(%rip), %rsi     # 0x21829
leaq 0x12d86(%rip), %rdx     # 0x2182d
leaq 0x158(%rsp), %rdi
callq 0x9f82
leaq 0x1b8(%rsp), %rdi
callq 0x889c
movq 0x1b8(%rsp), %rax
cmpq %rax, 0x1c0(%rsp)
je 0xeb4e
movl $0x1, %ebp
xorl %ecx, %ecx
leaq 0x12d4d(%rip), %rbx     # 0x2182e
movabsq $-0x5555555555555555, %r15 # imm = 0xAAAAAAAAAAAAAAAB
leaq (%rcx,%rcx,2), %r14
shlq $0x5, %r14
leaq (%rax,%r14), %rdi
addq $0x20, %rdi
movl $0x2e, %ecx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x85e0
cmpq $-0x1, %rax
jne 0xeb36
movl %ebp, %ecx
movq 0x1b8(%rsp), %rax
movq 0x1c0(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
imulq %r15, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0xeaeb
jmp 0xeb4e
addq 0x1b8(%rsp), %r14
leaq 0x158(%rsp), %rdi
movq %r14, %rsi
callq 0x81c0
movq 0x1946b(%rip), %rdi     # 0x27fc0
leaq 0x12d01(%rip), %rsi     # 0x2185d
movl $0x14, %edx
callq 0x83c0
movq 0x158(%rsp), %rsi
movq 0x160(%rsp), %rdx
movq 0x19443(%rip), %rdi     # 0x27fc0
callq 0x83c0
leaq 0x12ce9(%rip), %rsi     # 0x21872
movl $0x2, %edx
movq %rax, %rdi
callq 0x83c0
leaq 0x19843(%rip), %rdi     # 0x283e0
leaq 0x158(%rsp), %rsi
callq 0x11a38
testb %al, %al
je 0xecec
leaq 0x19827(%rip), %rdi     # 0x283e0
movl $0x7, %esi
movl $0x64, %edx
movl $0x2, %ecx
callq 0x11bf6
leaq 0x1980c(%rip), %rdi     # 0x283e0
xorl %esi, %esi
callq 0x11e44
movq 0x193de(%rip), %rbx     # 0x27fc0
leaq 0x12c8c(%rip), %rsi     # 0x21875
movl $0xd, %edx
movq %rbx, %rdi
callq 0x83c0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x82e0
movsbl %al, %esi
movq 0x193ac(%rip), %rdi     # 0x27fc0
callq 0x8050
movq %rax, %rdi
callq 0x8220
cmpl $0x1, 0x34(%rsp)
jne 0xed37
leaq 0x220(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x10(%rsp), %rbp
movq 0x19391(%rip), %rbx     # 0x27fe0
leaq 0x210(%rsp), %r14
movq %rsp, %r15
leaq 0x13b3e(%rip), %r12     # 0x2279f
leaq 0x19778(%rip), %r13     # 0x283e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x82e0
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8660
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xf7e3
movq %rbp, (%rsp)
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xa26a
movq %r15, %rdi
movq %r12, %rsi
callq 0x8680
movq %r13, %rdi
movq %r15, %rsi
callq 0x12062
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0xec68
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8320
jmp 0xec68
movq 0x192cd(%rip), %rbx     # 0x27fc0
leaq 0x12b89(%rip), %rsi     # 0x21883
movl $0x6, %edx
movq %rbx, %rdi
callq 0x83c0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x82e0
movsbl %al, %esi
movq 0x1929b(%rip), %rdi     # 0x27fc0
callq 0x8050
movq %rax, %rdi
callq 0x8220
jmp 0xf808
jle 0xf808
leaq 0x10(%rsp), %rbx
leaq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0xd0(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x130(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0x1a8(%rsp), %rax
movq %rax, 0xa8(%rsp)
leaq 0x110(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0x188(%rsp), %rax
movq %rax, 0xb0(%rsp)
movl 0x34(%rsp), %eax
movq %rax, 0x140(%rsp)
movl $0x1, %ecx
movl $0x2, %ebp
leaq 0x48(%rsp), %r13
leaq 0x210(%rsp), %r15
movq 0x148(%rsp), %rax
movq %rcx, 0x150(%rsp)
movq (%rax,%rcx,8), %rsi
movq %r13, %rdi
movq %r15, %rdx
callq 0x9dac
movq %rbx, (%rsp)
movq %rsp, %r14
movq %r14, %rdi
leaq 0x12aa1(%rip), %rsi     # 0x2188a
leaq 0x12a9d(%rip), %rdx     # 0x2188d
callq 0x9f82
movq %r15, %rdi
leaq 0x1298e(%rip), %rsi     # 0x2178d
movq %r14, %rdx
callq 0xfefa
leaq 0x88(%rsp), %r12
movq %rbp, 0xb8(%rsp)
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rcx
movq %r13, %rdi
xorl %edx, %edx
callq 0x85e0
movq %rax, %r14
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xee59
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
movb $0x1, %bpl
cmpq $-0x1, %r14
jne 0xeeea
leaq 0x98(%rsp), %rax
movq %rax, 0x88(%rsp)
movq %r12, %rdi
leaq 0x12a0e(%rip), %rsi     # 0x2188e
leaq 0x12a0a(%rip), %rdx     # 0x21891
callq 0x9f82
movq %r15, %rdi
leaq 0x128f7(%rip), %rsi     # 0x2178d
movq %r12, %rdx
callq 0xfefa
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rcx
movq %r13, %rdi
xorl %edx, %edx
callq 0x85e0
movq %rax, %r13
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xeee0
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
cmpq $-0x1, %r13
je 0xf135
xorl %r13d, %r13d
xorl %r12d, %r12d
xorl %r15d, %r15d
xorl %eax, %eax
testb %al, %al
je 0xef1e
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
je 0xef1e
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x8320
testb %r15b, %r15b
je 0xef48
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rax
cmpq %rax, %rdi
je 0xef48
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x8320
testb %r12b, %r12b
leaq 0x10(%rsp), %r12
je 0xef77
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0xef77
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x8320
testb %r13b, %r13b
leaq 0x48(%rsp), %r13
je 0xefa6
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0xefa6
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8320
cmpq $-0x1, %r14
jne 0xefd1
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xefd1
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x8320
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xefe7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8320
testb %bpl, %bpl
je 0xf010
movq %r12, %rbx
leaq 0x193ea(%rip), %rdi     # 0x283e0
movq %r13, %rsi
movl $0x7f, %edx
callq 0x121d4
movq 0xb8(%rsp), %rbp
jmp 0xf668
movq %r12, %rbx
movq %r12, (%rsp)
movq %rsp, %r14
movq %r14, %rdi
leaq 0x12880(%rip), %rsi     # 0x218a4
leaq 0x1287c(%rip), %rdx     # 0x218a7
callq 0x9f82
leaq 0x210(%rsp), %r15
movq %r15, %rdi
leaq 0x1274b(%rip), %rsi     # 0x2178d
movq %r14, %rdx
callq 0xfefa
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rcx
movq %r13, %rdi
xorl %edx, %edx
callq 0x85e0
movq %rax, %r12
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xf08c
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
movb $0x1, %bpl
cmpq $-0x1, %r12
je 0xf09f
xorl %r15d, %r15d
xorl %eax, %eax
jmp 0xf3b3
leaq 0x110(%rsp), %rax
movq %rax, 0x100(%rsp)
leaq 0x100(%rsp), %r14
movq %r14, %rdi
leaq 0x127e7(%rip), %rsi     # 0x218a8
leaq 0x127e3(%rip), %rdx     # 0x218ab
callq 0x9f82
movq %r15, %rdi
leaq 0x126b6(%rip), %rsi     # 0x2178d
movq %r14, %rdx
callq 0xfefa
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rcx
movq %r13, %rdi
xorl %edx, %edx
callq 0x85e0
movq %rax, %r13
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xf121
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
cmpq $-0x1, %r13
je 0xf1d1
xorl %r15d, %r15d
xorl %eax, %eax
jmp 0xf3ae
leaq 0xd0(%rsp), %rax
movq %rax, 0xc0(%rsp)
leaq 0xc0(%rsp), %r12
movq %r12, %rdi
leaq 0x1273b(%rip), %rsi     # 0x21892
leaq 0x12737(%rip), %rdx     # 0x21895
callq 0x9f82
movq %r15, %rdi
leaq 0x12620(%rip), %rsi     # 0x2178d
movq %r12, %rdx
callq 0xfefa
leaq 0x48(%rsp), %rdi
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rcx
xorl %edx, %edx
callq 0x85e0
movq %rax, %r13
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xf1b9
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
cmpq $-0x1, %r13
je 0xf274
xorl %r12d, %r12d
movb $0x1, %r13b
xorl %r15d, %r15d
jmp 0xf30b
leaq 0x188(%rsp), %rax
movq %rax, 0x178(%rsp)
leaq 0x178(%rsp), %r14
movq %r14, %rdi
leaq 0x126b9(%rip), %rsi     # 0x218ac
leaq 0x126b4(%rip), %rdx     # 0x218ae
callq 0x9f82
leaq 0x48(%rsp), %r15
leaq 0x210(%rsp), %rdi
leaq 0x1257a(%rip), %rsi     # 0x2178d
movq %r14, %rdx
callq 0xfefa
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rcx
movq %r15, %rdi
xorl %edx, %edx
callq 0x85e0
movq %rax, %r13
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xf25d
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
cmpq $-0x1, %r13
je 0xf315
xorl %eax, %eax
movb $0x1, %r15b
movb $0x1, %bpl
jmp 0xf3ae
leaq 0x130(%rsp), %rax
movq %rax, 0x120(%rsp)
leaq 0x120(%rsp), %r12
movq %r12, %rdi
leaq 0x12600(%rip), %rsi     # 0x21896
leaq 0x125fc(%rip), %rdx     # 0x21899
callq 0x9f82
movq %r15, %rdi
leaq 0x124e1(%rip), %rsi     # 0x2178d
movq %r12, %rdx
callq 0xfefa
leaq 0x48(%rsp), %rdi
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rcx
xorl %edx, %edx
callq 0x85e0
movq %rax, %r13
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xf2f8
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
cmpq $-0x1, %r13
je 0xf6ad
xorl %r15d, %r15d
movb $0x1, %r13b
movb $0x1, %r12b
xorl %eax, %eax
movb $0x1, %bpl
jmp 0xeef5
leaq 0x1e0(%rsp), %rax
movq %rax, 0x1d0(%rsp)
leaq 0x1d0(%rsp), %r14
movq %r14, %rdi
leaq 0x12578(%rip), %rsi     # 0x218af
leaq 0x12573(%rip), %rdx     # 0x218b1
callq 0x9f82
leaq 0x48(%rsp), %r15
leaq 0x210(%rsp), %rdi
leaq 0x12436(%rip), %rsi     # 0x2178d
movq %r14, %rdx
callq 0xfefa
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rcx
movq %r15, %rdi
xorl %edx, %edx
callq 0x85e0
movq %rax, %r13
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xf3a1
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
cmpq $-0x1, %r13
setne %bpl
movb $0x1, %r15b
movb $0x1, %al
leaq 0x48(%rsp), %r13
testb %al, %al
je 0xf3dc
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0xf3dc
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x8320
testb %r15b, %r15b
movq %rbx, %r14
je 0xf409
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0xf409
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x8320
cmpq $-0x1, %r12
jne 0xf434
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0xf434
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x8320
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0xf44a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8320
testb %bpl, %bpl
je 0xf644
leaq 0xf0(%rsp), %rax
movq %rax, 0xe0(%rsp)
leaq 0xe0(%rsp), %rdi
leaq 0x1332e(%rip), %rdx     # 0x227a0
movq %rdx, %rsi
callq 0x9f82
movq 0xb8(%rsp), %rbp
leaq 0x210(%rsp), %r15
movq %r15, %rdi
callq 0x83b0
leaq 0x78(%rsp), %r14
movq %rbx, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq 0x48(%rsp), %rsi
movq %r15, %rdi
movl $0x8, %edx
callq 0x8200
leaq 0x288(%rsp), %rdi
callq 0x80b0
testb %al, %al
je 0xf591
movq 0x210(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x230(%rsp,%rax)
jne 0xf589
leaq (%rsp,%rax), %rdi
addq $0x210, %rdi            # imm = 0x210
movl $0xa, %esi
callq 0x82e0
movsbl %al, %edx
movq %r15, %rdi
movq %rsp, %rsi
callq 0x8660
movq %r14, 0x68(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %r12
movq %r12, %rdi
callq 0xa26a
movq %r12, %rdi
leaq 0x1326a(%rip), %rsi     # 0x2279f
callq 0x8680
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0xe0(%rsp), %rdi
callq 0x80f0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0xf568
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8320
movq 0x210(%rsp), %rax
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %rdi
addq $0x210, %rdi            # imm = 0x210
testb $0x2, 0x20(%rdi)
je 0xf4f5
movq %r15, %rdi
callq 0x8090
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0xf5a7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8320
movq %r15, %rdi
callq 0x80c0
leaq 0x220(%rsp), %rax
movq %rax, 0x210(%rsp)
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xa26a
movq %r15, %rdi
leaq 0x131bb(%rip), %rsi     # 0x2279f
callq 0x8680
leaq 0x18df0(%rip), %rdi     # 0x283e0
movq %r15, %rsi
callq 0x12062
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xf61d
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0xf668
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x8320
jmp 0xf668
movq %r13, %rdi
leaq 0x12264(%rip), %rsi     # 0x218b2
callq 0x80e0
testl %eax, %eax
leaq 0x78(%rsp), %r15
movq 0xb8(%rsp), %rbp
je 0xf84e
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
leaq 0x210(%rsp), %r15
je 0xf68c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8320
movq 0x150(%rsp), %rcx
incq %rcx
incq %rbp
cmpq 0x140(%rsp), %rcx
jne 0xedb9
jmp 0xf808
leaq 0x1a8(%rsp), %rax
movq %rax, 0x198(%rsp)
leaq 0x198(%rsp), %r12
movq %r12, %rdi
leaq 0x121cb(%rip), %rsi     # 0x2189a
leaq 0x121c8(%rip), %rdx     # 0x2189e
callq 0x9f82
movq %r15, %rdi
leaq 0x120a8(%rip), %rsi     # 0x2178d
movq %r12, %rdx
callq 0xfefa
leaq 0x48(%rsp), %rdi
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rcx
xorl %edx, %edx
callq 0x85e0
movq %rax, %r13
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xf731
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
cmpq $-0x1, %r13
je 0xf747
xorl %eax, %eax
movb $0x1, %r13b
movb $0x1, %r12b
movb $0x1, %r15b
jmp 0xf30d
leaq 0x200(%rsp), %rax
movq %rax, 0x1f0(%rsp)
leaq 0x1f0(%rsp), %r12
movq %r12, %rdi
leaq 0x12136(%rip), %rsi     # 0x2189f
leaq 0x12133(%rip), %rdx     # 0x218a3
callq 0x9f82
movq %r15, %rdi
leaq 0x1200e(%rip), %rsi     # 0x2178d
movq %r12, %rdx
callq 0xfefa
leaq 0x48(%rsp), %rdi
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rcx
xorl %edx, %edx
callq 0x85e0
movq %rax, %r13
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xf7cb
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
cmpq $-0x1, %r13
setne %bpl
movb $0x1, %r13b
movb $0x1, %r12b
movb $0x1, %r15b
movb $0x1, %al
jmp 0xeef5
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xf808
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
leaq 0x1b8(%rsp), %rdi
callq 0x9eea
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0xf83a
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x8320
xorl %eax, %eax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
movq %rax, (%rdi)
leaq 0x12f38(%rip), %rdx     # 0x227a0
movq %rdx, %rsi
callq 0x9f82
movq 0x150(%rsp), %rax
incl %eax
cmpl 0x34(%rsp), %eax
jge 0xf95a
leaq 0x68(%rsp), %rbx
leaq 0xe0(%rsp), %r14
leaq 0x11dbc(%rip), %r13     # 0x21654
leaq 0x210(%rsp), %r12
movq 0x148(%rsp), %rax
movq (%rax,%rbp,8), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x9dac
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8680
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf8e8
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xf8ee
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r12, %rdi
callq 0x80f0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xf932
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8320
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0xf949
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8320
incq %rbp
cmpq %rbp, 0x140(%rsp)
jne 0xf8a0
movq %rsp, %rdi
leaq 0x10(%rsp), %r14
movq %r14, (%rdi)
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
addq %rsi, %rdx
callq 0xa26a
leaq 0x12e1b(%rip), %rsi     # 0x2279f
movq %rsp, %rdi
callq 0x8680
leaq 0x18a4d(%rip), %rdi     # 0x283e0
movq %rsp, %rsi
callq 0x12062
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0xf9b1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8320
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xf9d6
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xf808
movq 0x58(%rsp), %rsi
jmp 0xf800
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0xd0(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x130(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0x1a8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
je 0xfae7
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x8320
jmp 0xfae7
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0xd0(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x130(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0x1a8(%rsp), %rax
movq %rax, 0xa8(%rsp)
jmp 0xfae7
jmp 0xfa99
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0xfcb1
movq 0x10(%rsp), %rsi
jmp 0xfca9
jmp 0xfc6d
jmp 0xfdbe
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0xd0(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x130(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x198(%rsp), %rdi
cmpq 0xa8(%rsp), %rdi
je 0xfbce
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x8320
jmp 0xfbce
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0xd0(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x130(%rsp), %rax
movq %rax, 0x38(%rsp)
jmp 0xfbce
movq %rax, %rbx
leaq 0x110(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0x188(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0xfc28
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x8320
jmp 0xfc28
movq %rax, %rbx
leaq 0x110(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0x188(%rsp), %rax
movq %rax, 0xb0(%rsp)
jmp 0xfc28
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0xd0(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x120(%rsp), %rdi
cmpq 0x38(%rsp), %rdi
je 0xfce7
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x8320
jmp 0xfce7
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0xd0(%rsp), %rax
movq %rax, 0x28(%rsp)
jmp 0xfce7
movq %rax, %rbx
leaq 0x110(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x178(%rsp), %rdi
cmpq 0xb0(%rsp), %rdi
je 0xfd24
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x8320
jmp 0xfd24
movq %rax, %rbx
leaq 0x110(%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0xfd24
jmp 0xfe2a
movq %rax, %rbx
jmp 0xfcb1
movq %rax, %rbx
jmp 0xfc95
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xfc95
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8320
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xfcb1
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8320
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xfe82
movq 0x220(%rsp), %rsi
jmp 0xfe7a
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xc0(%rsp), %rdi
cmpq 0x28(%rsp), %rdi
je 0xfd95
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8320
jmp 0xfd95
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0xfd95
movq %rax, %rbx
movq 0x100(%rsp), %rdi
cmpq 0x40(%rsp), %rdi
je 0xfdcb
movq 0x110(%rsp), %rsi
jmp 0xfdac
jmp 0xfdc8
jmp 0xfd7d
jmp 0xfdbe
jmp 0xfd4c
movq %rax, %rbx
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xfe5d
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
jmp 0xfe5d
movq %rax, %rbx
jmp 0xfe5d
movq %rax, %rbx
jmp 0xfecd
jmp 0xfe32
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq 0x20(%rsp), %rdi
je 0xfdcb
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x8320
jmp 0xfdcb
jmp 0xfdc8
jmp 0xfdc8
jmp 0xfdbe
jmp 0xfdbe
movq %rax, %rbx
jmp 0xfe82
jmp 0xfe2a
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xfe82
movq 0x10(%rsp), %rsi
jmp 0xfe7a
jmp 0xfde9
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0xfe35
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8320
jmp 0xfe35
jmp 0xfe32
jmp 0xfe09
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0xfe9b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8320
jmp 0xfe9b
jmp 0xfe98
movq %rax, %rbx
jmp 0xfec0
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xfe50
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8320
leaq 0x210(%rsp), %rdi
callq 0x80c0
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0xfe82
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x8320
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xfec0
movq 0x58(%rsp), %rsi
jmp 0xfeb8
movq %rax, %rbx
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0xfec0
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8320
leaq 0x1b8(%rsp), %rdi
callq 0x9eea
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0xfef2
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x8320
movq %rbx, %rdi
callq 0x8600