// File: /workspace/github_c_makefile_star2_O0/antirez[P]stonky/stonky.c
// Function: botHandleListRequest
void botHandleListRequest(botRequest *br, sds *argv, int argc) {
    int verb = 0; /* Verbosity level. Increases for every additional
                     trailing ":" after the list name. */

    /* Remove the final ":" from the list name. */
    sds listname = sdsdup(argv[0]);
    do {
        verb++;
        sdsrange(listname,0,-2);
    } while(listname[sdslen(listname)-1] == ':');
    verb--;
    sds reply = NULL;

    if (argc == 1) {
        /* If it's just the list name, reply with a list of stocks
         * and their current price. */
        int numstocks;
        sds *stocks = dbGetStocksFromList(listname,&numstocks);
        if (stocks == NULL) {
            reply = sdscatprintf(sdsempty(),"No such list %s", listname);
        } else {
            reply = sdscatprintf(sdsempty(),"Prices for list %s:\n", listname);
            double avg = 0;
            int fetched = 0;
            for (int j = 0; j < numstocks; j++) {
                ydata *yd = getYahooData(YDATA_QUOTE,stocks[j],NULL,NULL,60);
                if (yd) {
                    fetched++;
                    avg += strtod(yd->regchange,NULL);
                }
                int format = verb > 0 ? STONKY_SHORT : STONKY_VERY_SHORT;
                reply = sdsCatPriceRequest(reply,stocks[j],yd,format);
                freeYahooData(yd);
                if (verb > 0 || (j % 2)) {
                    reply = sdscat(reply,"\n");
                } else {
                    reply = sdscat(reply," | ");
                }
            }
            if (fetched) {
                reply = sdscatprintf(reply,
                    "%d stocks. Average performance: %.2f%%.\n",
                    fetched, avg/fetched);
            }
        }
        sdsfreesplitres(stocks,numstocks);
    } else if (!strcasecmp(argv[1],"buy") && argc >= 3) {
        /* $list: buy SYMBOL [SYMBOL2 ...] [100@price] */

        /* If we have the last argument that starts with a number or
         * with '@', then it is the optional price/quantity argument. */
        int pricearg = 0;
        if (argc >= 4 && (argv[argc-1][0] == '@' ||
                          isdigit(argv[argc-1][0])))
        {
            pricearg = argc-1;
            argc--; /* Don't consider the last argument. */
        }

        /* Buy every stock listed. */
        for (int j = 2; j < argc; j++) {
            sds symbol = argv[j];
            /* Check that the symbol exists. */
            ydata *yd = getYahooData(YDATA_QUOTE,symbol,NULL,NULL,3600);
            if (yd == NULL) {
                reply = sdscatprintf(sdsempty(),
                    "Stock symbol %s not found.", symbol);
                botSendMessage(br->target,reply,0);
                sdsfree(reply);
                reply = NULL;
                continue;
            }

            /* Parse price/quantity. */
            int64_t quantity = 1;
            double price = 0;
            parseQuantityAndPrice(argv[pricearg],&quantity,&price,yd->reg);
            if (price == 0) price = yd->reg;
            freeYahooData(yd);
            yd = NULL;

            /* Ready to materialize the buy operation on the DB. */
            stockpack sp;
            if (dbBuyStocks(listname,symbol,price,quantity,&sp) == C_ERR) {
                reply = sdsnew("Error adding the stock pack.");
            } else {
                reply = sdscatprintf(sdsempty(),
                    "Now you have %d %s stocks at an average price of %.2f.",
                    (int)sp.quantity,symbol,sp.avgprice);
            }
            botSendMessage(br->target,reply,0);
            sdsfree(reply);
            reply = NULL;
        }
    } else if (!strcasecmp(argv[1],"rm-sell") && argc == 3) {
        int64_t id = strtoll(argv[2],NULL,10);
        if (id) {
            int found = sqlQuery("DELETE FROM ProfitLoss WHERE rowid=?i",id);
            reply = sdsnew(found ?
                            "History entry removed." :
                            "History entry not found.");
        } else {
            reply = sdsnew("Please specify a valid ID.");
        }
    } else if (!strcasecmp(argv[1],"sell") && (argc == 3 || argc == 4)) {
        /* $list: sell [quantity] */
        int64_t quantity = 0; /* All the stocks. */
        sds symbol = argv[2];
        double sellprice = 0;

        /* Parse the quantity@price argument if available. */
        if (argc == 4) parseQuantityAndPrice(argv[3],&quantity,&sellprice,0);

        /* Check that the symbol exists. */
        ydata *yd = getYahooData(YDATA_QUOTE,symbol,NULL,NULL,3600);
        if (yd == NULL) {
            reply = sdscatprintf(sdsempty(),
                "Stock symbol %s not found.", symbol);
            goto fmterr;
        }
        if (sellprice == 0) sellprice = yd->reg;

        stockpack sp;
        if (!dbSellStocks(listname,symbol,quantity,sellprice,yd->csym,&sp)) {
            if (sp.quantity < 0) {
                reply = sdsnew("You don't have enough stocks to sell.");
            } else {
                reply = sdsnew("Error removing from the stock pack.");
            }
        } else {
            if (sp.quantity != 0) {
                reply = sdscatprintf(sdsempty(),
                    "You are left with %d %s stocks at an average "
                    "price of %.2f.",
                    (int)sp.quantity,symbol,sp.avgprice);
            } else {
                reply = sdscatprintf(sdsempty(),
                    "You no longer own %s stocks.",symbol);
            }
        }
        freeYahooData(yd);
    } else {
        /* Otherwise we are in edit mode, with +... -... symbols. */
        for (int j = 1; j < argc; j++) {
            if (argv[j][0] == '+') {
                /* +SYMBOL */
                dbAddStockToList(listname,argv[j]+1);
            } else if (argv[j][0] == '-') {
                /* -SYMBOL. */
                dbDelStockFromList(listname,argv[j]+1,1);
            } else if (argv[j][0] == '?') {
                /* Do nothing, we want just the list of symbols. */
            } else {
                reply = sdsnew("Syntax error: use +AAPL -TWTR and so forth.");
                goto fmterr;
            }
        }

        /* Show the new composition of the list. */
        int numstocks;
        sds *stocks = dbGetStocksFromList(listname,&numstocks);
        if (stocks == NULL) {
            reply = sdscatprintf(sdsempty(),"The list %s no longer exists.",
                listname);
        } else {
            reply = sdscatprintf(sdsempty(),"The list %s is now composed of: ",
                listname);
            for (int j = 0; j < numstocks; j++) {
                reply = sdscatsds(reply,stocks[j]);
                if (j < numstocks-1) reply = sdscat(reply,", ");
            }
        }
        sdsfreesplitres(stocks,numstocks);
    }

fmterr:
    if (reply) botSendMessage(br->target,reply,0);
    sdsfree(reply);
    sdsfree(listname);
}

