// File: mattn[P]minijson/./minijson.h
// Function: minijson::error minijson::parse_string<char const*>(char const*&, minijson::value&)
inline error
parse_string(Iter& i, value& v) {
  if (*i != '"') return invalid_token_error;

  char t = *i++;
  Iter p = i;
  std::stringstream ss;
  
  while (*i && *i != t) {
    if (*i == '\\' && *(i+1)) {
      i++;
      if (*i == 'n') ss << "\n";
      else if (*i == 'r') ss << "\r";
      else if (*i == 't') ss << "\t";
      else ss << *i;
    } else {
      ss << *i;
    }
    i++;
  }
  if (!*i) return invalid_token_error;
  v = std::string(p, i-p);
  i++;
  if (*i && nullptr == strchr(":,\x7d]\r\n ", *i)) {
    i = p;
    return invalid_token_error;
  }
  return no_error;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x200, %rsp            # imm = 0x200
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x22, %eax
je 0x74ee
movl $0x2, -0x4(%rbp)
jmp 0x77c5
movq -0x10(%rbp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movb (%rax), %al
movb %al, -0x19(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x2150
movq -0x10(%rbp), %rax
movq (%rax), %rcx
xorl %eax, %eax
cmpb $0x0, (%rcx)
movb %al, -0x1e2(%rbp)
je 0x7548
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
movsbl -0x19(%rbp), %ecx
cmpl %ecx, %eax
setne %al
movb %al, -0x1e2(%rbp)
movb -0x1e2(%rbp), %al
testb $0x1, %al
jne 0x7557
jmp 0x7662
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x5c, %eax
jne 0x7635
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, 0x1(%rax)
je 0x7635
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x6e, %eax
jne 0x75c9
leaq -0x1a0(%rbp), %rdi
leaq 0x2b0c(%rip), %rsi      # 0xa0b2
callq 0x21f0
jmp 0x75ad
jmp 0x7633
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b8(%rbp)
movl %eax, -0x1bc(%rbp)
jmp 0x77b7
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x72, %eax
jne 0x75ef
leaq -0x1a0(%rbp), %rdi
leaq 0x2bc1(%rip), %rsi      # 0xa1a7
callq 0x21f0
jmp 0x75ed
jmp 0x7631
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x74, %eax
jne 0x7615
leaq -0x1a0(%rbp), %rdi
leaq 0x2ab0(%rip), %rsi      # 0xa0bc
callq 0x21f0
jmp 0x7613
jmp 0x762f
leaq -0x1a0(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %esi
callq 0x2290
jmp 0x762d
jmp 0x762f
jmp 0x7631
jmp 0x7633
jmp 0x764f
leaq -0x1a0(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %esi
callq 0x2290
jmp 0x764d
jmp 0x764f
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0x751b
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, (%rax)
jne 0x7684
movl $0x2, -0x4(%rbp)
movl $0x1, -0x1c0(%rbp)
jmp 0x77a9
movq -0x28(%rbp), %rcx
movq %rcx, -0x200(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
subq %rcx, %rax
movq %rax, -0x1f8(%rbp)
leaq -0x1e1(%rbp), %rdi
movq %rdi, -0x1f0(%rbp)
callq 0x2320
movq -0x200(%rbp), %rsi
movq -0x1f8(%rbp), %rdx
movq -0x1f0(%rbp), %rcx
leaq -0x1e0(%rbp), %rdi
callq 0x2280
jmp 0x76d6
movq -0x18(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
callq 0x9040
jmp 0x76e8
leaq -0x1e0(%rbp), %rdi
callq 0x2120
leaq -0x1e1(%rbp), %rdi
callq 0x2250
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, (%rax)
je 0x7798
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %esi
leaq 0x2a74(%rip), %rdi      # 0xa19f
callq 0x2090
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
jne 0x7798
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x2, -0x4(%rbp)
movl $0x1, -0x1c0(%rbp)
jmp 0x77a9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b8(%rbp)
movl %eax, -0x1bc(%rbp)
jmp 0x778a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b8(%rbp)
movl %eax, -0x1bc(%rbp)
leaq -0x1e0(%rbp), %rdi
callq 0x2120
leaq -0x1e1(%rbp), %rdi
callq 0x2250
jmp 0x77b7
movl $0x0, -0x4(%rbp)
movl $0x1, -0x1c0(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x2170
jmp 0x77c5
leaq -0x1b0(%rbp), %rdi
callq 0x2170
jmp 0x77d1
movl -0x4(%rbp), %eax
addq $0x200, %rsp            # imm = 0x200
popq %rbp
retq
movq -0x1b8(%rbp), %rdi
callq 0x2310
nopl (%rax)