// File: /workspace/github_c_makefile_star2_O2/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, %r13
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 0x48(%rdi), %r15
movq 0x8(%rax), %r14
movslq 0x2258(%rbx), %rax
leaq 0x1(%rax), %rcx
movl %ecx, 0x2258(%rbx)
movq 0x2268(%rbx,%rax,8), %rdi
callq *(%rdi)
movq %rax, 0x10(%r14)
movslq 0x2258(%rbx), %rax
leaq 0x1(%rax), %rbp
movl %ebp, 0x2258(%rbx)
movq 0x2268(%rbx,%rax,8), %r12
cmpq $0x1, 0x40(%r13)
movq %r13, 0x8(%rsp)
jne 0x89cc5
movq 0x10(%r14), %rax
cmpb $0xb, (%rax)
jne 0x89cc5
leaq -0x4315(%rip), %rcx     # 0x85971
cmpq %rcx, (%r15)
je 0x89d02
movq $0x2, 0x40(%r13)
jmp 0x89cc5
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(%r14)
movl %ebp, 0x2258(%rbx)
movq %r12, %rdi
callq *(%r12)
testb %al, %al
je 0x89c95
movq 0x8(%rsp), %rax
movl 0x28(%rax), %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), %rsi
movq %rbx, %rdi
callq 0x7c936
movq %rax, %r13
movq %rax, 0x10(%r14)
movq %r12, %rdi
callq *(%r12)
testb %al, %al
jne 0x89cd0
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 0x89d15