// File: coolsuperman[P]ShareCataLogServer/upload.cc
// Function: Upload::InitUpload()
bool InitUpload(){//初始化boundry信息；
      umask(0);
      std::string len=getenv("Content-Length");
      std::cerr<<"~Content-Length:"<<len<<std::endl;
      if(len.size()==0){
        fprintf(stderr,"Have No Content-Length!!\n");
        return false;
      }
      content_len = Tools::StrToDigit(len);
      std::string type=getenv("Content-Type");
      if(type.size()==0){
        fprintf(stderr,"Have No Content-Type!!\n");
        return false;
      }
      std::string boundry_sep="boundary=";
      size_t pos = type.find(boundry_sep);
      if(pos==std::string::npos){
        fprintf(stderr,"content type have no boundry!!\n");
        return false;
      }
      std::string boundry=type.substr(pos+boundry_sep.size());
      _f_boundry="--"+boundry;
      _m_boundry="\r\n"+_f_boundry+"\r\n";
      _l_boundry="\r\n"+_f_boundry+"--";
      return true;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1d0, %rsp            # imm = 0x1D0
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x178(%rbp)
xorl %edi, %edi
callq 0x23e0
leaq 0x3935(%rip), %rdi      # 0x719d
callq 0x2280
movq %rax, -0x170(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x23d0
movq -0x170(%rbp), %rsi
movq -0x168(%rbp), %rdx
leaq -0x30(%rbp), %rdi
callq 0x22e0
jmp 0x389d
leaq -0x31(%rbp), %rdi
callq 0x2260
movq 0x7743(%rip), %rdi      # 0xaff0
leaq 0x38f8(%rip), %rsi      # 0x71ac
callq 0x2220
movq %rax, -0x180(%rbp)
jmp 0x38c2
movq -0x180(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x21f0
movq %rax, -0x188(%rbp)
jmp 0x38db
movq -0x188(%rbp), %rdi
movq 0x76c7(%rip), %rsi      # 0xafb0
callq 0x2250
jmp 0x38f0
leaq -0x30(%rbp), %rdi
callq 0x2170
cmpq $0x0, %rax
jne 0x3952
movq 0x76ca(%rip), %rax      # 0xafd0
movq (%rax), %rdi
leaq 0x38ad(%rip), %rsi      # 0x71bd
movb $0x0, %al
callq 0x2310
movb $0x0, -0x1(%rbp)
movl $0x1, -0x48(%rbp)
jmp 0x3cba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x31(%rbp), %rdi
callq 0x2260
jmp 0x3cda
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x3cd1
leaq -0x30(%rbp), %rdi
callq 0x4770
movq %rax, -0x190(%rbp)
jmp 0x3964
movq -0x178(%rbp), %rax
movq -0x190(%rbp), %rcx
movq %rcx, (%rax)
leaq 0x385b(%rip), %rdi      # 0x71d7
callq 0x2280
movq %rax, -0x1a0(%rbp)
leaq -0x69(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0x23d0
movq -0x1a0(%rbp), %rsi
movq -0x198(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x22e0
jmp 0x39b1
leaq -0x69(%rbp), %rdi
callq 0x2260
leaq -0x68(%rbp), %rdi
callq 0x2170
cmpq $0x0, %rax
jne 0x3a0b
movq 0x7600(%rip), %rax      # 0xafd0
movq (%rax), %rdi
leaq 0x380a(%rip), %rsi      # 0x71e4
movb $0x0, %al
callq 0x2310
movb $0x0, -0x1(%rbp)
movl $0x1, -0x48(%rbp)
jmp 0x3ca4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x69(%rbp), %rdi
callq 0x2260
jmp 0x3cd1
leaq -0x91(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
callq 0x23d0
movq -0x1a8(%rbp), %rdx
leaq 0x37d0(%rip), %rsi      # 0x71fc
leaq -0x90(%rbp), %rdi
callq 0x22e0
jmp 0x3a3a
leaq -0x91(%rbp), %rdi
callq 0x2260
leaq -0x68(%rbp), %rdi
leaq -0x90(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x2440
movq %rax, -0xa0(%rbp)
cmpq $-0x1, -0xa0(%rbp)
jne 0x3ab0
movq 0x755e(%rip), %rax      # 0xafd0
movq (%rax), %rdi
leaq 0x378a(%rip), %rsi      # 0x7206
movb $0x0, %al
callq 0x2310
movb $0x0, -0x1(%rbp)
movl $0x1, -0x48(%rbp)
jmp 0x3c88
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x91(%rbp), %rdi
callq 0x2260
jmp 0x3caf
movq -0xa0(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x2170
movq -0x1b0(%rbp), %rdx
addq %rax, %rdx
leaq -0xc0(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movq $-0x1, %rcx
callq 0x2240
jmp 0x3aed
leaq 0x3732(%rip), %rsi      # 0x7226
leaq -0xe0(%rbp), %rdi
leaq -0xc0(%rbp), %rdx
callq 0x4800
jmp 0x3b09
movq -0x178(%rbp), %rdi
addq $0x30, %rdi
movq %rdi, -0x1b8(%rbp)
leaq -0xe0(%rbp), %rsi
movq %rsi, -0x1c0(%rbp)
callq 0x2290
movq -0x1c0(%rbp), %rdi
callq 0x2458
movq -0x1b8(%rbp), %rdx
leaq 0x375b(%rip), %rsi      # 0x72a3
leaq -0x120(%rbp), %rdi
callq 0x4800
jmp 0x3b56
leaq 0x3746(%rip), %rdx      # 0x72a3
leaq -0x100(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x4910
jmp 0x3b72
movq -0x178(%rbp), %rdi
addq $0x50, %rdi
leaq -0x100(%rbp), %rsi
movq %rsi, -0x1c8(%rbp)
callq 0x2290
movq -0x1c8(%rbp), %rdi
callq 0x2458
leaq -0x120(%rbp), %rdi
callq 0x2458
movq -0x178(%rbp), %rdx
addq $0x30, %rdx
leaq 0x36e9(%rip), %rsi      # 0x72a3
leaq -0x160(%rbp), %rdi
callq 0x4800
jmp 0x3bc8
leaq 0x3657(%rip), %rdx      # 0x7226
leaq -0x140(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x4910
jmp 0x3be4
movq -0x178(%rbp), %rdi
addq $0x70, %rdi
leaq -0x140(%rbp), %rsi
callq 0x2290
leaq -0x140(%rbp), %rdi
callq 0x2458
leaq -0x160(%rbp), %rdi
callq 0x2458
movb $0x1, -0x1(%rbp)
movl $0x1, -0x48(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x2458
jmp 0x3c88
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x3c96
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x3c7a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x2458
jmp 0x3c7a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x160(%rbp), %rdi
callq 0x2458
leaq -0xc0(%rbp), %rdi
callq 0x2458
jmp 0x3c96
leaq -0x90(%rbp), %rdi
callq 0x2458
jmp 0x3ca4
leaq -0x90(%rbp), %rdi
callq 0x2458
jmp 0x3caf
leaq -0x68(%rbp), %rdi
callq 0x2458
jmp 0x3cba
leaq -0x68(%rbp), %rdi
callq 0x2458
jmp 0x3cd1
leaq -0x30(%rbp), %rdi
callq 0x2458
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbp
retq
leaq -0x30(%rbp), %rdi
callq 0x2458
movq -0x40(%rbp), %rdi
callq 0x23c0
nopw %cs:(%rax,%rax)
nopl (%rax)