// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: opt_dotimes_2
static s7_pointer opt_dotimes_2(opt_info *o)
                {
                    /* 1 var, no return */
                    opt_info *o1; /* 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, v6.i=end if int32_t */
                    int32_t loop, len;
                    s7_int end;
                    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;
                    len = o->v[3].i;

                    vp = slot_value(let_dox_slot1(o->v[2].p));
                    if (is_slot(let_dox_slot2_unchecked(o->v[2].p)))
                        end = integer(slot_value(let_dox_slot2(o->v[2].p)));
                    else end = o->v[6].i;

                    o1 = sc->opts[++sc->pc];
                    integer(vp) = integer(o1->v[0].fp(o1));

                    loop = o->v[4].i - 1;
                    if (len == 2)
                    {
                        while (integer(vp) < end)
                        {
                            sc->pc = loop;
                            o1 = sc->opts[++sc->pc];
                            o1->v[0].fp(o1);
                            o1 = sc->opts[++sc->pc];
                            o1->v[0].fp(o1);
                            integer(vp)++;
                        }
                    }
                    else
                    {
                        while (integer(vp) < end)
                        {
                            int32_t i;
                            sc->pc = loop;
                            for (i = 0; i < len; i++)
                            {
                                o1 = sc->opts[++sc->pc];
                                o1->v[0].fp(o1);
                            }
                            integer(vp)++;
                        }
                    }
                    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, 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 0x40(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movl %eax, 0x30(%rsp)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x28(%rax), %rax
movzbl (%rax), %eax
cmpl $0x20, %eax
jne 0x1003e0
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x28(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
jmp 0x1003ee
movq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x28(%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, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rdi
callq *%rax
movq 0x8(%rax), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rax
subq $0x1, %rax
movl %eax, 0x34(%rsp)
cmpl $0x2, 0x30(%rsp)
jne 0x1004ff
jmp 0x100451
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
cmpq 0x28(%rsp), %rax
jge 0x1004fa
movl 0x34(%rsp), %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x2258(%rax)
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, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rdi
callq *%rax
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, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rdi
callq *%rax
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
jmp 0x100451
jmp 0x10058f
jmp 0x100501
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
cmpq 0x28(%rsp), %rax
jge 0x10058d
movl 0x34(%rsp), %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x2258(%rax)
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
cmpl 0x30(%rsp), %eax
jge 0x100577
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, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rdi
callq *%rax
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x100528
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
jmp 0x100501
jmp 0x10058f
movq 0x40(%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
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)