// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Json/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 JSONCPP_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 == ']') {
      ++current;
    } else {
      const char* beginName = current;
      while (current != end && !strchr("[.", *current))
        ++current;
      args_.push_back(JSONCPP_STRING(beginName, current));
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, -0x40(%rbp)
movq %rdi, -0x38(%rbp)
movq 0x8(%rsi), %r12
testq %r12, %r12
je 0x1666a
movq (%rsi), %r13
addq %r13, %r12
movq -0x40(%rbp), %rax
movq (%rax), %rbx
movb (%r13), %al
movzbl %al, %ecx
cmpl $0x5a, %ecx
jg 0x164bb
cmpl $0x25, %ecx
je 0x16503
cmpl $0x2e, %ecx
je 0x16523
jmp 0x164c5
cmpl $0x5b, %ecx
je 0x1652e
cmpl $0x5d, %ecx
je 0x16523
movq %r13, %r15
cmpq %r12, %r13
je 0x165a1
leaq 0x1(%r13), %r15
testb %al, %al
je 0x1659e
movzbl %al, %eax
cmpl $0x2e, %eax
je 0x1659e
cmpl $0x5b, %eax
je 0x1659e
cmpq %r12, %r15
je 0x165a1
movb (%r15), %al
incq %r15
jmp 0x164d5
movq -0x40(%rbp), %rax
cmpq 0x8(%rax), %rbx
je 0x16523
movq (%rbx), %rsi
cmpl $0x2, 0x24(%rsi)
jne 0x16523
addq $0x8, %rbx
movq -0x38(%rbp), %rdi
callq 0x16ba4
incq %r13
movq %r13, %r15
jmp 0x1665e
leaq 0x1(%r13), %r14
cmpb $0x25, 0x1(%r13)
jne 0x16566
movq -0x40(%rbp), %rax
cmpq 0x8(%rax), %rbx
je 0x16651
movq (%rbx), %rsi
cmpl $0x1, 0x24(%rsi)
jne 0x16651
addq $0x8, %rbx
movq -0x38(%rbp), %rdi
callq 0x16ba4
jmp 0x16651
cmpq %r12, %r14
leaq -0x58(%rbp), %r15
leaq -0x68(%rbp), %rsi
je 0x1661e
xorl %eax, %eax
movb (%r14), %cl
addb $-0x30, %cl
cmpb $0x9, %cl
ja 0x16620
leal (%rax,%rax,4), %eax
movzbl %cl, %ecx
leal (%rcx,%rax,2), %eax
incq %r14
cmpq %r12, %r14
jne 0x16579
jmp 0x16620
decq %r15
movq %rbx, %r14
leaq -0x78(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq -0x88(%rbp), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x1100a
movq -0x88(%rbp), %rsi
leaq -0x68(%rbp), %rbx
movq %rbx, %rdi
leaq -0x29(%rbp), %rdx
callq 0x8260
leaq -0x58(%rbp), %r13
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
callq 0x17a6e
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
movq %r14, %rbx
je 0x16607
callq 0x85d0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x1665e
callq 0x85d0
jmp 0x1665e
xorl %eax, %eax
movq %r15, -0x68(%rbp)
movq $0x0, -0x60(%rbp)
movb $0x0, -0x58(%rbp)
movl %eax, -0x48(%rbp)
movl $0x1, -0x44(%rbp)
movq -0x38(%rbp), %rdi
callq 0x17a6e
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x16651
callq 0x85d0
xorl %r15d, %r15d
cmpq %r12, %r14
setne %r15b
addq %r14, %r15
movq %r15, %r13
cmpq %r12, %r15
jne 0x164a3
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
jne 0x166ad
jmp 0x166b7
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x1669d
callq 0x85d0
jmp 0x1669d
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x166b7
callq 0x85d0
jmp 0x166b7
movq %rax, %rbx
movq %rbx, %rdi
callq 0x8b30
nop