// File: /workspace/github_c_makefile_star2_O0/RodionGork[P]tinyscheme/scheme.c
// Function: mk_atom
static pointer mk_atom(scheme * sc, char *q) {
  char c, *p;
  int has_dec_point = 0;
  int has_fp_exp = 0;

#if USE_COLON_HOOK
  if ((p = strstr(q, "::")) != 0) {
    *p = 0;
    return cons(sc, sc->COLON_HOOK,
        cons(sc,
            cons(sc,
                sc->QUOTE,
                cons(sc, mk_atom(sc, p + 2), sc->NIL)),
            cons(sc, mk_symbol(sc, str_to_maybe_lower(q)), sc->NIL)));
  }
#endif

  p = q;
  c = *p++;
  if ((c == '+') || (c == '-')) {
    if (str_eq(p, "inf.0")) {
      return mk_real(sc, (c == '+' ? 1 : -1) / 0.0);
    } else if (str_eq(p, "nan.0")) {
      return mk_real(sc, 0 / 0.0);
    }
    c = *p++;
    if (c == '.') {
      has_dec_point = 1;
      c = *p++;
    }
    if (!isdigit(c)) {
      return (mk_symbol(sc, str_to_maybe_lower(q)));
    }
  } else if (c == '.') {
    has_dec_point = 1;
    c = *p++;
    if (!isdigit(c)) {
      return (mk_symbol(sc, str_to_maybe_lower(q)));
    }
  } else if (!isdigit(c)) {
    return (mk_symbol(sc, str_to_maybe_lower(q)));
  }

  for (; (c = *p) != 0; ++p) {
    if (!isdigit(c)) {
      if (c == '.') {
        if (!has_dec_point) {
          has_dec_point = 1;
          continue;
        }
      } else if ((c == 'e') || (c == 'E')) {
        if (!has_fp_exp) {
          has_fp_exp = 1;
          has_dec_point = 1;    /* decimal point illegal further */
          p++;
          if ((*p == '-') || (*p == '+') || isdigit(*p)) {
            continue;
          }
        }
      }
      return (mk_symbol(sc, str_to_maybe_lower(q)));
    }
  }
  if (has_dec_point) {
    return mk_real(sc, atof(q));
  }
  return (mk_integer(sc, atol(q)));
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x78(%rsp)
movq %rsi, 0x70(%rsp)
movl $0x0, 0x5c(%rsp)
movl $0x0, 0x58(%rsp)
movq 0x70(%rsp), %rdi
leaq 0x3b2e(%rip), %rsi      # 0x183ab
callq 0x42c0
movq %rax, 0x60(%rsp)
cmpq $0x0, %rax
je 0x14993
movq 0x60(%rsp), %rax
movb $0x0, (%rax)
movq 0x78(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x78(%rsp), %rax
movq 0x140(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x78(%rsp), %rax
movq 0x118(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x78(%rsp), %rdi
movq 0x60(%rsp), %rsi
addq $0x2, %rsi
callq 0x14850
movq 0x18(%rsp), %rdi
movq %rax, %rsi
movq 0x78(%rsp), %rax
movq 0x90(%rax), %rdx
xorl %ecx, %ecx
callq 0x4950
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x4950
movq %rax, 0x40(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x4e50
movq 0x30(%rsp), %rdi
movq %rax, %rsi
movq 0x78(%rsp), %rax
movq 0x90(%rax), %rdx
xorl %ecx, %ecx
callq 0x4950
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x4950
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x4950
movq %rax, 0x80(%rsp)
jmp 0x14ccf
movq 0x70(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x60(%rsp)
movb (%rax), %al
movb %al, 0x6f(%rsp)
movsbl 0x6f(%rsp), %eax
cmpl $0x2b, %eax
je 0x149cc
movsbl 0x6f(%rsp), %eax
cmpl $0x2d, %eax
jne 0x14acf
movq 0x60(%rsp), %rdi
leaq 0x39d6(%rip), %rsi      # 0x183ae
callq 0x4180
cmpl $0x0, %eax
jne 0x14a19
movq 0x78(%rsp), %rdi
movsbl 0x6f(%rsp), %edx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0x1, %ecx
cmpl $0x2b, %edx
cmovel %ecx, %eax
cvtsi2sd %eax, %xmm0
xorps %xmm1, %xmm1
divsd %xmm1, %xmm0
callq 0x4b60
movq %rax, 0x80(%rsp)
jmp 0x14ccf
movq 0x60(%rsp), %rdi
leaq 0x398f(%rip), %rsi      # 0x183b4
callq 0x4180
cmpl $0x0, %eax
jne 0x14a4e
movq 0x78(%rsp), %rdi
movsd 0x2c7c(%rip), %xmm0     # 0x176b8
callq 0x4b60
movq %rax, 0x80(%rsp)
jmp 0x14ccf
jmp 0x14a50
movq 0x60(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x60(%rsp)
movb (%rax), %al
movb %al, 0x6f(%rsp)
movsbl 0x6f(%rsp), %eax
cmpl $0x2e, %eax
jne 0x14a90
movl $0x1, 0x5c(%rsp)
movq 0x60(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x60(%rsp)
movb (%rax), %al
movb %al, 0x6f(%rsp)
callq 0x42e0
movq (%rax), %rax
movsbl 0x6f(%rsp), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
jne 0x14aca
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x4e50
movq %rax, 0x80(%rsp)
jmp 0x14ccf
jmp 0x14b72
movsbl 0x6f(%rsp), %eax
cmpl $0x2e, %eax
jne 0x14b34
movl $0x1, 0x5c(%rsp)
movq 0x60(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x60(%rsp)
movb (%rax), %al
movb %al, 0x6f(%rsp)
callq 0x42e0
movq (%rax), %rax
movsbl 0x6f(%rsp), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
jne 0x14b32
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x4e50
movq %rax, 0x80(%rsp)
jmp 0x14ccf
jmp 0x14b70
callq 0x42e0
movq (%rax), %rax
movsbl 0x6f(%rsp), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
jne 0x14b6e
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x4e50
movq %rax, 0x80(%rsp)
jmp 0x14ccf
jmp 0x14b70
jmp 0x14b72
jmp 0x14b74
movq 0x60(%rsp), %rax
movb (%rax), %al
movb %al, 0x6f(%rsp)
movsbl %al, %eax
cmpl $0x0, %eax
je 0x14c77
callq 0x42e0
movq (%rax), %rax
movsbl 0x6f(%rsp), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
jne 0x14c62
movsbl 0x6f(%rsp), %eax
cmpl $0x2e, %eax
jne 0x14bcd
cmpl $0x0, 0x5c(%rsp)
jne 0x14bcb
movl $0x1, 0x5c(%rsp)
jmp 0x14c64
jmp 0x14c49
movsbl 0x6f(%rsp), %eax
cmpl $0x65, %eax
je 0x14be1
movsbl 0x6f(%rsp), %eax
cmpl $0x45, %eax
jne 0x14c47
cmpl $0x0, 0x58(%rsp)
jne 0x14c45
movl $0x1, 0x58(%rsp)
movl $0x1, 0x5c(%rsp)
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
je 0x14c41
movq 0x60(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x2b, %eax
je 0x14c41
callq 0x42e0
movq (%rax), %rax
movq 0x60(%rsp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x14c43
jmp 0x14c64
jmp 0x14c45
jmp 0x14c47
jmp 0x14c49
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x4e50
movq %rax, 0x80(%rsp)
jmp 0x14ccf
jmp 0x14c64
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
jmp 0x14b74
cmpl $0x0, 0x5c(%rsp)
je 0x14ca6
movq 0x78(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x70(%rsp), %rdi
callq 0x4060
movq 0x10(%rsp), %rdi
callq 0x4b60
movq %rax, 0x80(%rsp)
jmp 0x14ccf
movq 0x78(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x70(%rsp), %rdi
callq 0x4210
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x4b00
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
addq $0x88, %rsp
retq
nop