// File: /workspace/github_cpp_makefile_star2_O2/tomfunkhouser[P]gaps/pkgs/RNBasics/json.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 0x10(%rsp), %r13
cmpq %r12, %r15
je 0x76c5b
movzbl (%r15), %eax
cmpl $0x25, %eax
je 0x76b8b
cmpl $0x2e, %eax
je 0x76ba0
movq %r15, %rbp
cmpl $0x5b, %eax
jne 0x76b5f
leaq 0x1(%r15), %rbp
cmpb $0x25, 0x1(%r15)
jne 0x76ba8
movq %r14, %rdi
movq (%rsp), %rdx
leaq 0x8(%rsp), %rcx
pushq $0x1
popq %r8
callq 0x76c9e
jmp 0x76bfb
cmpq %r12, %rbp
je 0x76c0d
movzbl (%rbp), %eax
testl %eax, %eax
je 0x76c10
cmpl $0x2e, %eax
je 0x76c10
cmpl $0x5b, %eax
je 0x76c10
incq %rbp
jmp 0x76b5f
movq %r14, %rdi
movq (%rsp), %rdx
leaq 0x8(%rsp), %rcx
pushq $0x2
popq %r8
callq 0x76c9e
incq %r15
jmp 0x76b1b
xorl %eax, %eax
cmpq %r12, %rbp
je 0x76bc7
movb (%rbp), %cl
addb $-0x30, %cl
cmpb $0x9, %cl
ja 0x76bc7
imull $0xa, %eax, %edx
movzbl %cl, %eax
addl %edx, %eax
incq %rbp
jmp 0x76baa
leaq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movl %eax, 0x30(%rsp)
movl $0x1, 0x34(%rsp)
movq %r14, %rdi
movq %r13, %rsi
callq 0x7d0da
movq %r13, %rdi
callq 0x11270
xorl %r15d, %r15d
cmpq %r12, %rbp
setne %r15b
addq %rbp, %r15
jmp 0x76b1b
movq %r12, %rbp
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x199fe
movq %r13, %rdi
movq %rbx, %rsi
callq 0x769e4
movq %r14, %rdi
movq %r13, %rsi
callq 0x7d0da
movq %r13, %rdi
callq 0x11270
movq %rbx, %rdi
callq 0x11270
movq %rbp, %r15
jmp 0x76b1b
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x76c8b
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x11270
jmp 0x76c86
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x11270
jmp 0x76c95
movq %rax, %rbx
movq %rbx, %rdi
callq 0x11a80
nop