// File: /workspace/github_cpp_makefile_star2_O3/demon386[P]git-store/./libs/filesystem/src/path.cpp
// Function: boost::filesystem::path::m_normalize()
path& path::m_normalize()
  {
    if (m_pathname.empty()) return *this;
      
    path temp;
    iterator start(begin());
    iterator last(end());
    iterator stop(last--);
    for (iterator itr(start); itr != stop; ++itr)
    {
      // ignore "." except at start and last
      if (itr->native().size() == 1
        && (itr->native())[0] == dot
        && itr != start
        && itr != last) continue;

      // ignore a name and following ".."
      if (!temp.empty()
        && itr->native().size() == 2
        && (itr->native())[0] == dot
        && (itr->native())[1] == dot) // dot dot
      {
        string_type lf(temp.filename().native());  
        if (lf.size() > 0  
          && (lf.size() != 1
            || (lf[0] != dot
              && lf[0] != separator))
          && (lf.size() != 2 
            || (lf[0] != dot
              && lf[1] != dot
#             ifdef BOOST_WINDOWS_API
              && lf[1] != colon
#             endif
               )
             )
          )
        {
          temp.remove_filename();
          // if not root directory, must also remove "/" if any
          if (temp.m_pathname.size() > 0
            && temp.m_pathname[temp.m_pathname.size()-1]
              == separator)
          {
            string_type::size_type rds(
              root_directory_start(temp.m_pathname, temp.m_pathname.size()));
            if (rds == string_type::npos
              || rds != temp.m_pathname.size()-1) 
              { temp.m_pathname.erase(temp.m_pathname.size()-1); }
          }

          iterator next(itr);
          if (temp.empty() && ++next != stop
            && next == last && *last == detail::dot_path()) temp /= detail::dot_path();
          continue;
        }
      }

      temp /= *itr;
    };

    if (temp.empty()) temp /= detail::dot_path();
    m_pathname = temp.m_pathname;
    return *this;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
je 0x2b0c2
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x128(%rbp), %rdi
movq %rbx, %rsi
callq 0x2a24c
leaq -0xe8(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
movq %rbx, 0x10(%rcx)
movq 0x8(%rbx), %rax
movq %rax, 0x18(%rcx)
leaq -0x158(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
xorl %edx, %edx
callq 0x2b748
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x128(%rbp), %rsi
movq -0x120(%rbp), %rdx
addq %rsi, %rdx
leaq -0x78(%rbp), %rdi
callq 0xf98c
leaq -0x58(%rbp), %rax
movups -0x108(%rbp), %xmm0
movups %xmm0, (%rax)
leaq -0xb8(%rbp), %r13
leaq -0x78(%rbp), %r14
leaq -0x48(%rbp), %r15
movq -0x58(%rbp), %rcx
movq -0x50(%rbp), %rax
cmpq -0x138(%rbp), %rcx
jne 0x2ade8
cmpq -0x130(%rbp), %rax
je 0x2b034
movq -0x70(%rbp), %rdx
cmpq $0x1, %rdx
jne 0x2ae34
movq -0x78(%rbp), %rdx
cmpb $0x2e, (%rdx)
jne 0x2b01c
cmpq -0x108(%rbp), %rcx
jne 0x2ae15
cmpq -0x100(%rbp), %rax
je 0x2b01c
cmpq -0xd8(%rbp), %rcx
jne 0x2b027
cmpq -0xd0(%rbp), %rax
je 0x2b01c
jmp 0x2b027
cmpq $0x2, %rdx
jne 0x2b01c
cmpq $0x0, -0x40(%rbp)
je 0x2b01c
movq -0x78(%rbp), %rax
cmpb $0x2e, (%rax)
jne 0x2b01c
cmpb $0x2e, 0x1(%rax)
jne 0x2b01c
leaq -0xc8(%rbp), %rdi
movq %r15, %rsi
callq 0x2a9ec
leaq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xc8(%rbp), %rsi
movq -0xc0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x98(%rbp), %rdi
callq 0xf98c
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x2aeab
callq 0xb430
movb $0x1, %r12b
movq -0x90(%rbp), %rax
testq %rax, %rax
je 0x2afff
cmpq $0x2, %rax
je 0x2aede
cmpq $0x1, %rax
jne 0x2aef8
movq -0x98(%rbp), %rax
movb (%rax), %al
andb $-0x2, %al
cmpb $0x2e, %al
jne 0x2aef8
jmp 0x2afff
movq -0x98(%rbp), %rax
cmpb $0x2e, (%rax)
je 0x2afff
cmpb $0x2e, 0x1(%rax)
je 0x2afff
movq %r15, %rdi
callq 0x2a3ea
movq -0x40(%rbp), %rsi
testq %rsi, %rsi
je 0x2af4c
movq -0x48(%rbp), %rax
cmpb $0x2f, -0x1(%rax,%rsi)
jne 0x2af4c
movq %r15, %rdi
callq 0x2a81c
cmpq $-0x1, %rax
setne %sil
movq -0x40(%rbp), %rcx
leaq -0x1(%rcx), %rdx
cmpq %rdx, %rax
sete %al
testb %al, %sil
jne 0x2af4c
testq %rcx, %rcx
je 0x2b0d7
movq %rdx, -0x40(%rbp)
movq -0x48(%rbp), %rax
movb $0x0, (%rax,%rdx)
movq %r13, -0xc8(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
leaq -0xc8(%rbp), %rdi
callq 0xf98c
leaq -0x58(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x10(%r13)
cmpq $0x0, -0x40(%rbp)
jne 0x2afeb
leaq -0xc8(%rbp), %rdi
callq 0x2b1ba
movq -0xa8(%rbp), %rcx
movq -0xa0(%rbp), %rax
cmpq -0x138(%rbp), %rcx
jne 0x2afa9
cmpq -0x130(%rbp), %rax
je 0x2afeb
cmpq -0xd8(%rbp), %rcx
jne 0x2afeb
cmpq -0xd0(%rbp), %rax
jne 0x2afeb
callq 0x2aaff
leaq -0xf8(%rbp), %rdi
leaq 0x21632(%rip), %rsi     # 0x4c600
callq 0x2a038
testl %eax, %eax
jne 0x2afeb
callq 0x2aaff
movq %r15, %rdi
leaq 0x2161a(%rip), %rsi     # 0x4c600
callq 0x29e38
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x2affc
callq 0xb430
xorl %r12d, %r12d
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x2b017
callq 0xb430
testb %r12b, %r12b
je 0x2b027
movq %r15, %rdi
movq %r14, %rsi
callq 0x29e38
movq %r14, %rdi
callq 0x2b1ba
jmp 0x2adca
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x2b046
callq 0xb430
cmpq $0x0, -0x40(%rbp)
jne 0x2b062
callq 0x2aaff
leaq 0x215a7(%rip), %rsi     # 0x4c600
leaq -0x48(%rbp), %rdi
callq 0x29e38
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0xb290
leaq -0x148(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b083
callq 0xb430
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x2b09b
callq 0xb430
leaq -0x118(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b0b0
callq 0xb430
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2b0c2
callq 0xb430
movq %rbx, %rax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb7ed(%rip), %rdi      # 0x368cb
leaq 0xb7d2(%rip), %rsi      # 0x368b7
xorl %ecx, %ecx
xorl %eax, %eax
callq 0xb6b0
jmp 0x2b108
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x2b10b
callq 0xb430
jmp 0x2b10b
jmp 0x2b108
movq %rax, %rbx
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
jne 0x2b140
jmp 0x2b14c
jmp 0x2b12c
movq %rax, %rbx
jmp 0x2b173
movq %rax, %rbx
jmp 0x2b1a0
movq %rax, %rbx
jmp 0x2b15e
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x2b14c
callq 0xb430
jmp 0x2b14c
jmp 0x2b149
movq %rax, %rbx
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x2b15e
callq 0xb430
leaq -0x148(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b173
callq 0xb430
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x2b18b
callq 0xb430
leaq -0x118(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b1a0
callq 0xb430
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2b1b2
callq 0xb430
movq %rbx, %rdi
callq 0xb7f0