// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: opt_do_n
static s7_pointer opt_do_n(opt_info *o)
                {
                    /* 1 var, no return */
                    opt_info *o1, *ostart, *ostep; /* o->v[2].p=frame, o->v[1].i=body end index, o->v[3].i=body length, o->v[4].i=return length, o->v[5].i=end index */
                    int32_t loop, len;
                    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;
                    len = o->v[3].i;

                    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 (len == 2)
                    {
                        while (true)
                        {
                            if (ostart->v[0].fb(ostart)) break;
                            o1 = sc->opts[++sc->pc];
                            o1->v[0].fp(o1);
                            o1 = sc->opts[++sc->pc];
                            o1->v[0].fp(o1);
                            sc->pc++;
                            slot_set_value(vp, ostep->v[0].fp(ostep));
                            sc->pc = loop;
                        }
                    }
                    else
                    {
                        while (true)
                        {
                            int32_t i;
                            if (ostart->v[0].fb(ostart))
                                break;
                            for (i = 0; i < len; i++)
                            {
                                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 0x68(%rdi), %r12
movq 0x8(%r12), %rcx
movq 0x50(%r12), %rax
movq %rcx, 0x10(%rsp)
movq %rcx, 0x10(%rax)
movq 0x50(%r12), %rax
movq $0x1, 0x18(%rax)
addq $0x20, 0x50(%r12)
movq 0x10(%rdi), %rax
movq %rax, 0x8(%r12)
movq 0x48(%rdi), %r14
movq %rdi, 0x8(%rsp)
movl 0x18(%rdi), %ebx
movq 0x8(%rax), %rbp
movslq 0x2258(%r12), %rax
leaq 0x1(%rax), %rcx
movl %ecx, 0x2258(%r12)
movq 0x2268(%r12,%rax,8), %rdi
callq *(%rdi)
movq %rax, 0x10(%rbp)
movslq 0x2258(%r12), %rax
leaq 0x1(%rax), %r13
movl %r13d, 0x2258(%r12)
movq 0x2268(%r12,%rax,8), %r15
cmpl $0x2, %ebx
jne 0x89e56
movq %r15, %rdi
callq *(%r15)
testb %al, %al
jne 0x89ea7
movslq 0x2258(%r12), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%r12)
movq 0x2268(%r12,%rax,8), %rdi
callq *(%rdi)
movslq 0x2258(%r12), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%r12)
movq 0x2268(%r12,%rax,8), %rdi
callq *(%rdi)
incl 0x2258(%r12)
movq %r14, %rdi
callq *(%r14)
movq %rax, 0x10(%rbp)
movl %r13d, 0x2258(%r12)
jmp 0x89df2
xorl %eax, %eax
testl %ebx, %ebx
cmovgl %ebx, %eax
movl %eax, 0x4(%rsp)
movq %r15, %rdi
callq *(%r15)
testb %al, %al
jne 0x89ea7
movl 0x4(%rsp), %ebx
movslq 0x2258(%r12), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%r12)
subl $0x1, %ebx
jb 0x89e93
movq 0x2268(%r12,%rax,8), %rdi
callq *(%rdi)
jmp 0x89e6f
movq %r14, %rdi
callq *(%r14)
movq %rax, 0x10(%rbp)
movl %r13d, 0x2258(%r12)
jmp 0x89e61
movq 0x8(%rsp), %rax
movl 0x28(%rax), %eax
movl %eax, 0x2258(%r12)
addq $-0x20, 0x50(%r12)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%r12)
movq 0x118(%r12), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq