// File: /workspace/github_c_makefile_star2_O3/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), %ebp
movq 0x8(%rax), %rbx
movslq 0x2258(%r12), %rax
leaq 0x1(%rax), %rcx
movl %ecx, 0x2258(%r12)
movq 0x2268(%r12,%rax,8), %rdi
callq *(%rdi)
movq %rax, 0x10(%rbx)
movslq 0x2258(%r12), %rax
leaq 0x1(%rax), %r13
movl %r13d, 0x2258(%r12)
movq 0x2268(%r12,%rax,8), %r15
movq %r15, %rdi
callq *(%r15)
movl %ebp, 0x4(%rsp)
cmpl $0x2, %ebp
jne 0xacf79
testb %al, %al
jne 0xacfd7
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(%rbx)
movl %r13d, 0x2258(%r12)
movq %r15, %rdi
callq *(%r15)
jmp 0xacf15
testb %al, %al
jne 0xacfd7
movq %r13, %rbp
movq %rbx, %r13
cmpl $0x0, 0x4(%rsp)
jle 0xacfaf
movl 0x4(%rsp), %ebx
movslq 0x2258(%r12), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%r12)
movq 0x2268(%r12,%rax,8), %rdi
callq *(%rdi)
decl %ebx
jne 0xacf8e
incl 0x2258(%r12)
movq %r14, %rdi
callq *(%r14)
movq %r13, %rbx
movq %rax, 0x10(%r13)
movq %rbp, %r13
movl %r13d, 0x2258(%r12)
movq %r15, %rdi
callq *(%r15)
jmp 0xacf79
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