// File: /workspace/github_cpp_makefile_star2_O1/lianxings[P]ftp_benchmark/ftp_benchmark.cc
// Function: ftp2null_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 ftp2null_dispatcher(ftpInfo * pFtp, string ftpPath, string localPath) 
{
    // normalize directory path format
    // localDirPath is null, do not need to deal with it
    string nullStr("");
    normalize_dir_format(nullStr, ftpPath);

    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;
    }

    ftp2null_dispatcher_core(pFtp, ftpClient, ftpPath, localPath);

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x6b8, %rsp            # imm = 0x6B8
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x8(%rsp)
leaq 0x1a0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x9be4(%rip), %rdx      # 0x12902
leaq 0x190(%rsp), %rbx
movq %rbx, %rdi
movq %rdx, %rsi
callq 0xd47e
movq %rbx, %rdi
movq %r15, %rsi
callq 0xde1b
movl $0x8, %edi
callq 0x43f0
movq %rax, %r12
movq %rax, %rdi
callq 0xe240
movq %r12, %rdi
movq 0x8(%rsp), %rsi
callq 0x5cc5
testl %eax, %eax
js 0x95b4
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0xd3ee
leaq 0x178(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x168(%rsp), %rdi
callq 0xd3ee
movq 0x70(%rsp), %rsi
movq %r12, %rdi
callq 0xfd94
testl %eax, %eax
je 0x9624
leaq 0x1c0(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x1b0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xde1b
xorps %xmm0, %xmm0
leaq 0x260(%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 0xd50e
movl $0x400, %edi            # imm = 0x400
callq 0x4500
movq %rax, %r15
movq $0x0, 0x38(%rsp)
leaq 0x1d0(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
xorl %esi, %esi
callq 0xcd42
leaq 0x1d0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xceba
xorl %r13d, %r13d
leaq 0x2b0(%rsp), %r14
leaq 0xd0(%rsp), %rbp
movq 0x1e0(%rsp), %rcx
movq 0x200(%rsp), %rax
cmpq %rcx, %rax
je 0x9524
movq 0x1f0(%rsp), %rdi
movq 0x218(%rsp), %rdx
movq %rdx, %rsi
subq 0x1f8(%rsp), %rsi
shrq $0x3, %rsi
cmpq $0x1, %rdx
adcq $-0x1, %rsi
shlq $0x4, %rsi
subq 0x208(%rsp), %rax
sarq $0x5, %rax
subq %rcx, %rdi
sarq $0x5, %rdi
addq %rax, %rdi
addq %rsi, %rdi
movq %rdi, 0x68(%rsp)
testl %edi, %edi
jle 0x9516
movq 0x68(%rsp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, 0x188(%rsp)
xorl %eax, %eax
movl %eax, 0x44(%rsp)
movq 0x1e0(%rsp), %rax
leaq 0x58(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0xd3ee
leaq 0x1d0(%rsp), %rdi
callq 0xd154
movq 0x48(%rsp), %rdx
movq %r14, %rdi
leaq 0x9e4b(%rip), %rsi      # 0x12d7b
xorl %eax, %eax
callq 0x40a0
movq %r14, %rdi
callq 0x4180
movl $0x1, %edi
movq %r14, %rsi
movq %rax, %rdx
callq 0x4140
movq (%r12), %rax
movq $0x0, 0x1b0(%rax)
leaq 0xe0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0xd3ee
movq %rbp, %rdi
movl $0x2, %esi
movl $0x41, %edx
movq %r12, %rcx
movq 0x8(%rsp), %r8
leaq 0x38(%rsp), %r9
callq 0x5e4c
movl %eax, %ebp
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x8fc9
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4400
testl %ebp, %ebp
js 0x9467
movq 0x38(%rsp), %rcx
movq %r12, %rdi
movq %r15, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0xfad4
testl %eax, %eax
jle 0x9440
leaq 0xc0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq %r13, 0xb8(%rsp)
movb %r13b, 0xc0(%rsp)
leaq 0xa0(%rsp), %rax
movq %rax, 0x90(%rsp)
movq %r13, 0x98(%rsp)
movb %r13b, 0xa0(%rsp)
movq %r15, %rdi
leaq 0xb0(%rsp), %rbp
movq %rbp, %rsi
leaq 0x90(%rsp), %rdx
callq 0xdec6
movq %rbp, %rdi
leaq 0x9cb9(%rip), %rsi      # 0x12d0c
callq 0x40f0
movl $0x7, %ebx
testl %eax, %eax
je 0x93e5
movq %rbp, %rdi
leaq 0x9c9c(%rip), %rsi      # 0x12d0b
callq 0x40f0
testl %eax, %eax
je 0x93e5
movq %r12, %r14
movl $0x1, %ecx
movq %rbp, %rdi
leaq 0x9c7e(%rip), %rsi      # 0x12d0c
movq $-0x1, %rdx
callq 0x4780
movq %rax, %r12
cmpq $-0x1, %rax
je 0x90e2
movq %r15, %r13
leaq 0x1(%r12), %rdx
leaq 0x240(%rsp), %r15
movq %r15, %rdi
movq %rbp, %rsi
movq $-0x1, %rcx
callq 0x4410
movq %r15, %rdi
leaq 0x9238(%rip), %rsi      # 0x12307
callq 0x40f0
testl %eax, %eax
sete %bpl
movq %r13, %r15
xorl %r13d, %r13d
jmp 0x90e4
xorl %ebp, %ebp
cmpq $-0x1, %r12
movq %r14, %r12
je 0x9112
movq 0x240(%rsp), %rdi
leaq 0x250(%rsp), %rax
cmpq %rax, %rdi
je 0x9112
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x4400
testb %bpl, %bpl
leaq 0xb0(%rsp), %rbp
jne 0x93e5
movzbl (%r15), %eax
cmpl $0x2d, %eax
je 0x9194
cmpl $0x64, %eax
jne 0x93e3
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
movq %rbp, %rdx
callq 0xbe8e
movq %rbx, %rdi
leaq 0x9cdf(%rip), %rsi      # 0x12e33
callq 0x4750
leaq 0x128(%rsp), %rbx
movq %rbx, 0x118(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9318
movq %rdx, 0x118(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x128(%rsp)
jmp 0x931e
movq 0x90(%rsp), %rdi
callq 0x4600
movl %eax, %r12d
leaq 0x128(%rsp), %rax
movq %rax, 0x118(%rsp)
movq %r13, 0x120(%rsp)
movb %r13b, 0x128(%rsp)
movq %r13, 0x138(%rsp)
leaq 0x150(%rsp), %rax
movq %rax, 0x140(%rsp)
movq %r13, 0x148(%rsp)
movb %r13b, 0x150(%rsp)
movq %r13, 0x160(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movb %r13b, 0x20(%rsp)
movq %r13, 0x30(%rsp)
leaq 0x100(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq %r13, 0xf8(%rsp)
movb %r13b, 0x100(%rsp)
movq %r13, 0x110(%rsp)
leaq 0x220(%rsp), %rbx
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
movq %rbp, %rdx
callq 0xbe8e
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x44c0
movq 0x220(%rsp), %rdi
leaq 0x230(%rsp), %rax
cmpq %rax, %rdi
je 0x927f
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0xf0(%rsp), %rbx
movq %rbx, %rdi
leaq 0x168(%rsp), %rsi
callq 0x4200
leaq 0x10(%rsp), %rsi
movq 0x188(%rsp), %rax
movq %rax, 0x110(%rsp)
movq %rax, 0x30(%rsp)
leaq 0x118(%rsp), %rdi
callq 0x4200
movq 0x30(%rsp), %rax
movq %rax, 0x138(%rsp)
leaq 0x140(%rsp), %rdi
movq %rbx, %rsi
callq 0x4200
movq 0x110(%rsp), %rax
movq %rax, 0x160(%rsp)
leaq 0x118(%rsp), %rdi
callq 0xbd42
movl %eax, %ebp
testl %eax, %eax
js 0x9389
movslq %r12d, %rax
lock
incq 0xf1f3(%rip)            # 0x18500
addq %rax, 0xf224(%rip)      # 0x18538
xorl %ebx, %ebx
jmp 0x938e
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x120(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x9355
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x1d0(%rsp), %rdi
leaq 0x118(%rsp), %rsi
callq 0xceba
movq 0x118(%rsp), %rdi
cmpq %rbx, %rdi
je 0x93e3
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x93e3
movl $0x8, %ebx
movq %r14, %r12
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x93b6
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x93d2
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x118(%rsp), %rdi
callq 0xbe58
testl %ebp, %ebp
js 0x93e5
xorl %ebx, %ebx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x940a
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
leaq 0x2b0(%rsp), %r14
je 0x9437
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4400
cmpl $0x8, %ebx
jne 0x8fd1
movq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0xfa02
leaq 0xd0(%rsp), %rbp
movl 0xf09d(%rip), %eax      # 0x184f8
xorl %ebx, %ebx
testl %eax, %eax
setle %bl
shll $0x2, %ebx
jmp 0x94e1
movq 0x48(%rsp), %rdx
cmpl $-0x1, %ebp
je 0x948c
movq 0x8(%rsp), %rax
movq (%rax), %rcx
movq %r14, %rdi
leaq 0x9949(%rip), %rsi      # 0x12dcc
xorl %eax, %eax
callq 0x40a0
jmp 0x949d
movq %r14, %rdi
leaq 0x98fb(%rip), %rsi      # 0x12d91
xorl %eax, %eax
callq 0x40a0
leaq 0xd0(%rsp), %rbp
movq %r14, %rdi
callq 0x4180
movq 0xf034(%rip), %rcx      # 0x184e8
movl $0x1, %esi
movq %r14, %rdi
movq %rax, %rdx
callq 0x4760
movq %r14, %rdi
callq 0x4180
movl $0x6, %ebx
movl $0x2, %edi
movq %r14, %rsi
movq %rax, %rdx
callq 0x4140
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x94fd
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4400
cmpl $0x6, %ebx
movl 0x44(%rsp), %eax
je 0x950a
testl %ebx, %ebx
jne 0x9516
incl %eax
cmpl 0x68(%rsp), %eax
jne 0x8eea
movl 0xefdc(%rip), %eax      # 0x184f8
testl %eax, %eax
jg 0x8e6c
movq %r15, %rdi
callq 0x44a0
leaq 0x1d0(%rsp), %rdi
callq 0xd1e2
leaq 0x260(%rsp), %rdi
callq 0xc1b4
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x956b
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x9590
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x95b9
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x95b9
cmpl $-0x2, %eax
je 0x9633
movl $0x1, %eax
xchgl %eax, 0xef2c(%rip)      # 0x184f0
leaq 0xeedd(%rip), %rdi      # 0x184a8
callq 0x46a0
movq %r12, %rdi
callq 0x104c4
movq %r12, %rdi
callq 0xe31a
movl $0x8, %esi
movq %r12, %rdi
callq 0x4400
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x9612
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x4400
addq $0x6b8, %rsp            # imm = 0x6B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x70(%rsp), %rdi
callq 0x4959
jmp 0x956b
movq 0x8(%rsp), %rdi
callq 0x497d
jmp 0x95b9
jmp 0x96d5
movq %rax, %r14
jmp 0x97e0
jmp 0x9651
movq %rax, %r14
jmp 0x97ed
movq %rax, %r14
jmp 0x9812
movq %rax, %r14
jmp 0x9837
movq %rax, %r14
movl $0x8, %esi
movq %r12, %rdi
jmp 0x9854
jmp 0x967d
jmp 0x967d
movq %rax, %r14
jmp 0x9859
jmp 0x9712
jmp 0x9765
movq %rax, %r14
movq 0x118(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9768
movq 0x128(%rsp), %rsi
jmp 0x96c8
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x9768
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x9768
movq %rax, %r14
jmp 0x97d3
jmp 0x97b4
movq %rax, %r14
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x97b7
movq 0xe0(%rsp), %rsi
jmp 0x97aa
jmp 0x97b4
jmp 0x9765
movq %rax, %r14
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x973a
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x9756
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x118(%rsp), %rdi
callq 0xbe58
jmp 0x9768
movq %rax, %r14
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x978d
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x97b7
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x97b7
movq %rax, %r14
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x97d3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x1d0(%rsp), %rdi
callq 0xd1e2
leaq 0x260(%rsp), %rdi
callq 0xc1b4
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x9812
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x9837
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x9859
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x987e
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x4400
movq %r14, %rdi
callq 0x46f0