// File: /workspace/github_c_makefile_star2_O1/deplinenoise[P]tundra/src/JsonParse.cpp
// Function: t2::JsonLexerFetchNext(t2::JsonLexerState*)
static JsonLexeme JsonLexerFetchNext(JsonLexerState* state)
{
  char* p = SkipWhitespace(state);
  char ch = *p;

  switch (ch)
  {
    case '-':
    case '0': case '1': case '2': case '3': case '4':
    case '5': case '6': case '7': case '8': case '9':
      return GetNumberLexeme(state);

    case '"':
      return GetStringLexeme(state);

    case '{':
      state->m_Cursor = p + 1;
      return s_BeginObjectLexeme;

    case '}':
      state->m_Cursor = p + 1;
      return s_EndObjectLexeme;
  
    case '[':
      state->m_Cursor = p + 1;
      return s_BeginArrayLexeme;

    case ']':
      state->m_Cursor = p + 1;
      return s_EndArrayLexeme;

    case ',':
      state->m_Cursor = p + 1;
      return s_ValueSeparatorLexeme;

    case ':':
      state->m_Cursor = p + 1;
      return s_NameSeparatorLexeme;

    case '\0':
      return s_EofLexeme;

    default:
      return GetLiteralLexeme(state);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rdi), %r14
movsbl (%r14), %edi
testl %edi, %edi
je 0xeaad
cmpb $0xa, %dil
jne 0xea9c
incl 0x8(%rbx)
callq 0x3070
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
addq %rcx, %r14
jmp 0xeaaf
xorl %ecx, %ecx
testb %cl, %cl
jne 0xea8b
movq %r14, (%rbx)
movzbl (%r14), %r15d
cmpl $0x5a, %r15d
jg 0xeb0e
leal -0x22(%r15), %eax
cmpl $0x18, %eax
ja 0xeb85
leaq 0x80b8(%rip), %rcx      # 0x16b8c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x8(%rsp), %r15
movq $0x0, (%r15)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3270
movq (%r15), %rax
movq %rax, (%rbx)
cmpq %rax, %r14
je 0xeb34
movq %xmm0, %r15
movl $0x1, %eax
jmp 0xeef6
cmpl $0x7a, %r15d
jg 0xeb65
cmpl $0x5b, %r15d
je 0xeedb
cmpl $0x5d, %r15d
jne 0xeb94
incq %r14
movq %r14, (%rbx)
movl $0x7, %eax
jmp 0xeef3
movl 0x8(%rbx), %ecx
addq $0x20, %rbx
leaq 0x822c(%rip), %rdx      # 0x16d6e
leaq 0x80f0(%rip), %r8       # 0x16c39
xorl %r15d, %r15d
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3560
movl $0xb, %eax
jmp 0xeef6
cmpl $0x7b, %r15d
je 0xeee8
cmpl $0x7d, %r15d
jne 0xeb94
incq %r14
movq %r14, (%rbx)
movl $0x6, %eax
jmp 0xeef3
testl %r15d, %r15d
jne 0xeb94
movl $0xa, %eax
jmp 0xeef6
leaq -0x1(%r14), %r15
movq $-0x1, %r12
movsbl 0x1(%r15), %edi
incq %r15
callq 0x3350
incq %r12
testl %eax, %eax
jne 0xeb9f
cmpq $0x5, %r12
je 0xef14
cmpq $0x4, %r12
jne 0xef2c
leaq 0x8103(%rip), %rdi      # 0x16cd1
movl $0x4, %edx
movq %r14, %rsi
callq 0x3170
testl %eax, %eax
je 0xef46
leaq 0x8122(%rip), %rdi      # 0x16d0c
movl $0x4, %edx
movq %r14, %rsi
callq 0x3170
testl %eax, %eax
jne 0xef2c
movq %r15, (%rbx)
movl $0x9, %eax
jmp 0xeef3
incq %r14
movq %r14, (%rbx)
movl $0x3, %eax
jmp 0xeef3
leaq 0x1(%r14), %r12
leaq 0x20(%rbx), %r13
leaq 0x8143(%rip), %rbp      # 0x16d6e
movq %r14, %r15
movzbl (%r12), %eax
cmpl $0x5c, %eax
je 0xec81
incq %r12
cmpl $0x22, %eax
je 0xec73
testl %eax, %eax
jne 0xecb0
movl 0x8(%rbx), %ecx
movl $0x400, %esi            # imm = 0x400
movq %r13, %rdi
movq %rbp, %rdx
leaq 0x7feb(%rip), %r8       # 0x16c44
xorl %eax, %eax
callq 0x3560
movq $0x0, 0x8(%rsp)
movl $0x1, %eax
jmp 0xee43
movb $0x0, (%r15)
movl $0x2, %eax
jmp 0xee43
movq %r15, (%rsp)
leaq 0x2(%r12), %r15
movzbl 0x1(%r12), %eax
cmpl $0x61, %eax
jg 0xecbd
cmpl $0x22, %eax
je 0xece1
cmpl $0x2f, %eax
je 0xeced
cmpl $0x5c, %eax
jne 0xed13
movq (%rsp), %rcx
movb $0x5c, (%rcx)
jmp 0xee38
movb %al, (%r15)
incq %r15
xorl %eax, %eax
jmp 0xee43
leal -0x6e(%rax), %ecx
cmpl $0x7, %ecx
ja 0xecf9
leaq 0x7f24(%rip), %rdx      # 0x16bf0
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
movq (%rsp), %rcx
movb $0xa, (%rcx)
jmp 0xee38
movq (%rsp), %rcx
movb $0x22, (%rcx)
jmp 0xee38
movq (%rsp), %rcx
movb $0x2f, (%rcx)
jmp 0xee38
cmpl $0x62, %eax
je 0xee31
cmpl $0x66, %eax
jne 0xed13
movq (%rsp), %rcx
movb $0xc, (%rcx)
jmp 0xee38
movl 0x8(%rbx), %ecx
movl $0x400, %esi            # imm = 0x400
movq %r13, %rdi
movq %rbp, %rdx
leaq 0x7f91(%rip), %r8       # 0x16cb9
xorl %eax, %eax
callq 0x3560
movq $0x0, 0x8(%rsp)
movl $0x1, %eax
movq %r15, %r12
movq (%rsp), %r15
jmp 0xee43
movq %r13, 0x18(%rsp)
leaq 0x6(%r12), %rax
movq %rax, 0x20(%rsp)
addq $0x3, %r12
xorl %r15d, %r15d
xorl %r13d, %r13d
movl $0x0, 0x14(%rsp)
movsbl -0x1(%r12), %ebp
testl %ebp, %ebp
je 0xeda7
movl %ebp, %edi
callq 0x3090
testl %eax, %eax
je 0xedc6
movl %ebp, %edi
callq 0x34a0
movl 0x14(%rsp), %esi
shll $0x4, %esi
leal -0x61(%rax), %ecx
leal -0x30(%rax), %edx
addl $-0x57, %eax
cmpl $0x6, %ecx
cmovael %edx, %eax
orl %esi, %eax
movb $0x1, %bpl
movl %eax, 0x14(%rsp)
jmp 0xedf3
movl 0x8(%rbx), %ecx
xorl %ebp, %ebp
movl $0x400, %esi            # imm = 0x400
movq 0x18(%rsp), %rdi
leaq 0x7fb1(%rip), %rdx      # 0x16d6e
leaq 0x7e9a(%rip), %r8       # 0x16c5e
jmp 0xede3
movl 0x8(%rbx), %ecx
xorl %ebp, %ebp
movl $0x400, %esi            # imm = 0x400
movq 0x18(%rsp), %rdi
leaq 0x7f92(%rip), %rdx      # 0x16d6e
leaq 0x7e95(%rip), %r8       # 0x16c78
xorl %eax, %eax
callq 0x3560
movq $0x0, 0x8(%rsp)
testb %bpl, %bpl
je 0xee4d
cmpl $0x3, %r13d
leal 0x1(%r13), %eax
setae %r15b
incq %r12
movl %eax, %r13d
cmpl $0x4, %eax
jne 0xed6a
movl $0x5, %eax
movq 0x20(%rsp), %r12
jmp 0xee52
movq (%rsp), %rcx
movb $0xd, (%rcx)
jmp 0xee38
movq (%rsp), %rcx
movb $0x9, (%rcx)
jmp 0xee38
movq (%rsp), %rcx
movb $0x8, (%rcx)
incq %rcx
xorl %eax, %eax
movq %r15, %r12
movq %rcx, %r15
testl %eax, %eax
je 0xec2e
jmp 0xeebd
movl $0x1, %eax
testb $0x1, %r15b
movq 0x18(%rsp), %r13
leaq 0x7f0c(%rip), %rbp      # 0x16d6e
je 0xee9f
movl 0x14(%rsp), %eax
cmpl $0x80, %eax
movq (%rsp), %r15
jb 0xeea5
movl 0x8(%rbx), %ecx
movl $0x400, %esi            # imm = 0x400
movq %r13, %rdi
movq %rbp, %rdx
leaq 0x7e11(%rip), %r8       # 0x16c99
xorl %eax, %eax
callq 0x3560
movq $0x0, 0x8(%rsp)
movl $0x1, %eax
jmp 0xeeb0
movq (%rsp), %r15
jmp 0xeeb0
movb %al, (%r15)
incq %r15
movl $0x4, %eax
cmpl $0x4, %eax
movl $0x0, %ecx
cmovel %ecx, %eax
jmp 0xee43
cmpl $0x2, %eax
jne 0xef08
movq %r12, (%rbx)
movq %r14, 0x8(%rsp)
xorl %eax, %eax
jmp 0xef0d
incq %r14
movq %r14, (%rbx)
movl $0x2, %eax
jmp 0xeef3
incq %r14
movq %r14, (%rbx)
movl $0x5, %eax
jmp 0xeef3
incq %r14
movq %r14, (%rbx)
movl $0x4, %eax
xorl %r15d, %r15d
movq %r15, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xb, %eax
movq 0x8(%rsp), %r15
jmp 0xeef6
leaq 0x7dbb(%rip), %rdi      # 0x16cd6
movl $0x5, %edx
movq %r14, %rsi
callq 0x3170
testl %eax, %eax
je 0xef56
movl 0x8(%rbx), %ecx
addq $0x20, %rbx
leaq 0x7e34(%rip), %rdx      # 0x16d6e
leaq 0x7d9b(%rip), %r8       # 0x16cdc
jmp 0xeb49
movq %r15, (%rbx)
movl $0x1, %r15d
movl $0x8, %eax
jmp 0xeef6
movq %r15, (%rbx)
movl $0x8, %eax
jmp 0xeef3