// File: /workspace/github_cpp_makefile_star2_O2/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, %rbx
movq %rsi, %r14
movq %rdi, (%rsp)
leaq 0x91aa(%rip), %rsi      # 0x108f2
leaq 0x190(%rsp), %r15
leaq 0x290(%rsp), %rdx
movq %r15, %rdi
callq 0x9dca
movq %r15, %rdi
movq %r14, %rsi
callq 0xbe13
pushq $0x8
popq %rdi
callq 0x43e0
movq %rax, %r13
movq %rax, %rdi
callq 0xc110
movq %r13, %rdi
movq (%rsp), %rsi
callq 0x54b6
testl %eax, %eax
js 0x7cbb
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x4510
leaq 0x100(%rsp), %rdi
movq %rbx, %rsi
callq 0x4510
movq 0x50(%rsp), %rsi
movq %r13, %rdi
callq 0xdace
testl %eax, %eax
je 0x7d0f
leaq 0x9127(%rip), %rsi      # 0x108f2
leaq 0x170(%rsp), %rdi
leaq 0x290(%rsp), %rdx
callq 0x9dca
leaq 0x170(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xbe13
leaq 0x220(%rsp), %rdi
callq 0x9ce4
movl $0x400, %edi            # imm = 0x400
callq 0x44f0
movq %rax, 0x8(%rsp)
andq $0x0, 0x10(%rsp)
leaq 0x120(%rsp), %rdi
callq 0xae50
leaq 0x120(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xb078
leaq 0x290(%rsp), %r12
leaq 0x90(%rsp), %rbx
leaq 0x90a8(%rip), %r15      # 0x108f2
leaq 0x1d0(%rsp), %r14
leaq 0x1b0(%rsp), %rbp
movq 0x150(%rsp), %rax
cmpq 0x130(%rsp), %rax
je 0x7c71
leaq 0x120(%rsp), %rdi
callq 0xb156
cltq
xorl %ecx, %ecx
testl %eax, %eax
movl $0x0, %edx
movq %rax, 0x48(%rsp)
cmovgl %eax, %edx
movl %edx, 0x1c(%rsp)
cmpl 0x1c(%rsp), %ecx
je 0x7c63
movl %ecx, 0x24(%rsp)
movq 0x130(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x4510
leaq 0x120(%rsp), %rdi
callq 0xb2ee
movq 0x28(%rsp), %rdx
movq %r12, %rdi
leaq 0x949b(%rip), %rsi      # 0x10d6b
xorl %eax, %eax
callq 0x4090
movq %r12, %rdi
callq 0x4160
pushq $0x1
popq %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x4120
movq (%r13), %rax
andq $0x0, 0x1b0(%rax)
movq %rbx, %rdi
leaq 0x28(%rsp), %rsi
callq 0x4510
movq %rbx, %rdi
pushq $0x2
popq %rsi
pushq $0x41
popq %rdx
movq %r13, %rcx
movq (%rsp), %r8
leaq 0x10(%rsp), %r9
callq 0x55ec
movq %rbx, %rdi
movl %eax, %ebx
callq 0x4170
testl %ebx, %ebx
js 0x7bd4
movq 0x10(%rsp), %rcx
movq %r13, %rdi
movq 0x8(%rsp), %rsi
movl $0x400, %edx            # imm = 0x400
callq 0xd81e
testl %eax, %eax
jle 0x7bb0
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x9dca
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x9dca
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0xbea8
movq %rbp, %r15
movq %r13, %r12
movq %rbx, %rdi
leaq 0x936a(%rip), %rsi      # 0x10cfc
callq 0x40e0
pushq $0x7
popq %rbp
testl %eax, %eax
je 0x7b82
movq %rbx, %rdi
leaq 0x934f(%rip), %rsi      # 0x10cfb
callq 0x40e0
pushq $0x7
popq %rbp
testl %eax, %eax
je 0x7b82
movq %rbx, %rdi
leaq 0x9336(%rip), %rsi      # 0x10cfc
pushq $-0x1
popq %rdx
callq 0x4380
cmpq $-0x1, %rax
je 0x7a14
incq %rax
movq %r14, %r13
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
pushq $-0x1
popq %rcx
callq 0x4400
movq %r13, %rdi
leaq 0x8902(%rip), %rsi      # 0x102f7
callq 0x40e0
movl %eax, %ebx
movq %r13, %rdi
callq 0x4170
pushq $0x7
popq %rbp
testl %ebx, %ebx
leaq 0x70(%rsp), %rbx
je 0x7b82
movq 0x8(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x2d, %eax
je 0x7a7c
cmpl $0x64, %eax
jne 0x7b80
leaq 0xd8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x28(%rsp), %rsi
movq %rbx, %rdx
callq 0x9e8b
movq %r14, %r13
movq %r14, %rdi
movq %rbp, %rsi
leaq 0x93d1(%rip), %rdx      # 0x10e23
callq 0x9e6c
movq %rbp, %rdi
callq 0x4170
leaq 0x120(%rsp), %rdi
movq %r13, %rsi
callq 0xb078
movq %r13, %rdi
callq 0x4170
jmp 0x7b80
movq 0x1b0(%rsp), %rdi
callq 0x45c0
movl %eax, 0x20(%rsp)
movq %r14, %r13
movq %r14, %rdi
callq 0x9d06
leaq 0xd8(%rsp), %rbp
movq %rbp, %rdi
callq 0x9d36
leaq 0xb0(%rsp), %rdi
callq 0x9d36
leaq 0x270(%rsp), %rbx
movq %rbx, %rdi
leaq 0x28(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x9e8b
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x44a0
movq %rbx, %rdi
callq 0x4170
leaq 0xb0(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x4200
movq 0x48(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq %rax, 0xf8(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x9d5a
leaq 0x1f8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x9d5a
movq %r13, %rdi
callq 0x9c33
movl %eax, %r13d
pushq $0x8
popq %rbp
testl %eax, %eax
js 0x7b54
movslq 0x20(%rsp), %rax
lock
incq 0xf99d(%rip)            # 0x174e8
addq %rax, 0xf9ce(%rip)      # 0x17520
xorl %ebp, %ebp
leaq 0xb0(%rsp), %rdi
callq 0x4170
leaq 0xd8(%rsp), %rdi
callq 0x4170
movq %r14, %rdi
callq 0x9db4
testl %r13d, %r13d
leaq 0x70(%rsp), %rbx
js 0x7b82
xorl %ebp, %ebp
movq %r15, %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x4170
cmpl $0x8, %ebp
movq %r15, %rbp
movq %r12, %r13
leaq 0x290(%rsp), %r12
leaq 0x8d48(%rip), %r15      # 0x108f2
jne 0x7932
movq 0x10(%rsp), %rsi
movq %r13, %rdi
callq 0xd740
leaq 0x90(%rsp), %rbx
movl 0xf915(%rip), %eax      # 0x174e0
testl %eax, %eax
jg 0x7c44
jmp 0x7c59
movq 0x28(%rsp), %rdx
cmpl $-0x1, %ebx
je 0x7bf8
movq (%rsp), %rax
movq (%rax), %rcx
movq %r12, %rdi
leaq 0x91cd(%rip), %rsi      # 0x10dbc
xorl %eax, %eax
callq 0x4090
jmp 0x7c09
movq %r12, %rdi
leaq 0x917f(%rip), %rsi      # 0x10d81
xorl %eax, %eax
callq 0x4090
leaq 0x90(%rsp), %rbx
movq %r12, %rdi
callq 0x4160
movq 0xf8b0(%rip), %rcx      # 0x174d0
movq %r12, %rdi
pushq $0x1
popq %rsi
movq %rax, %rdx
callq 0x4720
movq %r12, %rdi
callq 0x4160
pushq $0x2
popq %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x4120
leaq 0x28(%rsp), %rdi
callq 0x4170
movl 0x24(%rsp), %ecx
incl %ecx
jmp 0x7894
leaq 0x28(%rsp), %rdi
callq 0x4170
movl 0xf877(%rip), %eax      # 0x174e0
testl %eax, %eax
jg 0x785a
movq 0x8(%rsp), %rdi
callq 0x4480
leaq 0x120(%rsp), %rdi
callq 0xb358
leaq 0x220(%rsp), %rdi
callq 0xa1c8
leaq 0x170(%rsp), %rdi
callq 0x4170
leaq 0x100(%rsp), %rdi
callq 0x4170
leaq 0x50(%rsp), %rdi
callq 0x4170
jmp 0x7cc0
cmpl $-0x2, %eax
je 0x7d31
pushq $0x1
popq %rax
xchgl %eax, 0xf80f(%rip)      # 0x174d8
leaq 0xf7c0(%rip), %rdi      # 0x17490
callq 0x4660
movq %r13, %rdi
callq 0xe196
movq %r13, %rdi
callq 0xc1c4
pushq $0x8
popq %rsi
movq %r13, %rdi
callq 0x43f0
leaq 0x190(%rsp), %rdi
callq 0x4170
addq $0x698, %rsp            # imm = 0x698
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xf2b2(%rip), %rax      # 0x16fc8
movq (%rax), %rdi
movq 0x50(%rsp), %rdx
leaq 0x8f7e(%rip), %rsi      # 0x10ca3
xorl %eax, %eax
callq 0x4530
jmp 0x7ca2
movq 0xf290(%rip), %rax      # 0x16fc8
movq (%rax), %rdi
movq (%rsp), %rax
movq (%rax), %rdx
leaq 0x9090(%rip), %rsi      # 0x10dd9
xorl %eax, %eax
callq 0x4530
jmp 0x7cc0
jmp 0x7dd4
movq %rax, %r14
jmp 0x7e48
jmp 0x7d61
movq %rax, %r14
jmp 0x7e55
movq %rax, %r14
jmp 0x7e6f
movq %rax, %r14
pushq $0x8
popq %rsi
movq %r13, %rdi
callq 0x43f0
jmp 0x7e79
jmp 0x7d90
jmp 0x7d90
movq %rax, %r14
jmp 0x7e62
movq %rax, %r14
jmp 0x7e79
jmp 0x7ddf
jmp 0x7e10
jmp 0x7e10
movq %rax, %r14
jmp 0x7dfc
movq %rax, %r14
leaq 0xd8(%rsp), %rdi
jmp 0x7dbb
movq %rax, %r14
leaq 0x1d0(%rsp), %rdi
callq 0x4170
jmp 0x7e13
movq %rax, %r14
jmp 0x7def
movq %rax, %r14
leaq 0x90(%rsp), %rdi
jmp 0x7e25
movq %rax, %r14
jmp 0x7e3b
jmp 0x7e2e
jmp 0x7e2e
jmp 0x7e10
movq %rax, %r14
leaq 0xb0(%rsp), %rdi
callq 0x4170
leaq 0xd8(%rsp), %rdi
callq 0x4170
leaq 0x1d0(%rsp), %rdi
callq 0x9db4
jmp 0x7e13
movq %rax, %r14
jmp 0x7e20
movq %rax, %r14
leaq 0x1b0(%rsp), %rdi
callq 0x4170
leaq 0x70(%rsp), %rdi
callq 0x4170
jmp 0x7e31
jmp 0x7e2e
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x4170
leaq 0x120(%rsp), %rdi
callq 0xb358
leaq 0x220(%rsp), %rdi
callq 0xa1c8
leaq 0x170(%rsp), %rdi
callq 0x4170
leaq 0x100(%rsp), %rdi
callq 0x4170
leaq 0x50(%rsp), %rdi
callq 0x4170
leaq 0x190(%rsp), %rdi
callq 0x4170
movq %r14, %rdi
callq 0x46a0