// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: opt_do_any
static s7_pointer opt_do_any(opt_info *o)
                {
                    /* 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 */

                    opt_info *o1, *ostart;
                    int32_t loop, i;
                    s7_pointer vp, old_e, result;
                    s7_scheme *sc;

                    sc = o->sc;
                    old_e = sc->envir;
                    push_stack_no_let_no_code(sc, OP_GC_PROTECT, old_e);
                    sc->envir = T_Let(o->v[2].p);

                    /* init */
                    for (vp = let_slots(sc->envir); tis_slot(vp); vp = next_slot(vp))
                    {
                        o1 = sc->opts[++sc->pc];
                        slot_set_value(vp, o1->v[0].fp(o1));
                    }

                    loop = ++sc->pc;
                    ostart = sc->opts[loop];
                    while (true)
                    {
                        /* end */
                        if (ostart->v[0].fb(ostart))
                            break;

                        /* body */
                        for (i = 0; i < o->v[3].i; i++)
                        {
                            o1 = sc->opts[++sc->pc];
                            o1->v[0].fp(o1);
                        }

                        /* step (let not let*) */
                        for (vp = let_slots(sc->envir); tis_slot(vp); vp = next_slot(vp))
                            if (has_stepper(vp))
                            {
                                o1 = sc->opts[++sc->pc];
                                slot_set_pending_value(vp, o1->v[0].fp(o1));
                            }
                        for (vp = let_slots(sc->envir); tis_slot(vp); vp = next_slot(vp))
                            if (has_stepper(vp))
                                slot_set_value(vp, slot_pending_value(vp));

                        sc->pc = loop;
                    }
                    sc->pc = o->v[1].i;

                    /* result */
                    result = sc->T;
                    for (i = 0; i < o->v[4].i; i++)
                    {
                        o1 = sc->opts[++sc->pc];
                        result = o1->v[0].fp(o1);
                    }
                    sc->pc = o->v[5].i;
                    unstack(sc);
                    sc->envir = old_e;
                    return(result);
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x68(%rdi), %r15
movq 0x8(%r15), %r12
movq 0x50(%r15), %rax
movq %r12, 0x10(%rax)
movq 0x50(%r15), %rax
movq $0x1, 0x18(%rax)
addq $0x20, 0x50(%r15)
movq 0x10(%rdi), %rax
movq %rax, 0x8(%r15)
movq 0x8(%rax), %r14
testq %r14, %r14
je 0xb3baf
movslq 0x2258(%r15), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%r15)
movq 0x2268(%r15,%rax,8), %rdi
callq *(%rdi)
movq %rax, 0x10(%r14)
movq 0x18(%r14), %r14
jmp 0xb3b85
movslq 0x2258(%r15), %rax
leaq 0x1(%rax), %r13
movl %r13d, 0x2258(%r15)
movq 0x2268(%r15,%rax,8), %r14
movq %r14, %rdi
callq *(%r14)
testb %al, %al
jne 0xb3c6d
cmpq $0x0, 0x18(%rbx)
jle 0xb3c04
xorl %ebp, %ebp
movslq 0x2258(%r15), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%r15)
movq 0x2268(%r15,%rax,8), %rdi
callq *(%rdi)
incq %rbp
cmpq %rbp, 0x18(%rbx)
jg 0xb3be0
movq 0x8(%r15), %rax
movq 0x8(%rax), %rbp
testq %rbp, %rbp
je 0xb3c40
testb $-0x80, 0x2(%rbp)
je 0xb3c3a
movslq 0x2258(%r15), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%r15)
movq 0x2268(%r15,%rax,8), %rdi
callq *(%rdi)
movq %rax, 0x20(%rbp)
orb $0x20, 0x3(%rbp)
movq 0x18(%rbp), %rbp
jmp 0xb3c0c
movq 0x8(%r15), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xb3c61
testb $-0x80, 0x2(%rax)
je 0xb3c5b
movq 0x20(%rax), %rcx
movq %rcx, 0x10(%rax)
movq 0x18(%rax), %rax
jmp 0xb3c48
movl %r13d, 0x2258(%r15)
jmp 0xb3bc9
movl 0x8(%rbx), %eax
movl %eax, 0x2258(%r15)
cmpq $0x0, 0x20(%rbx)
jle 0xb3ca7
xorl %r14d, %r14d
movslq 0x2258(%r15), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%r15)
movq 0x2268(%r15,%rax,8), %rdi
callq *(%rdi)
incq %r14
cmpq %r14, 0x20(%rbx)
jg 0xb3c81
jmp 0xb3cae
movq 0x118(%r15), %rax
movl 0x28(%rbx), %ecx
movl %ecx, 0x2258(%r15)
addq $-0x20, 0x50(%r15)
movq %r12, 0x8(%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq