// File: /workspace/github_cpp_makefile_star2_O1/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 0xe240
movq %r14, %rdi
movq 0x8(%rsp), %rsi
callq 0x5cc5
testl %eax, %eax
js 0x5b23
xorl %r13d, %r13d
leaq 0x140(%rsp), %r12
leaq 0x2b0(%rsp), %rbx
movq %r14, 0x38(%rsp)
movq 0x131b1(%rip), %rax     # 0x18430
cmpq 0x1318a(%rip), %rax     # 0x18410
jne 0x5296
movl 0x13262(%rip), %eax     # 0x184f0
testl %eax, %eax
jne 0x5af2
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 0x5d62
testl %eax, %eax
js 0x54e7
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 0xdca2
movq 0x60(%rsp), %rdi
leaq 0xcdcb(%rip), %rsi      # 0x121b2
callq 0x4420
testq %rax, %rax
je 0x54f4
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 0xd3ee
movq %r12, %rdi
movl $0x4, %esi
movl $0x49, %edx
movq %r14, %rcx
movq 0x8(%rsp), %r8
leaq 0x10(%rsp), %r9
callq 0x5e4c
movl %eax, %r12d
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x5464
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4400
testl %r12d, %r12d
js 0x558d
cmpb $0x0, (%rsp)
je 0x5480
leaq 0x218(%rsp), %rdi
callq 0x10a74
movl $0x1, %esi
movl $0x40000, %edx          # imm = 0x40000
movq %r15, %rdi
movq %rbx, %rcx
callq 0x4580
movq %rax, %r12
testl %r12d, %r12d
jle 0x5661
movq 0x10(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0xfb84
cmpl %r12d, %eax
jl 0x55e7
cmpb $0x0, (%rsp)
je 0x54d6
leaq 0x218(%rsp), %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x10a87
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
lock
addq %r12, 0x13043(%rip)     # 0x18528
jmp 0x5480
movq %r12, %rdi
callq 0xbe58
jmp 0x5278
lock
incq 0x13014(%rip)           # 0x18510
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x13024(%rip)     # 0x18530
movq 0x60(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x2b0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xcc8d(%rip), %rsi      # 0x121b5
leaq 0x190(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %rbx, %rdi
callq 0x4180
movq 0x12fa2(%rip), %rcx     # 0x184e8
movl $0x1, %esi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x4760
movq %rbx, %rdi
callq 0x4180
movl $0x1, %edi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x4140
movq 0x12f9b(%rip), %rax     # 0x18510
cmpq $0xb, %rax
jl 0x5992
lock
decl 0x12f72(%rip)           # 0x184f8
movb $0x1, %bl
jmp 0x5a88
lock
incq 0x12f7b(%rip)           # 0x18510
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x12f8b(%rip)     # 0x18530
cmpl $-0x1, %r12d
je 0x5928
movq 0x8(%rsp), %rax
movq (%rax), %rdx
movq 0x60(%rsp), %rcx
movq 0x18(%rsp), %r8
leaq 0x2b0(%rsp), %r12
movq %r12, %rdi
leaq 0xcc6b(%rip), %rsi      # 0x1223e
leaq 0x190(%rsp), %r9
xorl %eax, %eax
callq 0x40a0
jmp 0x5953
lock
incq 0x12f21(%rip)           # 0x18510
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x12f31(%rip)     # 0x18530
movq 0x60(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x2b0(%rsp), %rbp
movq %rbp, %rdi
leaq 0xcc6a(%rip), %rsi      # 0x12285
leaq 0x190(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %rbp, %rdi
callq 0x4180
movq 0x12eaf(%rip), %rcx     # 0x184e8
movl $0x1, %esi
movq %rbp, %rdi
movq %rax, %rdx
callq 0x4760
movq %rbp, %rdi
callq 0x4180
movl $0x1, %edi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x4140
movq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0xfa02
xorps %xmm0, %xmm0
movaps %xmm0, 0x120(%rsp)
movaps %xmm0, 0x110(%rsp)
movb $0x0, 0x130(%rsp)
testl %r12d, %r12d
js 0x5725
lock
incq 0x12e6e(%rip)           # 0x18508
cmpb $0x0, (%rsp)
je 0x5913
movb $0x0, 0x6(%rsp)
movw $0x0, 0x4(%rsp)
leaq 0x218(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x1144b
xorps %xmm0, %xmm0
movaps %xmm0, 0x120(%rsp)
movaps %xmm0, 0x110(%rsp)
movb $0x0, 0x130(%rsp)
xorl %r12d, %r12d
leaq 0x110(%rsp), %r14
leaq 0xcc11(%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 0x4700
incq %r12
cmpq $0x10, %r12
jne 0x56f4
movq 0x38(%rsp), %r14
xorl %r13d, %r13d
jmp 0x579f
lock
incq 0x12de3(%rip)           # 0x18510
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x12df3(%rip)     # 0x18530
movq 0x60(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x2b0(%rsp), %r12
movq %r12, %rdi
leaq 0xcb66(%rip), %rsi      # 0x122bf
leaq 0x190(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %r12, %rdi
callq 0x4180
movq 0x12d71(%rip), %rcx     # 0x184e8
movl $0x1, %esi
movq %r12, %rdi
movq %rax, %rdx
callq 0x4760
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 0x5a64
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 0xd3ee
movq %rbx, %rdi
leaq 0xcb1f(%rip), %rsi      # 0x12306
callq 0x4750
leaq 0xe0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0xd3ee
leaq 0xd0(%rsp), %rdi
movl $0x4, %esi
movl $0x49, %edx
movq %r14, %rcx
movq 0x8(%rsp), %r8
leaq 0x10(%rsp), %r9
callq 0x5e4c
movl %eax, %ebx
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x5861
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4400
testl %ebx, %ebx
leaq 0x110(%rsp), %r14
js 0x5999
movq %r14, %rdi
callq 0x4180
movq 0x10(%rsp), %rcx
movq 0x38(%rsp), %rdi
movq %r14, %rsi
movq %rdi, %r14
movl %eax, %edx
callq 0xfb84
movslq %eax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x4180
cmpq %rbx, %rax
jbe 0x59ce
lock
incq 0x12c67(%rip)           # 0x18518
movq 0x40(%rsp), %rdx
xorl %ebx, %ebx
leaq 0x2b0(%rsp), %rbp
movq %rbp, %rdi
leaq 0xcaaa(%rip), %rsi      # 0x12374
xorl %eax, %eax
callq 0x40a0
movq %rbp, %rdi
callq 0x4180
movq 0x12c08(%rip), %rcx     # 0x184e8
movl $0x1, %esi
movq %rbp, %rdi
movq %rax, %rdx
callq 0x4760
movq %rbp, %rdi
callq 0x4180
movl $0x3, %r12d
movl $0x2, %edi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x4140
jmp 0x5a44
movq %rbx, %rdi
callq 0x4480
movq %rbx, %rdi
callq 0x43e0
jmp 0x5a64
movq 0x60(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x2b0(%rsp), %r12
movq %r12, %rdi
leaq 0xc8b2(%rip), %rsi      # 0x121f6
leaq 0x190(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %r12, %rdi
callq 0x4180
movq 0x12b86(%rip), %rcx     # 0x184e8
movl $0x1, %esi
movq %r12, %rdi
movq %rax, %rdx
callq 0x4760
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 0x5a88
lock
incq 0x12b77(%rip)           # 0x18518
cmpl $-0x1, %ebx
je 0x59e2
movq 0x8(%rsp), %rax
movq (%rax), %rdx
movq 0x40(%rsp), %rcx
leaq 0x2b0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xc97b(%rip), %rsi      # 0x12340
xorl %eax, %eax
callq 0x40a0
jmp 0x5a00
movq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0xfa02
xorl %r12d, %r12d
movb $0x1, %bl
jmp 0x5a44
movq 0x40(%rsp), %rdx
leaq 0x2b0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xc912(%rip), %rsi      # 0x1230b
xorl %eax, %eax
callq 0x40a0
movq 0x38(%rsp), %r14
movq %rbx, %rdi
callq 0x4180
movq 0x12ad4(%rip), %rcx     # 0x184e8
movl $0x1, %esi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x4760
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 0x5a60
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x4400
testb %bl, %bl
je 0x5a81
movq 0x12aa5(%rip), %rax     # 0x18510
xorl %r12d, %r12d
cmpq $0xb, %rax
jl 0x5a81
lock
decl 0x12a7d(%rip)           # 0x184f8
movl $0x3, %r12d
cmpl $0x3, %r12d
sete %bl
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x5aad
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x5ad2
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x140(%rsp), %r12
movq %r12, %rdi
callq 0xbe58
testb %bl, %bl
leaq 0x2b0(%rsp), %rbx
je 0x5278
movq %r14, %rdi
leaq 0x70(%rsp), %r12
leaq 0x28(%rsp), %r13
callq 0x104c4
movq %r15, %rdi
callq 0x44e0
movq %r14, %rdi
callq 0xe31a
movl $0x8, %esi
movq %r14, %rdi
callq 0x4400
jmp 0x5b2f
cmpl $-0x2, %eax
je 0x5b6f
lock
decl 0x129c9(%rip)           # 0x184f8
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0x5b46
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x5b5d
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 0x47a0
jmp 0x5b28
movq %rax, %rbx
movl $0x8, %esi
movq %r14, %rdi
callq 0x4400
jmp 0x5c8f
jmp 0x5b99
jmp 0x5b99
jmp 0x5c2b
movq %rax, %rbx
jmp 0x5c8f
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x5bd6
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x5bd6
jmp 0x5bd3
jmp 0x5c2b
jmp 0x5c2b
jmp 0x5c2b
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x5c2e
movq 0x50(%rsp), %rsi
jmp 0x5c0e
jmp 0x5c2b
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x5c2e
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x5c2e
jmp 0x5c2b
movq %rax, %rbx
leaq 0x70(%rsp), %r12
leaq 0x28(%rsp), %r13
jmp 0x5c82
jmp 0x5c2b
movq %rax, %rbx
leaq 0x70(%rsp), %r12
leaq 0x28(%rsp), %r13
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x5c5d
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x5c82
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x140(%rsp), %rdi
callq 0xbe58
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0x5ca6
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x5cbd
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4400
movq %rbx, %rdi
callq 0x46f0