// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/lobject.c
// Function: luaO_str2num
size_t luaO_str2num (const char *s, TValue *o) {
  lua_Integer i; lua_Number n;
  const char *e;
  if ((e = l_str2int(s, &i)) != NULL) {  /* try as an integer */
    setivalue(o, i);
  }
  else if ((e = l_str2d(s, &n)) != NULL) {  /* else try as a float */
    setfltvalue(o, n);
  }
  else
    return 0;  /* conversion failed */
  return (e - s) + 1;  /* success; return string size */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xe0, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x16dd3(%rip), %rcx     # 0x22600
movq %rdi, %rax
movzbl (%rax), %edx
incq %rax
testb $0x8, 0x1(%rdx,%rcx)
jne 0xb830
cmpl $0x2b, %edx
je 0xb853
cmpl $0x2d, %edx
jne 0xb850
movl $0x8, %edi
xorl %edx, %edx
jmp 0xb85a
decq %rax
movl $0x7, %edi
movb $0x1, %dl
movzbl (%rax), %r11d
cmpq $0x30, %r11
jne 0xb8bc
movzbl 0x1(%rax), %esi
orl $0x20, %esi
cmpl $0x78, %esi
jne 0xb8bc
movzbl 0x2(%rax), %edi
addq $0x2, %rax
testb $0x10, 0x1(%rdi,%rcx)
je 0xb8c4
xorl %esi, %esi
movsbl %dil, %edi
movsbq %dil, %r8
testb $0x2, 0x1(%r8,%rcx)
je 0xb896
addl $-0x30, %edi
jmp 0xb89c
orl $0x20, %edi
addl $-0x57, %edi
movq %rsi, %r8
shlq $0x4, %r8
movslq %edi, %rsi
addq %r8, %rsi
movzbl 0x1(%rax), %edi
incq %rax
testb $0x10, 0x1(%rdi,%rcx)
jne 0xb881
movb $0x1, %dil
jmp 0xb932
testb $0x2, 0x1(%r11,%rcx)
jne 0xb8ca
xorl %edi, %edi
xorl %esi, %esi
jmp 0xb932
movl $0x1, %r10d
movabsq $0xccccccccccccccb, %r8 # imm = 0xCCCCCCCCCCCCCCB
leaq 0x1(%r8), %r9
xorl %esi, %esi
movsbl %r11b, %r11d
addl $-0x30, %r11d
cmpq %r8, %rsi
jbe 0xb905
cmpq %r9, %rsi
setne %bpl
cmpl %edi, %r11d
setg %r15b
orb %bpl, %r15b
je 0xb905
xorl %r11d, %r11d
jmp 0xb916
leaq (%rsi,%rsi,4), %rsi
movslq %r11d, %r10
leaq (%r10,%rsi,2), %rsi
movb $0x1, %r11b
xorl %r10d, %r10d
testb %r11b, %r11b
je 0xb966
movzbl 0x1(%rax), %r11d
incq %rax
testb $0x2, 0x1(%r11,%rcx)
jne 0xb8e0
testl %r10d, %r10d
sete %dil
decq %rax
movzbl 0x1(%rax), %r8d
incq %rax
testb $0x8, 0x1(%r8,%rcx)
jne 0xb935
testb %r8b, %r8b
setne %cl
xorb $0x1, %dil
orb %cl, %dil
jne 0xb962
movq %rsi, %rcx
negq %rcx
testb %dl, %dl
cmovneq %rsi, %rcx
jmp 0xb968
xorl %eax, %eax
jmp 0xb968
xorl %eax, %eax
movl $0x13, %edx
testq %rax, %rax
jne 0xba32
leaq 0x15e21(%rip), %rsi     # 0x2179e
movq %rbx, %rdi
callq 0x53d0
testq %rax, %rax
je 0xb992
movzbl (%rax), %ebp
orl $0x20, %ebp
jmp 0xb994
xorl %ebp, %ebp
cmpl $0x6e, %ebp
jne 0xb9a0
xorl %eax, %eax
jmp 0xba23
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl %ebp, %edx
callq 0xc0b9
testq %rax, %rax
jne 0xba23
movq %rbx, %rdi
movl $0x2e, %esi
callq 0x5170
movq %rax, %r15
movq %rbx, %rdi
callq 0x5150
cmpq $0xc9, %rax
setb %al
testq %r15, %r15
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xb999
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x50c0
callq 0x5100
movq (%rax), %rax
movb (%rax), %al
subq %rbx, %r15
movb %al, 0x10(%rsp,%r15)
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
movl %ebp, %edx
callq 0xc0b9
movq %rax, %rcx
subq %r12, %rax
addq %rbx, %rax
testq %rcx, %rcx
cmoveq %rcx, %rax
testq %rax, %rax
je 0xba4f
movl $0x3, %edx
movq 0x8(%rsp), %rcx
movq %rcx, (%r14)
movl %edx, 0x8(%r14)
subq %rbx, %rax
incq %rax
addq $0xe0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0xba3f