// File: /workspace/github_c_makefile_star2_O1/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 0xaf18e
movq %rdx, %r15
movq 0x8(%r12), %rdx
cmpb $0x1, (%rdx)
jne 0xaf18e
movq 0x10(%r12), %rbp
movq 0x8(%rbp), %rbx
cmpb $0x1, (%rbx)
jne 0xaf18e
movq %rdi, %r14
movq %rcx, 0x20(%rsp)
movq (%r12), %rdi
movl $0x2, %eax
btl $0x14, %edi
jb 0xaf119
movq %rsi, %r13
movq %rdi, 0x10(%rsp)
movl %r8d, 0xc(%rsp)
movq 0x8(%rdx), %rax
cmpb $0x1, (%rax)
jne 0xaf0ff
movq %r14, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xb0353
movq %rax, 0x18(%rsp)
movq 0x8(%rbx), %rdx
movq %r14, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xb0353
movq %rax, %rbx
movq 0x10(%rbp), %rdx
movq %r14, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xb0353
addq 0x18(%rsp), %rax
addq %rbx, %rax
movq 0x8(%r12), %rcx
cmpb $0x1, (%rcx)
jne 0xaf10f
movl 0xc(%rsp), %r8d
movq 0x10(%rsp), %rdi
movq 0x8(%rcx), %rdx
cmpb $0x1, (%rdx)
jne 0xaf0f4
movq 0x10(%rdx), %rsi
cmpb $0x1, (%rsi)
jne 0xaf0f4
movq 0x10(%rsi), %rsi
cmpq 0x110(%r14), %rsi
jne 0xaf0f4
xorl %esi, %esi
cmpq %r13, 0x8(%rdx)
sete %sil
subq %rsi, %rax
movq 0x10(%rcx), %rcx
cmpb $0x1, (%rcx)
je 0xaf0c8
jmp 0xaf119
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0xb0353
movl 0xc(%rsp), %r8d
movq 0x10(%rsp), %rdi
cmpq $0x2, %rax
jg 0xaf18e
orq $0x100000, %rdi         # imm = 0x100000
movq %rdi, (%r12)
movl %r8d, 0x2258(%r14)
movq 0x10(%r15), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
movl %r8d, %ebx
callq 0xa8bbb
testb %al, %al
je 0xaf18e
leaq 0x4dc(%rip), %rax       # 0xaf62b
movq 0x20(%rsp), %rdx
movq %rax, (%rdx)
movslq %ebx, %rax
movq 0x2260(%r14,%rax,8), %rcx
movq %rcx, 0x18(%rdx)
movq 0x2260(%r14,%rax,8), %rax
movq (%rax), %rax
movq %rax, 0x20(%rdx)
movabsq $0x100000005, %rax      # imm = 0x100000005
movq %rax, 0x60(%rdx)
movl $0x0, 0x70(%rdx)
movb $0x1, %al
jmp 0xaf190
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq