// File: /workspace/github_cpp_makefile_star2_O1/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, 0xc(%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, %rbp
movq %rax, %rdi
callq 0xe240
movq %rbp, %rdi
movq 0x58(%rsp), %rsi
callq 0x5cc5
testl %eax, %eax
js 0x73cb
leaq 0x2c0(%rsp), %r13
leaq 0xf0(%rsp), %rbx
movq 0x58(%rsp), %r12
movq 0x1192e(%rip), %rax     # 0x18430
cmpq 0x11907(%rip), %rax     # 0x18410
jne 0x6b19
movl 0x119df(%rip), %eax     # 0x184f0
testl %eax, %eax
jne 0x739a
leaq 0x150(%rsp), %rax
movq %rax, 0x140(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x148(%rsp)
movb %cl, 0x150(%rsp)
movq %rcx, 0x160(%rsp)
leaq 0x178(%rsp), %rax
movq %rax, 0x168(%rsp)
movq %rcx, 0x170(%rsp)
movb %cl, 0x178(%rsp)
movq %rcx, 0x188(%rsp)
leaq 0x140(%rsp), %rdi
callq 0x5d62
testl %eax, %eax
js 0x6db0
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x88(%rsp)
movb %cl, 0x90(%rsp)
movq %rcx, 0xa0(%rsp)
leaq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq %rcx, 0xb0(%rsp)
movb %cl, 0xb8(%rsp)
movq %rcx, 0xc8(%rsp)
leaq 0x80(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x4200
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 %r13, %rdi
xorl %esi, %esi
callq 0x4210
movq 0xa0(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
callq 0xdca2
movq 0x38(%rsp), %rdi
leaq 0xb724(%rip), %rsi      # 0x12390
callq 0x4420
testq %rax, %rax
je 0x6dc2
movq %rax, %r13
leaq 0x100(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xd3ee
movq %rbx, %rdi
movl $0x3, %esi
movl $0x49, %edx
movq %rbp, %rcx
movq %r12, %r8
leaq 0x10(%rsp), %r9
callq 0x5e4c
movl %eax, %ebx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x6ce6
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4400
testl %ebx, %ebx
js 0x6e54
xorps %xmm0, %xmm0
movaps %xmm0, 0x120(%rsp)
movaps %xmm0, 0x110(%rsp)
xorl %eax, %eax
movb %al, 0x130(%rsp)
movb %al, 0xa(%rsp)
movw $0x0, 0x8(%rsp)
cmpb $0x0, 0xc(%rsp)
je 0x6d4d
movaps %xmm0, 0x120(%rsp)
movaps %xmm0, 0x110(%rsp)
xorl %eax, %eax
movb %al, 0x130(%rsp)
movb %al, 0xa(%rsp)
movw $0x0, 0x8(%rsp)
leaq 0x228(%rsp), %rdi
callq 0x10a74
movq 0x10(%rsp), %rcx
movq %rbp, %rdi
movq %r14, %rsi
movl $0x40000, %edx          # imm = 0x40000
callq 0xfad4
movl %eax, %r12d
testl %eax, %eax
jle 0x6f23
movl %r12d, %ebx
movl $0x1, %esi
movq %r14, %rdi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x4760
testq %rax, %rax
je 0x6ea9
cmpb $0x0, 0xc(%rsp)
je 0x6da6
leaq 0x228(%rsp), %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x10a87
lock
addq %rbx, 0x1177a(%rip)     # 0x18528
jmp 0x6d4d
leaq 0x140(%rsp), %rdi
callq 0xbe58
jmp 0x6afb
lock
incq 0x11746(%rip)           # 0x18510
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x11756(%rip)     # 0x18530
movq 0x18(%rsp), %rdx
movq 0x38(%rsp), %rcx
leaq 0x2c0(%rsp), %r13
movq %r13, %rdi
leaq 0xb59d(%rip), %rsi      # 0x12393
leaq 0x1a0(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %r13, %rdi
callq 0x4180
movq 0x116d4(%rip), %rcx     # 0x184e8
movl $0x1, %esi
movq %r13, %rdi
movq %rax, %rdx
callq 0x4760
movq %r13, %rdi
callq 0x4180
movl $0x1, %edi
movq %r13, %rsi
movq %rax, %rdx
callq 0x4140
movq 0x116cd(%rip), %rax     # 0x18510
cmpq $0xb, %rax
jge 0x731e
xorl %ebx, %ebx
jmp 0x7333
lock
incq 0x116b4(%rip)           # 0x18510
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x116c4(%rip)     # 0x18530
cmpl $-0x1, %ebx
je 0x71a2
movq (%r12), %rdx
movq 0x18(%rsp), %rcx
movq 0x38(%rsp), %r8
leaq 0x2c0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xb3a9(%rip), %rsi      # 0x1223e
leaq 0x1a0(%rsp), %r9
xorl %eax, %eax
callq 0x40a0
jmp 0x71cd
lock
incq 0x1165f(%rip)           # 0x18510
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x1166f(%rip)     # 0x18530
movq 0x18(%rsp), %rdx
movq 0x38(%rsp), %rcx
leaq 0x2c0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xb4fc(%rip), %rsi      # 0x123d9
leaq 0x1a0(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %rbx, %rdi
callq 0x4180
movq 0x115ed(%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
testl %r12d, %r12d
js 0x6f8b
lock
incq 0x115d8(%rip)           # 0x18508
cmpb $0x0, 0xc(%rsp)
je 0x7005
leaq 0x228(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x1144b
xorl %ebx, %ebx
movzbl 0x190(%rsp,%rbx), %edx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
leaq 0xb397(%rip), %rsi      # 0x12300
xorl %eax, %eax
callq 0x40a0
leaq 0x110(%rsp), %rdi
movq %r15, %rsi
callq 0x4700
incq %rbx
cmpq $0x10, %rbx
jne 0x6f52
jmp 0x7005
lock
incq 0x1157d(%rip)           # 0x18510
movq 0xa0(%rsp), %rax
lock
addq %rax, 0x1158d(%rip)     # 0x18530
movq 0x18(%rsp), %rdx
movq 0x38(%rsp), %rcx
leaq 0x2c0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xb300(%rip), %rsi      # 0x122bf
leaq 0x1a0(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %rbx, %rdi
callq 0x4180
movq 0x1150b(%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 %r13, %rdi
callq 0x4480
movq %r13, %rdi
callq 0x43e0
movq 0x10(%rsp), %rsi
movq %rbp, %rdi
callq 0xfa02
testl %r12d, %r12d
sets %al
movl 0xc(%rsp), %ecx
xorb $0x1, %cl
orb %al, %cl
movq 0x58(%rsp), %r12
jne 0x7305
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 0xd3ee
movq %rbx, %rdi
leaq 0xb29c(%rip), %rsi      # 0x12306
callq 0x4750
leaq 0xe0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0xd3ee
leaq 0xd0(%rsp), %rdi
movl $0x3, %esi
movl $0x49, %edx
movq %rbp, %rcx
movq %r12, %r8
leaq 0x10(%rsp), %r9
callq 0x5e4c
movl %eax, %r13d
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x70e3
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4400
testl %r13d, %r13d
js 0x7211
movl $0x40000, %edx          # imm = 0x40000
movq %r14, %rdi
xorl %esi, %esi
callq 0x4210
movq 0x10(%rsp), %rcx
movq %rbp, %rdi
movq %r14, %rsi
movl $0x40000, %edx          # imm = 0x40000
callq 0xfad4
testl %eax, %eax
jle 0x723b
movl $0x20, %edx
leaq 0x110(%rsp), %rdi
movq %r14, %rsi
callq 0x41b0
testl %eax, %eax
je 0x7280
lock
incq 0x113e3(%rip)           # 0x18520
movq 0x18(%rsp), %rdx
leaq 0x2c0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xb34b(%rip), %rsi      # 0x1249f
movq %r14, %rcx
leaq 0x110(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %rbx, %rdi
callq 0x4180
movq 0x11373(%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
jmp 0x7280
movq 0x18(%rsp), %rdx
movq 0x38(%rsp), %rcx
leaq 0x2c0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xb038(%rip), %rsi      # 0x121f6
leaq 0x1a0(%rsp), %r8
xorl %eax, %eax
callq 0x40a0
movq %rbx, %rdi
callq 0x4180
movq 0x1130c(%rip), %rcx     # 0x184e8
movl $0x1, %esi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x4760
movq %rbx, %rdi
callq 0x4180
movl $0x2, %edi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x4140
movq %r13, %rdi
callq 0x43e0
jmp 0x7329
cmpl $-0x1, %r13d
je 0x728f
movq (%r12), %rdx
movq 0x60(%rsp), %rcx
leaq 0x2c0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xb221(%rip), %rsi      # 0x12453
xorl %eax, %eax
callq 0x40a0
jmp 0x72ad
lock
incq 0x112dd(%rip)           # 0x18520
movq 0x60(%rsp), %rdx
leaq 0x2c0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xb22b(%rip), %rsi      # 0x12485
xorl %eax, %eax
callq 0x40a0
movq %rbx, %rdi
callq 0x4180
movq 0x11278(%rip), %rcx     # 0x184e8
movl $0x1, %esi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x4760
movq 0x10(%rsp), %rsi
movq %rbp, %rdi
callq 0xfa02
jmp 0x72e4
movq 0x60(%rsp), %rdx
leaq 0x2c0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xb17a(%rip), %rsi      # 0x12420
xorl %eax, %eax
callq 0x40a0
movq %rbx, %rdi
callq 0x4180
movq 0x1122c(%rip), %rcx     # 0x184e8
movl $0x1, %esi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x4760
movq %rbx, %rdi
callq 0x4180
movl $0x2, %edi
movq %rbx, %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 %r13d, %r13d
js 0x7329
movq 0x11204(%rip), %rax     # 0x18510
cmpq $0xb, %rax
leaq 0x2c0(%rsp), %r13
jl 0x6e4d
lock
decl 0x111d3(%rip)           # 0x184f8
movb $0x1, %bl
jmp 0x7333
xorl %ebx, %ebx
leaq 0x2c0(%rsp), %r13
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x7358
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x737d
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x140(%rsp), %rdi
callq 0xbe58
testb %bl, %bl
leaq 0xf0(%rsp), %rbx
je 0x6afb
movq %rbp, %rdi
leaq 0x28(%rsp), %r12
leaq 0x48(%rsp), %r13
callq 0x104c4
movq %rbp, %rdi
callq 0xe31a
movl $0x8, %esi
movq %rbp, %rdi
callq 0x4400
movq %r14, %rdi
callq 0x44e0
jmp 0x73d7
cmpl $-0x2, %eax
je 0x7417
lock
decl 0x11121(%rip)           # 0x184f8
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x73ee
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x7405
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 0x4887
jmp 0x73d0
movq %rax, %rbx
movl $0x8, %esi
movq %rbp, %rdi
callq 0x4400
jmp 0x7530
jmp 0x743c
jmp 0x743c
movq %rax, %rbx
jmp 0x7530
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x7477
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x7477
jmp 0x7474
jmp 0x74cc
jmp 0x74cc
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x74cf
movq 0x70(%rsp), %rsi
jmp 0x74ad
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x74cf
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x74cf
jmp 0x74cc
jmp 0x74cc
movq %rax, %rbx
leaq 0x28(%rsp), %r12
leaq 0x48(%rsp), %r13
jmp 0x7523
jmp 0x74cc
movq %rax, %rbx
leaq 0x28(%rsp), %r12
leaq 0x48(%rsp), %r13
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x74fe
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x7523
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x140(%rsp), %rdi
callq 0xbe58
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x7547
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x755e
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x4400
movq %rbx, %rdi
callq 0x46f0