// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_parse
static es_val_t es_parse(es_ctx_t* ctx, es_val_t port)
{
  char buf[1024];
  switch(next(port, buf)) {
  case tk_eof:
    return es_eof_obj;
  case tk_str:
    return es_make_string(ctx, buf);
  case tk_sym:
    return es_symbol_intern(ctx, buf);
  case tk_int:
    return es_make_fixnum(atoi(buf));
  case tk_tbool:
    return es_true;
  case tk_fbool:
    return es_false;
  case tk_char:
    return es_make_char_cstr(buf);
  case tk_quot:
    return es_make_list(ctx, symbol_quote, es_parse(ctx, port), NULL);
  case tk_qquot:
    return es_make_list(ctx, symbol_quasiquote, es_parse(ctx, port), NULL);
  case tk_unquot:
    return es_make_list(ctx, symbol_unquote, es_parse(ctx, port), NULL);
  case tk_unquot_splice:
    return es_make_list(ctx, symbol_unquotesplicing, es_parse(ctx, port), NULL);
  case tk_hlpar: {
      es_val_t lst = es_nil;
      while(peek(port, buf) != tk_rpar) {
        lst = es_cons(ctx, es_parse(ctx, port), lst);
      }
      next(port, buf);
      return es_vector_from_list(ctx, reverse(lst));
    }
  case tk_lpar:
    return parse_list(ctx, port);
  default:
    return es_make_error(ctx, "Invalid syntax");
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x808, %rsp            # imm = 0x808
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %rsi
movq %r14, %rdi
callq 0x5b2a
cmpl $0xe, %eax
ja 0x251a
movl %eax, %eax
leaq 0x4ca2(%rip), %rcx      # 0x713c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x3b, %r15d
jmp 0x266f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2466
movl $0x32, %esi
jmp 0x2641
movl $0xc, %r15d
jmp 0x266f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2466
movl $0x42, %esi
jmp 0x2641
movl $0x4, %r15d
jmp 0x266f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2466
movl $0x3a, %esi
jmp 0x2641
movq %rsp, %rdi
callq 0x1140
leal 0x1(,%rax,8), %eax
movslq %eax, %r15
jmp 0x266f
movl $0x18, %edx
movq %rbx, %rdi
movl $0x16, %esi
callq 0x2177
movq %rax, %r15
leaq 0x569d(%rip), %rax      # 0x7bd3
movq %rax, 0x10(%r15)
jmp 0x266f
movq %rsp, %rsi
movq %r14, %rdi
callq 0x5e89
movl $0x3, %r15d
movl $0x3, %r12d
cmpl $0x3, %eax
je 0x258a
movq %rsp, %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2466
movq %rbx, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x22f7
movq %rax, %r12
movq %r14, %rdi
movq %r13, %rsi
callq 0x5e89
cmpl $0x3, %eax
jne 0x255e
movq %rsp, %rsi
movq %r14, %rdi
callq 0x5b2a
movl %r12d, %ecx
andl $0x7, %ecx
cmpq $0x3, %rcx
je 0x25b1
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rcx, %rcx
jne 0x25b7
movl (%r12), %eax
jmp 0x25b7
movl %r12d, %eax
sarl $0x3, %eax
testl %eax, %eax
je 0x25cd
movq 0x18(%r12), %rax
movq %r15, 0x18(%r12)
movq %r12, %r15
movq %rax, %r12
jmp 0x2595
movq %rbx, %rdi
movq %r15, %rsi
addq $0x808, %rsp            # imm = 0x808
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2f96
leaq 0x400(%rsp), %rsi
movq %r14, %rdi
callq 0x5e89
cmpl $0x3, %eax
jne 0x2684
leaq 0x400(%rsp), %rsi
movq %r14, %rdi
callq 0x5b2a
movl $0x3, %r15d
jmp 0x266f
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2aee
jmp 0x266c
movq %rsp, %rdi
callq 0x20ac
jmp 0x266c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2466
movl $0x2a, %esi
movq %rbx, %rdi
movq %rax, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
addq $0x808, %rsp            # imm = 0x808
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x39be
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2c3b
movq %rax, %r15
movq %r15, %rax
addq $0x808, %rsp            # imm = 0x808
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2466
movq %rax, %r15
andl $0x7, %eax
cmpq $0x5, %rax
ja 0x26d4
leaq 0x4ad6(%rip), %rcx      # 0x7178
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl (%r15), %eax
jmp 0x26d9
movl $0x1, %eax
jmp 0x26d9
movl $0x3, %eax
jmp 0x26d9
movl %r15d, %eax
sarl $0x3, %eax
jmp 0x26d9
movl $0x2, %eax
jmp 0x26d9
movl $0x4, %eax
jmp 0x26d9
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x16, %eax
je 0x266f
movl $0x3, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x22f7
movq %rax, %r15
leaq 0x400(%rsp), %rsi
movq %r14, %rdi
callq 0x5e89
cmpl $0x3, %eax
je 0x278e
leaq 0x400(%rsp), %r12
movq %r15, %rbp
movq %r14, %rdi
movq %r12, %rsi
callq 0x5e89
cmpl $0x9, %eax
je 0x275c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2466
movl $0x3, %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x22f7
movq %rax, %r13
movq %rax, 0x18(%rbp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x5e89
movq %r13, %rbp
cmpl $0x3, %eax
jne 0x2715
jmp 0x278e
leaq 0x400(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x5b2a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2466
movq %rax, 0x18(%rbp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x5e89
cmpl $0x3, %eax
jne 0x27a3
leaq 0x400(%rsp), %rsi
movq %r14, %rdi
callq 0x5b2a
jmp 0x266f
movl 0x38(%r14), %esi
movl 0x3c(%r14), %edx
leaq 0x5441(%rip), %rdi      # 0x7bf3
xorl %eax, %eax
callq 0x1080
movq %r14, %rdi
callq 0x27e7
cmpl $0xa, %eax
jne 0x27b9
movl $0x18, %edx
movq %rbx, %rdi
movl $0x16, %esi
callq 0x2177
movq %rax, %r15
leaq 0x5441(%rip), %rax      # 0x7c23
jmp 0x2536