// File: /workspace/github_cpp_makefile_star2_O1/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 $0x68, %rsp
movq %rdx, 0x18(%rsp)
movq %rdi, 0x10(%rsp)
movq 0x8(%rsi), %r15
testq %r15, %r15
je 0x6dcea
movq (%rsi), %r12
addq %r12, %r15
movq 0x18(%rsp), %rax
movq (%rax), %rcx
leaq 0x58(%rsp), %r14
leaq 0x9bcb(%rip), %r13      # 0x77738
movq %rcx, 0x8(%rsp)
movzbl (%r12), %eax
cmpl $0x25, %eax
je 0x6dbc2
cmpl $0x2e, %eax
je 0x6dbe5
cmpl $0x5b, %eax
jne 0x6dbf0
leaq 0x1(%r12), %r14
cmpb $0x25, 0x1(%r12)
jne 0x6dc75
movq 0x18(%rsp), %rax
cmpq 0x8(%rax), %rcx
je 0x6dccd
movq (%rcx), %rsi
cmpl $0x1, 0x24(%rsi)
jne 0x6dccd
movq 0x10(%rsp), %rdi
callq 0x6dfe6
jmp 0x6dcc8
movq 0x18(%rsp), %rax
cmpq 0x8(%rax), %rcx
je 0x6dbe5
movq (%rcx), %rsi
cmpl $0x2, 0x24(%rsi)
jne 0x6dbe5
movq 0x10(%rsp), %rdi
callq 0x6dfe6
movq 0x8(%rsp), %rcx
incq %r12
movq %r12, %rbp
jmp 0x6dcde
movq %r12, %rbp
cmpq %r15, %r12
je 0x6dc16
movsbl (%rbp), %esi
movl $0x3, %edx
movq %r13, %rdi
callq 0x27650
testq %rax, %rax
jne 0x6dc16
incq %rbp
cmpq %r15, %rbp
jne 0x6dbf8
movq %r14, 0x48(%rsp)
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x2f1b2
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x6d99e
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x6dfe6
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x6dc5f
callq 0x27560
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x6dc6e
callq 0x27560
movq 0x8(%rsp), %rcx
jmp 0x6dcde
cmpq %r15, %r14
leaq 0x20(%rsp), %r12
je 0x6dc9d
xorl %esi, %esi
movb (%r14), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x6dc9f
leal (%rsi,%rsi,4), %ecx
movzbl %al, %eax
leal (%rax,%rcx,2), %esi
incq %r14
cmpq %r15, %r14
jne 0x6dc81
jmp 0x6dc9f
xorl %esi, %esi
movq %r12, %rdi
callq 0x6d960
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x6dfe6
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x6dcc8
callq 0x27560
movq 0x8(%rsp), %rcx
xorl %ebp, %ebp
cmpq %r15, %r14
setne %bpl
addq %r14, %rbp
leaq 0x58(%rsp), %r14
movq %rbp, %r12
cmpq %r15, %rbp
jne 0x6db72
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
jmp 0x6dd2e
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x6dd24
callq 0x27560
jmp 0x6dd24
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x6dd3d
callq 0x27560
jmp 0x6dd3d
movq %rax, %rbx
movq %rbx, %rdi
callq 0x27b20
nop