// File: /workspace/github_c_makefile_star2_O3/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 0xa82d5
movq 0x8(%r12), %rbp
cmpb $0x1, (%rbp)
jne 0xa82d5
movq 0x10(%r12), %rbx
movq 0x8(%rbx), %r15
cmpb $0x1, (%r15)
jne 0xa82d5
movq %rdi, %r14
movq %rcx, 0x20(%rsp)
movq (%r12), %rax
btl $0x14, %eax
jb 0xa826f
movq %rsi, %r13
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movl %r8d, 0x4(%rsp)
movq 0x8(%rbp), %rax
cmpb $0x1, (%rax)
jne 0xa824a
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0xa9428
movq %rax, 0x8(%rsp)
movq 0x8(%r15), %rdx
movq %r14, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xa9428
movq %rax, %r15
movq 0x10(%rbx), %rdx
movq %r14, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xa9428
addq 0x8(%rsp), %rax
addq %r15, %rax
movl 0x4(%rsp), %r8d
movq 0x8(%rbp), %rcx
cmpb $0x1, (%rcx)
jne 0xa823e
movq 0x10(%rcx), %rdx
cmpb $0x1, (%rdx)
jne 0xa823e
movq 0x10(%rdx), %rdx
cmpq 0x110(%r14), %rdx
jne 0xa823e
xorl %edx, %edx
cmpq %r13, 0x8(%rcx)
sete %dl
subq %rdx, %rax
movq 0x10(%rbp), %rbp
cmpb $0x1, (%rbp)
je 0xa8213
jmp 0xa825f
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0xa9428
movl 0x4(%rsp), %r8d
cmpq $0x2, %rax
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rax
jg 0xa82d5
orq $0x100000, %rax         # imm = 0x100000
movq %rax, (%r12)
movl %r8d, 0x2258(%r14)
movq 0x10(%rdx), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
movl %r8d, %ebx
callq 0xa2000
testb %al, %al
je 0xa82d5
leaq 0x462(%rip), %rax       # 0xa8700
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)
movl $0x0, 0x70(%rcx)
movb $0x1, %al
jmp 0xa82d7
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq