// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: fx_less_length_i
static s7_pointer fx_less_length_i(s7_scheme *sc, s7_pointer arg)
                {
                    s7_int ilen;
                    s7_pointer val;

                    val = lookup(sc, opt3_sym(cdr(arg)));  /* cadadr(arg) */
                    ilen = integer(opt2_con(cdr(arg)));    /* caddr(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)); /* was <=? -- changed 15-Dec-15, then again 6-Jan-17: mask is len-1 */
                        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));  /* this works because let_length handles the length method itself! */

                        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)); /* no check method here because we checked 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 0xbe880
jle 0xbe87b
movq 0x10(%rsi), %rsi
movq 0x18(%rsi), %rdi
cmpq %rdi, %rdx
jl 0xbe86e
cmpq %rdx, %rdi
jne 0xbe8c1
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 0xbe8fe
leaq 0x52c3e(%rip), %rax     # 0x1114e0
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
xorl %eax, %eax
cmpq %r14, 0x8(%rdx)
setge %al
movq 0x118(%rbx,%rax,8), %rax
jmp 0xbea10
cmpb $0x1c, (%rsi)
jne 0xbe8f1
movq 0x8(%rsi), %r8
testq %r8, %r8
sete %dil
je 0xbe8e3
cmpq %rcx, 0x8(%r8)
je 0xbe8df
movq 0x18(%r8), %r8
jmp 0xbe8ca
movq 0x10(%r8), %rdx
testb %dil, %dil
je 0xbe888
movq 0x10(%rsi), %rsi
cmpb $0x1c, (%rsi)
je 0xbe8c6
movq 0x10(%rcx), %rcx
cmpb $0x20, (%rcx)
je 0xbe884
xorl %edx, %edx
jmp 0xbe888
cmpl $0x2, %eax
je 0xbea18
cmpl $0x1, %eax
jne 0xbe945
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x3c299
jmp 0xbea00
testb $0x40, 0x3(%rdx)
je 0xbe945
cmpb $0x1, 0x24c(%rbx)
jne 0xbe945
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x39c45
cltq
xorl %ecx, %ecx
cmpq %rax, %r14
setle %cl
jmp 0xbea08
movq 0x1218(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x140(%rbx), %rcx
movq 0x942b2(%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 0xbe9ac
movq 0x730(%rbx), %rcx
movq %rdx, 0x8(%rcx)
movq 0x730(%rbx), %rsi
movq %rbx, %rdi
callq *%rax
movb (%rax), %dl
cmpb $0xb, %dl
jne 0xbe9a7
movq 0x8(%rax), %rcx
cmpb $0xb, %dl
je 0xbe9b3
movq $-0x1, %rcx
xorl %eax, %eax
cmpq %r14, %rcx
jmp 0xbe8b1
movq 0x8(%rdx), %rax
incq %rax
jmp 0xbea00
movq 0x8(%rdx), %rsi
movzbl (%rsi), %eax
leaq 0x9e1cc(%rip), %rcx     # 0x15cba0
movq %rbx, %rdi
callq *(%rcx,%rax,8)
cmpb $0xb, (%rax)
jne 0xbe9ea
movl $0x118, %ecx            # imm = 0x118
cmpq %r14, 0x8(%rax)
jl 0xbe9ef
movl $0x120, %ecx            # imm = 0x120
movq (%rbx,%rcx), %rax
jmp 0xbea10
movq %rbx, %rdi
movq %rdx, %rsi
callq 0xa0d83
xorl %ecx, %ecx
cmpq %r14, %rax
setge %cl
movq 0x118(%rbx,%rcx,8), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
xorl %eax, %eax
testq %r14, %r14
setle %al
jmp 0xbe8b4