// File: /workspace/github_c_makefile_star2_O3/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 0x5405
cmpl $0xe, %eax
ja 0x24b1
movl %eax, %eax
leaq 0x3cf3(%rip), %rcx      # 0x6124
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x3b, %r15d
jmp 0x2601
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23fd
movl $0x32, %esi
jmp 0x25d3
movl $0xc, %r15d
jmp 0x2601
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23fd
movl $0x42, %esi
jmp 0x25d3
movl $0x4, %r15d
jmp 0x2601
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23fd
movl $0x3a, %esi
jmp 0x25d3
movq %rsp, %rdi
callq 0x1140
leal 0x1(,%rax,8), %eax
movslq %eax, %r15
jmp 0x2601
movl $0x18, %edx
movq %rbx, %rdi
movl $0x16, %esi
callq 0x2122
movq %rax, %r15
leaq 0x43c0(%rip), %rax      # 0x688d
movq %rax, 0x10(%r15)
jmp 0x2601
movq %rsp, %rsi
movq %r14, %rdi
callq 0x5775
movl $0x3, %r15d
movl $0x3, %r12d
cmpl $0x3, %eax
je 0x2521
movq %rsp, %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23fd
movq %rbx, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x2298
movq %rax, %r12
movq %r14, %rdi
movq %r13, %rsi
callq 0x5775
cmpl $0x3, %eax
jne 0x24f5
movq %rsp, %rsi
movq %r14, %rdi
callq 0x5405
movl %r12d, %eax
andl $0x7, %eax
cmpq $0x3, %rax
je 0x2543
testq %rax, %rax
jne 0x254d
movl (%r12), %eax
jmp 0x2549
movl %r12d, %eax
sarl $0x3, %eax
testl %eax, %eax
je 0x255f
movq 0x18(%r12), %rax
movq %r15, 0x18(%r12)
movq %r12, %r15
movq %rax, %r12
jmp 0x252c
movq %rbx, %rdi
movq %r15, %rsi
addq $0x808, %rsp            # imm = 0x808
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2f69
leaq 0x400(%rsp), %rsi
movq %r14, %rdi
callq 0x5775
cmpl $0x3, %eax
jne 0x2616
leaq 0x400(%rsp), %rsi
movq %r14, %rdi
callq 0x5405
movl $0x3, %r15d
jmp 0x2601
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2a44
jmp 0x25fe
movq %rsp, %rdi
callq 0x2057
jmp 0x25fe
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23fd
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 0x38a8
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2b91
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 0x23fd
movq %rax, %r15
andl $0x7, %eax
cmpq $0x3, %rax
je 0x2637
testq %rax, %rax
jne 0x2642
movl (%r15), %eax
jmp 0x263d
movl %r15d, %eax
sarl $0x3, %eax
cmpl $0x16, %eax
je 0x2601
movl $0x3, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2298
movq %rax, %r15
leaq 0x400(%rsp), %rsi
movq %r14, %rdi
callq 0x5775
cmpl $0x3, %eax
je 0x26f2
leaq 0x400(%rsp), %r12
movq %r15, %rbp
movq %r14, %rdi
movq %r12, %rsi
callq 0x5775
cmpl $0x9, %eax
je 0x26c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23fd
movl $0x3, %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2298
movq %rax, %r13
movq %rax, 0x18(%rbp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x5775
movq %r13, %rbp
cmpl $0x3, %eax
jne 0x2679
jmp 0x26f2
leaq 0x400(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x5405
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23fd
movq %rax, 0x18(%rbp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x5775
cmpl $0x3, %eax
jne 0x2707
leaq 0x400(%rsp), %rsi
movq %r14, %rdi
callq 0x5405
jmp 0x2601
movl 0x38(%r14), %esi
movl 0x3c(%r14), %edx
leaq 0x4191(%rip), %rdi      # 0x68a7
xorl %eax, %eax
callq 0x1080
movq %r14, %rdi
callq 0x274b
cmpl $0xa, %eax
jne 0x271d
movl $0x18, %edx
movq %rbx, %rdi
movl $0x16, %esi
callq 0x2122
movq %rax, %r15
leaq 0x4191(%rip), %rax      # 0x68d7
jmp 0x24cd