// File: /workspace/github_cpp_makefile_star2_O2/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 %rdi, %r14
movq (%rsi), %r15
movq 0x8(%rsi), %r12
addq %r15, %r12
movq %rdx, (%rsp)
movq (%rdx), %rax
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
leaq 0x30(%rsp), %r13
cmpq %r12, %r15
je 0x6de86
movzbl (%r15), %eax
cmpl $0x25, %eax
je 0x6ddd4
cmpl $0x2e, %eax
je 0x6dde9
movq %r15, %rbp
cmpl $0x5b, %eax
jne 0x6ddb8
leaq 0x1(%r15), %rbp
cmpb $0x25, 0x1(%r15)
jne 0x6ddee
movq %r14, %rdi
movq (%rsp), %rdx
leaq 0x8(%rsp), %rcx
pushq $0x1
popq %r8
callq 0x6ded6
jmp 0x6de26
cmpq %r12, %rbp
je 0x6de38
movzbl (%rbp), %eax
testl %eax, %eax
je 0x6de3b
cmpl $0x2e, %eax
je 0x6de3b
cmpl $0x5b, %eax
je 0x6de3b
incq %rbp
jmp 0x6ddb8
movq %r14, %rdi
movq (%rsp), %rdx
leaq 0x8(%rsp), %rcx
pushq $0x2
popq %r8
callq 0x6ded6
incq %r15
jmp 0x6dd77
xorl %esi, %esi
cmpq %r12, %rbp
je 0x6de0b
movb (%rbp), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x6de0b
imull $0xa, %esi, %ecx
movzbl %al, %esi
addl %ecx, %esi
incq %rbp
jmp 0x6ddf0
movq %r13, %rdi
callq 0x6dc00
movq %r14, %rdi
movq %r13, %rsi
callq 0x6e19e
movq %r13, %rdi
callq 0x35730
xorl %r15d, %r15d
cmpq %r12, %rbp
setne %r15b
addq %rbp, %r15
jmp 0x6dd77
movq %r12, %rbp
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x6a7f8
movq %r13, %rdi
movq %rbx, %rsi
callq 0x6dc3c
movq %r14, %rdi
movq %r13, %rsi
callq 0x6e19e
movq %r13, %rdi
callq 0x35730
movq %rbx, %rdi
callq 0x35730
movq %rbp, %r15
jmp 0x6dd77
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x35730
jmp 0x6dec5
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x35730
jmp 0x6debb
movq %rax, %rbx
jmp 0x6dec5
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x35730
movq %rbx, %rdi
callq 0x35b50
movq %rax, %rdi
callq 0x3a198
nop