// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: opt_do_1
static s7_pointer opt_do_1(opt_info *o)
                {
                    /* 1 var, 1 expr, no return */
                    opt_info *o1, *ostart, *ostep; /* o->v[2].p=frame, o->v[5].i=end index */
                    int32_t loop;
                    s7_pointer vp, old_e;
                    s7_scheme *sc;
                    sc = o->sc;

                    oo_rc(sc, o, 10, 0);
                    old_e = sc->envir;
                    push_stack_no_let_no_code(sc, OP_GC_PROTECT, old_e);
                    sc->envir = o->v[2].p;

                    ostep = o->v[9].o1;
                    vp = let_slots(o->v[2].p);
                    o1 = sc->opts[++sc->pc];
                    slot_set_value(vp, o1->v[0].fp(o1));

                    loop = ++sc->pc;
                    ostart = sc->opts[loop];

                    if ((o->v[8].i == 1) &&
                            (is_t_integer(slot_value(vp))))
                    {
                        if (ostep->v[0].fp == opt_p_ii_ss_add)
                        {
                            s7_pointer step_val;
                            step_val = make_mutable_integer(sc, integer(slot_value(vp)));
                            slot_set_value(vp, step_val);
                            while (true)
                            {
                                if (ostart->v[0].fb(ostart)) break;
                                o1 = sc->opts[++sc->pc];
                                o1->v[0].fp(o1);
                                integer(step_val) = opt_i_ii_ss_add(ostep);
                                sc->pc = loop;
                            }
                            sc->pc = o->v[5].i;
                            unstack(sc);
                            sc->envir = old_e;
                            return(sc->T);
                        }
                        else
                        {
#if S7_DEBUGGING && (0)
                            fprintf(stderr, "%s: not add: %s\n", __func__, DISPLAY(o->vexpr));
#endif
                            o->v[8].i = 2;
                        }
                    }

                    while (true)
                    {
                        if (ostart->v[0].fb(ostart)) break;
                        o1 = sc->opts[++sc->pc];
                        o1->v[0].fp(o1);
                        sc->pc++;
                        slot_set_value(vp, ostep->v[0].fp(ostep));
                        sc->pc = loop;
                    }
                    sc->pc = o->v[5].i;
                    unstack(sc);
                    sc->envir = old_e;
                    return(sc->T);
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq 0x68(%rdi), %rbx
movq 0x8(%rbx), %rcx
movq 0x50(%rbx), %rax
movq %rcx, 0x10(%rsp)
movq %rcx, 0x10(%rax)
movq 0x50(%rbx), %rax
movq $0x1, 0x18(%rax)
addq $0x20, 0x50(%rbx)
movq 0x10(%rdi), %rax
movq %rax, 0x8(%rbx)
movq 0x10(%rdi), %rax
movq 0x48(%rdi), %r15
movq 0x8(%rax), %r13
movslq 0x2258(%rbx), %rax
leaq 0x1(%rax), %rcx
movl %ecx, 0x2258(%rbx)
movq 0x2268(%rbx,%rax,8), %rdi
callq *(%rdi)
movq %rax, 0x10(%r13)
movslq 0x2258(%rbx), %rax
leaq 0x1(%rax), %rbp
movl %ebp, 0x2258(%rbx)
movq 0x2268(%rbx,%rax,8), %r12
cmpq $0x1, 0x40(%r14)
jne 0xb3da9
movq 0x10(%r13), %rax
cmpb $0xb, (%rax)
jne 0xb3da9
leaq -0x986b(%rip), %rcx     # 0xaa4ff
cmpq %rcx, (%r15)
je 0xb3de2
movq $0x2, 0x40(%r14)
jmp 0xb3da9
movslq 0x2258(%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%rbx)
movq 0x2268(%rbx,%rax,8), %rdi
callq *(%rdi)
incl 0x2258(%rbx)
movq %r15, %rdi
callq *(%r15)
movq %rax, 0x10(%r13)
movl %ebp, 0x2258(%rbx)
movq %r12, %rdi
callq *(%r12)
testb %al, %al
je 0xb3d79
movl 0x28(%r14), %eax
movl %eax, 0x2258(%rbx)
addq $-0x20, 0x50(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rbx)
movq 0x118(%rbx), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rax), %rdx
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0xb3e08
movq %rbx, %rdi
movq %rdx, 0x8(%rsp)
callq 0xb389
movq 0x8(%rsp), %rdx
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0x500000b, (%rax)      # imm = 0x500000B
movq %rdx, 0x8(%rax)
movq %rax, 0x10(%r13)
movq %rax, %r13
movq %r12, %rdi
callq *(%r12)
testb %al, %al
jne 0xb3db4
movslq 0x2258(%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%rbx)
movq 0x2268(%rbx,%rax,8), %rdi
callq *(%rdi)
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
movq 0x10(%rax), %rax
movq 0x10(%rcx), %rcx
movq 0x8(%rcx), %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%r13)
movl %ebp, 0x2258(%rbx)
jmp 0xb3e30