// File: /workspace/github_cpp_makefile_star2_O1/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 0xfc7e
movl %eax, %eax
leaq 0x3d3d(%rip), %rdx      # 0x1399c
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
leaq 0x3d43(%rip), %rdx      # 0x139b0
movq (%rdx,%rax,8), %r8
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32b0
movq %r14, %rdi
callq 0x116f2
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 0xfcc7
cmpl $0x1, 0x7c(%rax)
jne 0xfd38
movq 0xa31a(%rip), %r14      # 0x19fe8
leaq 0x3b82(%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 0xa2e8(%rip), %rdi      # 0x19fe8
callq 0x3030
movq %rax, %rdi
callq 0x3160
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0xfd28
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 0xfe61
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0xfd5a
callq 0x4c7c
testb %al, %al
je 0xfd79
movq -0x30(%rbp), %rax
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq -0x28(%rbp), %rcx
movq %rax, -0x28(%rbp)
movq %rcx, 0x8(%rbx)
movq %rax, -0x30(%rbp)
jmp 0xfdda
leaq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x51e2
leaq -0x40(%rbp), %rdi
callq 0x51b8
leaq -0x50(%rbp), %rdi
leaq -0x30(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x52f5
leaq -0x60(%rbp), %rsi
leaq -0x50(%rbp), %rdx
movq %rbx, %rdi
callq 0x52f5
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0xfdbe
callq 0x4114
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0xfdcc
callq 0x4114
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0xfdda
callq 0x4114
movq -0x28(%rbp), %rdi
testq %rdi, %rdi
je 0xfd13
callq 0x4114
jmp 0xfd13
movq %rax, %rbx
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0xfe07
callq 0x4114
jmp 0xfe07
movq %rax, %rbx
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0xfe1a
callq 0x4114
jmp 0xfe1a
movq %rax, %rbx
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0xfe2f
callq 0x4114
jmp 0xfe2f
jmp 0xfe2c
movq %rax, %rbx
movq -0x28(%rbp), %rdi
testq %rdi, %rdi
je 0xfe44
callq 0x4114
jmp 0xfe44
jmp 0xfe41
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0xfe59
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x31f0
movq %rbx, %rdi
callq 0x3310