// File: /workspace/github_cpp_makefile_star2_O3/lianxings[P]ftp_benchmark/ftp_benchmark.cc
// Function: local2ftp_worker(ftpInfo*, int, bool)
void local2ftp_worker(ftpInfo * pFtp, int id, bool verify) 
{
    string srcPath, dstPath;
    int ioUnit = 256 << 10;
    char *dataBuf = new char[ioUnit];
    char printBuf[1024];
    char sizeStrBuf[128];
    ftplib::accesstype type = ftplib::filewrite;
    ftplib::transfermode mode = ftplib::image;
    FILE *local = NULL;
    ftphandle *nData = NULL;
    char ac[3] = "rb";

    ftplib * ftpClient = new ftplib();
    int ret = connect_and_login_ftp (ftpClient, pFtp, 0);
    if (ret < 0) {
        if (ret == -2)
            fprintf(stderr, "login ftp server %s failed.\n", pFtp->ftpServer);
        --liveWorkThread;
        return;
    }

    while((!tasksQueue.empty()) || (!exitFlag)) {
        task<fileInfo> taskTmp;  
        if (get_task_from_queue(taskTmp) < 0) 
            continue;

        fileInfo srcInfo, dstInfo;
        srcInfo = taskTmp.src;
        dstInfo = taskTmp.dst;
        srcPath = srcInfo.name;
        dstPath = dstInfo.name;
        memset(printBuf, 0, sizeof(printBuf));
        memset(printBuf, 0, sizeof(sizeStrBuf));
        size_to_string(srcInfo.size, sizeStrBuf);
        local = fopen64(srcPath.c_str(), ac);
        if (local == NULL) {
            ++failed;
            errorSize += srcInfo.size;
            sprintf(printBuf, "\nopen source file failed: source: %s, destination: %s, size: %s\n",\
                                                      srcPath.c_str(), dstPath.c_str(), sizeStrBuf);
            fwrite(printBuf, 1, strlen(printBuf), errorFd);
            write(1, printBuf, strlen(printBuf));
            if (failed <= 10) {
                continue;
            } else {
                --liveWorkThread;
                break;
            }
        }
        // get ftp data connection 
        int ret = build_ftp_data_connection(dstPath, type, mode, ftpClient, pFtp, &nData);
        if (ret < 0) {
            ++failed;
            errorSize += srcInfo.size;
            if (ret == -1)
                sprintf(printBuf, "\nget ftp data connection failed: source: %s, destination: %s, size: %s\n",\
                                                                srcPath.c_str(), dstPath.c_str(), sizeStrBuf);
            else
                sprintf(printBuf, "\nre-login ftp server %s failed: source: %s, destination: %s, size: %s\n",\
                                             pFtp->ftpServer , srcPath.c_str(), dstPath.c_str(), sizeStrBuf);
            fwrite(printBuf, 1, strlen(printBuf), errorFd);
            write(2, printBuf, strlen(printBuf));
            if (local != NULL) fclose(local);
            continue;
        }

        Md5Context md5Context;
        if (verify){
            Md5Initialise( &md5Context );
        }


        int readed = 0;
		while ((readed = fread(dataBuf, 1, ioUnit, local)) > 0) {
			if (ftpClient->FtpWrite(dataBuf, readed, nData) < readed) {
                ++failed;
                errorSize += srcInfo.size;
                sprintf(printBuf, "\nftp write failed: source: %s, destination: %s, size: %s\n",\
                                                  srcPath.c_str(), dstPath.c_str(), sizeStrBuf);
                fwrite(printBuf, 1, strlen(printBuf), errorFd);
                write(1, printBuf, strlen(printBuf));
                break;
            }
            if (verify) {
                Md5Update( &md5Context, (const void*)dataBuf, readed);
            }
            finishSize += readed;
        }
        ftpClient->FtpClose(nData);
        char md5str[33] = {'\0'};
        if (readed < 0) {
            ++failed;
            errorSize += srcInfo.size;
            sprintf(printBuf, "\nread source file failed: source: %s, destination: %s, size: %s\n",\
                                                     srcPath.c_str(), dstPath.c_str(), sizeStrBuf);
            fwrite(printBuf, 1, strlen(printBuf), errorFd);
            write(1, printBuf, strlen(printBuf));
        } else {
            ++finished;
            if(verify) {
                MD5_HASH md5;
                char tmp[3] = {'\0'};
                Md5Finalise( &md5Context, &md5);
                memset(md5str, 0, sizeof(md5str));
                for(int j = 0; j < sizeof(md5); j++ ) {
                    sprintf( tmp,"%2.2x", md5.bytes[j]);
                    strcat(md5str, tmp);
                }
            }
        }
        
        fflush(local);
        if (local != NULL) fclose(local);
        
        if (verify) {   // if need to verify, upload a new file just store md5sum
            string newFilePath = dstPath + ".md5";
            ret = build_ftp_data_connection(newFilePath, type, mode, ftpClient, pFtp, &nData);
            if (ret < 0) {
                ++md5Failed;
                if (ret == -1)
                    sprintf(printBuf, "\nget ftp data connection failed: upload md5 file %s\n",\
                                                                          newFilePath.c_str());
                else
                    sprintf(printBuf, "\nre-login ftp server %s failed: upload md5 file %s\n",\
                                                       pFtp->ftpServer , newFilePath.c_str());
                fwrite(printBuf, 1, strlen(printBuf), errorFd);
                write(2, printBuf, strlen(printBuf));
                continue;
            }

            if (ftpClient->FtpWrite(md5str, strlen(md5str), nData) < strlen(md5str)) {
                ++md5Failed;
                sprintf(printBuf, "\nftp upload file %s failed\n", newFilePath.c_str());
                fwrite(printBuf, 1, strlen(printBuf), errorFd);
                write(2, printBuf, strlen(printBuf));
                break;
            }
            ftpClient->FtpClose(nData);
        }

        if (failed > 10) {
            --liveWorkThread;
            break;
        }
    }

    ftpClient->Quit();
    delete []dataBuf;
    delete ftpClient;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x6b8, %rsp            # imm = 0x6B8
movl %edx, (%rsp)
movq %rdi, 0x8(%rsp)
leaq 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x28(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
movl $0x40000, %edi          # imm = 0x40000
callq 0x4030
movq %rax, %r15
movq $0x0, 0x10(%rsp)
movl $0x8, %edi
callq 0x43f0
movq %rax, %r14
movq %rax, %rdi
callq 0xe220
movq %r14, %rdi
movq 0x8(%rsp), %rsi
callq 0x5c9b
testl %eax, %eax
js 0x5af3
xorl %r13d, %r13d
leaq 0x140(%rsp), %r12
leaq 0x2b0(%rsp), %rbx
movq %r14, 0x38(%rsp)
movq 0x131d9(%rip), %rax     # 0x18428
cmpq 0x131b2(%rip), %rax     # 0x18408
jne 0x5266
movl 0x1328a(%rip), %eax     # 0x184e8
testl %eax, %eax
jne 0x5ac2
leaq 0x150(%rsp), %rax
movq %rax, 0x140(%rsp)
movq %r13, 0x148(%rsp)
movb %r13b, 0x150(%rsp)
movq %r13, 0x160(%rsp)
leaq 0x178(%rsp), %rax
movq %rax, 0x168(%rsp)
movq %r13, 0x170(%rsp)
movb %r13b, 0x178(%rsp)
movq %r13, 0x188(%rsp)
movq %r12, %rdi
callq 0x5d38
testl %eax, %eax
js 0x54b7
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r13, 0x88(%rsp)
movb %r13b, 0x90(%rsp)
movq %r13, 0xa0(%rsp)
leaq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq %r13, 0xb0(%rsp)
movb %r13b, 0xb8(%rsp)
movq %r13, 0xc8(%rsp)
leaq 0x80(%rsp), %rdi
movq %r12, %rsi
callq 0x4200
leaq 0xf0(%rsp), %r12
movq 0x160(%rsp), %rax
movq %rax, 0xa0(%rsp)
leaq 0xa8(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x4200
movq 0x188(%rsp), %rax
movq %rax, 0xc8(%rsp)
leaq 0x60(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x4200
leaq 0x18(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x4200
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4210
movq 0xa0(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0xdc66
movq 0x60(%rsp), %rdi
leaq 0xcdfb(%rip), %rsi      # 0x121b2
callq 0x4420
testq %rax, %rax
je 0x54c4
movq %rax, %rbx
leaq 0x100(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xd3a8
movq %r12, %rdi
movl $0x4, %esi
movl $0x49, %edx
movq %r14, %rcx
movq 0x8(%rsp), %r8
leaq 0x10(%rsp), %r9
callq 0x5e39
movl %eax, %r12d
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x5434
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4400
testl %r12d, %r12d
js 0x555d
cmpb $0x0, (%rsp)
je 0x5450
leaq 0x218(%rsp), %rdi
callq 0x10a64
movl $0x1, %esi
movl $0x40000, %edx          # imm = 0x40000
movq %r15, %rdi
movq %rbx, %rcx
callq 0x4570
movq %rax, %r12
testl %r12d, %r12d
jle 0x5631
movq 0x10(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0xfb38
cmpl %r12d, %eax
jl 0x55b7
cmpb $0x0, (%rsp)
je 0x54a6
leaq 0x218(%rsp), %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x10a7d
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
lock
addq %r12, 0x1306b(%rip)     # 0x18520
jmp 0x5450
movq %r12, %rdi
callq 0xbe24
jmp 0x5248
lock
incq 0x1303c(%rip)           # 0x18508
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x1304c(%rip)     # 0x18528
movq 0x60(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x2b0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xccbd(%rip), %rsi      # 0x121b5
leaq 0x190(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %rbx, %rdi
callq 0x4180
movq 0x12fca(%rip), %rcx     # 0x184e0
movl $0x1, %esi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x4750
movq %rbx, %rdi
callq 0x4180
movl $0x1, %edi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x4140
movq 0x12fc3(%rip), %rax     # 0x18508
cmpq $0xb, %rax
jl 0x5962
lock
decl 0x12f9a(%rip)           # 0x184f0
movb $0x1, %bl
jmp 0x5a58
lock
incq 0x12fa3(%rip)           # 0x18508
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x12fb3(%rip)     # 0x18528
cmpl $-0x1, %r12d
je 0x58f8
movq 0x8(%rsp), %rax
movq (%rax), %rdx
movq 0x60(%rsp), %rcx
movq 0x18(%rsp), %r8
leaq 0x2b0(%rsp), %r12
movq %r12, %rdi
leaq 0xcc9b(%rip), %rsi      # 0x1223e
leaq 0x190(%rsp), %r9
xorl %eax, %eax
callq 0x40a0
jmp 0x5923
lock
incq 0x12f49(%rip)           # 0x18508
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x12f59(%rip)     # 0x18528
movq 0x60(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x2b0(%rsp), %rbp
movq %rbp, %rdi
leaq 0xcc9a(%rip), %rsi      # 0x12285
leaq 0x190(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %rbp, %rdi
callq 0x4180
movq 0x12ed7(%rip), %rcx     # 0x184e0
movl $0x1, %esi
movq %rbp, %rdi
movq %rax, %rdx
callq 0x4750
movq %rbp, %rdi
callq 0x4180
movl $0x1, %edi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x4140
movq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0xf9cc
xorps %xmm0, %xmm0
movaps %xmm0, 0x120(%rsp)
movaps %xmm0, 0x110(%rsp)
movb $0x0, 0x130(%rsp)
testl %r12d, %r12d
js 0x56f5
lock
incq 0x12e96(%rip)           # 0x18500
cmpb $0x0, (%rsp)
je 0x58e3
movb $0x0, 0x6(%rsp)
movw $0x0, 0x4(%rsp)
leaq 0x218(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x1143a
xorps %xmm0, %xmm0
movaps %xmm0, 0x120(%rsp)
movaps %xmm0, 0x110(%rsp)
movb $0x0, 0x130(%rsp)
xorl %r12d, %r12d
leaq 0x110(%rsp), %r14
leaq 0xcc41(%rip), %rbp      # 0x12300
leaq 0x4(%rsp), %r13
movzbl 0x40(%rsp,%r12), %edx
movq %r13, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x40a0
movq %r14, %rdi
movq %r13, %rsi
callq 0x46f0
incq %r12
cmpq $0x10, %r12
jne 0x56c4
movq 0x38(%rsp), %r14
xorl %r13d, %r13d
jmp 0x576f
lock
incq 0x12e0b(%rip)           # 0x18508
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x12e1b(%rip)     # 0x18528
movq 0x60(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x2b0(%rsp), %r12
movq %r12, %rdi
leaq 0xcb96(%rip), %rsi      # 0x122bf
leaq 0x190(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %r12, %rdi
callq 0x4180
movq 0x12d99(%rip), %rcx     # 0x184e0
movl $0x1, %esi
movq %r12, %rdi
movq %rax, %rdx
callq 0x4750
movq %r12, %rdi
callq 0x4180
movl $0x1, %edi
movq %r12, %rsi
movq %rax, %rdx
callq 0x4140
movq %rbx, %rdi
callq 0x4480
movq %rbx, %rdi
callq 0x43e0
cmpb $0x0, (%rsp)
je 0x5a34
leaq 0x50(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0xd3a8
movq %rbx, %rdi
leaq 0xcb4f(%rip), %rsi      # 0x12306
callq 0x4740
leaq 0xe0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0xd3a8
leaq 0xd0(%rsp), %rdi
movl $0x4, %esi
movl $0x49, %edx
movq %r14, %rcx
movq 0x8(%rsp), %r8
leaq 0x10(%rsp), %r9
callq 0x5e39
movl %eax, %ebx
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x5831
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4400
testl %ebx, %ebx
leaq 0x110(%rsp), %r14
js 0x5969
movq %r14, %rdi
callq 0x4180
movq 0x10(%rsp), %rcx
movq 0x38(%rsp), %rdi
movq %r14, %rsi
movq %rdi, %r14
movl %eax, %edx
callq 0xfb38
movslq %eax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x4180
cmpq %rbx, %rax
jbe 0x599e
lock
incq 0x12c8f(%rip)           # 0x18510
movq 0x40(%rsp), %rdx
xorl %ebx, %ebx
leaq 0x2b0(%rsp), %rbp
movq %rbp, %rdi
leaq 0xcada(%rip), %rsi      # 0x12374
xorl %eax, %eax
callq 0x40a0
movq %rbp, %rdi
callq 0x4180
movq 0x12c30(%rip), %rcx     # 0x184e0
movl $0x1, %esi
movq %rbp, %rdi
movq %rax, %rdx
callq 0x4750
movq %rbp, %rdi
callq 0x4180
movl $0x3, %r12d
movl $0x2, %edi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x4140
jmp 0x5a14
movq %rbx, %rdi
callq 0x4480
movq %rbx, %rdi
callq 0x43e0
jmp 0x5a34
movq 0x60(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x2b0(%rsp), %r12
movq %r12, %rdi
leaq 0xc8e2(%rip), %rsi      # 0x121f6
leaq 0x190(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %r12, %rdi
callq 0x4180
movq 0x12bae(%rip), %rcx     # 0x184e0
movl $0x1, %esi
movq %r12, %rdi
movq %rax, %rdx
callq 0x4750
movq %r12, %rdi
callq 0x4180
movl $0x2, %edi
movq %r12, %rsi
movq %rax, %rdx
callq 0x4140
movq %rbx, %rdi
callq 0x43e0
xorl %ebx, %ebx
jmp 0x5a58
lock
incq 0x12b9f(%rip)           # 0x18510
cmpl $-0x1, %ebx
je 0x59b2
movq 0x8(%rsp), %rax
movq (%rax), %rdx
movq 0x40(%rsp), %rcx
leaq 0x2b0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xc9ab(%rip), %rsi      # 0x12340
xorl %eax, %eax
callq 0x40a0
jmp 0x59d0
movq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0xf9cc
xorl %r12d, %r12d
movb $0x1, %bl
jmp 0x5a14
movq 0x40(%rsp), %rdx
leaq 0x2b0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xc942(%rip), %rsi      # 0x1230b
xorl %eax, %eax
callq 0x40a0
movq 0x38(%rsp), %r14
movq %rbx, %rdi
callq 0x4180
movq 0x12afc(%rip), %rcx     # 0x184e0
movl $0x1, %esi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x4750
movq %rbx, %rdi
callq 0x4180
movl $0x2, %r12d
movl $0x2, %edi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x4140
xorl %ebx, %ebx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x5a30
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x4400
testb %bl, %bl
je 0x5a51
movq 0x12acd(%rip), %rax     # 0x18508
xorl %r12d, %r12d
cmpq $0xb, %rax
jl 0x5a51
lock
decl 0x12aa5(%rip)           # 0x184f0
movl $0x3, %r12d
cmpl $0x3, %r12d
sete %bl
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x5a7d
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x5aa2
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x140(%rsp), %r12
movq %r12, %rdi
callq 0xbe24
testb %bl, %bl
leaq 0x2b0(%rsp), %rbx
je 0x5248
movq %r14, %rdi
leaq 0x70(%rsp), %r12
leaq 0x28(%rsp), %r13
callq 0x104b6
movq %r15, %rdi
callq 0x44e0
movq %r14, %rdi
callq 0xe318
movl $0x8, %esi
movq %r14, %rdi
callq 0x4400
jmp 0x5aff
cmpl $-0x2, %eax
je 0x5b3f
lock
decl 0x129f1(%rip)           # 0x184f0
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0x5b16
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x5b2d
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4400
addq $0x6b8, %rsp            # imm = 0x6B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rdi
callq 0x4790
jmp 0x5af8
movq %rax, %rbx
movl $0x8, %esi
movq %r14, %rdi
callq 0x4400
jmp 0x5c65
jmp 0x5b6f
movq %rax, %rbx
jmp 0x5c7c
jmp 0x5c01
movq %rax, %rbx
jmp 0x5c65
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x5bac
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x5bac
jmp 0x5ba9
jmp 0x5c01
jmp 0x5c01
jmp 0x5c01
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x5c04
movq 0x50(%rsp), %rsi
jmp 0x5be4
jmp 0x5c01
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x5c04
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x5c04
jmp 0x5c01
movq %rax, %rbx
leaq 0x70(%rsp), %r12
leaq 0x28(%rsp), %r13
jmp 0x5c58
jmp 0x5c01
movq %rax, %rbx
leaq 0x70(%rsp), %r12
leaq 0x28(%rsp), %r13
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x5c33
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x5c58
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x140(%rsp), %rdi
callq 0xbe24
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0x5c7c
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x5c93
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4400
movq %rbx, %rdi
callq 0x46e0