// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq 0x68(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rax
movl $0x1, %ecx
movq %rcx, 0x18(%rax)
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x40(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movl %eax, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%rsp), %rax
movq 0x8(%rsp), %rdx
movl 0x2258(%rdx), %ecx
addl $0x1, %ecx
movl %ecx, 0x2258(%rdx)
movslq %ecx, %rcx
movq 0x2260(%rax,%rcx,8), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rdi
callq *%rax
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x8(%rsp), %rcx
movl 0x2258(%rcx), %eax
addl $0x1, %eax
movl %eax, 0x2258(%rcx)
movl %eax, 0x24(%rsp)
movq 0x8(%rsp), %rax
movslq 0x24(%rsp), %rcx
movq 0x2260(%rax,%rcx,8), %rax
movq %rax, 0x30(%rsp)
cmpl $0x2, 0x20(%rsp)
jne 0xfe60b
jmp 0xfe539
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x30(%rsp), %rdi
callq *%rax
testb $0x1, %al
jne 0xfe54e
jmp 0xfe553
jmp 0xfe606
movq 0x8(%rsp), %rax
movq 0x8(%rsp), %rdx
movl 0x2258(%rdx), %ecx
addl $0x1, %ecx
movl %ecx, 0x2258(%rdx)
movslq %ecx, %rcx
movq 0x2260(%rax,%rcx,8), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rdi
callq *%rax
movq 0x8(%rsp), %rax
movq 0x8(%rsp), %rdx
movl 0x2258(%rdx), %ecx
addl $0x1, %ecx
movl %ecx, 0x2258(%rdx)
movslq %ecx, %rcx
movq 0x2260(%rax,%rcx,8), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rdi
callq *%rax
movq 0x8(%rsp), %rax
movl 0x2258(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x2258(%rax)
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq 0x28(%rsp), %rdi
callq *%rax
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x10(%rax)
movl 0x24(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x2258(%rax)
jmp 0xfe539
jmp 0xfe6c3
jmp 0xfe60d
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x30(%rsp), %rdi
callq *%rax
testb $0x1, %al
jne 0xfe622
jmp 0xfe627
jmp 0xfe6c1
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
cmpl 0x20(%rsp), %eax
jge 0xfe67e
movq 0x8(%rsp), %rax
movq 0x8(%rsp), %rdx
movl 0x2258(%rdx), %ecx
addl $0x1, %ecx
movl %ecx, 0x2258(%rdx)
movslq %ecx, %rcx
movq 0x2260(%rax,%rcx,8), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rdi
callq *%rax
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0xfe62f
movq 0x8(%rsp), %rax
movl 0x2258(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x2258(%rax)
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq 0x28(%rsp), %rdi
callq *%rax
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x10(%rax)
movl 0x24(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x2258(%rax)
jmp 0xfe60d
jmp 0xfe6c3
movq 0x40(%rsp), %rax
movq 0x28(%rax), %rax
movl %eax, %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x2258(%rax)
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $-0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x8(%rsp), %rax
movq 0x118(%rax), %rax
addq $0x48, %rsp
retq
nopl (%rax)