// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: check_type_uncertainty
static bool check_type_uncertainty(s7_scheme *sc, s7_pointer target, s7_pointer car_x, opt_info *opc, int32_t start_pc)
                {
                    /* fprintf(stderr, "%s[%d]: %s\n", __func__, __LINE__, DISPLAY(sc->code)); */

                    /* maybe the type uncertainty is not a problem */
                    if ((is_pair(sc->code)) &&      /* t101-aux-14: (vector-set! !v! 0 (do ((x (list 1 2 3) (cdr x)) (j -1)) ((null? x) j) (set! j (car x)))) */
                            (is_pair(car(sc->code))) &&
                            (is_pair(cadr(sc->code))))
                    {
                        s7_int counts;
                        if (!has_high_c(sc->code))
                        {
                            if (is_pair(caar(sc->code)))
                            {
                                s7_pointer p;
                                counts = tree_count(sc, target, car(sc->code), 0) +
                                    tree_count(sc, target, caadr(sc->code), 0) +
                                    tree_count(sc, target, cddr(sc->code), 0);
                                for (p = car(sc->code); is_pair(p); p = cdr(p))
                                {
                                    s7_pointer var;
                                    var = car(p);
                                    if ((is_proper_list_2(sc, var)) &&
                                            (car(var) == target))
                                        counts--;
                                }
                            }
                            else counts = tree_count(sc, target, sc->code, 0);
                        }
                        else counts = 2;
                        /* can be from lambda: (lambda (n)...): ((n) (set! sum (+ sum n))) etc */
                        if (counts <= 2)
                        {
                            set_has_high_c(sc->code);
                            pc_fallback(sc, start_pc);
                            if (cell_optimize(sc, cddr(car_x)))
                            {
                                opc->v[0].fp = opt_set_p_p_f;
                                opc->v[3].o1 = sc->opts[start_pc];
                                opc->v[4].fp = sc->opts[start_pc]->v[0].fp;
                                return(oo_set_type_1(opc, 5, 1, OO_P));
                            }
                        }
                    }
                    /* fprintf(stderr, "unhappy %s\n", DISPLAY_80(sc->code)); */
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq (%rdi), %r12
cmpb $0x1, (%r12)
jne 0x85d43
movq 0x8(%r12), %rbp
cmpb $0x1, (%rbp)
jne 0x85d43
movq 0x10(%r12), %rbx
movq 0x8(%rbx), %r15
cmpb $0x1, (%r15)
jne 0x85d43
movq %rdi, %r14
movq %rcx, 0x20(%rsp)
movq (%r12), %rax
btl $0x14, %eax
jb 0x85ce0
movq %rsi, %r13
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movl %r8d, 0x4(%rsp)
movq 0x8(%rbp), %rax
cmpb $0x1, (%rax)
jne 0x85cb8
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x86b07
movq %rax, 0x8(%rsp)
movq 0x8(%r15), %rdx
movq %r14, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x86b07
movq %rax, %r15
movq 0x10(%rbx), %rdx
movq %r14, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x86b07
movq %rax, %rbx
addq 0x8(%rsp), %rbx
addq %r15, %rbx
movb $0x1, %al
cmpb $0x1, %al
jne 0x85ccb
movq 0x8(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x86b4c
testb %al, %al
je 0x85caf
xorl %eax, %eax
cmpq %r13, 0x8(%r15)
sete %al
subq %rax, %rbx
movq 0x10(%rbp), %rbp
movb (%rbp), %al
jmp 0x85c8c
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x86b07
movq %rax, %rbx
cmpq $0x2, %rbx
movl 0x4(%rsp), %r8d
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rax
jg 0x85d43
orq $0x100000, %rax         # imm = 0x100000
movq %rax, (%r12)
movl %r8d, 0x2258(%r14)
movl %r8d, %ebx
movq 0x10(%rdx), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x80a38
testb %al, %al
je 0x85d43
leaq 0x331(%rip), %rax       # 0x86040
movq 0x20(%rsp), %rcx
movq %rax, (%rcx)
movslq %ebx, %rax
movq 0x2260(%r14,%rax,8), %rax
movq %rax, 0x18(%rcx)
movq (%rax), %rax
movq %rax, 0x20(%rcx)
movabsq $0x100000005, %rax      # imm = 0x100000005
movq %rax, 0x60(%rcx)
andl $0x0, 0x70(%rcx)
movb $0x1, %al
jmp 0x85d45
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq