// File: /workspace/github_cpp_makefile_star2_O3/lianxings[P]ftp_benchmark/ftp_benchmark.cc
// Function: ftp2local_worker(ftpInfo*, int, bool)
void ftp2local_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::fileread;
    ftplib::transfermode mode = ftplib::image;
    FILE *local = NULL;
    ftphandle *nData = NULL;
    char ac[3] = "wb";

    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(dstPath.c_str(), ac);
		if (local == NULL) {
            ++failed;
            errorSize += srcInfo.size;
            sprintf(printBuf, "\nopen destination 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(srcPath, 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;
        }

		char checkSumBuf[33] = {'\0'};
		char tmp[3] = {'\0'};
        Md5Context md5Context;
        MD5_HASH md5;
        if (verify){
            memset(checkSumBuf, 0, sizeof(checkSumBuf));
            memset(tmp, 0, sizeof(tmp));
            Md5Initialise( &md5Context );
        }

        int readed = 0;
        while ((readed = ftpClient->FtpRead(dataBuf, ioUnit, nData)) > 0) {
            if (fwrite(dataBuf, 1, readed, local) <= 0) {
                ++failed;
                errorSize += srcInfo.size;
                sprintf(printBuf, "\nwrite destination 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));
                break;
            }
            if (verify) {
                Md5Update( &md5Context, (const void*)dataBuf, readed);
            }
            finishSize += readed;
        }
        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) {
                Md5Finalise( &md5Context, &md5);
                for(int j = 0; j < sizeof(md5); j++) {
                    sprintf( tmp,"%2.2x", md5.bytes[j]);
                    strcat(checkSumBuf, tmp);
                }
            }
        }
        fflush(local);
        if (local != NULL) fclose(local);
        ftpClient->FtpClose(nData);

        if (readed >= 0 && verify) {
            string newSrcPath = srcPath + ".md5";
            int ret = build_ftp_data_connection(newSrcPath, type, mode, ftpClient, pFtp, &nData);
            if (ret < 0) {
                if (ret == -1)
                    sprintf(printBuf, "\nget ftp data connection failed: read md5 file %s\n", newSrcPath.c_str());
                else
                    sprintf(printBuf, "\nre-login ftp server %s failed: read md5 file %s\n",\
                                                      pFtp->ftpServer , newSrcPath.c_str());
                fwrite(printBuf, 1, strlen(printBuf), errorFd);
                write(2, printBuf, strlen(printBuf));
                continue;
            }

            memset(dataBuf, 0, ioUnit);
            if (ftpClient->FtpRead(dataBuf, ioUnit, nData) <= 0) {
                ++verifyFailed;
                sprintf(printBuf, "\nread md5 file %s failed\n", newSrcPath.c_str());
                fwrite(printBuf, 1, strlen(printBuf), errorFd);
                //write(1, printBuf, strlen(printBuf));
            } else if (strncmp(checkSumBuf, dataBuf, 32) != 0) {
                ++verifyFailed;
				sprintf(printBuf, "\nverify file '%s' failed: upload md5: %s, download md5: %s\n",  
                                                           srcPath.c_str(), dataBuf, checkSumBuf);
                fwrite(printBuf, 1, strlen(printBuf), errorFd);
                write(1, printBuf, strlen(printBuf));
			}
            ftpClient->FtpClose(nData);
        }

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

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

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x6c8, %rsp            # imm = 0x6C8
movl %edx, 0x4(%rsp)
movq %rdi, 0x58(%rsp)
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
movl $0x40000, %edi          # imm = 0x40000
callq 0x4030
movq %rax, %r14
movq $0x0, 0x10(%rsp)
movl $0x8, %edi
callq 0x43f0
movq %rax, %r15
movq %rax, %rdi
callq 0xe220
movq %r15, %rdi
movq 0x58(%rsp), %rsi
callq 0x5c9b
testl %eax, %eax
js 0x73be
movq %r15, 0x8(%rsp)
xorl %r15d, %r15d
leaq 0x140(%rsp), %r12
leaq 0x2c0(%rsp), %rbx
movq %rsp, %rbp
movq 0x58(%rsp), %r13
movq %r14, 0x138(%rsp)
movq 0x11936(%rip), %rax     # 0x18428
cmpq 0x1190f(%rip), %rax     # 0x18408
jne 0x6b09
movl 0x119e7(%rip), %eax     # 0x184e8
testl %eax, %eax
jne 0x7388
leaq 0x150(%rsp), %rax
movq %rax, 0x140(%rsp)
movq %r15, 0x148(%rsp)
movb %r15b, 0x150(%rsp)
movq %r15, 0x160(%rsp)
leaq 0x178(%rsp), %rax
movq %rax, 0x168(%rsp)
movq %r15, 0x170(%rsp)
movb %r15b, 0x178(%rsp)
movq %r15, 0x188(%rsp)
movq %r12, %rdi
callq 0x5d38
testl %eax, %eax
js 0x6da2
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r15, 0x88(%rsp)
movb %r15b, 0x90(%rsp)
movq %r15, 0xa0(%rsp)
leaq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq %r15, 0xb0(%rsp)
movb %r15b, 0xb8(%rsp)
movq %r15, 0xc8(%rsp)
leaq 0x80(%rsp), %rdi
movq %r12, %rsi
callq 0x4200
leaq 0x118(%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 0x18(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x4200
leaq 0x38(%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 0x1a0(%rsp), %rsi
callq 0xdc66
movq 0x38(%rsp), %rdi
leaq 0xb736(%rip), %rsi      # 0x12390
callq 0x4420
testq %rax, %rax
je 0x6daf
movq %rax, %rbx
leaq 0x128(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xd3a8
movq %r12, %rdi
movl $0x3, %esi
movl $0x49, %edx
movq 0x8(%rsp), %rcx
movq %r13, %r8
leaq 0x10(%rsp), %r9
callq 0x5e39
movl %eax, %r12d
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x6cd7
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x4400
testl %r12d, %r12d
js 0x6e2e
xorps %xmm0, %xmm0
movaps %xmm0, 0x100(%rsp)
movaps %xmm0, 0xf0(%rsp)
movb %r15b, 0x110(%rsp)
movb %r15b, 0x2(%rsp)
movw $0x0, (%rsp)
cmpb $0x0, 0x4(%rsp)
je 0x6d3d
movaps %xmm0, 0x100(%rsp)
movaps %xmm0, 0xf0(%rsp)
movb %r15b, 0x110(%rsp)
movb %r15b, 0x2(%rsp)
movw $0x0, (%rsp)
leaq 0x228(%rsp), %rdi
callq 0x10a64
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movl $0x40000, %edx          # imm = 0x40000
callq 0xfa88
movl %eax, %r12d
testl %eax, %eax
jle 0x6e84
movl %r12d, %r13d
movl $0x1, %esi
movq %r14, %rdi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x4750
testq %rax, %rax
je 0x6f18
cmpb $0x0, 0x4(%rsp)
je 0x6d98
leaq 0x228(%rsp), %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x10a7d
lock
addq %r13, 0x11780(%rip)     # 0x18520
jmp 0x6d3d
movq %r12, %rdi
callq 0xbe24
jmp 0x6aeb
lock
incq 0x11751(%rip)           # 0x18508
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x11761(%rip)     # 0x18528
movq 0x18(%rsp), %rdx
movq 0x38(%rsp), %rcx
leaq 0x2c0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xb5b0(%rip), %rsi      # 0x12393
leaq 0x1a0(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %rbx, %rdi
callq 0x4180
movq 0x116df(%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
jmp 0x7304
lock
incq 0x116d2(%rip)           # 0x18508
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x116e2(%rip)     # 0x18528
cmpl $-0x1, %r12d
je 0x71a1
movq (%r13), %rdx
movq 0x18(%rsp), %rcx
movq 0x38(%rsp), %r8
leaq 0x2c0(%rsp), %r12
movq %r12, %rdi
leaq 0xb3ce(%rip), %rsi      # 0x1223e
leaq 0x1a0(%rsp), %r9
xorl %eax, %eax
callq 0x40a0
jmp 0x71cc
leaq 0xb475(%rip), %r15      # 0x12300
leaq 0xf0(%rsp), %r14
jns 0x6fa1
lock
incq 0x11667(%rip)           # 0x18508
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x11677(%rip)     # 0x18528
movq 0x18(%rsp), %rdx
movq 0x38(%rsp), %rcx
leaq 0x2c0(%rsp), %r13
movq %r13, %rdi
leaq 0xb3f2(%rip), %rsi      # 0x122bf
leaq 0x1a0(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %r13, %rdi
callq 0x4180
movq 0x115f5(%rip), %rcx     # 0x184e0
movl $0x1, %esi
movq %r13, %rdi
movq %rax, %rdx
callq 0x4750
movq %r13, %rdi
callq 0x4180
movl $0x1, %edi
movq %r13, %rsi
movq %rax, %rdx
callq 0x4140
jmp 0x6ff2
lock
incq 0x115e8(%rip)           # 0x18508
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x115f8(%rip)     # 0x18528
movq 0x18(%rsp), %rdx
movq 0x38(%rsp), %rcx
leaq 0x2c0(%rsp), %r13
movq %r13, %rdi
leaq 0xb48d(%rip), %rsi      # 0x123d9
leaq 0x1a0(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %r13, %rdi
callq 0x4180
movq 0x11576(%rip), %rcx     # 0x184e0
movl $0x1, %esi
movq %r13, %rdi
movq %rax, %rdx
callq 0x4750
movq %r13, %rdi
callq 0x4180
movl $0x1, %edi
movq %r13, %rsi
movq %rax, %rdx
callq 0x4140
leaq 0xb367(%rip), %r15      # 0x12300
leaq 0xf0(%rsp), %r14
lock
incq 0x11557(%rip)           # 0x18500
cmpb $0x0, 0x4(%rsp)
je 0x6ff2
leaq 0x228(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x1143a
xorl %r13d, %r13d
movzbl 0x190(%rsp,%r13), %edx
movq %rbp, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x40a0
movq %r14, %rdi
movq %rbp, %rsi
callq 0x46f0
incq %r13
cmpq $0x10, %r13
jne 0x6fc8
movq %rbx, %rdi
callq 0x4480
movq %rbx, %rdi
callq 0x43e0
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0xf9cc
testl %r12d, %r12d
sets %al
movl 0x4(%rsp), %ecx
xorb $0x1, %cl
orb %al, %cl
movq 0x58(%rsp), %r13
movl $0x0, %r15d
movq 0x138(%rsp), %r14
jne 0x7304
leaq 0x70(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rbx
movq %rbx, %rdi
callq 0xd3a8
movq %rbx, %rdi
leaq 0xb29f(%rip), %rsi      # 0x12306
callq 0x4740
leaq 0xe0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0xd3a8
leaq 0xd0(%rsp), %rdi
movl $0x3, %esi
movl $0x49, %edx
movq 0x8(%rsp), %rcx
movq %r13, %r8
leaq 0x10(%rsp), %r9
callq 0x5e39
movl %eax, %ebx
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x70e1
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4400
testl %ebx, %ebx
js 0x7210
movl $0x40000, %edx          # imm = 0x40000
movq %r14, %rdi
xorl %esi, %esi
callq 0x4210
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movl $0x40000, %edx          # imm = 0x40000
callq 0xfa88
testl %eax, %eax
leaq 0xf0(%rsp), %rdi
jle 0x7239
movl $0x20, %edx
movq %r14, %rsi
callq 0x41b0
testl %eax, %eax
je 0x727e
lock
incq 0x113dc(%rip)           # 0x18518
movq 0x18(%rsp), %rdx
leaq 0x2c0(%rsp), %r12
movq %r12, %rdi
leaq 0xb34c(%rip), %rsi      # 0x1249f
movq %r14, %rcx
leaq 0xf0(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %r12, %rdi
callq 0x4180
movq 0x1136c(%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
jmp 0x727e
movq 0x18(%rsp), %rdx
movq 0x38(%rsp), %rcx
leaq 0x2c0(%rsp), %r12
movq %r12, %rdi
leaq 0xb039(%rip), %rsi      # 0x121f6
leaq 0x1a0(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %r12, %rdi
callq 0x4180
movq 0x11305(%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
jmp 0x7311
cmpl $-0x1, %ebx
je 0x728f
movq (%r13), %rdx
movq 0x60(%rsp), %rcx
leaq 0x2c0(%rsp), %r12
movq %r12, %rdi
leaq 0xb223(%rip), %rsi      # 0x12453
xorl %eax, %eax
callq 0x40a0
jmp 0x72ad
lock
incq 0x112d7(%rip)           # 0x18518
movq 0x60(%rsp), %rdx
leaq 0x2c0(%rsp), %r12
movq %r12, %rdi
leaq 0xb22d(%rip), %rsi      # 0x12485
xorl %eax, %eax
callq 0x40a0
movq %r12, %rdi
callq 0x4180
movq 0x11272(%rip), %rcx     # 0x184e0
movl $0x1, %esi
movq %r12, %rdi
movq %rax, %rdx
callq 0x4750
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0xf9cc
jmp 0x72e4
movq 0x60(%rsp), %rdx
leaq 0x2c0(%rsp), %r12
movq %r12, %rdi
leaq 0xb17a(%rip), %rsi      # 0x12420
xorl %eax, %eax
callq 0x40a0
movq %r12, %rdi
callq 0x4180
movq 0x11224(%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 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x7300
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4400
testl %ebx, %ebx
js 0x7311
movq 0x111fd(%rip), %rax     # 0x18508
cmpq $0xb, %rax
jge 0x7315
xorl %ebx, %ebx
jmp 0x731e
lock
decl 0x111d4(%rip)           # 0x184f0
movb $0x1, %bl
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x7343
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x7368
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x140(%rsp), %r12
movq %r12, %rdi
callq 0xbe24
testb %bl, %bl
leaq 0x2c0(%rsp), %rbx
je 0x6aeb
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x28(%rsp), %r12
leaq 0x48(%rsp), %r13
callq 0x104b6
movq %rbx, %rdi
callq 0xe318
movl $0x8, %esi
movq %rbx, %rdi
callq 0x4400
movq %r14, %rdi
callq 0x44e0
jmp 0x73ca
cmpl $-0x2, %eax
je 0x740a
lock
decl 0x11126(%rip)           # 0x184f0
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x73e1
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x73f8
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x4400
addq $0x6c8, %rsp            # imm = 0x6C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x58(%rsp), %rdi
callq 0x4877
jmp 0x73c3
movq %rax, %rbx
movl $0x8, %esi
movq %r15, %rdi
callq 0x4400
jmp 0x7529
jmp 0x7435
movq %rax, %rbx
jmp 0x7540
movq %rax, %rbx
jmp 0x7529
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x7470
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x7470
jmp 0x746d
jmp 0x74c5
jmp 0x74c5
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x74c8
movq 0x70(%rsp), %rsi
jmp 0x74a6
movq %rax, %rbx
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x74c8
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x74c8
jmp 0x74c5
jmp 0x74c5
movq %rax, %rbx
leaq 0x28(%rsp), %r12
leaq 0x48(%rsp), %r13
jmp 0x751c
jmp 0x74c5
movq %rax, %rbx
leaq 0x28(%rsp), %r12
leaq 0x48(%rsp), %r13
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x74f7
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x751c
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x140(%rsp), %rdi
callq 0xbe24
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x7540
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x7557
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x4400
movq %rbx, %rdi
callq 0x46e0