// File: /workspace/github_cpp_makefile_star2_O2/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 0x2648f
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x128(%rbp), %rdi
movq %rbx, %rsi
callq 0x258a2
leaq -0x98(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rbx, 0x10(%rax)
movq 0x8(%rbx), %rcx
movq %rcx, 0x18(%rax)
leaq -0xf8(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
xorl %edx, %edx
callq 0x2692a
leaq -0x78(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0x26960
leaq -0x78(%rbp), %r14
leaq -0x158(%rbp), %r15
leaq -0x48(%rbp), %r12
leaq -0xc8(%rbp), %r13
movq -0x58(%rbp), %rcx
movq -0x50(%rbp), %rax
cmpq -0xd8(%rbp), %rcx
jne 0x26289
cmpq -0xd0(%rbp), %rax
je 0x26431
movq -0x70(%rbp), %rdx
cmpq $0x1, %rdx
jne 0x262c5
movq -0x78(%rbp), %rsi
cmpb $0x2e, (%rsi)
jne 0x262c5
cmpq -0x108(%rbp), %rcx
jne 0x262ae
cmpq -0x100(%rbp), %rax
je 0x262c5
cmpq -0x88(%rbp), %rcx
jne 0x2634d
cmpq -0x80(%rbp), %rax
jne 0x2634d
cmpq $0x2, %rdx
jne 0x26342
cmpq $0x0, -0x40(%rbp)
je 0x26342
movq -0x78(%rbp), %rax
cmpb $0x2e, (%rax)
jne 0x26342
cmpb $0x2e, 0x1(%rax)
jne 0x26342
movq %r15, %rdi
movq %r12, %rsi
callq 0x25f24
movq %r13, %rdi
movq %r15, %rsi
callq 0xc660
movq %r15, %rdi
callq 0xc9a0
movq -0xc0(%rbp), %rax
testq %rax, %rax
je 0x2633a
cmpq $0x2, %rax
je 0x26328
cmpq $0x1, %rax
jne 0x2635a
movq -0xc8(%rbp), %rax
movb (%rax), %al
andb $-0x2, %al
cmpb $0x2e, %al
je 0x2633a
jmp 0x2635a
movq -0xc8(%rbp), %rax
cmpb $0x2e, (%rax)
je 0x2633a
cmpb $0x2e, 0x1(%rax)
jne 0x2635a
movq %r13, %rdi
callq 0xc9a0
movq %r12, %rdi
movq %r14, %rsi
callq 0x2558c
movq %r14, %rdi
callq 0x2652a
jmp 0x2626b
movq %r12, %rdi
callq 0x25a08
movq -0x40(%rbp), %rsi
testq %rsi, %rsi
je 0x263a1
movq -0x48(%rbp), %rax
cmpb $0x2f, -0x1(%rax,%rsi)
jne 0x263a1
movq %r12, %rdi
callq 0x25d8b
cmpq $-0x1, %rax
setne %cl
movq -0x40(%rbp), %rsi
decq %rsi
cmpq %rsi, %rax
sete %al
testb %al, %cl
jne 0x263a1
movq %r12, %rdi
pushq $-0x1
popq %rdx
callq 0xc0e0
movq %r15, %rdi
movq %r14, %rsi
callq 0x26960
cmpq $0x0, -0x40(%rbp)
jne 0x263db
movq %r15, %rdi
callq 0x2652a
movq -0x138(%rbp), %rcx
movq -0x130(%rbp), %rax
cmpq -0xd8(%rbp), %rcx
jne 0x263f0
cmpq -0xd0(%rbp), %rax
jne 0x263f0
movq %r15, %rdi
callq 0xc9a0
movq %r13, %rdi
callq 0xc9a0
jmp 0x2634d
cmpq -0x88(%rbp), %rcx
jne 0x263db
cmpq -0x80(%rbp), %rax
jne 0x263db
callq 0x2601b
leaq -0xa8(%rbp), %rdi
leaq 0x23226(%rip), %rsi     # 0x49638
callq 0x24b12
testb %al, %al
je 0x263db
callq 0x2601b
movq %r12, %rdi
leaq 0x2320e(%rip), %rsi     # 0x49638
callq 0x2558c
jmp 0x263db
leaq -0x78(%rbp), %rdi
callq 0xc9a0
cmpq $0x0, -0x40(%rbp)
jne 0x26456
callq 0x2601b
leaq 0x231eb(%rip), %rsi     # 0x49638
leaq -0x48(%rbp), %rdi
callq 0x2558c
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0xc2b0
leaq -0xf8(%rbp), %rdi
callq 0xc9a0
leaq -0xa8(%rbp), %rdi
callq 0xc9a0
leaq -0x128(%rbp), %rdi
callq 0xc9a0
leaq -0x48(%rbp), %rdi
callq 0xc9a0
movq %rbx, %rax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x264c5
movq %rax, %rbx
leaq -0x158(%rbp), %rdi
callq 0xc9a0
jmp 0x264c8
jmp 0x264d1
movq %rax, %rbx
jmp 0x26501
movq %rax, %rbx
jmp 0x26519
jmp 0x264c5
movq %rax, %rbx
leaq -0xc8(%rbp), %rdi
jmp 0x264e2
movq %rax, %rbx
jmp 0x264f5
jmp 0x264e9
movq %rax, %rbx
leaq -0x158(%rbp), %rdi
callq 0xc9a0
jmp 0x264ec
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0xc9a0
leaq -0xf8(%rbp), %rdi
callq 0xc9a0
leaq -0xa8(%rbp), %rdi
callq 0xc9a0
leaq -0x128(%rbp), %rdi
callq 0xc9a0
leaq -0x48(%rbp), %rdi
callq 0xc9a0
movq %rbx, %rdi
callq 0xc850