// File: /workspace/github_cpp_makefile_star2_O3/0x0584[P]scmin-plus/src/repl/parser.cpp
// Function: parse_quote(std::queue<token, std::deque<token, std::allocator<token>>>&, bool)
sexpr_t parse_quote(queue<token>& q, bool quasi) {
    string sy;

    switch (tok.type) {
    case token::tok_unquote:    sy = "unquote"; break;
    case token::tok_unquote_sp: sy = "unquote-splicing"; break;
    case token::tok_quote:      sy = "quote"; break;
    case token::tok_quasi:      sy = "quasiquote"; break;
    default: break;
    }
    if (q.pop(); q.size() == 0 || tok.type == token::tok_r_paren) {
        cerr << "parsing error: quotes are mal formed!" << endl;
        return nullptr;
    }
    sexpr_t e = parse_tokens(q, quasi);
    if (not e or e->isnil())
        return e;
    return cons(symb(sy), cons(e, nil()));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x70(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movq 0x10(%rsi), %rax
movl 0x7c(%rax), %eax
addl $-0x4, %eax
cmpl $0x4, %eax
jae 0xf6aa
movl %eax, %eax
leaq 0x4311(%rip), %rdx      # 0x1399c
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
leaq 0x4317(%rip), %rdx      # 0x139b0
movq (%rdx,%rax,8), %r8
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32b0
movq %r14, %rdi
callq 0x1110a
movq 0x48(%r14), %rax
movq %rax, %rcx
subq 0x28(%r14), %rcx
sarq $0x3, %rcx
cmpq $0x1, %rax
adcq $-0x1, %rcx
movq 0x30(%r14), %rax
subq 0x38(%r14), %rax
sarq $0x7, %rax
leaq (%rax,%rcx,4), %rcx
movq 0x10(%r14), %rax
movq 0x20(%r14), %rdx
subq %rax, %rdx
sarq $0x7, %rdx
addq %rcx, %rdx
je 0xf6f3
cmpl $0x1, 0x7c(%rax)
jne 0xf764
movq 0xa8ee(%rip), %r14      # 0x19fe8
leaq 0x4156(%rip), %rsi      # 0x13857
movl $0x25, %edx
movq %r14, %rdi
callq 0x3210
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq 0xa8bc(%rip), %rdi      # 0x19fe8
callq 0x3030
movq %rax, %rdi
callq 0x3160
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0xf754
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x31f0
movq %rbx, %rax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movzbl %r15b, %edx
leaq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0xf87e
movq -0x30(%rbp), %r14
testq %r14, %r14
je 0xf789
movq %r14, %rdi
callq 0x4c74
testb %al, %al
je 0xf796
movq %r14, (%rbx)
movq -0x28(%rbp), %rax
movq %rax, 0x8(%rbx)
jmp 0xf73f
leaq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x5176
leaq -0x40(%rbp), %rdi
callq 0x514c
leaq -0x50(%rbp), %rdi
leaq -0x30(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x5289
leaq -0x60(%rbp), %rsi
leaq -0x50(%rbp), %rdx
movq %rbx, %rdi
callq 0x5289
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0xf7db
callq 0x4104
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0xf7e9
callq 0x4104
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0xf7f7
callq 0x4104
movq -0x28(%rbp), %rdi
testq %rdi, %rdi
je 0xf73f
callq 0x4104
jmp 0xf73f
movq %rax, %rbx
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0xf824
callq 0x4104
jmp 0xf824
movq %rax, %rbx
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0xf837
callq 0x4104
jmp 0xf837
movq %rax, %rbx
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0xf84c
callq 0x4104
jmp 0xf84c
jmp 0xf849
movq %rax, %rbx
movq -0x28(%rbp), %rdi
testq %rdi, %rdi
je 0xf861
callq 0x4104
jmp 0xf861
jmp 0xf85e
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0xf876
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x31f0
movq %rbx, %rdi
callq 0x3310