// File: /workspace/github_cpp_makefile_star2_O3/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 $0x698, %rsp            # imm = 0x698
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x8(%rsp)
leaq 0x1c0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x9bfd(%rip), %rdx      # 0x12902
leaq 0x1b0(%rsp), %rbx
movq %rbx, %rdi
movq %rdx, %rsi
callq 0xd43e
movq %rbx, %rdi
movq %r15, %rsi
callq 0xdddf
movl $0x8, %edi
callq 0x43f0
movq %rax, %r12
movq %rax, %rdi
callq 0xe220
movq %r12, %rdi
movq 0x8(%rsp), %rsi
callq 0x5c9b
testl %eax, %eax
js 0x958a
leaq 0xa0(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0xd3a8
leaq 0x178(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x168(%rsp), %rdi
callq 0xd3a8
movq 0x90(%rsp), %rsi
movq %r12, %rdi
callq 0xfd48
testl %eax, %eax
je 0x95fa
leaq 0x198(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x188(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0xdddf
xorps %xmm0, %xmm0
leaq 0x240(%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 0xd4d4
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 0xcce6
leaq 0x1d0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0xce5e
leaq 0x108(%rsp), %rbx
xorl %r13d, %r13d
leaq 0x48(%rsp), %rbp
movq 0x1e0(%rsp), %rcx
movq 0x200(%rsp), %rax
cmpq %rcx, %rax
je 0x94f7
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, 0x88(%rsp)
testl %edi, %edi
jle 0x94e9
movq 0x88(%rsp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, 0x1a8(%rsp)
xorl %eax, %eax
movl %eax, 0x44(%rsp)
movq 0x1e0(%rsp), %rax
leaq 0x78(%rsp), %rcx
movq %rcx, 0x68(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0xd3a8
leaq 0x1d0(%rsp), %rdi
callq 0xd0f8
movq 0x68(%rsp), %rdx
leaq 0x290(%rsp), %r14
movq %r14, %rdi
leaq 0x9e4d(%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 0x158(%rsp), %rax
movq %rax, 0x148(%rsp)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rdi
callq 0xd3a8
leaq 0x148(%rsp), %rdi
movl $0x2, %esi
movl $0x41, %edx
movq %r12, %rcx
movq 0x8(%rsp), %r8
leaq 0x38(%rsp), %r9
callq 0x5e39
movl %eax, %r14d
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x8fd2
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x4400
testl %r14d, %r14d
js 0x942b
movq 0x38(%rsp), %rcx
movq %r12, %rdi
movq %r15, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0xfa88
testl %eax, %eax
jle 0x9406
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq %r13, 0x50(%rsp)
movb %r13b, 0x58(%rsp)
leaq 0xe8(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq %r13, 0xe0(%rsp)
movb %r13b, 0xe8(%rsp)
movq %r15, %rdi
movq %rbp, %rsi
leaq 0xd8(%rsp), %rdx
callq 0xde90
movq %rbp, %r14
movq %r12, %rbp
movq %r14, %rdi
leaq 0x9cbd(%rip), %rsi      # 0x12d0c
callq 0x40f0
movl $0x7, %r12d
testl %eax, %eax
je 0x93b3
movq %r14, %rdi
leaq 0x9c9f(%rip), %rsi      # 0x12d0b
callq 0x40f0
testl %eax, %eax
je 0x93b3
movl $0x1, %ecx
movq %r14, %rdi
leaq 0x9c84(%rip), %rsi      # 0x12d0c
movq $-0x1, %rdx
callq 0x4770
cmpq $-0x1, %rax
je 0x90f4
incq %rax
leaq 0xf8(%rsp), %r14
movq %r14, %rdi
leaq 0x48(%rsp), %rsi
movq %rax, %rdx
movq $-0x1, %rcx
callq 0x4410
movq %r14, %rdi
leaq 0x9241(%rip), %rsi      # 0x12307
callq 0x40f0
movl %eax, %r14d
movq 0xf8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x90eb
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x4400
testl %r14d, %r14d
je 0x93b3
movzbl (%r15), %eax
cmpl $0x2d, %eax
je 0x9162
cmpl $0x64, %eax
jne 0x93b0
leaq 0x10(%rsp), %r14
movq %r14, %rdi
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0xbe5a
movq %r14, %rdi
leaq 0x9d0c(%rip), %rsi      # 0x12e33
callq 0x4740
movq %rbx, %r12
movq %rbx, 0xf8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x92e4
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x92ec
movq 0xd8(%rsp), %rdi
callq 0x45f0
movl %eax, %r12d
movq %rbx, 0xf8(%rsp)
movq %r13, 0x100(%rsp)
movb %r13b, 0x108(%rsp)
movq %r13, 0x118(%rsp)
leaq 0x130(%rsp), %rax
movq %rax, 0x120(%rsp)
movq %r13, 0x128(%rsp)
movb %r13b, 0x130(%rsp)
movq %r13, 0x140(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movb %r13b, 0x20(%rsp)
movq %r13, 0x30(%rsp)
leaq 0xc0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq %r13, 0xb8(%rsp)
movb %r13b, 0xc0(%rsp)
movq %r13, 0xd0(%rsp)
leaq 0x220(%rsp), %r14
movq %r14, %rdi
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0xbe5a
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x44c0
movq 0x220(%rsp), %rdi
leaq 0x230(%rsp), %rax
cmpq %rax, %rdi
je 0x9247
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0xb0(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x4200
movq 0x1a8(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq %rax, 0x30(%rsp)
leaq 0xf8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4200
movq 0x30(%rsp), %rax
movq %rax, 0x118(%rsp)
leaq 0x120(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x4200
movq 0xd0(%rsp), %rax
movq %rax, 0x140(%rsp)
leaq 0xf8(%rsp), %rdi
callq 0xbd0f
movl %eax, %r14d
testl %eax, %eax
js 0x9357
movslq %r12d, %rax
lock
incq 0xf220(%rip)            # 0x184f8
addq %rax, 0xf251(%rip)      # 0x18530
xorl %r12d, %r12d
jmp 0x935d
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x100(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x9323
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x1d0(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0xce5e
movq 0xf8(%rsp), %rdi
cmpq %r12, %rdi
je 0x93b0
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x93b0
movl $0x8, %r12d
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x9382
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x939e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0xf8(%rsp), %rdi
callq 0xbe24
testl %r14d, %r14d
js 0x93b3
xorl %r12d, %r12d
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x93d8
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x93f4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4400
cmpl $0x8, %r12d
movq %rbp, %r12
leaq 0x48(%rsp), %rbp
jne 0x8fdb
movq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0xf9cc
movl 0xf0d7(%rip), %eax      # 0x184f0
xorl %r14d, %r14d
testl %eax, %eax
setle %r14b
shll $0x2, %r14d
jmp 0x94af
movq 0x68(%rsp), %rdx
cmpl $-0x1, %r14d
je 0x9459
movq 0x8(%rsp), %rax
movq (%rax), %rcx
leaq 0x290(%rsp), %r14
movq %r14, %rdi
leaq 0x997c(%rip), %rsi      # 0x12dcc
xorl %eax, %eax
callq 0x40a0
jmp 0x9472
leaq 0x290(%rsp), %r14
movq %r14, %rdi
leaq 0x9926(%rip), %rsi      # 0x12d91
xorl %eax, %eax
callq 0x40a0
movq %r14, %rdi
callq 0x4180
movq 0xf05f(%rip), %rcx      # 0x184e0
movl $0x1, %esi
movq %r14, %rdi
movq %rax, %rdx
callq 0x4750
movq %r14, %rdi
callq 0x4180
movq %r14, %rsi
movl $0x6, %r14d
movl $0x2, %edi
movq %rax, %rdx
callq 0x4140
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x94cb
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4400
cmpl $0x6, %r14d
movl 0x44(%rsp), %eax
je 0x94da
testl %r14d, %r14d
jne 0x94e9
incl %eax
cmpl 0x88(%rsp), %eax
jne 0x8ee0
movl 0xf001(%rip), %eax      # 0x184f0
testl %eax, %eax
jg 0x8e5c
movq %r15, %rdi
callq 0x44a0
leaq 0x1d0(%rsp), %rdi
callq 0xd18e
leaq 0x240(%rsp), %rdi
callq 0xc13c
movq 0x188(%rsp), %rdi
leaq 0x198(%rsp), %rax
cmpq %rax, %rdi
je 0x953e
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x9563
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x958f
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x958f
cmpl $-0x2, %eax
je 0x960c
movl $0x1, %eax
xchgl %eax, 0xef4e(%rip)      # 0x184e8
leaq 0xeeff(%rip), %rdi      # 0x184a0
callq 0x4690
movq %r12, %rdi
callq 0x104b6
movq %r12, %rdi
callq 0xe318
movl $0x8, %esi
movq %r12, %rdi
callq 0x4400
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x95e8
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x4400
addq $0x698, %rsp            # imm = 0x698
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x90(%rsp), %rdi
callq 0x4949
jmp 0x953e
movq 0x8(%rsp), %rdi
callq 0x496d
jmp 0x958f
jmp 0x96ab
movq %rax, %r14
jmp 0x97ad
jmp 0x962a
movq %rax, %r14
jmp 0x97ba
movq %rax, %r14
jmp 0x97df
movq %rax, %r14
jmp 0x9804
movq %rax, %r14
movl $0x8, %esi
movq %r12, %rdi
jmp 0x9824
jmp 0x9656
jmp 0x9656
movq %rax, %r14
jmp 0x9829
jmp 0x973b
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x973e
movq 0x20(%rsp), %rsi
jmp 0x969c
movq %rax, %r14
movq 0xf8(%rsp), %rdi
cmpq %r12, %rdi
je 0x973e
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x973e
jmp 0x96e8
movq %rax, %r14
jmp 0x97a0
jmp 0x9781
movq %rax, %r14
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x9784
movq 0x158(%rsp), %rsi
jmp 0x9777
jmp 0x9781
jmp 0x973b
movq %rax, %r14
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x9710
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x972c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0xf8(%rsp), %rdi
callq 0xbe24
jmp 0x973e
movq %rax, %r14
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x9763
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x9784
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4400
jmp 0x9784
movq %rax, %r14
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x97a0
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4400
leaq 0x1d0(%rsp), %rdi
callq 0xd18e
leaq 0x240(%rsp), %rdi
callq 0xc13c
leaq 0x198(%rsp), %rax
movq 0x188(%rsp), %rdi
cmpq %rax, %rdi
je 0x97df
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x9804
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x9829
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x4400
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x984e
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x4400
movq %r14, %rdi
callq 0x46e0