// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: opt_do_step_1
static s7_pointer opt_do_step_1(opt_info *o)
                {
                    /* 1 stepper (multi inits perhaps), 1 body, 1 rtn */
                    opt_info *o1, *ostart, *ostep;
                    int32_t loop;
                    s7_pointer vp, old_e, result, stepper = NULL;
                    s7_scheme *sc;

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

                    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));
                        if (has_stepper(vp)) stepper = vp;
                    }
                    loop = ++sc->pc;
                    ostart = sc->opts[loop];
                    while (true)
                    {
                        if (ostart->v[0].fb(ostart)) break;
                        o1 = sc->opts[++sc->pc];
                        o1->v[0].fp(o1);
                        sc->pc++;
                        slot_set_value(stepper, ostep->v[0].fp(ostep));
                        sc->pc = loop;
                    }
                    sc->pc = o->v[1].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:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x50(%rsp), %rax
movq 0x68(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%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 0x50(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0xfdc51
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, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x48(%rsp), %rdi
callq *%rax
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x28(%rsp), %rax
movq (%rax), %rax
andq $0x800000, %rax         # imm = 0x800000
cmpq $0x0, %rax
je 0xfdc3f
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0xfdc41
movq 0x28(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x28(%rsp)
jmp 0xfdbd5
movq 0x8(%rsp), %rcx
movl 0x2258(%rcx), %eax
addl $0x1, %eax
movl %eax, 0x2258(%rcx)
movl %eax, 0x34(%rsp)
movq 0x8(%rsp), %rax
movslq 0x34(%rsp), %rcx
movq 0x2260(%rax,%rcx,8), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq 0x40(%rsp), %rdi
callq *%rax
testb $0x1, %al
jne 0xfdc95
jmp 0xfdc97
jmp 0xfdd12
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, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x48(%rsp), %rdi
callq *%rax
movq 0x8(%rsp), %rax
movl 0x2258(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x2258(%rax)
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x38(%rsp), %rdi
callq *%rax
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x10(%rax)
movl 0x34(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x2258(%rax)
jmp 0xfdc80
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rax
movl %eax, %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x2258(%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, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x48(%rsp), %rdi
callq *%rax
movq %rax, 0x18(%rsp)
movq 0x50(%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 0x20(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x18(%rsp), %rax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)