// Assembly:
subq $0x1f8, %rsp            # imm = 0x1F8
movq %rdi, 0x1f0(%rsp)
movq %rsi, 0x1e8(%rsp)
movl %edx, 0x1e4(%rsp)
movl $0x0, 0x1e0(%rsp)
movq 0x1e8(%rsp), %rax
movq (%rax), %rdi
callq 0x8680
movq %rax, 0x1d8(%rsp)
movl 0x1e0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1e0(%rsp)
movq 0x1d8(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
movq $-0x2, %rdx
callq 0xa2b0
movq 0x1d8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x1d8(%rsp), %rdi
callq 0xfa70
movq %rax, %rcx
movq 0x8(%rsp), %rax
subq $0x1, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x3a, %eax
je 0x10cb1
movl 0x1e0(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x1e0(%rsp)
movq $0x0, 0x1d0(%rsp)
cmpl $0x1, 0x1e4(%rsp)
jne 0x10f89
movq 0x1d8(%rsp), %rdi
leaq 0x1cc(%rsp), %rsi
callq 0xe670
movq %rax, 0x1c0(%rsp)
cmpq $0x0, 0x1c0(%rsp)
jne 0x10d87
callq 0x8610
movq %rax, %rdi
movq 0x1d8(%rsp), %rdx
leaq 0x5b21(%rip), %rsi      # 0x16894
movb $0x0, %al
callq 0x98c0
movq %rax, 0x1d0(%rsp)
jmp 0x10f70
callq 0x8610
movq %rax, %rdi
movq 0x1d8(%rsp), %rdx
leaq 0x5b06(%rip), %rsi      # 0x168a4
movb $0x0, %al
callq 0x98c0
movq %rax, 0x1d0(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x1b8(%rsp)
movl $0x0, 0x1b4(%rsp)
movl $0x0, 0x1b0(%rsp)
movl 0x1b0(%rsp), %eax
cmpl 0x1cc(%rsp), %eax
jge 0x10f29
movq 0x1c0(%rsp), %rax
movslq 0x1b0(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %ecx
movl $0x3c, %r8d
movq %rcx, %rdx
callq 0xd200
movq %rax, 0x1a8(%rsp)
cmpq $0x0, 0x1a8(%rsp)
je 0x10e56
movl 0x1b4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1b4(%rsp)
movq 0x1a8(%rsp), %rax
movq 0x58(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x2190
addsd 0x1b8(%rsp), %xmm0
movsd %xmm0, 0x1b8(%rsp)
movl 0x1e0(%rsp), %edx
movl $0x2, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovgl %ecx, %eax
movl %eax, 0x1a4(%rsp)
movq 0x1d0(%rsp), %rdi
movq 0x1c0(%rsp), %rax
movslq 0x1b0(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
movq 0x1a8(%rsp), %rdx
movl 0x1a4(%rsp), %ecx
callq 0xf210
movq %rax, 0x1d0(%rsp)
movq 0x1a8(%rsp), %rdi
callq 0xd130
cmpl $0x0, 0x1e0(%rsp)
jg 0x10ed7
movl 0x1b0(%rsp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
je 0x10ef5
movq 0x1d0(%rsp), %rdi
leaq 0x5c6e(%rip), %rsi      # 0x16b54
callq 0x9350
movq %rax, 0x1d0(%rsp)
jmp 0x10f11
movq 0x1d0(%rsp), %rdi
leaq 0x58b6(%rip), %rsi      # 0x167ba
callq 0x9350
movq %rax, 0x1d0(%rsp)
jmp 0x10f13
movl 0x1b0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1b0(%rsp)
jmp 0x10dcf
cmpl $0x0, 0x1b4(%rsp)
je 0x10f6e
movq 0x1d0(%rsp), %rdi
movl 0x1b4(%rsp), %edx
movsd 0x1b8(%rsp), %xmm0
cvtsi2sdl 0x1b4(%rsp), %xmm1
divsd %xmm1, %xmm0
leaq 0x595a(%rip), %rsi      # 0x168b9
movb $0x1, %al
callq 0x98c0
movq %rax, 0x1d0(%rsp)
jmp 0x10f70
movq 0x1c0(%rsp), %rdi
movl 0x1cc(%rsp), %esi
callq 0xa850
jmp 0x11716
movq 0x1e8(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x5946(%rip), %rsi      # 0x168e2
callq 0x2270
cmpl $0x0, %eax
jne 0x1127e
cmpl $0x3, 0x1e4(%rsp)
jl 0x1127e
movl $0x0, 0x1a0(%rsp)
cmpl $0x4, 0x1e4(%rsp)
jl 0x11045
movq 0x1e8(%rsp), %rax
movl 0x1e4(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x40, %eax
je 0x11023
callq 0x2260
movq (%rax), %rax
movq 0x1e8(%rsp), %rcx
movl 0x1e4(%rsp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x11045
movl 0x1e4(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x1a0(%rsp)
movl 0x1e4(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x1e4(%rsp)
movl $0x2, 0x19c(%rsp)
movl 0x19c(%rsp), %eax
cmpl 0x1e4(%rsp), %eax
jge 0x11279
movq 0x1e8(%rsp), %rax
movslq 0x19c(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x190(%rsp)
movq 0x190(%rsp), %rsi
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %ecx
movl $0xe10, %r8d            # imm = 0xE10
movq %rcx, %rdx
callq 0xd200
movq %rax, 0x188(%rsp)
cmpq $0x0, 0x188(%rsp)
jne 0x11110
callq 0x8610
movq %rax, %rdi
movq 0x190(%rsp), %rdx
leaq 0x5176(%rip), %rsi      # 0x1623c
movb $0x0, %al
callq 0x98c0
movq %rax, 0x1d0(%rsp)
movq 0x1f0(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x1d0(%rsp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xdd70
movq 0x1d0(%rsp), %rdi
callq 0x8750
movq $0x0, 0x1d0(%rsp)
jmp 0x11263
movq $0x1, 0x180(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x178(%rsp)
movq 0x1e8(%rsp), %rax
movslq 0x1a0(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x188(%rsp), %rax
movss 0x20(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x180(%rsp), %rsi
leaq 0x178(%rsp), %rdx
callq 0x10b50
movsd 0x178(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x11190
jp 0x11190
movq 0x188(%rsp), %rax
movss 0x20(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x178(%rsp)
movq 0x188(%rsp), %rdi
callq 0xd130
movq $0x0, 0x188(%rsp)
movq 0x1d8(%rsp), %rdi
movq 0x190(%rsp), %rsi
movsd 0x178(%rsp), %xmm0
movq 0x180(%rsp), %rax
movl %eax, %edx
leaq 0xe8(%rsp), %rcx
callq 0xe8d0
cmpl $0x0, %eax
jne 0x111f4
leaq 0x5701(%rip), %rdi      # 0x168e6
callq 0x8630
movq %rax, 0x1d0(%rsp)
jmp 0x1122d
callq 0x8610
movq %rax, %rdi
movq 0xf8(%rsp), %rax
movl %eax, %edx
movq 0x190(%rsp), %rcx
movsd 0x100(%rsp), %xmm0
leaq 0x56e5(%rip), %rsi      # 0x16903
movb $0x1, %al
callq 0x98c0
movq %rax, 0x1d0(%rsp)
movq 0x1f0(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x1d0(%rsp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xdd70
movq 0x1d0(%rsp), %rdi
callq 0x8750
movq $0x0, 0x1d0(%rsp)
movl 0x19c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x19c(%rsp)
jmp 0x11050
jmp 0x11714
movq 0x1e8(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x56a9(%rip), %rsi      # 0x1693a
callq 0x2270
cmpl $0x0, %eax
jne 0x1133b
cmpl $0x3, 0x1e4(%rsp)
jne 0x1133b
movq 0x1e8(%rsp), %rax
movq 0x10(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0xa, %edx
callq 0x2050
movq %rax, 0xe0(%rsp)
cmpq $0x0, 0xe0(%rsp)
je 0x11322
movq 0xe0(%rsp), %rsi
leaq 0x5659(%rip), %rdi      # 0x16942
movb $0x0, %al
callq 0xc990
movl %eax, 0xdc(%rsp)
movl 0xdc(%rsp), %ecx
leaq 0x567a(%rip), %rdi      # 0x1697f
leaq 0x565c(%rip), %rax      # 0x16968
cmpl $0x0, %ecx
cmovneq %rax, %rdi
callq 0x8630
movq %rax, 0x1d0(%rsp)
jmp 0x11336
leaq 0x566f(%rip), %rdi      # 0x16998
callq 0x8630
movq %rax, 0x1d0(%rsp)
jmp 0x11712
movq 0x1e8(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x55ef(%rip), %rsi      # 0x1693d
callq 0x2270
cmpl $0x0, %eax
jne 0x1153f
cmpl $0x3, 0x1e4(%rsp)
je 0x11374
cmpl $0x4, 0x1e4(%rsp)
jne 0x1153f
movq $0x0, 0xd0(%rsp)
movq 0x1e8(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xc8(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0xc0(%rsp)
cmpl $0x4, 0x1e4(%rsp)
jne 0x113ce
movq 0x1e8(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
xorps %xmm0, %xmm0
callq 0x10b50
movq 0xc8(%rsp), %rsi
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %ecx
movl $0xe10, %r8d            # imm = 0xE10
movq %rcx, %rdx
callq 0xd200
movq %rax, 0xb8(%rsp)
cmpq $0x0, 0xb8(%rsp)
jne 0x11428
callq 0x8610
movq %rax, %rdi
movq 0xc8(%rsp), %rdx
leaq 0x4e28(%rip), %rsi      # 0x1623c
movb $0x0, %al
callq 0x98c0
movq %rax, 0x1d0(%rsp)
jmp 0x11718
movsd 0xc0(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x11456
jp 0x11456
movq 0xb8(%rsp), %rax
movss 0x20(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0xc0(%rsp)
movq 0x1d8(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq 0xd0(%rsp), %rax
movl %eax, %edx
movsd 0xc0(%rsp), %xmm0
movq 0xb8(%rsp), %rax
movq 0x70(%rax), %rcx
leaq 0x28(%rsp), %r8
callq 0xea80
cmpl $0x0, %eax
jne 0x114c8
cmpq $0x0, 0x38(%rsp)
jge 0x114b2
leaq 0x5510(%rip), %rdi      # 0x169b3
callq 0x8630
movq %rax, 0x1d0(%rsp)
jmp 0x114c6
leaq 0x5520(%rip), %rdi      # 0x169d9
callq 0x8630
movq %rax, 0x1d0(%rsp)
jmp 0x1152d
cmpq $0x0, 0x38(%rsp)
je 0x11505
callq 0x8610
movq %rax, %rdi
movq 0x38(%rsp), %rax
movl %eax, %edx
movq 0xc8(%rsp), %rcx
movsd 0x40(%rsp), %xmm0
leaq 0x5509(%rip), %rsi      # 0x169fd
movb $0x1, %al
callq 0x98c0
movq %rax, 0x1d0(%rsp)
jmp 0x1152b
callq 0x8610
movq %rax, %rdi
movq 0xc8(%rsp), %rdx
leaq 0x551d(%rip), %rsi      # 0x16a39
movb $0x0, %al
callq 0x98c0
movq %rax, 0x1d0(%rsp)
jmp 0x1152d
movq 0xb8(%rsp), %rdi
callq 0xd130
jmp 0x11710
movl $0x1, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x1e4(%rsp), %eax
jge 0x11621
movq 0x1e8(%rsp), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x2b, %eax
jne 0x11595
movq 0x1d8(%rsp), %rdi
movq 0x1e8(%rsp), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
addq $0x1, %rsi
callq 0xe5e0
jmp 0x1160f
movq 0x1e8(%rsp), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x115d7
movq 0x1d8(%rsp), %rdi
movq 0x1e8(%rsp), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
addq $0x1, %rsi
movl $0x1, %edx
callq 0xe1e0
jmp 0x1160d
movq 0x1e8(%rsp), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x3f, %eax
jne 0x115f2
jmp 0x1160b
leaq 0x545d(%rip), %rdi      # 0x16a56
callq 0x8630
movq %rax, 0x1d0(%rsp)
jmp 0x11718
jmp 0x1160d
jmp 0x1160f
jmp 0x11611
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x11547
movq 0x1d8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0xe670
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x1166b
callq 0x8610
movq %rax, %rdi
movq 0x1d8(%rsp), %rdx
leaq 0x542b(%rip), %rsi      # 0x16a82
movb $0x0, %al
callq 0x98c0
movq %rax, 0x1d0(%rsp)
jmp 0x11702
callq 0x8610
movq %rax, %rdi
movq 0x1d8(%rsp), %rdx
leaq 0x541e(%rip), %rsi      # 0x16aa0
movb $0x0, %al
callq 0x98c0
movq %rax, 0x1d0(%rsp)
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
cmpl 0x20(%rsp), %eax
jge 0x11700
movq 0x1d0(%rsp), %rdi
movq 0x18(%rsp), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x93a0
movq %rax, 0x1d0(%rsp)
movl 0x14(%rsp), %eax
movl 0x20(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x116f1
movq 0x1d0(%rsp), %rdi
leaq 0x53dd(%rip), %rsi      # 0x16ac1
callq 0x9350
movq %rax, 0x1d0(%rsp)
jmp 0x116f3
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x11699
jmp 0x11702
movq 0x18(%rsp), %rdi
movl 0x20(%rsp), %esi
callq 0xa850
jmp 0x11712
jmp 0x11714
jmp 0x11716
jmp 0x11718
cmpq $0x0, 0x1d0(%rsp)
je 0x11740
movq 0x1f0(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x1d0(%rsp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xdd70
movq 0x1d0(%rsp), %rdi
callq 0x8750
movq 0x1d8(%rsp), %rdi
callq 0x8750
addq $0x1f8, %rsp            # imm = 0x1F8
retq
nopw %cs:(%rax,%rax)