// File: /workspace/github_c_makefile_star2_O1/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 $0x28, %rsp
movq 0x68(%rdi), %r12
movq 0x8(%r12), %rcx
movq 0x50(%r12), %rax
movq %rcx, 0x20(%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), %rax
movq %rax, 0x10(%rsp)
movl 0x18(%rdi), %ebp
movq %rdi, 0x18(%rsp)
movq 0x10(%rdi), %rax
movq 0x8(%rax), %r13
movslq 0x2258(%r12), %rax
leaq 0x1(%rax), %rcx
movl %ecx, 0x2258(%r12)
movq 0x2268(%r12,%rax,8), %rdi
callq *(%rdi)
movq %rax, 0x10(%r13)
movslq 0x2258(%r12), %rax
leaq 0x1(%rax), %r14
movl %r14d, 0x2258(%r12)
movq 0x2268(%r12,%rax,8), %r15
movl %ebp, 0xc(%rsp)
cmpl $0x2, %ebp
jne 0xb3f83
movq %r15, %rdi
callq *(%r15)
testb %al, %al
jne 0xb3fe3
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 0x10(%rsp), %rdi
callq *(%rdi)
movq %rax, 0x10(%r13)
movl %r14d, 0x2258(%r12)
jmp 0xb3f1e
movq %r15, %rdi
callq *(%r15)
testb %al, %al
jne 0xb3fe3
movl %eax, %ebp
movq %r13, %rbx
cmpl $0x0, 0xc(%rsp)
jle 0xb3fc0
movl 0xc(%rsp), %r13d
movslq 0x2258(%r12), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%r12)
movq 0x2268(%r12,%rax,8), %rdi
callq *(%rdi)
decl %r13d
jne 0xb3f9e
incl 0x2258(%r12)
movq 0x10(%rsp), %rdi
callq *(%rdi)
movq %rbx, %r13
movq %rax, 0x10(%rbx)
movl %r14d, 0x2258(%r12)
testb %bpl, %bpl
je 0xb3f83
movq 0x18(%rsp), %rax
movl 0x28(%rax), %eax
movl %eax, 0x2258(%r12)
addq $-0x20, 0x50(%r12)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%r12)
movq 0x118(%r12), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq