// File: /workspace/github_cpp_makefile_star2_O3/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, %rbx
movq (%rdi), %r12
movq %rdi, -0x40(%rbp)
movq 0x8(%rdi), %r13
testq %r13, %r13
je 0x3a88
movq 0x16508(%rip), %rax     # 0x19f80
cmpb $0x0, (%rax)
je 0x3a83
incl 0x8(%r13)
jmp 0x3a88
lock
incl 0x8(%r13)
movq (%rsi), %rax
movq %rax, -0x38(%rbp)
movq 0x8(%rsi), %rax
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x3ab9
movq 0x164dd(%rip), %rax     # 0x19f80
cmpb $0x0, (%rax)
je 0x3ab1
movq -0x30(%rbp), %rax
incl 0x8(%rax)
jmp 0x3ab9
movq -0x30(%rbp), %rax
lock
incl 0x8(%rax)
movq %r12, %rdi
callq 0x4fb6
movq %rax, %r14
movq -0x38(%rbp), %rdi
callq 0x4fb6
cmpq %rax, %r14
jne 0x3ca0
movq -0x40(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x40(%rbp)
cmpq %rbx, %rax
je 0x3af3
movq -0x40(%rbp), %rdi
movq %rbx, %rsi
callq 0x4170
leaq -0x70(%rbp), %rbx
leaq -0xb0(%rbp), %r15
movq %r12, %rdi
callq 0x4c74
testb %al, %al
jne 0x3d26
movq %rbx, %rdi
movq %r12, %rsi
callq 0x628e
movq -0x70(%rbp), %rdi
callq 0x4ed6
movl %eax, %r14d
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x3b33
callq 0x4104
testb %r14b, %r14b
je 0x3d2a
leaq -0x80(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x628e
leaq -0x90(%rbp), %rdi
movq %r12, %rsi
callq 0x628e
movq -0x90(%rbp), %rax
movq (%rax), %rdi
callq 0x4696
movq %rax, %r14
testq %rax, %rax
je 0x3da1
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x45ca
movb 0x20(%r14), %al
movb %al, -0x50(%rbp)
movq %r15, %r14
movq %r15, %rdi
movq %rbx, %rsi
callq 0x389c
movq -0x40(%rbp), %rdi
movq %r14, %rsi
callq 0x4840
movaps -0x80(%rbp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, -0x80(%rbp)
movq 0x8(%rax), %rdi
movups %xmm0, (%rax)
testq %rdi, %rdi
je 0x3bca
callq 0x4104
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x3bec
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x31f0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3c05
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x31f0
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x3c16
callq 0x4104
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x3c24
callq 0x4104
movq %rbx, %rdi
movq %r12, %rsi
callq 0x61be
movq -0x70(%rbp), %r12
movq -0x68(%rbp), %r14
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
testq %r13, %r13
je 0x3c59
movq %r13, %rdi
callq 0x4104
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x3c59
callq 0x4104
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
callq 0x61be
movq -0x70(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x68(%rbp), %r13
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x3c94
callq 0x4104
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x3c94
callq 0x4104
movq %r13, -0x30(%rbp)
movq %r14, %r13
jmp 0x3afe
movq 0x16341(%rip), %rdi     # 0x19fe8
leaq 0xf386(%rip), %rsi      # 0x13034
movl $0x24, %edx
callq 0x3210
movq %r12, %rdi
callq 0x4fb6
movq 0x16321(%rip), %rdi     # 0x19fe8
movq %rax, %rsi
callq 0x3150
movq %rax, %rbx
leaq 0xf380(%rip), %rsi      # 0x13059
movl $0x4, %edx
movq %rax, %rdi
callq 0x3210
movq -0x38(%rbp), %rdi
callq 0x4fb6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3150
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3160
jmp 0x3d70
movb $0x1, %bl
jmp 0x3d72
movq 0x162b7(%rip), %rbx     # 0x19fe8
leaq 0xf326(%rip), %rsi      # 0x1305e
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x3210
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq 0x16285(%rip), %rdi     # 0x19fe8
callq 0x3030
movq %rax, %rdi
callq 0x3160
xorl %ebx, %ebx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x3d80
callq 0x4104
testq %r13, %r13
je 0x3d8d
movq %r13, %rdi
callq 0x4104
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4668
jmp 0x3da8
movq %rax, %rbx
jmp 0x3df5
movq %rax, %rbx
jmp 0x3ddc
jmp 0x3e3a
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x3ddc
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x31f0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3df5
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x31f0
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x3e0b
callq 0x4104
jmp 0x3e0b
movq %rax, %rbx
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x3e3d
callq 0x4104
jmp 0x3e3d
jmp 0x3e3a
movq %rax, %rdi
callq 0x4075
movq %rax, %rbx
movq %r14, %r13
jmp 0x3e3d
jmp 0x3e3a
movq %rax, %rbx
movq -0x68(%rbp), %rdi
jmp 0x3e0f
jmp 0x3e3a
movq %rax, %rbx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x3e4b
callq 0x4104
testq %r13, %r13
je 0x3e58
movq %r13, %rdi
callq 0x4104
movq %rbx, %rdi
callq 0x3310