// File: /workspace/github_cpp_makefile_star2_O1/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 0x2b39d
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x128(%rbp), %rdi
movq %rbx, %rsi
callq 0x2a54a
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 0x2ba56
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x128(%rbp), %rsi
movq -0x120(%rbp), %rdx
addq %rsi, %rdx
leaq -0x78(%rbp), %rdi
callq 0xfa18
leaq -0x58(%rbp), %rax
movups -0x108(%rbp), %xmm0
movups %xmm0, (%rax)
leaq -0xb8(%rbp), %r15
leaq -0x78(%rbp), %r14
leaq -0x48(%rbp), %r12
movq -0x58(%rbp), %rcx
movq -0x50(%rbp), %rax
cmpq -0x138(%rbp), %rcx
jne 0x2b0ca
cmpq -0x130(%rbp), %rax
je 0x2b30f
movq -0x70(%rbp), %rdx
cmpq $0x1, %rdx
jne 0x2b109
movq -0x78(%rbp), %rsi
cmpb $0x2e, (%rsi)
jne 0x2b109
cmpq -0x108(%rbp), %rcx
jne 0x2b0ef
cmpq -0x100(%rbp), %rax
je 0x2b109
cmpq -0xd8(%rbp), %rcx
jne 0x2b302
cmpq -0xd0(%rbp), %rax
jne 0x2b302
cmpq $0x2, %rdx
jne 0x2b2f7
cmpq $0x0, -0x40(%rbp)
je 0x2b2f7
movq -0x78(%rbp), %rax
cmpb $0x2e, (%rax)
jne 0x2b2f7
cmpb $0x2e, 0x1(%rax)
jne 0x2b2f7
leaq -0xc8(%rbp), %rdi
movq %r12, %rsi
callq 0x2acce
leaq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xc8(%rbp), %rsi
movq -0xc0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x98(%rbp), %rdi
callq 0xfa18
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0x2b180
callq 0xb430
movb $0x1, %r13b
movq -0x90(%rbp), %rax
testq %rax, %rax
je 0x2b2da
cmpq $0x2, %rax
je 0x2b1ba
cmpq $0x1, %rax
jne 0x2b1d4
movq -0x98(%rbp), %rcx
movb (%rcx), %cl
andb $-0x2, %cl
cmpb $0x2e, %cl
je 0x2b2da
cmpq $0x2, %rax
jne 0x2b1d4
movq -0x98(%rbp), %rax
cmpb $0x2e, (%rax)
je 0x2b2da
cmpb $0x2e, 0x1(%rax)
je 0x2b2da
movq %r12, %rdi
callq 0x2a6ce
movq -0x40(%rbp), %rsi
testq %rsi, %rsi
je 0x2b227
movq -0x48(%rbp), %rax
cmpb $0x2f, -0x1(%rax,%rsi)
jne 0x2b227
movq %r12, %rdi
callq 0x2aafe
cmpq $-0x1, %rax
je 0x2b20a
movq -0x40(%rbp), %rcx
decq %rcx
cmpq %rcx, %rax
je 0x2b227
movq -0x40(%rbp), %rcx
movq %rcx, %rdx
subq $0x1, %rdx
jb 0x2b3b2
movq %rdx, -0x40(%rbp)
movq -0x48(%rbp), %rax
movb $0x0, (%rax,%rdx)
movq %r15, -0xc8(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
leaq -0xc8(%rbp), %rdi
callq 0xfa18
leaq -0x58(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x10(%r15)
cmpq $0x0, -0x40(%rbp)
jne 0x2b2c6
leaq -0xc8(%rbp), %rdi
callq 0x2b496
movq -0xa8(%rbp), %rcx
movq -0xa0(%rbp), %rax
cmpq -0x138(%rbp), %rcx
jne 0x2b284
cmpq -0x130(%rbp), %rax
je 0x2b2c6
cmpq -0xd8(%rbp), %rcx
jne 0x2b2c6
cmpq -0xd0(%rbp), %rax
jne 0x2b2c6
callq 0x2ade1
leaq -0xf8(%rbp), %rdi
leaq 0x21357(%rip), %rsi     # 0x4c600
callq 0x2a334
testl %eax, %eax
jne 0x2b2c6
callq 0x2ade1
movq %r12, %rdi
leaq 0x2133f(%rip), %rsi     # 0x4c600
callq 0x2a134
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0x2b2d7
callq 0xb430
xorl %r13d, %r13d
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x2b2f2
callq 0xb430
testb %r13b, %r13b
je 0x2b302
movq %r12, %rdi
movq %r14, %rsi
callq 0x2a134
movq %r14, %rdi
callq 0x2b496
jmp 0x2b0ac
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x2b321
callq 0xb430
cmpq $0x0, -0x40(%rbp)
jne 0x2b33d
callq 0x2ade1
leaq 0x212cc(%rip), %rsi     # 0x4c600
leaq -0x48(%rbp), %rdi
callq 0x2a134
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0xb290
leaq -0x148(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b35e
callq 0xb430
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x2b376
callq 0xb430
leaq -0x118(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b38b
callq 0xb430
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2b39d
callq 0xb430
movq %rbx, %rax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb512(%rip), %rdi      # 0x368cb
leaq 0xb4f7(%rip), %rsi      # 0x368b7
xorl %eax, %eax
callq 0xb6b0
jmp 0x2b3f0
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0x2b3f3
callq 0xb430
jmp 0x2b3f3
jmp 0x2b408
movq %rax, %rbx
jmp 0x2b44f
movq %rax, %rbx
jmp 0x2b47c
jmp 0x2b3f0
movq %rax, %rbx
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
jne 0x2b41e
jmp 0x2b428
movq %rax, %rbx
jmp 0x2b43a
jmp 0x2b425
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0x2b428
callq 0xb430
jmp 0x2b428
movq %rax, %rbx
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x2b43a
callq 0xb430
leaq -0x148(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b44f
callq 0xb430
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x2b467
callq 0xb430
leaq -0x118(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b47c
callq 0xb430
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2b48e
callq 0xb430
movq %rbx, %rdi
callq 0xb7f0