// File: /workspace/github_cpp_makefile_star2_O2/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 %rdi, -0x30(%rbp)
movq (%rsi), %r12
movq 0x8(%rsi), %rbx
addq %r12, %rbx
movq %rdx, -0x38(%rbp)
movq (%rdx), %rax
leaq -0x40(%rbp), %rcx
movq %rax, (%rcx)
leaq -0x68(%rbp), %r13
cmpq %rbx, %r12
je 0x14660
movzbl (%r12), %eax
cmpl $0x25, %eax
je 0x1458d
cmpl $0x2e, %eax
je 0x145a2
cmpl $0x5b, %eax
je 0x14569
movq %r12, %r15
cmpl $0x5d, %eax
je 0x145a2
jmp 0x14541
incq %r15
cmpq %rbx, %r15
je 0x1460a
movzbl (%r15), %eax
testl %eax, %eax
je 0x1460d
cmpl $0x2e, %eax
je 0x1460d
cmpl $0x5b, %eax
jne 0x1453e
jmp 0x1460d
leaq 0x1(%r12), %r15
cmpb $0x25, 0x1(%r12)
jne 0x145aa
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rdx
leaq -0x40(%rbp), %rcx
pushq $0x1
popq %r8
callq 0x146a2
jmp 0x145f8
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rdx
leaq -0x40(%rbp), %rcx
pushq $0x2
popq %r8
callq 0x146a2
incq %r12
jmp 0x14517
xorl %eax, %eax
cmpq %rbx, %r15
je 0x145c9
movb (%r15), %cl
addb $-0x30, %cl
cmpb $0x9, %cl
ja 0x145c9
imull $0xa, %eax, %edx
movzbl %cl, %eax
addl %edx, %eax
incq %r15
jmp 0x145ac
leaq -0x58(%rbp), %rcx
movq %rcx, -0x68(%rbp)
andq $0x0, -0x60(%rbp)
movb $0x0, -0x58(%rbp)
movl %eax, -0x48(%rbp)
movl $0x1, -0x44(%rbp)
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq 0x15ada
movq %r13, %rdi
callq 0x82c0
xorl %r12d, %r12d
cmpq %rbx, %r15
setne %r12b
addq %r15, %r12
jmp 0x14517
movq %rbx, %r15
leaq -0x78(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq -0x88(%rbp), %r14
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xfbe0
leaq -0x68(%rbp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x143d6
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq 0x15ada
movq %r13, %rdi
callq 0x82c0
movq %r14, %rdi
callq 0x82c0
movq %r15, %r12
jmp 0x14517
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
jmp 0x14690
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x82c0
jmp 0x14689
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x82c0
jmp 0x1469a
movq %rax, %rbx
movq %rbx, %rdi
callq 0x8b30