// File: /workspace/github_cpp_makefile_star2_O2/0x0584[P]scmin-plus/src/sexpr/types.cpp
// Function: sexpr::sexpr_lambda::bindargs(std::shared_ptr<sexpr> const&, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<sexpr>, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<sexpr>>>>&)
bool sexpr::sexpr_lambda::bindargs(const sexpr_t& args, env_t& parent) {
    auto u = this->args, v = args;

    if (u->length() != v->length()) {
        cerr << "argument count mismatched, expected "
             << u->length() << "got " << v->length()
             << endl;
        return false;
    }

    local = parent;
    while (not u->isnil()) {
        if (not u->car()->issymb()) {
            cerr << "Err: argument is not a symbol" << endl;
            return false;
        }
        local[any_cast<sexpr_text>(*u->car()->blob).text()] = v->car();
        u = u->cdr(); v = v->cdr();
    }
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq -0x38(%rbp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3e44
leaq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x3e44
movq (%r12), %rdi
callq 0x4b80
movq %rax, %r15
movq -0x48(%rbp), %rdi
callq 0x4b80
cmpq %rax, %r15
jne 0x3a4c
addq $0x20, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3f12
leaq -0x90(%rbp), %r15
leaq -0x68(%rbp), %r12
leaq -0xb0(%rbp), %r14
movq -0x38(%rbp), %rdi
callq 0x49a8
testb %al, %al
jne 0x3a9e
movq -0x38(%rbp), %rsi
movq %r15, %rdi
callq 0x5fc6
movq -0x90(%rbp), %rdi
callq 0x4b10
movl %eax, %r13d
leaq -0x88(%rbp), %rdi
callq 0x3e82
testb %r13b, %r13b
je 0x3aa2
movq -0x48(%rbp), %rsi
movq %r12, %rdi
callq 0x5fc6
movq -0x38(%rbp), %rsi
leaq -0x58(%rbp), %rdi
callq 0x5fc6
movq -0x58(%rbp), %rax
movq (%rax), %rsi
movq %r15, %rdi
callq 0x3d07
movq %r14, %rdi
movq %r15, %rsi
callq 0x37cc
movq %rbx, %rdi
movq %r14, %rsi
callq 0x457e
movq %rax, %rdi
movq %r12, %rsi
callq 0x4354
movq %r14, %rdi
callq 0x30f0
movq %r15, %rdi
callq 0x30f0
leaq -0x50(%rbp), %rdi
callq 0x3e82
leaq -0x60(%rbp), %rdi
callq 0x3e82
movq -0x38(%rbp), %rsi
movq %r15, %rdi
callq 0x5f48
leaq -0x38(%rbp), %rdi
movq %r15, %rsi
callq 0x4354
leaq -0x88(%rbp), %rdi
callq 0x3e82
movq -0x48(%rbp), %rsi
movq %r15, %rdi
callq 0x5f48
leaq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x4354
leaq -0x88(%rbp), %rdi
callq 0x3e82
jmp 0x3953
movq 0x14595(%rip), %rdi     # 0x17fe8
leaq 0xc5be(%rip), %rsi      # 0x10018
callq 0x31f0
movq %rax, %rbx
movq -0x38(%rbp), %rdi
callq 0x4b80
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3170
leaq 0xc5c0(%rip), %rsi      # 0x1003d
movq %rax, %rdi
callq 0x31f0
movq %rax, %rbx
movq -0x48(%rbp), %rdi
callq 0x4b80
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3170
jmp 0x3ab5
movb $0x1, %bl
jmp 0x3abf
movq 0x1453f(%rip), %rdi     # 0x17fe8
leaq 0xc592(%rip), %rsi      # 0x10042
callq 0x31f0
movq %rax, %rdi
callq 0x3100
xorl %ebx, %ebx
leaq -0x40(%rbp), %rdi
callq 0x3e82
leaq -0x30(%rbp), %rdi
callq 0x3e82
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3b39
movq %rax, %rbx
jmp 0x3b1c
jmp 0x3b39
movq %rax, %rbx
jmp 0x3b13
movq %rax, %rbx
jmp 0x3b07
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x30f0
leaq -0x90(%rbp), %rdi
callq 0x30f0
leaq -0x50(%rbp), %rdi
callq 0x3e82
leaq -0x60(%rbp), %rdi
jmp 0x3b30
jmp 0x3b39
jmp 0x3b39
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x3e82
jmp 0x3b3c
jmp 0x3b39
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x3e82
leaq -0x30(%rbp), %rdi
callq 0x3e82
movq %rbx, %rdi
callq 0x3330