// File: ctSkennerton[P]fxtract/util/msutil_t.c
// Function: main
int
main(void)
{
    char        buf[99];
    plan_tests(31);

    MEMREF  mr = fileref(__FILE__);
    ok(!nilref(mr), "fileref("__FILE__")");
    ok(!memcmp(mr.ptr, "// Copyright", 12), "readable");
    ok(!memcmp(mr.ptr + mr.len - 7, "\n//EOF\n", 7), "to the end");
    defileref(mr);  // coverage

    FILE *fp = popenf("r", "echo hello");
    ok(fp, "popenf works");
    ok(fgets(buf, 99, fp) && !strcmp(buf, "hello\n"), "popenf cmd works");
    ok(!systemf("PS4='# '; set -x; echo '# %d'", 666), "systemf works");
    int     act;
#undef TRY
#define TRY(x,exp) act=fls(x); if (!ok(act==exp, "fls(0x%X) = %d", x,exp)) fprintf(stderr, "# returned: %d\n", act)
    TRY( 0,  0);
    TRY( 1,  1);
    TRY(64,  7);
    TRY(66,  7);
    TRY(-1, 32);

    ok(!strcmp(getprogname(), "msutil_t"), "getprogname");

#undef TRY
#define TRY(x,exp) ok(!strcmp(strim(strcpy(buf,x)), exp), "strim('%s')", x)
    TRY("", "");
    TRY(" \t  \n  \r", "");
    TRY("abc", "abc");
    TRY(" abc", "abc");
    TRY(" abc  ", "abc");
    TRY("a b c", "a b c");

//TODO:
// addr_part(MEMREF r)
// belch(char const *filename, MEMREF data)
// bit_count(char const*vec, int len)
#if 0
    char    data[49] = {
        15,  0,  2,  0,  6,  0,  2,  0, 15,  0,  2,  0,  6,  0,  2,  0,
        15,  0,  2,  0,  6,  0,  2,  0, 15,  0,  2,  0,  6,  0,  2,  0,
        15,  0,  2,  0,  6,  0,  2,  0, 15,  0,  2,  0,  6,  0,  2,  0, 15
    };
    int     iact = bit_count(data, 49);
    ok(iact == 52, "bit_count is %d", iact);
    
    MEMBUF      mb = NILBUF;
    bufcat(&mb, strref("hello,"));
    bufcat(&mb, strref(" world"));
    ok(!refcmp(bufref(mb), strref("hello, world")), "bufcat works");
    ok(0 < refcmp(bufref(mb), strref("hello")), "refcmp works");
    char        *cp = refdup(bufref(mb));
    ok(!strcmp(cp, "hello, world"), "refdup works");
    buffree(mb);
// die(char const *fmt, ...)
// findbit_1
    int i, off, succ = 0;
    for (off = 0; off < 16; ++off) {
        for (i = 0; i < 256; i++) {
            uint8_t ff[50] = {};
            ff[off + (i >> 3)] = 1 << (i & 7);
            iact = findbit_1(ff + off, off + (i >> 3) + 2);
            if (iact == i) ++succ;
            else fprintf(stderr, "%3d %3d %3d\n", off, i, iact);
        }
    }
    ok(succ == 4096, "%d/4096 findbit_1 tests passed", succ);
#endif
// fopenf(char const *mode, char const *fmt, ...)
// memfind(char const *tgt, int tgtlen, char const *pat, int patlen)

    MEMREF  x[] = { strref("middle"), strref("head"), strref("tail") };
    qsort(x, 3, sizeof(MEMREF), (qsort_cmp)refpcmp);
    ok(refcmp(x[0], x[1]) < 0 && refcmp(x[1], x[2]) < 0, "refpcmp works");

// vec_new(int width, DTOR *dtor, void *context)
// vec_push(VEC* v, void *elem)
// vec_allow(VEC* v, int limit)
// vec_resize(VEC* v, int limit)
// vec_free(VEC* v)

    char    *cs = acstr("one\2\t\377\0'two\0\0\0", 14);
    ok(!strcmp(cs,  "\"one\\x02\\t\\xFF\\x00'two\""), "acstr formats buffer as %s", cs);

    uint32_t    a32 = revbit32(0x2357BD0F);
    ok(a32 == 0xF0BDEAC4, "rev(2357BD0F) = %8X", a32);

    uint64_t    a64 = revbit64(0xC23456789AB10DEFULL);
    ok(a64 == 0xF7B08D591E6A2C43ULL, "rev(C23456789AB10DEF) = %16llX", a64);

    YMD     ymd, exp;
    exp = (YMD) { 2004,02,29 };
    unsigned day = ymd2day(exp);
    ymd = day2ymd(day);
    ok(!memcmp(&ymd, &exp, sizeof(YMD)), "%d/%02d/%02d", exp.yyyy, exp.mm, exp.dd);

    exp = (YMD) { 2004,03,01 };
    ymd = day2ymd(day+1);
    ok(!memcmp(&ymd, &exp, sizeof(YMD)), "+ 1 = %d/%02d/%02d", exp.yyyy, exp.mm, exp.dd);

    exp = (YMD) { 2000,12,31 };
    ymd = day2ymd(ymd2day((YMD){2001,1,1}) - 1);
    ok(!memcmp(&ymd, &exp, sizeof(YMD)), "%d/%02d/%02d", exp.yyyy, exp.mm, exp.dd);

    exp = (YMD) { 2005,03,01 };
    ymd = day2ymd(ymd2day((YMD){2005,02,29}));
    ok(!memcmp(&ymd, &exp, sizeof(YMD)), "2005/02/29 => %d/%02d/%02d", exp.yyyy, exp.mm, exp.dd);

    return exit_status();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x220, %rsp            # imm = 0x220
movl $0x0, -0x14(%rbp)
movl $0x1f, %edi
callq 0x8040
leaq 0x5b5e(%rip), %rdi      # 0x9004
callq 0x5c10
movq %rax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x4bd0
cmpl $0x0, %eax
jne 0x3512
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x5b2b(%rip), %r9       # 0x900f
leaq 0x5b19(%rip), %r10      # 0x9004
leaq 0x5b22(%rip), %rax      # 0x9014
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x20, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x354f
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x5aef(%rip), %r9       # 0x900f
leaq 0x5add(%rip), %r10      # 0x9004
leaq 0x5ae6(%rip), %rax      # 0x9014
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x20, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
movq -0x90(%rbp), %rdi
leaq 0x5acb(%rip), %rsi      # 0x9028
movl $0xc, %edx
callq 0x30b0
cmpl $0x0, %eax
jne 0x35ad
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x5a90(%rip), %r9       # 0x900f
leaq 0x5a7e(%rip), %r10      # 0x9004
leaq 0x5aa8(%rip), %rax      # 0x9035
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x21, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x35ea
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x5a54(%rip), %r9       # 0x900f
leaq 0x5a42(%rip), %r10      # 0x9004
leaq 0x5a6c(%rip), %rax      # 0x9035
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x21, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
movq -0x90(%rbp), %rdi
addq -0x88(%rbp), %rdi
addq $-0x7, %rdi
leaq 0x5a3b(%rip), %rsi      # 0x903e
movl $0x7, %edx
callq 0x30b0
cmpl $0x0, %eax
jne 0x3653
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x59ea(%rip), %r9       # 0x900f
leaq 0x59d8(%rip), %r10      # 0x9004
leaq 0x5a13(%rip), %rax      # 0x9046
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x22, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x3690
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x59ae(%rip), %r9       # 0x900f
leaq 0x599c(%rip), %r10      # 0x9004
leaq 0x59d7(%rip), %rax      # 0x9046
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x22, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x6c90
leaq 0x6543(%rip), %rdi      # 0x9bed
leaq 0x59a0(%rip), %rsi      # 0x9051
movb $0x0, %al
callq 0x67e0
movq %rax, -0x98(%rbp)
cmpq $0x0, -0x98(%rbp)
je 0x370a
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x5933(%rip), %r9       # 0x900f
leaq 0x5921(%rip), %r10      # 0x9004
leaq 0x5972(%rip), %rax      # 0x905c
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x26, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x3747
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x58f7(%rip), %r9       # 0x900f
leaq 0x58e5(%rip), %r10      # 0x9004
leaq 0x5936(%rip), %rax      # 0x905c
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x26, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
leaq -0x80(%rbp), %rdi
movq -0x98(%rbp), %rdx
movl $0x63, %esi
callq 0x32c0
cmpq $0x0, %rax
je 0x37b8
leaq -0x80(%rbp), %rdi
leaq 0x58fc(%rip), %rsi      # 0x9069
callq 0x3260
cmpl $0x0, %eax
jne 0x37b8
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x5885(%rip), %r9       # 0x900f
leaq 0x5873(%rip), %r10      # 0x9004
leaq 0x58d8(%rip), %rax      # 0x9070
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x27, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x37f5
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x5849(%rip), %r9       # 0x900f
leaq 0x5837(%rip), %r10      # 0x9004
leaq 0x589c(%rip), %rax      # 0x9070
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x27, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
leaq 0x5885(%rip), %rdi      # 0x9081
movl $0x29a, %esi            # imm = 0x29A
movb $0x0, %al
callq 0x7010
cmpl $0x0, %eax
jne 0x384e
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x57ef(%rip), %r9       # 0x900f
leaq 0x57dd(%rip), %r10      # 0x9004
leaq 0x5871(%rip), %rax      # 0x909f
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x28, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x388b
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x57b3(%rip), %r9       # 0x900f
leaq 0x57a1(%rip), %r10      # 0x9004
leaq 0x5835(%rip), %rax      # 0x909f
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x28, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
xorl %edi, %edi
callq 0x4c00
movl %eax, -0x9c(%rbp)
cmpl $0x0, -0x9c(%rbp)
jne 0x38f7
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x575b(%rip), %r9       # 0x900f
leaq 0x5749(%rip), %r10      # 0x9004
leaq 0x57eb(%rip), %rax      # 0x90ad
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x2c, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movl $0x0, 0x20(%rsp)
movb $0x0, %al
callq 0x7360
cmpl $0x0, %eax
jne 0x3967
jmp 0x3949
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x570a(%rip), %r9       # 0x900f
leaq 0x56f8(%rip), %r10      # 0x9004
leaq 0x579a(%rip), %rax      # 0x90ad
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x2c, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movl $0x0, 0x20(%rsp)
movb $0x0, %al
callq 0x7360
cmpl $0x0, %eax
jne 0x3967
movq 0x8690(%rip), %rax      # 0xbfe0
movq (%rax), %rdi
movl -0x9c(%rbp), %edx
leaq 0x575c(%rip), %rsi      # 0x90bc
movb $0x0, %al
callq 0x3280
movl $0x1, %edi
callq 0x4c00
movl %eax, -0x9c(%rbp)
cmpl $0x1, -0x9c(%rbp)
jne 0x39d6
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x567c(%rip), %r9       # 0x900f
leaq 0x566a(%rip), %r10      # 0x9004
leaq 0x570c(%rip), %rax      # 0x90ad
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x2d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl $0x1, 0x18(%rsp)
movl $0x1, 0x20(%rsp)
movb $0x0, %al
callq 0x7360
cmpl $0x0, %eax
jne 0x3a46
jmp 0x3a28
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x562b(%rip), %r9       # 0x900f
leaq 0x5619(%rip), %r10      # 0x9004
leaq 0x56bb(%rip), %rax      # 0x90ad
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x2d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl $0x1, 0x18(%rsp)
movl $0x1, 0x20(%rsp)
movb $0x0, %al
callq 0x7360
cmpl $0x0, %eax
jne 0x3a46
movq 0x85b1(%rip), %rax      # 0xbfe0
movq (%rax), %rdi
movl -0x9c(%rbp), %edx
leaq 0x567d(%rip), %rsi      # 0x90bc
movb $0x0, %al
callq 0x3280
movl $0x40, %edi
callq 0x4c00
movl %eax, -0x9c(%rbp)
cmpl $0x7, -0x9c(%rbp)
jne 0x3ab5
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x559d(%rip), %r9       # 0x900f
leaq 0x558b(%rip), %r10      # 0x9004
leaq 0x562d(%rip), %rax      # 0x90ad
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x2e, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl $0x40, 0x18(%rsp)
movl $0x7, 0x20(%rsp)
movb $0x0, %al
callq 0x7360
cmpl $0x0, %eax
jne 0x3b25
jmp 0x3b07
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x554c(%rip), %r9       # 0x900f
leaq 0x553a(%rip), %r10      # 0x9004
leaq 0x55dc(%rip), %rax      # 0x90ad
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x2e, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl $0x40, 0x18(%rsp)
movl $0x7, 0x20(%rsp)
movb $0x0, %al
callq 0x7360
cmpl $0x0, %eax
jne 0x3b25
movq 0x84d2(%rip), %rax      # 0xbfe0
movq (%rax), %rdi
movl -0x9c(%rbp), %edx
leaq 0x559e(%rip), %rsi      # 0x90bc
movb $0x0, %al
callq 0x3280
movl $0x42, %edi
callq 0x4c00
movl %eax, -0x9c(%rbp)
cmpl $0x7, -0x9c(%rbp)
jne 0x3b94
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x54be(%rip), %r9       # 0x900f
leaq 0x54ac(%rip), %r10      # 0x9004
leaq 0x554e(%rip), %rax      # 0x90ad
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x2f, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl $0x42, 0x18(%rsp)
movl $0x7, 0x20(%rsp)
movb $0x0, %al
callq 0x7360
cmpl $0x0, %eax
jne 0x3c04
jmp 0x3be6
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x546d(%rip), %r9       # 0x900f
leaq 0x545b(%rip), %r10      # 0x9004
leaq 0x54fd(%rip), %rax      # 0x90ad
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x2f, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl $0x42, 0x18(%rsp)
movl $0x7, 0x20(%rsp)
movb $0x0, %al
callq 0x7360
cmpl $0x0, %eax
jne 0x3c04
movq 0x83f3(%rip), %rax      # 0xbfe0
movq (%rax), %rdi
movl -0x9c(%rbp), %edx
leaq 0x54bf(%rip), %rsi      # 0x90bc
movb $0x0, %al
callq 0x3280
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x4c00
movl %eax, -0x9c(%rbp)
cmpl $0x20, -0x9c(%rbp)
jne 0x3c73
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x53df(%rip), %r9       # 0x900f
leaq 0x53cd(%rip), %r10      # 0x9004
leaq 0x546f(%rip), %rax      # 0x90ad
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x30, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl $0xffffffff, 0x18(%rsp) # imm = 0xFFFFFFFF
movl $0x20, 0x20(%rsp)
movb $0x0, %al
callq 0x7360
cmpl $0x0, %eax
jne 0x3ce3
jmp 0x3cc5
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x538e(%rip), %r9       # 0x900f
leaq 0x537c(%rip), %r10      # 0x9004
leaq 0x541e(%rip), %rax      # 0x90ad
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x30, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movl $0xffffffff, 0x18(%rsp) # imm = 0xFFFFFFFF
movl $0x20, 0x20(%rsp)
movb $0x0, %al
callq 0x7360
cmpl $0x0, %eax
jne 0x3ce3
movq 0x8314(%rip), %rax      # 0xbfe0
movq (%rax), %rdi
movl -0x9c(%rbp), %edx
leaq 0x53e0(%rip), %rsi      # 0x90bc
movb $0x0, %al
callq 0x3280
callq 0x63e0
movq %rax, %rdi
leaq 0x53da(%rip), %rsi      # 0x90cc
callq 0x3260
cmpl $0x0, %eax
jne 0x3d3d
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x5300(%rip), %r9       # 0x900f
leaq 0x52ee(%rip), %r10      # 0x9004
leaq 0x53b8(%rip), %rax      # 0x90d5
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x32, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x3d7a
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x52c4(%rip), %r9       # 0x900f
leaq 0x52b2(%rip), %r10      # 0x9004
leaq 0x537c(%rip), %rax      # 0x90d5
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x32, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
leaq -0x80(%rbp), %rdi
leaq 0x5c31(%rip), %rsi      # 0x99b6
callq 0x3180
movq %rax, %rdi
callq 0x6f50
movq %rax, %rdi
leaq 0x5c1a(%rip), %rsi      # 0x99b6
callq 0x3260
cmpl $0x0, %eax
jne 0x3df3
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x5256(%rip), %r9       # 0x900f
leaq 0x5244(%rip), %r11      # 0x9004
leaq 0x531a(%rip), %r10      # 0x90e1
leaq 0x5be8(%rip), %rax      # 0x99b6
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x36, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x3e3c
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x520e(%rip), %r9       # 0x900f
leaq 0x51fc(%rip), %r11      # 0x9004
leaq 0x52d2(%rip), %r10      # 0x90e1
leaq 0x5ba0(%rip), %rax      # 0x99b6
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x36, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
leaq -0x80(%rbp), %rdi
leaq 0x52a6(%rip), %rsi      # 0x90ed
callq 0x3180
movq %rax, %rdi
callq 0x6f50
movq %rax, %rdi
leaq 0x5b58(%rip), %rsi      # 0x99b6
callq 0x3260
cmpl $0x0, %eax
jne 0x3eb5
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x5194(%rip), %r9       # 0x900f
leaq 0x5182(%rip), %r11      # 0x9004
leaq 0x5258(%rip), %r10      # 0x90e1
leaq 0x525d(%rip), %rax      # 0x90ed
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x37, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x3efe
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x514c(%rip), %r9       # 0x900f
leaq 0x513a(%rip), %r11      # 0x9004
leaq 0x5210(%rip), %r10      # 0x90e1
leaq 0x5215(%rip), %rax      # 0x90ed
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x37, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
leaq -0x80(%rbp), %rdi
leaq 0x51ee(%rip), %rsi      # 0x90f7
callq 0x3180
movq %rax, %rdi
callq 0x6f50
movq %rax, %rdi
leaq 0x51d7(%rip), %rsi      # 0x90f7
callq 0x3260
cmpl $0x0, %eax
jne 0x3f77
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x50d2(%rip), %r9       # 0x900f
leaq 0x50c0(%rip), %r11      # 0x9004
leaq 0x5196(%rip), %r10      # 0x90e1
leaq 0x51a5(%rip), %rax      # 0x90f7
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x38, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x3fc0
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x508a(%rip), %r9       # 0x900f
leaq 0x5078(%rip), %r11      # 0x9004
leaq 0x514e(%rip), %r10      # 0x90e1
leaq 0x515d(%rip), %rax      # 0x90f7
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x38, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
leaq -0x80(%rbp), %rdi
leaq 0x512b(%rip), %rsi      # 0x90f6
callq 0x3180
movq %rax, %rdi
callq 0x6f50
movq %rax, %rdi
leaq 0x5115(%rip), %rsi      # 0x90f7
callq 0x3260
cmpl $0x0, %eax
jne 0x4039
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x5010(%rip), %r9       # 0x900f
leaq 0x4ffe(%rip), %r11      # 0x9004
leaq 0x50d4(%rip), %r10      # 0x90e1
leaq 0x50e2(%rip), %rax      # 0x90f6
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x39, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x4082
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x4fc8(%rip), %r9       # 0x900f
leaq 0x4fb6(%rip), %r11      # 0x9004
leaq 0x508c(%rip), %r10      # 0x90e1
leaq 0x509a(%rip), %rax      # 0x90f6
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x39, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
leaq -0x80(%rbp), %rdi
leaq 0x506e(%rip), %rsi      # 0x90fb
callq 0x3180
movq %rax, %rdi
callq 0x6f50
movq %rax, %rdi
leaq 0x5053(%rip), %rsi      # 0x90f7
callq 0x3260
cmpl $0x0, %eax
jne 0x40fb
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x4f4e(%rip), %r9       # 0x900f
leaq 0x4f3c(%rip), %r11      # 0x9004
leaq 0x5012(%rip), %r10      # 0x90e1
leaq 0x5025(%rip), %rax      # 0x90fb
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x3a, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x4144
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x4f06(%rip), %r9       # 0x900f
leaq 0x4ef4(%rip), %r11      # 0x9004
leaq 0x4fca(%rip), %r10      # 0x90e1
leaq 0x4fdd(%rip), %rax      # 0x90fb
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x3a, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
leaq -0x80(%rbp), %rdi
leaq 0x4fb3(%rip), %rsi      # 0x9102
callq 0x3180
movq %rax, %rdi
callq 0x6f50
movq %rax, %rdi
leaq 0x4f9c(%rip), %rsi      # 0x9102
callq 0x3260
cmpl $0x0, %eax
jne 0x41bd
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x4e8c(%rip), %r9       # 0x900f
leaq 0x4e7a(%rip), %r11      # 0x9004
leaq 0x4f50(%rip), %r10      # 0x90e1
leaq 0x4f6a(%rip), %rax      # 0x9102
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x3b, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x4206
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x4e44(%rip), %r9       # 0x900f
leaq 0x4e32(%rip), %r11      # 0x9004
leaq 0x4f08(%rip), %r10      # 0x90e1
leaq 0x4f22(%rip), %rax      # 0x9102
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x3b, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
leaq 0x4efb(%rip), %rdi      # 0x9108
callq 0x4c30
movq %rax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
leaq 0x4ee8(%rip), %rdi      # 0x910f
callq 0x4c30
movq %rax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
leaq 0x4ed3(%rip), %rdi      # 0x9114
callq 0x4c30
movq %rax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
leaq -0xd0(%rbp), %rdi
movl $0x3, %esi
movl $0x10, %edx
leaq 0x2784(%rip), %rcx      # 0x69f0
callq 0x3340
movq -0xd0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
movq -0xc0(%rbp), %rdx
movq -0xb8(%rbp), %rcx
callq 0x68a0
cmpl $0x0, %eax
jge 0x42fe
movq -0xc0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
movq -0xa8(%rbp), %rcx
callq 0x68a0
cmpl $0x0, %eax
jge 0x42fe
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x4d3f(%rip), %r9       # 0x900f
leaq 0x4d2d(%rip), %r10      # 0x9004
leaq 0x4e3b(%rip), %rax      # 0x9119
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x65, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x433b
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %r8d
leaq 0x4d03(%rip), %r9       # 0x900f
leaq 0x4cf1(%rip), %r10      # 0x9004
leaq 0x4dff(%rip), %rax      # 0x9119
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r10, (%rsp)
movl $0x65, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x7360
leaq 0x4e79(%rip), %rdi      # 0x91bb
movl $0xe, %esi
callq 0x4e90
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rdi
leaq 0x4dc6(%rip), %rsi      # 0x9127
callq 0x3260
cmpl $0x0, %eax
jne 0x43b8
movq -0xd8(%rbp), %rax
xorl %edi, %edi
movl $0x1, %esi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x4c8a(%rip), %r9       # 0x900f
leaq 0x4c78(%rip), %r11      # 0x9004
leaq 0x4dac(%rip), %r10      # 0x913f
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x6e, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x4401
movq -0xd8(%rbp), %rax
xorl %edi, %edi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x4c42(%rip), %r9       # 0x900f
leaq 0x4c30(%rip), %r11      # 0x9004
leaq 0x4d64(%rip), %r10      # 0x913f
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x6e, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
movl $0x2357bd0f, %edi       # imm = 0x2357BD0F
callq 0x4c80
movl %eax, -0xdc(%rbp)
cmpl $0xf0bdeac4, -0xdc(%rbp) # imm = 0xF0BDEAC4
jne 0x4468
movl -0xdc(%rbp), %eax
xorl %edi, %edi
movl $0x1, %esi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x4bd9(%rip), %r9       # 0x900f
leaq 0x4bc7(%rip), %r11      # 0x9004
leaq 0x4d16(%rip), %r10      # 0x915a
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x71, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x44af
movl -0xdc(%rbp), %eax
xorl %edi, %edi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x4b93(%rip), %r9       # 0x900f
leaq 0x4b81(%rip), %r11      # 0x9004
leaq 0x4cd0(%rip), %r10      # 0x915a
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x71, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
movabsq $-0x3dcba987654ef211, %rdi # imm = 0xC23456789AB10DEF
callq 0x4cf0
movq %rax, -0xe8(%rbp)
movabsq $-0x84f72a6e195d3bd, %rax # imm = 0xF7B08D591E6A2C43
cmpq %rax, -0xe8(%rbp)
jne 0x4525
movq -0xe8(%rbp), %rax
xorl %edi, %edi
movl $0x1, %esi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x4b1d(%rip), %r9       # 0x900f
leaq 0x4b0b(%rip), %r11      # 0x9004
leaq 0x4c6e(%rip), %r10      # 0x916e
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x74, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x456e
movq -0xe8(%rbp), %rax
xorl %edi, %edi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x4ad5(%rip), %r9       # 0x900f
leaq 0x4ac3(%rip), %r11      # 0x9004
leaq 0x4c26(%rip), %r10      # 0x916e
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movl $0x74, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x7360
movl $0x7d4, -0x10c(%rbp)    # imm = 0x7D4
movl $0x2, -0x108(%rbp)
movl $0x1d, -0x104(%rbp)
movl -0x104(%rbp), %eax
movl %eax, -0xf8(%rbp)
movq -0x10c(%rbp), %rax
movq %rax, -0x100(%rbp)
movl -0xf8(%rbp), %eax
movl %eax, -0x118(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rdi
movl -0x118(%rbp), %esi
callq 0x7180
movl %eax, -0x110(%rbp)
movl -0x110(%rbp), %edi
callq 0x7240
movl %edx, -0x138(%rbp)
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x12c(%rbp)
movl -0x138(%rbp), %eax
movl %eax, -0x124(%rbp)
movq -0x12c(%rbp), %rax
movq %rax, -0xf4(%rbp)
movl -0x124(%rbp), %eax
movl %eax, -0xec(%rbp)
leaq -0xf4(%rbp), %rdi
leaq -0x100(%rbp), %rsi
movl $0xc, %edx
callq 0x30b0
cmpl $0x0, %eax
jne 0x46a4
movl -0x100(%rbp), %r11d
movl -0xfc(%rbp), %r10d
movl -0xf8(%rbp), %eax
xorl %edi, %edi
movl $0x1, %esi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x49a7(%rip), %r9       # 0x900f
leaq 0x4995(%rip), %r14      # 0x9004
leaq 0x4b1d(%rip), %rbx      # 0x9193
movq %r8, %rdx
movq %r8, %rcx
movq %r14, (%rsp)
movl $0x7a, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x4703
movl -0x100(%rbp), %r11d
movl -0xfc(%rbp), %r10d
movl -0xf8(%rbp), %eax
xorl %edi, %edi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x4949(%rip), %r9       # 0x900f
leaq 0x4937(%rip), %r14      # 0x9004
leaq 0x4abf(%rip), %rbx      # 0x9193
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r14, (%rsp)
movl $0x7a, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq 0x7360
movl $0x7d4, -0x14c(%rbp)    # imm = 0x7D4
movl $0x3, -0x148(%rbp)
movl $0x1, -0x144(%rbp)
movl -0x144(%rbp), %eax
movl %eax, -0xf8(%rbp)
movq -0x14c(%rbp), %rax
movq %rax, -0x100(%rbp)
movl -0x110(%rbp), %edi
incl %edi
callq 0x7240
movl %edx, -0x160(%rbp)
movq %rax, -0x168(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x158(%rbp)
movl -0x160(%rbp), %eax
movl %eax, -0x150(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0xf4(%rbp)
movl -0x150(%rbp), %eax
movl %eax, -0xec(%rbp)
leaq -0xf4(%rbp), %rdi
leaq -0x100(%rbp), %rsi
movl $0xc, %edx
callq 0x30b0
cmpl $0x0, %eax
jne 0x4809
movl -0x100(%rbp), %r11d
movl -0xfc(%rbp), %r10d
movl -0xf8(%rbp), %eax
xorl %edi, %edi
movl $0x1, %esi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x4842(%rip), %r9       # 0x900f
leaq 0x4830(%rip), %r14      # 0x9004
leaq 0x49b2(%rip), %rbx      # 0x918d
movq %r8, %rdx
movq %r8, %rcx
movq %r14, (%rsp)
movl $0x7e, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x4868
movl -0x100(%rbp), %r11d
movl -0xfc(%rbp), %r10d
movl -0xf8(%rbp), %eax
xorl %edi, %edi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x47e4(%rip), %r9       # 0x900f
leaq 0x47d2(%rip), %r14      # 0x9004
leaq 0x4954(%rip), %rbx      # 0x918d
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r14, (%rsp)
movl $0x7e, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq 0x7360
movl $0x7d0, -0x174(%rbp)    # imm = 0x7D0
movl $0xc, -0x170(%rbp)
movl $0x1f, -0x16c(%rbp)
movl -0x16c(%rbp), %eax
movl %eax, -0xf8(%rbp)
movq -0x174(%rbp), %rax
movq %rax, -0x100(%rbp)
movl $0x7d1, -0x18c(%rbp)    # imm = 0x7D1
movl $0x1, -0x188(%rbp)
movl $0x1, -0x184(%rbp)
movl -0x184(%rbp), %eax
movl %eax, -0x198(%rbp)
movq -0x18c(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rdi
movl -0x198(%rbp), %esi
callq 0x7180
movl %eax, %edi
decl %edi
callq 0x7240
movl %edx, -0x1a8(%rbp)
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x180(%rbp)
movl -0x1a8(%rbp), %eax
movl %eax, -0x178(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0xf4(%rbp)
movl -0x178(%rbp), %eax
movl %eax, -0xec(%rbp)
leaq -0xf4(%rbp), %rdi
leaq -0x100(%rbp), %rsi
movl $0xc, %edx
callq 0x30b0
cmpl $0x0, %eax
jne 0x49b4
movl -0x100(%rbp), %r11d
movl -0xfc(%rbp), %r10d
movl -0xf8(%rbp), %eax
xorl %edi, %edi
movl $0x1, %esi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x4697(%rip), %r9       # 0x900f
leaq 0x4685(%rip), %r14      # 0x9004
leaq 0x480d(%rip), %rbx      # 0x9193
movq %r8, %rdx
movq %r8, %rcx
movq %r14, (%rsp)
movl $0x82, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x4a13
movl -0x100(%rbp), %r11d
movl -0xfc(%rbp), %r10d
movl -0xf8(%rbp), %eax
xorl %edi, %edi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x4639(%rip), %r9       # 0x900f
leaq 0x4627(%rip), %r14      # 0x9004
leaq 0x47af(%rip), %rbx      # 0x9193
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r14, (%rsp)
movl $0x82, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq 0x7360
movl $0x7d5, -0x1bc(%rbp)    # imm = 0x7D5
movl $0x3, -0x1b8(%rbp)
movl $0x1, -0x1b4(%rbp)
movl -0x1b4(%rbp), %eax
movl %eax, -0xf8(%rbp)
movq -0x1bc(%rbp), %rax
movq %rax, -0x100(%rbp)
movl $0x7d5, -0x1d4(%rbp)    # imm = 0x7D5
movl $0x2, -0x1d0(%rbp)
movl $0x1d, -0x1cc(%rbp)
movl -0x1cc(%rbp), %eax
movl %eax, -0x1e0(%rbp)
movq -0x1d4(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq -0x1e8(%rbp), %rdi
movl -0x1e0(%rbp), %esi
callq 0x7180
movl %eax, %edi
callq 0x7240
movl %edx, -0x1f0(%rbp)
movq %rax, -0x1f8(%rbp)
movq -0x1f8(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movl -0x1f0(%rbp), %eax
movl %eax, -0x1c0(%rbp)
movq -0x1c8(%rbp), %rax
movq %rax, -0xf4(%rbp)
movl -0x1c0(%rbp), %eax
movl %eax, -0xec(%rbp)
leaq -0xf4(%rbp), %rdi
leaq -0x100(%rbp), %rsi
movl $0xc, %edx
callq 0x30b0
cmpl $0x0, %eax
jne 0x4b5d
movl -0x100(%rbp), %r11d
movl -0xfc(%rbp), %r10d
movl -0xf8(%rbp), %eax
xorl %edi, %edi
movl $0x1, %esi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x44ee(%rip), %r9       # 0x900f
leaq 0x44dc(%rip), %r14      # 0x9004
leaq 0x4671(%rip), %rbx      # 0x91a0
movq %r8, %rdx
movq %r8, %rcx
movq %r14, (%rsp)
movl $0x86, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq 0x7360
jmp 0x4bbc
movl -0x100(%rbp), %r11d
movl -0xfc(%rbp), %r10d
movl -0xf8(%rbp), %eax
xorl %edi, %edi
xorl %ecx, %ecx
movl %ecx, %r8d
leaq 0x4490(%rip), %r9       # 0x900f
leaq 0x447e(%rip), %r14      # 0x9004
leaq 0x4613(%rip), %rbx      # 0x91a0
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
movq %r14, (%rsp)
movl $0x86, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq 0x7360
callq 0x8390
addq $0x220, %rsp            # imm = 0x220
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)