// File: /workspace/github_cpp_makefile_star2_O3/lukasz-wiecaszek[P]h264iframedecoder/main.cpp
// Function: main
int main(int argc, char *argv[])
{
    bool status;
    struct {
        bool rtp;
        bool ts;
        bool annex_b;
    } encapsulation = {};
    uint16_t pid = MPEG2TS_PID_INVALID;
    const char* ofile = nullptr;
    ymn::h264_parser_container_e container = ymn::h264_parser_container_e::NONE;
    mpeg2ts_parser_user_data mpeg2ts_user_data;

    static struct option long_options[] = {
        {"rtp",     no_argument,       0, 'r'},
        {"ts",      required_argument, 0, 't'},
        {"annex-b", no_argument,       0, 'a'},
        {"ofile",   required_argument, 0, 'o'},
        {0,         0,                 0,  0 }
    };

    for (;;) {
        int c = getopt_long(argc, argv, "rt:ao:", long_options, 0);
        if (-1 == c)
            break;

        switch(c) {
            case 'r':
                encapsulation.rtp = true;
                break;

            case 't':
                encapsulation.ts = true;
                encapsulation.annex_b = true;
                container = ymn::h264_parser_container_e::ANNEX_B;
                status = (ymn::strtointeger_conversion_status_e::success == ymn::strtointeger(optarg, pid));
                if (!status) {
                    std::cerr << "error: cannot convert '" << optarg << "' to integer" << std::endl;
                    h264iframedecoder_usage(argv[0]);
                    exit(EXIT_FAILURE);
                }
                break;

            case 'a':
                encapsulation.annex_b = true;
                container = ymn::h264_parser_container_e::ANNEX_B;
                break;

            case 'o':
                ofile = optarg;
                break;

            default:
                std::cout << "default option received" << std::endl;
                /* does nothing */
                break;
        }
    }

    std::cout << "encapsulation:"
        << " rtp=" << (encapsulation.rtp ? "y" : "n")
        << " ts=" << (encapsulation.ts ? "y" : "n")
        << " annex-b=" << (encapsulation.annex_b ? "y" : "n")
        << std::endl;
    if (encapsulation.ts)
        std::cout << "pid: " << HEXDEC(pid) << std::endl;
    std::cout << "container: " << to_string(container) << std::endl;

    const char* filename = argv[optind];
    if (!filename) {
         std::cerr << "error: missing input file" << std::endl;
         h264iframedecoder_usage(argv[0]);
         exit(EXIT_FAILURE);
    }

   if (ofile != nullptr) {
      h264_ofile = std::ofstream(ofile, std::ios::out | std::ios::binary);
      if (!h264_ofile.is_open()) {
         std::cerr << "error: could not open '" << ofile << "'" << std::endl;
         h264iframedecoder_usage(argv[0]);
         exit(EXIT_FAILURE);
      }
   }

    h264_decoder = new ymn::h264_decoder(container);
    assert(h264_decoder != nullptr);

    if (encapsulation.ts) {
        mpeg2ts_parser = new ymn::mpeg2ts_parser(TS_PARSER_BUFFER_SIZE);
        assert(mpeg2ts_parser != nullptr);

        mpeg2ts_user_data.pid = pid;
        mpeg2ts_user_data.h264_decoder = h264_decoder;

        mpeg2ts_parser->set_user_data(&mpeg2ts_user_data);
    }

    if (encapsulation.rtp) {
    }

    std::size_t read_bytes = 0;
    std::ifstream file(filename, std::ios::in | std::ios::binary);
    if (file.is_open()) {
        std::streamsize count;
        char* memblock;

        memblock = new char[READ_BUFFER_SIZE];

        do {
            count = file.readsome(memblock, READ_BUFFER_SIZE);
            read_bytes += count;
            if (count > 0) {
                if (encapsulation.rtp)
                    /* to be implemented */;
                else
                if (encapsulation.ts)
                    mpeg2ts_parser_feed(*mpeg2ts_parser, reinterpret_cast<uint8_t*>(memblock), count);
                else
                    h264_decoder_feed(*h264_decoder, reinterpret_cast<uint8_t*>(memblock), count);
            }
        } while (count > 0);

        file.close();
        std::cout << "read " << read_bytes << " bytes from '" << filename << "'" << std::endl;
    }
    else {
        std::cerr << "error: could not open '" << filename << "'" << std::endl;
    }

    if (mpeg2ts_parser)
        delete mpeg2ts_parser;

    if (h264_decoder)
        delete h264_decoder;

    if (h264_ofile.is_open())
        h264_ofile.close();

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rsi, %r15
movl %edi, %r12d
movl $0x2000, 0x90(%rsp) # imm = 0x2000
movq $0x0, 0x30(%rsp)
movw $0x2000, %ax            # imm = 0x2000
movq %rax, 0x28(%rsp)
leaq 0x15ab5(%rip), %r13     # 0x1803c
leaq 0x1ebf2(%rip), %rbp     # 0x21180
movq 0x1ea2b(%rip), %rbx     # 0x20fc0
movl $0x0, 0xc(%rsp)
xorl %eax, %eax
movq $0x0, 0x50(%rsp)
movq %rsi, 0x10(%rsp)
movq %rax, 0x48(%rsp)
movl %eax, %r14d
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
movq %rbp, %rcx
xorl %r8d, %r8d
callq 0x2280
cmpl $0x6e, %eax
jle 0x25df
cmpl $0x6f, %eax
je 0x262a
cmpl $0x72, %eax
je 0x264e
cmpl $0x74, %eax
jne 0x25ed
jmp 0x265a
cmpl $-0x1, %eax
je 0x26ef
cmpl $0x61, %eax
je 0x263e
movl $0x17, %edx
movq %rbx, %rdi
leaq 0x15a6c(%rip), %rsi     # 0x18068
callq 0x21d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
jmp 0x25b5
movq 0x1e96f(%rip), %rax     # 0x20fa0
movq (%rax), %rax
movq %rax, 0x30(%rsp)
jmp 0x25b5
movb $0x1, %r14b
movl $0x1, 0xc(%rsp)
jmp 0x25b5
movb $0x1, %al
movq %rax, 0x50(%rsp)
jmp 0x25b5
movq 0x1e93f(%rip), %rax     # 0x20fa0
movq (%rax), %r15
cmpb $0x0, (%r15)
je 0x318a
callq 0x2050
movq %rax, %r14
movl $0x0, (%rax)
movq %r15, %rdi
leaq 0xa0(%rsp), %rsi
xorl %edx, %edx
callq 0x2210
movq 0xa0(%rsp), %rcx
cmpb $0x0, (%rcx)
jne 0x318a
movl (%r14), %esi
cmpl $0x22, %esi
sete %cl
cmpq $-0x1, %rax
sete %dl
testb %dl, %cl
jne 0x318a
testq %rax, %rax
sete %cl
testl %esi, %esi
setne %dl
cmpq $0xffff, %rax           # imm = 0xFFFF
ja 0x318a
andb %dl, %cl
jne 0x318a
movq %rax, 0x28(%rsp)
movb $0x1, %al
movl $0x1, 0xc(%rsp)
movq 0x10(%rsp), %r15
jmp 0x25ad
leaq 0x1598a(%rip), %rsi     # 0x18080
movl $0xe, %edx
movq %rbx, %rdi
callq 0x21d0
leaq 0x15985(%rip), %rsi     # 0x1808f
movl $0x5, %edx
movq %rbx, %rdi
callq 0x21d0
leaq 0x15a76(%rip), %r12     # 0x18194
leaq 0x19d28(%rip), %r15     # 0x1c44d
testb $0x1, 0x50(%rsp)
movq %r15, %rsi
cmovneq %r12, %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x21d0
leaq 0x15950(%rip), %rsi     # 0x18095
movl $0x4, %edx
movq %rbx, %rdi
callq 0x21d0
movq 0x48(%rsp), %r13
testb $0x1, %r13b
movq %r15, %rsi
cmovneq %r12, %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x21d0
leaq 0x15924(%rip), %rsi     # 0x1809a
movl $0x9, %edx
movq %rbx, %rdi
callq 0x21d0
testb $0x1, %r14b
cmovneq %r12, %r15
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x21d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
testb $0x1, %r13b
je 0x288e
leaq 0x158d1(%rip), %rsi     # 0x180a4
movl $0x5, %edx
movq %rbx, %rdi
callq 0x21d0
leaq 0x1583d(%rip), %rsi     # 0x18024
movl $0x2, %edx
movq %rbx, %rdi
callq 0x21d0
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%rbx,%rax)
movzwl 0x28(%rsp), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x22b0
movq %rax, %r14
leaq 0x15805(%rip), %rsi     # 0x18027
movl $0x2, %edx
movq %rax, %rdi
callq 0x21d0
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r14,%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x22b0
movq %rax, %r14
leaq 0x1621c(%rip), %rsi     # 0x18a76
movl $0x1, %edx
movq %rax, %rdi
callq 0x21d0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
leaq 0x15815(%rip), %rsi     # 0x180aa
movl $0xb, %edx
movq %rbx, %rdi
callq 0x21d0
xorl %eax, %eax
movl 0xc(%rsp), %ebp
testl %ebp, %ebp
setne %al
leaq 0x15c3f(%rip), %rcx     # 0x184f3
leaq 0x15c3d(%rip), %rsi     # 0x184f8
cmoveq %rcx, %rsi
leaq (%rax,%rax,2), %rdx
addq $0x4, %rdx
movq %rbx, %rdi
callq 0x21d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
movq 0x1e6cb(%rip), %rax     # 0x20fc8
movslq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rcx,%rax,8), %r15
testq %r15, %r15
je 0x31d5
movq 0x30(%rsp), %r12
testq %r12, %r12
je 0x29b8
leaq 0xa0(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movl $0x14, %edx
callq 0x21b0
leaq 0x1e8f9(%rip), %rdi     # 0x21238
movq 0x1e8f2(%rip), %rax     # 0x21238
addq -0x18(%rax), %rdi
leaq 0xa8(%rsp), %r14
movq -0x8(%r14), %rax
addq -0x18(%rax), %r13
movq %r13, %rsi
callq 0x22d0
leaq 0x1e8d7(%rip), %rdi     # 0x21240
movq %r14, %rsi
callq 0x2180
movq 0x1e638(%rip), %rax     # 0x20fb0
movq (%rax), %rcx
movq 0x18(%rax), %rax
movq %rcx, -0x8(%r14)
movq -0x18(%rcx), %rcx
movq %rax, 0xa0(%rsp,%rcx)
movq %r14, %rdi
callq 0x2130
leaq 0x198(%rsp), %rdi
callq 0x20a0
leaq 0x1e8fd(%rip), %rdi     # 0x212a8
callq 0x2080
testb %al, %al
je 0x31e5
movl $0xa6480, %edi          # imm = 0xA6480
movl $0x40, %esi
callq 0x21c0
movq %rax, 0x40(%rsp)
movq %rax, %rdi
movl %ebp, %esi
callq 0x7d58
testb $0x1, 0x48(%rsp)
je 0x2a99
movl $0x180, %edi            # imm = 0x180
movl $0x40, %esi
callq 0x21c0
movq %rax, %r14
movl $0x2000, %eax           # imm = 0x2000
movq %rax, 0x40(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%r14)
movq $0x0, 0x90(%r14)
movq %rax, 0x98(%r14)
movq $-0x1, 0xa0(%r14)
movl $0x2000, %edi           # imm = 0x2000
callq 0x2030
movq %rax, 0xc0(%r14)
leaq 0x1dff4(%rip), %rax     # 0x20a30
movq %rax, (%r14)
leaq 0xd54(%rip), %rax       # 0x379a
movq %rax, 0x108(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, 0x110(%r14)
movl $0x2000, 0x120(%r14) # imm = 0x2000
movups %xmm0, 0x128(%r14)
movups %xmm0, 0x138(%r14)
movq %r14, 0x1e9be(%rip)     # 0x21438
movzwl 0x28(%rsp), %eax
leaq 0x90(%rsp), %rcx
movl %eax, (%rcx)
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rcx)
movq %rcx, 0x100(%r14)
leaq 0xa0(%rsp), %rdi
movq %r15, %rsi
movl $0xc, %edx
callq 0x22c0
leaq 0x118(%rsp), %rdi
callq 0x2080
testb %al, %al
je 0x308b
movq %r15, 0x68(%rsp)
movl $0x1000, %edi           # imm = 0x1000
callq 0x2030
movq %rax, 0x58(%rsp)
leaq 0x15526(%rip), %rbp     # 0x18004
xorl %r14d, %r14d
movq %r14, 0x70(%rsp)
movl $0x1000, %edx           # imm = 0x1000
leaq 0xa0(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x2250
movq %rax, 0x60(%rsp)
testq %rax, %rax
setle %al
orb 0x50(%rsp), %al
testb $0x1, %al
leaq 0x15a31(%rip), %r14     # 0x18546
jne 0x3024
testb $0x1, 0x48(%rsp)
je 0x3010
movq 0x1e90b(%rip), %r13     # 0x21438
leaq 0x110(%r13), %rax
movq %rax, 0x88(%rsp)
leaq 0x80(%r13), %rax
movq %rax, 0x80(%rsp)
leaq 0x128(%r13), %rax
movq %rax, 0x78(%rsp)
movq 0x60(%rsp), %r15
movq 0x58(%rsp), %r12
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x366a
testq %rax, %rax
je 0x2fa4
movq %r12, 0x30(%rsp)
movq %rax, 0x28(%rsp)
subq %rax, %r15
movq %r15, 0x10(%rsp)
jb 0x3165
movq 0x100(%r13), %rax
movl (%rax), %eax
movl %eax, 0xc(%rsp)
movq 0x108(%r13), %rax
movq 0x110(%r13), %rdi
addq %r13, %rdi
testb $0x1, %al
je 0x2bba
movq (%rdi), %rcx
movq -0x1(%rcx,%rax), %rax
callq *%rax
cmpl $0x3, %eax
ja 0x2b9d
movl %eax, %eax
movslq (%rbp,%rax,4), %rax
addq %rbp, %rax
jmpq *%rax
movl $0xb, %edx
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x2be9
movl $0x9, %edx
movq %rbx, %rdi
leaq 0x15969(%rip), %rsi     # 0x18552
callq 0x21d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
jmp 0x2b9d
movq 0xc0(%r13), %r15
movq 0x88(%r13), %rax
movq 0x118(%r13), %rdx
cmpq %rdx, %rax
cmovbq %rax, %rdx
movq 0x80(%r13), %rcx
leaq (%rdx,%rcx), %rsi
movq %rsi, 0x80(%r13)
subq %rdx, %rax
movq %rax, 0x88(%r13)
movzbl 0x1(%r15,%rcx), %eax
movzbl 0x2(%r15,%rcx), %edx
movl %eax, %esi
andl $0x1f, %esi
shll $0x8, %esi
orl %edx, %esi
cmpl 0xc(%rsp), %esi
jne 0x2b9d
addq %rcx, %r15
movq 0x100(%r13), %rsi
movzbl 0x3(%r15), %ecx
shrl $0x4, %ecx
andl $0x3, %ecx
leaq 0x15389(%rip), %rdx     # 0x18014
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
addq $0x4, %r15
testb $0x40, %al
jne 0x2cf8
movl $0xb8, %r12d
movl $0xb8, %r8d
jmp 0x2cd1
movzbl 0x4(%r15), %ecx
leaq (%r15,%rcx), %r14
addq $0x5, %r14
movl $0xb7, %r12d
subl %ecx, %r12d
testb $0x40, %al
jne 0x2d24
movq %r12, %r8
movq %r14, %r15
leaq 0x15875(%rip), %r14     # 0x18546
movl 0x1e769(%rip), %eax     # 0x21440
testl %eax, %eax
je 0x2b9d
cmpl $0x2, %eax
jne 0x2d4c
movq 0x8(%rsi), %rdi
movq %r15, %rsi
movq %r8, %rdx
callq 0x35a6
jmp 0x2b9d
movl $0x1, 0x1e73e(%rip)     # 0x21440
movq $0x0, 0x1e73b(%rip) # 0x21448
movl $0xb8, %r12d
movq %r15, %r14
xorl %r9d, %r9d
movl $0xb8, %r8d
jmp 0x2e13
movl $0x1, 0x1e712(%rip)     # 0x21440
movq $0x0, 0x1e70f(%rip) # 0x21448
cmpb $-0x50, %cl
ja 0x2da9
xorl %r9d, %r9d
movq %r12, %r8
movq %r14, %r15
jmp 0x2e13
movq 0x1e6f5(%rip), %r9      # 0x21448
testq %r9, %r9
leaq 0x1e6f3(%rip), %r14     # 0x21450
cmoveq %r15, %r14
movq %r9, %rcx
cmoveq %r8, %rcx
movl $0x7, %eax
subl %ecx, %eax
testl %eax, %eax
jle 0x2d9e
testq %r9, %r9
je 0x2da3
leaq 0x1e6d1(%rip), %rcx     # 0x21450
leaq (%rcx,%r9), %rdi
cmpl %r12d, %eax
movq %r9, %r12
jbe 0x2dce
movq %r15, %rsi
movq %r8, %rdx
movq %r8, %r14
callq 0x2120
addq %r14, %r12
jmp 0x2dbb
movq %rcx, %r12
jmp 0x2e13
movq %r8, %r12
movq %r15, %r14
leaq 0x1e6a0(%rip), %rdi     # 0x21450
movq %r14, %rsi
movq %r12, %rdx
callq 0x2120
movq %r12, 0x1e686(%rip)     # 0x21448
leaq 0x1577d(%rip), %r14     # 0x18546
jmp 0x2b9d
movl %eax, %r14d
movq %rsi, 0x20(%rsp)
movq %r15, %rsi
movq %r14, %rdx
movq %r12, 0x18(%rsp)
movq %r8, %r12
callq 0x2120
movq %r12, %r8
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %r9
addq %r14, %r9
movq %r9, 0x1e648(%rip)      # 0x21448
addq %r14, %r15
subq %r14, %r8
movl $0x7, %r12d
leaq 0x1e63d(%rip), %r14     # 0x21450
cmpb $0x0, (%r14)
jne 0x2e98
cmpb $0x0, 0x1(%r14)
jne 0x2e98
cmpb $0x1, 0x2(%r14)
jne 0x2e98
movb 0x3(%r14), %al
andb $-0x10, %al
cmpb $-0x20, %al
jne 0x2e98
movb 0x6(%r14), %al
andb $-0x40, %al
negb %al
jno 0x2e98
movl $0x9, %eax
subl %r12d, %eax
testl %eax, %eax
jle 0x2ee5
testq %r9, %r9
je 0x2da9
movl %eax, %r12d
leaq 0x1e5f2(%rip), %rax     # 0x21450
leaq (%rax,%r9), %rdi
movq %r8, %rax
subq %r12, %rax
movq %r9, 0x18(%rsp)
jae 0x2eae
movq %r15, %rsi
movq %r8, %rdx
movq %r8, %r14
callq 0x2120
movq 0x18(%rsp), %rax
addq %r14, %rax
movq %rax, 0x1e5bc(%rip)     # 0x21448
leaq 0x156b3(%rip), %r14     # 0x18546
jmp 0x2b9d
movl $0x0, 0x1e59e(%rip)     # 0x21440
leaq 0x1569d(%rip), %r14     # 0x18546
jmp 0x2b9d
movq %rsi, 0x20(%rsp)
movq %r15, %rsi
movq %r12, %rdx
movq %rax, 0x38(%rsp)
callq 0x2120
movq 0x38(%rsp), %r8
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %r9
addq %r12, %r9
movq %r9, 0x1e56c(%rip)      # 0x21448
addq %r12, %r15
movl $0x9, %r12d
movzbl 0x8(%r14), %ecx
addq $0x9, %rcx
movq %rcx, %rdx
subq %r12, %rdx
testl %edx, %edx
jle 0x2f59
testq %r9, %r9
je 0x2da9
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leaq 0x1e542(%rip), %rax     # 0x21450
leaq (%rax,%r9), %rdi
movq %r8, %r14
subq %rdx, %r14
movq %r9, %r12
jb 0x2d8b
movq %rsi, 0x20(%rsp)
movq %r15, %rsi
movq %rcx, 0x18(%rsp)
movq %rdx, 0x38(%rsp)
callq 0x2120
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rsi
movq 0x38(%rsp), %rax
addq %rax, %r12
movq %r12, 0x1e4f7(%rip)     # 0x21448
addq %rax, %r15
movq %r12, %r9
jmp 0x2f5c
movq %r8, %r14
testq %r9, %r9
movl $0x0, %eax
cmovneq %rax, %rcx
subq %rcx, %r14
addq %r15, %rcx
movq 0x8(%rsi), %rdi
movq %rcx, %rsi
movq %r14, %rdx
callq 0x35a6
movl $0x2, 0x1e4b9(%rip)     # 0x21440
leaq 0x155b8(%rip), %r14     # 0x18546
jmp 0x2b9d
movq 0x30(%rsp), %r12
addq 0x28(%rsp), %r12
movq 0x10(%rsp), %r15
jmp 0x3005
movq 0x40(%r13), %rax
xorl %ecx, %ecx
movq 0x80(%rsp), %rdx
movq %rcx, 0x10(%rdx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdx)
movq %rax, 0x98(%r13)
movq $-0x1, 0xa0(%r13)
movq %rcx, 0x100(%r13)
leaq 0x7be(%rip), %rax       # 0x379a
movq %rax, 0x108(%r13)
movq 0x88(%rsp), %rax
movaps %xmm0, (%rax)
movl $0x2000, 0x120(%r13) # imm = 0x2000
movq 0x78(%rsp), %rax
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
testq %r15, %r15
jne 0x2b61
jmp 0x3024
movq 0x40(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
callq 0x35a6
movq 0x70(%rsp), %r14
movq 0x60(%rsp), %rax
addq %rax, %r14
testq %rax, %rax
jg 0x2ae1
leaq 0xa0(%rsp), %rdi
callq 0x2060
movq 0x1df72(%rip), %rbx     # 0x20fc0
leaq 0x15093(%rip), %rsi     # 0x180e8
movl $0x5, %edx
movq %rbx, %rdi
callq 0x21d0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2100
movq %rax, %rbx
leaq 0x15077(%rip), %rsi     # 0x180ee
movl $0xd, %edx
movq %rax, %rdi
callq 0x21d0
movq 0x68(%rsp), %r15
jmp 0x30a6
movq 0x1df5e(%rip), %rbx     # 0x20ff0
leaq 0x15037(%rip), %rsi     # 0x180d0
movl $0x17, %edx
movq %rbx, %rdi
callq 0x21d0
movq %r15, %rdi
callq 0x20b0
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x21d0
leaq 0x195c5(%rip), %rsi     # 0x1c688
movl $0x1, %edx
movq %rbx, %rdi
callq 0x21d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
movq 0x1e33a(%rip), %rdi     # 0x21438
testq %rdi, %rdi
je 0x3109
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x7d90
movl $0xa6480, %esi          # imm = 0xA6480
movl $0x40, %edx
movq %rbx, %rdi
callq 0x2070
leaq 0x1e179(%rip), %rdi     # 0x212a8
callq 0x2080
testb %al, %al
je 0x3144
leaq 0x1e0f9(%rip), %rdi     # 0x21238
callq 0x2230
leaq 0xa0(%rsp), %rdi
callq 0x2090
xorl %eax, %eax
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1de84(%rip), %rdi     # 0x20ff0
leaq 0x1538d(%rip), %rsi     # 0x18500
callq 0x2160
movq %rax, %rdi
callq 0x20c0
movl $0x1, %edi
callq 0x21e0
movq 0x1de5f(%rip), %rdi     # 0x20ff0
leaq 0x14eab(%rip), %rsi     # 0x18043
callq 0x2160
movq 0x1ddfc(%rip), %rcx     # 0x20fa0
movq (%rcx), %rsi
movq %rax, %rdi
callq 0x2160
leaq 0x14ea5(%rip), %rsi     # 0x1805b
movq %rax, %rdi
callq 0x2160
movq %rax, %rdi
callq 0x20c0
movq 0x10(%rsp), %rax
movq (%rax), %rdi
callq 0x320c
jmp 0x3180
movq 0x1de14(%rip), %rdi     # 0x20ff0
leaq 0x14ed3(%rip), %rsi     # 0x180b6
jmp 0x31b9
movq 0x1de04(%rip), %rdi     # 0x20ff0
leaq 0x14edd(%rip), %rsi     # 0x180d0
callq 0x2160
movq %rax, %rdi
movq %r12, %rsi
callq 0x2160
leaq 0x1947e(%rip), %rsi     # 0x1c688
jmp 0x31b6