// File: /workspace/github_cpp_makefile_star2_O3/zeeev[P]DASVC/bamtools/src/third_party/jsoncpp/json_value.cpp
// Function: Json::Path::makePath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<Json::PathArgument const*, std::allocator<Json::PathArgument const*>> const&)
void 
Path::makePath( const std::string &path,
                const InArgs &in )
{
   const char *current = path.c_str();
   const char *end = current + path.length();
   InArgs::const_iterator itInArg = in.begin();
   while ( current != end )
   {
      if ( *current == '[' )
      {
         ++current;
         if ( *current == '%' )
            addPathInArg( path, in, itInArg, PathArgument::kindIndex );
         else
         {
            ArrayIndex index = 0;
            for ( ; current != end && *current >= '0'  &&  *current <= '9'; ++current )
               index = index * 10 + ArrayIndex(*current - '0');
            args_.push_back( index );
         }
         if ( current == end  ||  *current++ != ']' )
            invalidPath( path, int(current - path.c_str()) );
      }
      else if ( *current == '%' )
      {
         addPathInArg( path, in, itInArg, PathArgument::kindKey );
         ++current;
      }
      else if ( *current == '.' )
      {
         ++current;
      }
      else
      {
         const char *beginName = current;
         while ( current != end  &&  !strchr( "[.", *current ) )
            ++current;
         args_.push_back( std::string( beginName, current ) );
      }
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, 0x8(%rsp)
movq %rdi, (%rsp)
movq 0x8(%rsi), %r12
testq %r12, %r12
je 0x6d723
movq (%rsi), %rbp
addq %rbp, %r12
movq 0x8(%rsp), %rax
movq (%rax), %r15
leaq 0x30(%rsp), %rbx
leaq 0x10(%rsp), %r14
movzbl (%rbp), %eax
cmpl $0x25, %eax
je 0x6d60a
cmpl $0x2e, %eax
je 0x6d627
cmpl $0x5b, %eax
jne 0x6d632
movq %rbx, %r14
leaq 0x1(%rbp), %rbx
cmpb $0x25, 0x1(%rbp)
jne 0x6d661
movq 0x8(%rsp), %rax
cmpq 0x8(%rax), %r15
je 0x6d6a6
movq (%r15), %rsi
cmpl $0x1, 0x24(%rsi)
jne 0x6d6a6
movq (%rsp), %rdi
callq 0x6d9d6
jmp 0x6d6a6
movq 0x8(%rsp), %rax
cmpq 0x8(%rax), %r15
je 0x6d627
movq (%r15), %rsi
cmpl $0x2, 0x24(%rsi)
jne 0x6d627
movq (%rsp), %rdi
callq 0x6d9d6
incq %rbp
movq %rbp, %r13
jmp 0x6d717
movq %rbp, %r13
cmpq %r12, %rbp
je 0x6d6c0
leaq 0x1(%rbp), %r13
testb %al, %al
je 0x6d6bd
movzbl %al, %eax
cmpl $0x2e, %eax
je 0x6d6bd
cmpl $0x5b, %eax
je 0x6d6bd
cmpq %r12, %r13
je 0x6d6c0
movb (%r13), %al
incq %r13
jmp 0x6d642
xorl %esi, %esi
cmpq %r12, %rbx
je 0x6d67e
movb (%rbx), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x6d67e
leal (%rsi,%rsi,4), %ecx
movzbl %al, %eax
leal (%rax,%rcx,2), %esi
incq %rbx
jmp 0x6d663
movq %r14, %rdi
callq 0x6d3b0
movq (%rsp), %rdi
movq %r14, %rsi
callq 0x6d9d6
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6d6a6
callq 0x27560
xorl %r13d, %r13d
cmpq %r12, %rbx
setne %r13b
addq %rbx, %r13
movq %r14, %rbx
leaq 0x10(%rsp), %r14
jmp 0x6d717
decq %r13
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x2f1a0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6d3ee
movq (%rsp), %rdi
movq %rbx, %rsi
callq 0x6d9d6
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6d703
callq 0x27560
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6d717
callq 0x27560
movq %r13, %rbp
cmpq %r12, %r13
jne 0x6d5bc
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
jmp 0x6d767
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6d75d
callq 0x27560
jmp 0x6d75d
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6d776
callq 0x27560
jmp 0x6d776
movq %rax, %rbx
movq %rbx, %rdi
callq 0x27b10