// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: op_tc_if_a_z_if_a_la_z
static bool op_tc_if_a_z_if_a_la_z(s7_scheme *sc, s7_pointer code)
                {
                    s7_pointer if_test, if_true, if_false, f_test, f_true, f_false, la, la_slot, endp;
                    if_test = cdr(code);
                    if_true = cdr(if_test);
                    if_false = cadr(if_true);
                    f_test = cdr(if_false);
                    f_true = cdr(f_test);
                    f_false = cdr(f_true);
                    la = cdar(f_true);
                    la_slot = let_slots(sc->envir);

                    if (is_t_integer(slot_value(la_slot)))
                    {
                        opt_info *o;
                        sc->pc = 0;
                        o = sc->opts[0];
                        if (bool_optimize_nw(sc, if_test))
                        {
                            opt_info *o1;
                            o1 = sc->opts[sc->pc];
                            if (bool_optimize_nw(sc, f_test))
                            {
                                opt_info *o2;
                                o2 = sc->opts[sc->pc];
                                if (int_optimize(sc, la))
                                {
                                    s7_pointer val;
                                    slot_set_value(la_slot, val = make_mutable_integer(sc, integer(slot_value(la_slot))));
                                    while (true)
                                    {
                                        sc->pc = 0;
                                        if (o->v[0].fb(o)) {endp = if_true; break;}
                                        sc->pc++;
                                        if (o1->v[0].fb(o1))
                                        {
                                            sc->pc++;
                                            integer(val) = o2->v[0].fi(o2);
                                        }
                                        else {endp = f_false; break;}
                                    }
                                    return(op_tc_z(sc, endp));
                                }}}}

                    while (true)
                    {
                        if (fx_call(sc, if_test) != sc->F) {endp = if_true; break;}
                        if (fx_call(sc, f_test) == sc->F) {endp = f_false; break;}
                        slot_set_value(la_slot, fx_call(sc, la));
                    }
                    return(op_tc_z(sc, endp));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x10(%rsi), %r15
movq 0x10(%r15), %rbp
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %r12
movq 0x10(%r12), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rcx), %r13
movq 0x8(%rdi), %rax
movq 0x8(%rax), %r14
movq 0x10(%r14), %rax
cmpb $0xb, (%rax)
jne 0xc497e
movl $0x0, 0x2258(%rbx)
movq 0x2260(%rbx), %rax
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa9cd3
testb %al, %al
je 0xc497e
movslq 0x2258(%rbx), %rax
movq 0x2260(%rbx,%rax,8), %rax
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa9cd3
testb %al, %al
je 0xc497e
movslq 0x2258(%rbx), %rax
movq 0x2260(%rbx,%rax,8), %rax
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x9fbc8
testb %al, %al
je 0xc497e
movq 0x10(%r14), %rax
movq 0x8(%rax), %r12
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0xc48e0
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r15
movq $0x500000b, (%r15)      # imm = 0x500000B
movq %r12, 0x8(%r15)
movq %r15, 0x10(%r14)
movl $0x0, 0x2258(%rbx)
movq 0x20(%rsp), %r14
movq %r14, %rdi
callq *(%r14)
testb %al, %al
movq 0x10(%rsp), %r13
jne 0xc4999
movq 0x18(%rsp), %r12
incl 0x2258(%rbx)
movq %r12, %rdi
callq *(%r12)
testb %al, %al
je 0xc4994
incl 0x2258(%rbx)
movq %r13, %rdi
callq *(%r13)
movq %rax, 0x8(%r15)
movl $0x0, 0x2258(%rbx)
movq %r14, %rdi
callq *(%r14)
testb %al, %al
je 0xc4921
jmp 0xc4999
movq 0x8(%r12), %rsi
movq %rbx, %rdi
callq *0x20(%r12)
cmpq 0x120(%rbx), %rax
je 0xc4994
movq 0x8(%r13), %rsi
movq %rbx, %rdi
callq *0x20(%r13)
movq %rax, 0x10(%r14)
movq 0x8(%r15), %rsi
movq %rbx, %rdi
callq *0x20(%r15)
cmpq 0x120(%rbx), %rax
je 0xc4959
jmp 0xc4999
movq 0x8(%rsp), %rbp
testb $0x4, 0x6(%rbp)
jne 0xc49aa
movq 0x8(%rbp), %rax
movq %rax, (%rbx)
xorl %eax, %eax
jmp 0xc49ba
movq 0x8(%rbp), %rsi
movq %rbx, %rdi
callq *0x20(%rbp)
movq %rax, 0x20(%rbx)
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq