// File: /workspace/github_cpp_makefile_star2_O1/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 0x3a98
movq 0x164f8(%rip), %rax     # 0x19f80
cmpb $0x0, (%rax)
je 0x3a93
incl 0x8(%r13)
jmp 0x3a98
lock
incl 0x8(%r13)
movq (%rsi), %rax
movq %rax, -0x38(%rbp)
movq 0x8(%rsi), %rax
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x3ac9
movq 0x164cd(%rip), %rax     # 0x19f80
cmpb $0x0, (%rax)
je 0x3ac1
movq -0x30(%rbp), %rax
incl 0x8(%rax)
jmp 0x3ac9
movq -0x30(%rbp), %rax
lock
incl 0x8(%rax)
movq %r12, %rdi
callq 0x4ff4
movq %rax, %r14
movq -0x38(%rbp), %rdi
callq 0x4ff4
cmpq %rax, %r14
jne 0x3cb0
movq -0x40(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x40(%rbp)
cmpq %rbx, %rax
je 0x3b03
movq -0x40(%rbp), %rdi
movq %rbx, %rsi
callq 0x4180
leaq -0x70(%rbp), %rbx
leaq -0xb0(%rbp), %r15
movq %r12, %rdi
callq 0x4c7c
testb %al, %al
jne 0x3d36
movq %rbx, %rdi
movq %r12, %rsi
callq 0x634a
movq -0x70(%rbp), %rdi
callq 0x4ef8
movl %eax, %r14d
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x3b43
callq 0x4114
testb %r14b, %r14b
je 0x3d3a
leaq -0x80(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x634a
leaq -0x90(%rbp), %rdi
movq %r12, %rsi
callq 0x634a
movq -0x90(%rbp), %rax
movq (%rax), %rdi
callq 0x4695
movq %rax, %r14
testq %rax, %rax
je 0x3db1
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x45ce
movb 0x20(%r14), %al
movb %al, -0x50(%rbp)
movq %r15, %r14
movq %r15, %rdi
movq %rbx, %rsi
callq 0x38ac
movq -0x40(%rbp), %rdi
movq %r14, %rsi
callq 0x483e
movaps -0x80(%rbp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, -0x80(%rbp)
movq 0x8(%rax), %rdi
movups %xmm0, (%rax)
testq %rdi, %rdi
je 0x3bda
callq 0x4114
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x3bfc
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x31f0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3c15
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x31f0
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x3c26
callq 0x4114
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x3c34
callq 0x4114
movq %rbx, %rdi
movq %r12, %rsi
callq 0x627a
movq -0x70(%rbp), %r12
movq -0x68(%rbp), %r14
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
testq %r13, %r13
je 0x3c5b
movq %r13, %rdi
callq 0x4114
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x3c69
callq 0x4114
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
callq 0x627a
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 0x3c96
callq 0x4114
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x3ca4
callq 0x4114
movq %r13, -0x30(%rbp)
movq %r14, %r13
jmp 0x3b0e
movq 0x16331(%rip), %rdi     # 0x19fe8
leaq 0xf376(%rip), %rsi      # 0x13034
movl $0x24, %edx
callq 0x3210
movq %r12, %rdi
callq 0x4ff4
movq 0x16311(%rip), %rdi     # 0x19fe8
movq %rax, %rsi
callq 0x3150
movq %rax, %rbx
leaq 0xf370(%rip), %rsi      # 0x13059
movl $0x4, %edx
movq %rax, %rdi
callq 0x3210
movq -0x38(%rbp), %rdi
callq 0x4ff4
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 0x3d80
movb $0x1, %bl
jmp 0x3d82
movq 0x162a7(%rip), %rbx     # 0x19fe8
leaq 0xf316(%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 0x16275(%rip), %rdi     # 0x19fe8
callq 0x3030
movq %rax, %rdi
callq 0x3160
xorl %ebx, %ebx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x3d90
callq 0x4114
testq %r13, %r13
je 0x3d9d
movq %r13, %rdi
callq 0x4114
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4667
jmp 0x3db8
movq %rax, %rbx
jmp 0x3e05
movq %rax, %rbx
jmp 0x3dec
jmp 0x3e4a
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x3dec
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x31f0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3e05
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x31f0
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x3e1b
callq 0x4114
jmp 0x3e1b
movq %rax, %rbx
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x3e4d
callq 0x4114
jmp 0x3e4d
jmp 0x3e4a
movq %rax, %rdi
callq 0x4085
movq %rax, %rbx
movq %r14, %r13
jmp 0x3e4d
jmp 0x3e4a
movq %rax, %rbx
movq -0x68(%rbp), %rdi
jmp 0x3e1f
jmp 0x3e4a
movq %rax, %rbx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x3e5b
callq 0x4114
testq %r13, %r13
je 0x3e68
movq %r13, %rdi
callq 0x4114
movq %rbx, %rdi
callq 0x3310