// File: /workspace/github_cpp_makefile_star2_O1/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), %rbx
testq %rbx, %rbx
je 0x16c05
movq (%rsi), %r12
addq %r12, %rbx
movq -0x40(%rbp), %rax
movq (%rax), %r15
leaq -0x68(%rbp), %rdx
leaq 0x53612(%rip), %r14     # 0x6a05a
movzbl (%r12), %eax
cmpl $0x5a, %eax
jg 0x16a66
cmpl $0x25, %eax
je 0x16b24
cmpl $0x2e, %eax
je 0x16b48
jmp 0x16a78
cmpl $0x5b, %eax
je 0x16b53
cmpl $0x5d, %eax
je 0x16b48
movq %r12, %r13
cmpq %rbx, %r12
je 0x16a9f
movsbl (%r13), %esi
movl $0x3, %edx
movq %r14, %rdi
callq 0x86c0
testq %rax, %rax
jne 0x16a9f
incq %r13
cmpq %rbx, %r13
jne 0x16a80
leaq -0x78(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq -0x88(%rbp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1126a
movq -0x88(%rbp), %rsi
leaq -0x68(%rbp), %r14
movq %r14, %rdi
leaq -0x29(%rbp), %rdx
callq 0x8260
leaq -0x58(%rbp), %r12
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rdi
movq %r14, %rsi
callq 0x180ae
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
leaq 0x5355b(%rip), %r14     # 0x6a05a
je 0x16b06
callq 0x85d0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x16b1b
callq 0x85d0
leaq -0x68(%rbp), %rdx
jmp 0x16bf9
movq -0x40(%rbp), %rax
cmpq 0x8(%rax), %r15
je 0x16b48
movq (%r15), %rsi
cmpl $0x2, 0x24(%rsi)
jne 0x16b48
addq $0x8, %r15
movq -0x38(%rbp), %rdi
callq 0x171d0
leaq -0x68(%rbp), %rdx
incq %r12
movq %r12, %r13
jmp 0x16bf9
leaq 0x1(%r12), %r14
cmpb $0x25, 0x1(%r12)
jne 0x16b82
movq -0x40(%rbp), %rax
cmpq 0x8(%rax), %r15
je 0x16be5
movq (%r15), %rsi
cmpl $0x1, 0x24(%rsi)
jne 0x16be5
addq $0x8, %r15
movq -0x38(%rbp), %rdi
callq 0x171d0
jmp 0x16be1
cmpq %rbx, %r14
leaq -0x58(%rbp), %r12
je 0x16bab
xorl %eax, %eax
movb (%r14), %cl
addb $-0x30, %cl
cmpb $0x9, %cl
ja 0x16bad
leal (%rax,%rax,4), %eax
movzbl %cl, %ecx
leal (%rcx,%rax,2), %eax
incq %r14
cmpq %rbx, %r14
jne 0x16b8d
jmp 0x16bad
xorl %eax, %eax
movq %r12, -0x68(%rbp)
movq $0x0, -0x60(%rbp)
movb $0x0, -0x58(%rbp)
movl %eax, -0x48(%rbp)
movl $0x1, -0x44(%rbp)
movq -0x38(%rbp), %rdi
movq %rdx, %rsi
callq 0x180ae
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x16be1
callq 0x85d0
leaq -0x68(%rbp), %rdx
xorl %r13d, %r13d
cmpq %rbx, %r14
setne %r13b
addq %r14, %r13
leaq 0x53461(%rip), %r14     # 0x6a05a
movq %r13, %r12
cmpq %rbx, %r13
jne 0x16a48
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
jne 0x16c48
jmp 0x16c52
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x16c38
callq 0x85d0
jmp 0x16c38
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x16c52
callq 0x85d0
jmp 0x16c52
movq %rax, %rbx
movq %rbx, %rdi
callq 0x8b40