// File: /workspace/github_cpp_makefile_star2_O1/lianxings[P]ftp_benchmark/ftp_benchmark.cc
// Function: ftp2local_dispatcher(ftpInfo*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void ftp2local_dispatcher(ftpInfo * pFtp, string ftpPath, string localPath) 
{
    // normalize directory path format
    normalize_dir_format(localPath, ftpPath);

    // connect to ftp server and login
    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);
        goto error_out;
    }

    ftp2local_dispatcher_core(pFtp, ftpClient, ftpPath, localPath);

error_out:
    exitFlag = 1;
    tasksExecuteCV.notify_all();
    ftpClient->Quit();
    delete ftpClient;
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x6a8, %rsp            # imm = 0x6A8
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r13
movq %rdx, %rdi
callq 0xde1b
movl $0x8, %edi
callq 0x43f0
movq %rax, %rbx
movq %rax, %rdi
callq 0xe240
movq %rbx, %rbp
movq %rbx, %rdi
movq %r13, %rsi
callq 0x5cc5
testl %eax, %eax
js 0x802f
leaq 0xb0(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0xd3ee
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %rdi
callq 0xd3ee
movl $0x400, %edi            # imm = 0x400
callq 0x4500
movq %rax, 0x28(%rsp)
movq $0x0, 0x70(%rsp)
leaq 0x220(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
addq %rsi, %rdx
leaq 0x210(%rsp), %rdi
callq 0xd3ee
movq %rbp, %r15
leaq 0x210(%rsp), %rdi
callq 0xdc70
movl %eax, %ebp
movq 0x210(%rsp), %rdi
cmpq %r12, %rdi
je 0x766d
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x4400
testl %ebp, %ebp
je 0x807d
movq 0xa0(%rsp), %rsi
movq %r15, %rdi
callq 0xfd94
testl %eax, %eax
je 0x808f
leaq 0x80(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0xde1b
xorps %xmm0, %xmm0
leaq 0x230(%rsp), %rdi
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
xorl %esi, %esi
callq 0xc412
movq %r13, 0x130(%rsp)
leaq 0x1e0(%rsp), %rax
movq %rax, -0x10(%rax)
xorl %ecx, %ecx
movq %rcx, -0x8(%rax)
movb %cl, (%rax)
leaq 0x200(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rcx, -0x8(%rax)
movb %cl, (%rax)
leaq 0x1d0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x4200
leaq 0x1f0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x4200
leaq 0x230(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
callq 0xc58a
movq 0x240(%rsp), %rcx
movq 0x260(%rsp), %rax
cmpq %rcx, %rax
je 0x7fbf
leaq 0xd0(%rsp), %rbp
xorl %r13d, %r13d
movq %r15, 0x1c8(%rsp)
movq 0x250(%rsp), %r8
movq 0x278(%rsp), %rdx
movl 0x258(%rsp), %esi
movl %edx, %edi
subl %esi, %edi
negq %rdx
movl $0x0, %edx
sbbl %edx, %edx
leal (%rdi,%rdx,8), %edx
andl $-0x8, %edx
subq 0x268(%rsp), %rax
shrq $0x6, %rax
subq %rcx, %r8
shrq $0x6, %r8
addl %eax, %r8d
addl %edx, %r8d
movq %r8, 0x1c0(%rsp)
testl %r8d, %r8d
jle 0x7fa6
xorl %eax, %eax
movl %eax, 0x7c(%rsp)
movq 0x240(%rsp), %r14
leaq 0x1d0(%rsp), %rdi
movq %r14, %rsi
callq 0x4200
addq $0x20, %r14
leaq 0x1f0(%rsp), %rdi
movq %r14, %rsi
callq 0x4200
leaq 0x230(%rsp), %rdi
callq 0xc876
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x1d0(%rsp), %rsi
movq 0x1d8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0xd3ee
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x1f0(%rsp), %rsi
movq 0x1f8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0xd3ee
leaq 0x2a0(%rsp), %r14
movq 0x50(%rsp), %rdx
movq %r14, %rdi
leaq 0xb522(%rip), %rsi      # 0x12d7b
xorl %eax, %eax
callq 0x40a0
movq %r14, %rdi
callq 0x4180
movl $0x1, %edi
movq %r14, %rsi
movq %rax, %rdx
callq 0x4140
leaq 0x1a0(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xdfeb
movq %r15, %rbx
movq 0x1a0(%rsp), %rsi
movq 0x1a8(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0x4110
movq 0x38(%rsp), %rdx
movq %rdx, %rsi
subq $0x1, %rsi
jb 0x80ab
movq 0x30(%rsp), %rax
cmpb $0x2f, (%rax,%rsi)
je 0x78d3
leaq 0x30(%rsp), %rdi
movl $0x2f, %esi
callq 0x4320
movq 0x30(%rsp), %rdi
callq 0x4590
testq %rax, %rax
jne 0x78f9
movq 0x30(%rsp), %rdi
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x41a0
testl %eax, %eax
js 0x7f82
movq (%rbx), %rax
movq $0x0, 0x1b0(%rax)
leaq 0x190(%rsp), %rax
movq %rax, 0x180(%rsp)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x180(%rsp), %rdi
callq 0xd3ee
leaq 0x180(%rsp), %rdi
movl $0x2, %esi
movl $0x41, %edx
movq %r15, %rcx
movq 0x130(%rsp), %r8
leaq 0x70(%rsp), %r9
callq 0x5e4c
movl %eax, %r14d
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x7980
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x4400
testl %r14d, %r14d
js 0x7e7e
movq 0x70(%rsp), %rcx
movq %r15, %rdi
movq 0x28(%rsp), %rsi
movl $0x400, %edx            # imm = 0x400
callq 0xfad4
testl %eax, %eax
jle 0x7e69
leaq 0x120(%rsp), %rax
movq %rax, 0x110(%rsp)
movq %r13, 0x118(%rsp)
movb %r13b, 0x120(%rsp)
leaq 0x170(%rsp), %rax
movq %rax, 0x160(%rsp)
movq %r13, 0x168(%rsp)
movb %r13b, 0x170(%rsp)
movq 0x28(%rsp), %rdi
leaq 0x110(%rsp), %r14
movq %r14, %rsi
leaq 0x160(%rsp), %rdx
callq 0xdec6
movq %r14, %rdi
leaq 0xb2fd(%rip), %rsi      # 0x12d0c
callq 0x40f0
movl $0x7, %r12d
testl %eax, %eax
je 0x7e15
movq %r14, %rdi
leaq 0xb2df(%rip), %rsi      # 0x12d0b
callq 0x40f0
testl %eax, %eax
je 0x7e15
movl $0x1, %ecx
movq %r14, %rdi
leaq 0xb2c4(%rip), %rsi      # 0x12d0c
movq $-0x1, %rdx
callq 0x4780
movq %r14, %rsi
movq %rax, %r14
cmpq $-0x1, %rax
je 0x7a91
leaq 0x1(%r14), %rdx
leaq 0x280(%rsp), %rbx
movq %rbx, %rdi
movq $-0x1, %rcx
callq 0x4410
movq %rbx, %rdi
leaq 0xa882(%rip), %rsi      # 0x12307
callq 0x40f0
testl %eax, %eax
sete %bl
jmp 0x7a93
xorl %ebx, %ebx
cmpq $-0x1, %r14
leaq 0x110(%rsp), %r14
je 0x7ac6
movq 0x280(%rsp), %rdi
leaq 0x290(%rsp), %rax
cmpq %rax, %rdi
je 0x7ac6
movq 0x290(%rsp), %rsi
incq %rsi
callq 0x4400
testb %bl, %bl
movq 0x1c8(%rsp), %r15
jne 0x7e15
movq 0x28(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x2d, %eax
je 0x7b44
cmpl $0x64, %eax
jne 0x7e12
movq %rsp, %rbx
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
movq %r14, %rdx
callq 0xbe8e
movq %rbx, %rdi
leaq 0xb32a(%rip), %rsi      # 0x12e33
callq 0x4750
movq %rbp, %r12
movq %rbp, 0xc0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x7cea
movq %rdx, 0xc0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd0(%rsp)
jmp 0x7cf2
movq 0x160(%rsp), %rdi
callq 0x4600
movq %r14, %rdx
movl %eax, %r14d
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %r13, 0x8(%rsp)
movb %r13b, 0x10(%rsp)
movq %r13, 0x20(%rsp)
leaq 0x148(%rsp), %rax
movq %rax, 0x138(%rsp)
movq %r13, 0x140(%rsp)
movb %r13b, 0x148(%rsp)
movq %r13, 0x158(%rsp)
leaq 0xc0(%rsp), %r12
movq %r12, %rdi
leaq 0x50(%rsp), %rsi
callq 0xbe8e
movq %rsp, %rdi
movq %r12, %rsi
callq 0x44c0
movq 0xc0(%rsp), %rdi
movq %rbp, %r12
cmpq %rbp, %rdi
je 0x7bd7
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0xc0(%rsp), %rbx
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
leaq 0x110(%rsp), %rdx
callq 0xbe8e
leaq 0x138(%rsp), %rdi
movq %rbx, %rsi
callq 0x44c0
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x7c21
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x4400
movslq %r14d, %r12
movq %r12, 0x158(%rsp)
movq %r12, 0x20(%rsp)
movq %rbp, 0xc0(%rsp)
movq %r13, 0xc8(%rsp)
movb %r13b, 0xd0(%rsp)
movq %r13, 0xe0(%rsp)
leaq 0xf8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq %r13, 0xf0(%rsp)
movb %r13b, 0xf8(%rsp)
movq %r13, 0x108(%rsp)
leaq 0xc0(%rsp), %rdi
movq %rsp, %rsi
callq 0x4200
movq 0x20(%rsp), %rax
movq %rax, 0xe0(%rsp)
leaq 0xe8(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0x4200
movq 0x158(%rsp), %rax
movq %rax, 0x108(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0xbd42
movl %eax, %r14d
testl %eax, %eax
js 0x7dba
lock
incq 0x10825(%rip)           # 0x18500
addq %r12, 0x10856(%rip)     # 0x18538
xorl %r12d, %r12d
jmp 0x7dc0
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0xc8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7d28
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xd3ee
leaq 0x1d0(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x4200
leaq 0x1f0(%rsp), %rdi
movq %rbx, %rsi
callq 0x4200
leaq 0x230(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
callq 0xc58a
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7d9b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x7e12
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x7e12
movl $0x8, %r12d
leaq 0xc0(%rsp), %rdi
callq 0xbe58
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x7df2
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x4400
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7e0d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4400
testl %r14d, %r14d
js 0x7e15
xorl %r12d, %r12d
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x7e3a
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x7e5f
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x4400
cmpl $0x8, %r12d
jne 0x7989
xorl %r14d, %r14d
movq 0x70(%rsp), %rsi
movq %r15, %rdi
callq 0xfa02
jmp 0x7f05
movq 0x50(%rsp), %rdx
cmpl $-0x1, %r14d
je 0x7eaf
movq 0x130(%rsp), %rax
movq (%rax), %rcx
leaq 0x2a0(%rsp), %r14
movq %r14, %rdi
leaq 0xaf26(%rip), %rsi      # 0x12dcc
xorl %eax, %eax
callq 0x40a0
jmp 0x7ec8
leaq 0x2a0(%rsp), %r14
movq %r14, %rdi
leaq 0xaed0(%rip), %rsi      # 0x12d91
xorl %eax, %eax
callq 0x40a0
movq %r14, %rdi
callq 0x4180
movq 0x10611(%rip), %rcx     # 0x184e8
movl $0x1, %esi
movq %r14, %rdi
movq %rax, %rdx
callq 0x4760
movq %r14, %rdi
callq 0x4180
movq %r14, %rsi
movl $0x6, %r14d
movl $0x2, %edi
movq %rax, %rdx
callq 0x4140
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x7f2a
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7f46
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x7f62
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4400
cmpl $0x6, %r14d
movl 0x7c(%rsp), %eax
je 0x7f71
testl %r14d, %r14d
jne 0x7fa0
incl %eax
cmpl 0x1c0(%rsp), %eax
jne 0x77b7
jmp 0x7f9a
leaq 0x80(%rsp), %rdi
callq 0x48ab
movl $0x1, %r14d
jmp 0x7f05
movl $0x4, %r14d
testb $0x3, %r14b
jne 0x7fc9
movq 0x240(%rsp), %rcx
movq 0x260(%rsp), %rax
cmpq %rcx, %rax
jne 0x7760
movq 0x28(%rsp), %rdi
callq 0x44a0
leaq 0x1d0(%rsp), %rdi
callq 0xc3dc
leaq 0x230(%rsp), %rdi
callq 0xcc08
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x8008
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x8037
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x8037
cmpl $-0x2, %eax
movq %rbp, %r15
je 0x80a1
movl $0x1, %eax
xchgl %eax, 0x104ae(%rip)     # 0x184f0
leaq 0x1045f(%rip), %rdi     # 0x184a8
callq 0x46a0
movq %r15, %rdi
callq 0x104c4
movq %r15, %rdi
callq 0xe31a
movl $0x8, %esi
movq %r15, %rdi
callq 0x4400
addq $0x6a8, %rsp            # imm = 0x6A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x80(%rsp), %rdi
callq 0x48f3
jmp 0x7fe3
leaq 0xa0(%rsp), %rdi
callq 0x48cf
jmp 0x7fe3
movq %r13, %rdi
callq 0x4917
jmp 0x8037
leaq 0xb1e4(%rip), %rdi      # 0x13296
xorl %eax, %eax
callq 0x45a0
movq %rax, %r14
movq 0x210(%rsp), %rdi
cmpq %r12, %rdi
je 0x82c9
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x82c9
movq %rax, %r14
jmp 0x82ee
movq %rax, %r14
movl $0x8, %esi
movq %rbx, %rdi
jmp 0x830e
jmp 0x81f6
movq %rax, %r14
jmp 0x82c9
jmp 0x8200
movq %rax, %r14
jmp 0x81d5
jmp 0x811e
movq %rax, %r14
jmp 0x81a2
movq %rax, %r14
jmp 0x817d
movq %rax, %r14
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x8252
movq 0x190(%rsp), %rsi
jmp 0x8245
jmp 0x81f6
movq %rax, %r14
jmp 0x8293
jmp 0x815b
movq %rax, %r14
jmp 0x8277
jmp 0x824f
jmp 0x824f
movq %rax, %r14
leaq 0xc0(%rsp), %rdi
callq 0xbe58
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x81a2
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x4400
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8203
movq 0x10(%rsp), %rsi
jmp 0x81ea
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x81d5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x8203
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x8203
jmp 0x824f
movq %rax, %r14
jmp 0x82af
jmp 0x8200
movq %rax, %r14
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x8228
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x8252
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x8252
movq %rax, %r14
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x8277
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x8293
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x82af
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x1d0(%rsp), %rdi
callq 0xc3dc
leaq 0x230(%rsp), %rdi
callq 0xcc08
leaq 0x90(%rsp), %rax
movq 0x80(%rsp), %rdi
cmpq %rax, %rdi
je 0x82ee
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0xb0(%rsp), %rax
movq 0xa0(%rsp), %rdi
cmpq %rax, %rdi
je 0x8313
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x4400
movq %r14, %rdi
callq 0x46f0