// File: /workspace/github_c_makefile_star2_O0/tylerneylon[P]APIsWithLua/lua/llex.c
// Function: read_numeral
static int read_numeral (LexState *ls, SemInfo *seminfo) {
  TValue obj;
  const char *expo = "Ee";
  int first = ls->current;
  lua_assert(lisdigit(ls->current));
  save_and_next(ls);
  if (first == '0' && check_next2(ls, "xX"))  /* hexadecimal? */
    expo = "Pp";
  for (;;) {
    if (check_next2(ls, expo))  /* exponent part? */
      check_next2(ls, "-+");  /* optional exponent sign */
    if (lisxdigit(ls->current))
      save_and_next(ls);
    else if (ls->current == '.')
      save_and_next(ls);
    else break;
  }
  save(ls, '\0');
  if (luaO_str2num(luaZ_buffer(ls->buff), &obj) == 0)  /* format error? */
    lexerror(ls, "malformed number", TK_FLT);
  if (ttisinteger(&obj)) {
    seminfo->i = ivalue(&obj);
    return TK_INT;
  }
  else {
    lua_assert(ttisfloat(&obj));
    seminfo->r = fltvalue(&obj);
    return TK_FLT;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
leaq 0x105ed(%rip), %rax     # 0x36134
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movl (%rax), %esi
callq 0x24ff0
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x25b9d
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, -0x38(%rbp)
jmp 0x25bad
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rdi
callq 0x1f490
movl %eax, -0x38(%rbp)
movl -0x38(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
cmpl $0x30, -0x34(%rbp)
jne 0x25bdc
movq -0x10(%rbp), %rdi
leaq 0x10570(%rip), %rsi     # 0x36137
callq 0x262b0
cmpl $0x0, %eax
je 0x25bdc
leaq 0x10562(%rip), %rax     # 0x3613a
movq %rax, -0x30(%rbp)
jmp 0x25bde
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x262b0
cmpl $0x0, %eax
je 0x25c00
movq -0x10(%rbp), %rdi
leaq 0x10542(%rip), %rsi     # 0x3613d
callq 0x262b0
movq -0x10(%rbp), %rax
movl (%rax), %eax
addl $0x1, %eax
movslq %eax, %rcx
leaq 0xfe9d(%rip), %rax      # 0x35ab0
movzbl (%rax,%rcx), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x25c83
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movl (%rax), %esi
callq 0x24ff0
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x25c68
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, -0x3c(%rbp)
jmp 0x25c78
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rdi
callq 0x1f490
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
jmp 0x25cf4
movq -0x10(%rbp), %rax
cmpl $0x2e, (%rax)
jne 0x25cf0
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movl (%rax), %esi
callq 0x24ff0
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x25cd5
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, -0x40(%rbp)
jmp 0x25ce5
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rdi
callq 0x1f490
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
jmp 0x25cf2
jmp 0x25cf9
jmp 0x25cf4
jmp 0x25bde
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x24ff0
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq (%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x108b0
cmpq $0x0, %rax
jne 0x25d33
movq -0x10(%rbp), %rdi
leaq 0x10417(%rip), %rsi     # 0x36140
movl $0x122, %edx            # imm = 0x122
callq 0x243c0
cmpl $0x13, -0x20(%rbp)
jne 0x25d4d
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x123, -0x4(%rbp)      # imm = 0x123
jmp 0x25d61
movsd -0x28(%rbp), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, (%rax)
movl $0x122, -0x4(%rbp)      # imm = 0x122
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)