// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq 0x68(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rax
movl $0x1, %ecx
movq %rcx, 0x18(%rax)
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x48(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rax
movq 0x10(%rsp), %rdx
movl 0x2258(%rdx), %ecx
addl $0x1, %ecx
movl %ecx, 0x2258(%rdx)
movslq %ecx, %rcx
movq 0x2260(%rax,%rcx,8), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq 0x40(%rsp), %rdi
callq *%rax
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rsp), %rcx
movl 0x2258(%rcx), %eax
addl $0x1, %eax
movl %eax, 0x2258(%rcx)
movl %eax, 0x2c(%rsp)
movq 0x10(%rsp), %rax
movslq 0x2c(%rsp), %rcx
movq 0x2260(%rax,%rcx,8), %rax
movq %rax, 0x38(%rsp)
movq 0x48(%rsp), %rax
cmpq $0x1, 0x40(%rax)
jne 0xfe333
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0xb, %eax
jne 0xfe333
movq 0x30(%rsp), %rax
leaq -0x11d20(%rip), %rcx    # 0xec510
cmpq %rcx, (%rax)
jne 0xfe324
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
callq 0xdd130
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rdi
callq *%rax
testb $0x1, %al
jne 0xfe278
jmp 0xfe27a
jmp 0xfe2d9
movq 0x10(%rsp), %rax
movq 0x10(%rsp), %rdx
movl 0x2258(%rdx), %ecx
addl $0x1, %ecx
movl %ecx, 0x2258(%rdx)
movslq %ecx, %rcx
movq 0x2260(%rax,%rcx,8), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq 0x40(%rsp), %rdi
callq *%rax
movq 0x30(%rsp), %rdi
callq 0xec4e0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movl 0x2c(%rsp), %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x2258(%rax)
jmp 0xfe263
movq 0x48(%rsp), %rax
movq 0x28(%rax), %rax
movl %eax, %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x2258(%rax)
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rcx
addq $-0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rsp), %rax
movq 0x118(%rax), %rax
movq %rax, 0x50(%rsp)
jmp 0xfe40d
movq 0x48(%rsp), %rax
movq $0x2, 0x40(%rax)
jmp 0xfe333
jmp 0xfe335
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rdi
callq *%rax
testb $0x1, %al
jne 0xfe34a
jmp 0xfe34c
jmp 0xfe3c7
movq 0x10(%rsp), %rax
movq 0x10(%rsp), %rdx
movl 0x2258(%rdx), %ecx
addl $0x1, %ecx
movl %ecx, 0x2258(%rdx)
movslq %ecx, %rcx
movq 0x2260(%rax,%rcx,8), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq 0x40(%rsp), %rdi
callq *%rax
movq 0x10(%rsp), %rax
movl 0x2258(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x2258(%rax)
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x30(%rsp), %rdi
callq *%rax
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x10(%rax)
movl 0x2c(%rsp), %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x2258(%rax)
jmp 0xfe335
movq 0x48(%rsp), %rax
movq 0x28(%rax), %rax
movl %eax, %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x2258(%rax)
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rcx
addq $-0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rsp), %rax
movq 0x118(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
addq $0x58, %rsp
retq
nopw (%rax,%rax)