// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: fx_num_eq_length_i
static s7_pointer fx_num_eq_length_i(s7_scheme *sc, s7_pointer arg)
                {
                    /* avoid make_integer (and telescope opts), we get here with car=length expr, cadr=int */
                    s7_int ilen;
                    s7_pointer val;

                    val = lookup(sc, opt3_sym(cdr(arg)));
                    ilen = integer(opt2_con(cdr(arg)));

                    switch (type(val))
                    {
                        case T_PAIR:         return(make_boolean(sc, s7_list_length(sc, val) == ilen));
                        case T_NIL:          return(make_boolean(sc, ilen == 0));
                        case T_STRING:       return(make_boolean(sc, string_length(val) == ilen));
                        case T_HASH_TABLE:   return(make_boolean(sc, (hash_table_mask(val) + 1) == ilen));
                        case T_C_OBJECT:     return(make_boolean(sc, c_object_length_to_int(sc, val) == ilen));
                        case T_LET:          return(make_boolean(sc, let_length(sc, val) == ilen));

                        case T_BYTE_VECTOR:
                        case T_INT_VECTOR:
                        case T_FLOAT_VECTOR:
                        case T_VECTOR:
                                             return(make_boolean(sc, vector_length(val) == ilen));

                        case T_ITERATOR:
                                             {
                                                 s7_pointer len;
                                                 len = s7_length(sc, iterator_sequence(val));
                                                 return(make_boolean(sc, (is_t_integer(len)) && (integer(len) == ilen)));
                                             }

                        case T_CLOSURE:
                        case T_CLOSURE_STAR:
                                             if (has_active_methods(sc, val))
                                                 return(make_boolean(sc, closure_length(sc, val) == ilen));
                                             /* fall through */

                        default:
                                             return(simple_wrong_type_argument_with_type(sc, sc->length_symbol, val, a_sequence_string));
                                             /* here we already lost because we checked for the length above */
                    }
                    return(sc->F);
                }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rsi), %rax
movq 0x28(%rax), %rcx
movq 0x8(%rdi), %rsi
movq 0x18(%rsi), %rdi
movq 0x20(%rcx), %rdx
cmpq %rdx, %rdi
je 0xbea59
jle 0xbea54
movq 0x10(%rsi), %rsi
movq 0x18(%rsi), %rdi
cmpq %rdi, %rdx
jl 0xbea47
cmpq %rdx, %rdi
jne 0xbea9a
movq 0x18(%rcx), %rcx
movq 0x10(%rcx), %rdx
movq 0x20(%rax), %rax
movq 0x8(%rax), %r14
movzbl (%rdx), %eax
leal -0x13(%rax), %ecx
cmpl $0x16, %ecx
ja 0xbead7
leaq 0x52ac1(%rip), %rax     # 0x11153c
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
xorl %eax, %eax
cmpq %r14, 0x8(%rdx)
setne %al
movq 0x118(%rbx,%rax,8), %rax
jmp 0xbebe6
cmpb $0x1c, (%rsi)
jne 0xbeaca
movq 0x8(%rsi), %r8
testq %r8, %r8
sete %dil
je 0xbeabc
cmpq %rcx, 0x8(%r8)
je 0xbeab8
movq 0x18(%r8), %r8
jmp 0xbeaa3
movq 0x10(%r8), %rdx
testb %dil, %dil
je 0xbea61
movq 0x10(%rsi), %rsi
cmpb $0x1c, (%rsi)
je 0xbea9f
movq 0x10(%rcx), %rcx
cmpb $0x20, (%rcx)
je 0xbea5d
xorl %edx, %edx
jmp 0xbea61
cmpl $0x2, %eax
je 0xbebee
cmpl $0x1, %eax
jne 0xbeb1b
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x3c299
jmp 0xbebd6
testb $0x40, 0x3(%rdx)
je 0xbeb1b
cmpb $0x1, 0x24c(%rbx)
jne 0xbeb1b
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x39c45
cltq
xorl %ecx, %ecx
cmpq %rax, %r14
jmp 0xbebdb
movq 0x1218(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x140(%rbx), %rcx
movq 0x940dc(%rip), %r8      # 0x152c10
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xfac8
movq 0x8d8(%rbx), %rax
movq 0x8(%rdx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x58(%rax), %rax
testq %rax, %rax
je 0xbeb82
movq 0x730(%rbx), %rcx
movq %rdx, 0x8(%rcx)
movq 0x730(%rbx), %rsi
movq %rbx, %rdi
callq *%rax
movb (%rax), %dl
cmpb $0xb, %dl
jne 0xbeb7d
movq 0x8(%rax), %rcx
cmpb $0xb, %dl
je 0xbeb89
movq $-0x1, %rcx
xorl %eax, %eax
cmpq %r14, %rcx
jmp 0xbea8a
movq 0x8(%rdx), %rax
incq %rax
jmp 0xbebd6
movq 0x8(%rdx), %rsi
movzbl (%rsi), %eax
leaq 0x9dff6(%rip), %rcx     # 0x15cba0
movq %rbx, %rdi
callq *(%rcx,%rax,8)
cmpb $0xb, (%rax)
jne 0xbebc0
movl $0x118, %ecx            # imm = 0x118
cmpq %r14, 0x8(%rax)
je 0xbebc5
movl $0x120, %ecx            # imm = 0x120
movq (%rbx,%rcx), %rax
jmp 0xbebe6
movq %rbx, %rdi
movq %rdx, %rsi
callq 0xa0d83
xorl %ecx, %ecx
cmpq %r14, %rax
setne %cl
movq 0x118(%rbx,%rcx,8), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
xorl %eax, %eax
testq %r14, %r14
jmp 0xbea8a