// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: s7_dynamic_wind
s7_pointer s7_dynamic_wind(s7_scheme *sc, s7_pointer init, s7_pointer body, s7_pointer finish)
                {
                    /* this is essentially s7_call with a dynamic-wind wrapper around "body" */
                    s7_pointer p;
                    declare_jump_info();

                    sc->temp1 = ((init == sc->F) ? finish : init);
                    sc->temp2 = body;

                    store_jump_info(sc);
                    set_jump_info(sc, DYNAMIC_WIND_SET_JUMP);
                    if (jump_loc != NO_JUMP)
                    {
                        if (jump_loc != ERROR_JUMP)
                            eval(sc, sc->cur_op);
                    }
                    else
                    {
                        push_stack(sc, OP_EVAL_DONE, sc->args, sc->code);
                        sc->args = sc->nil;

                        new_cell(sc, p, T_DYNAMIC_WIND);
                        dynamic_wind_in(p) = T_Pos(init);
                        dynamic_wind_body(p) = T_Pos(body);
                        dynamic_wind_out(p) = T_Pos(finish);
                        push_stack(sc, OP_DYNAMIC_WIND, sc->nil, p);
                        if (init != sc->F)
                        {
                            dynamic_wind_state(p) = DWIND_INIT;
                            sc->code = init;
                        }
                        else
                        {
                            dynamic_wind_state(p) = DWIND_BODY;
                            sc->code = body;
                        }
                        eval(sc, OP_APPLY);
                    }
                    restore_jump_info(sc);
                    sc->temp1 = sc->nil;
                    sc->temp2 = sc->nil;

                    if (is_multiple_value(sc->value))
                        sc->value = splice_in_values(sc, multiple_value(sc->value));
                    return(sc->value);
                }

// Assembly:
subq $0x118, %rsp            # imm = 0x118
movq %rdi, 0x110(%rsp)
movq %rsi, 0x108(%rsp)
movq %rdx, 0x100(%rsp)
movq %rcx, 0xf8(%rsp)
movq 0x108(%rsp), %rax
movq 0x110(%rsp), %rcx
cmpq 0x120(%rcx), %rax
jne 0x452ff
movq 0xf8(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x4530c
movq 0x108(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rcx
movq 0x110(%rsp), %rax
movq %rcx, 0x4f8(%rax)
movq 0x100(%rsp), %rcx
movq 0x110(%rsp), %rax
movq %rcx, 0x500(%rax)
movq 0x110(%rsp), %rax
movb 0x678(%rax), %al
andb $0x1, %al
movb %al, 0xef(%rsp)
movq 0x110(%rsp), %rax
movl 0x67c(%rax), %eax
movl %eax, 0xe8(%rsp)
leaq 0x10(%rsp), %rdi
movq 0x110(%rsp), %rsi
addq $0x5b0, %rsi            # imm = 0x5B0
movl $0xc8, %edx
callq 0x93e0
jmp 0x45383
movq 0x110(%rsp), %rax
movb $0x1, 0x678(%rax)
movq 0x110(%rsp), %rax
movl $0x3, 0x67c(%rax)
movq 0x110(%rsp), %rdi
addq $0x5b0, %rdi            # imm = 0x5B0
callq 0x9350
movl %eax, 0xe4(%rsp)
cmpl $0x0, 0xe4(%rsp)
je 0x453f1
cmpl $0x4, 0xe4(%rsp)
je 0x453ec
movq 0x110(%rsp), %rdi
movq 0x110(%rsp), %rax
movq 0x18(%rax), %rsi
callq 0x163d0
jmp 0x45616
jmp 0x453f3
movq 0x110(%rsp), %rax
movq (%rax), %rcx
movq 0x110(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, (%rax)
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x110(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x110(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x110(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0x110(%rsp), %rax
movq 0x50(%rax), %rax
movl $0x1df, %ecx            # imm = 0x1DF
movq %rcx, 0x18(%rax)
movq 0x110(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0x110(%rsp), %rax
movq 0x110(%rax), %rcx
movq 0x110(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x110(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x110(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x454b6
movq 0x110(%rsp), %rdi
callq 0xc670
movq 0x110(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rax
movq $0x1a, (%rax)
movq 0x108(%rsp), %rcx
movq 0xf0(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x100(%rsp), %rcx
movq 0xf0(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0xf8(%rsp), %rcx
movq 0xf0(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0xf0(%rsp), %rcx
movq 0x110(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, (%rax)
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x110(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x110(%rsp), %rax
movq 0x110(%rax), %rcx
movq 0x110(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0x110(%rsp), %rax
movq 0x50(%rax), %rax
movl $0x1e1, %ecx            # imm = 0x1E1
movq %rcx, 0x18(%rax)
movq 0x110(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0x108(%rsp), %rax
movq 0x110(%rsp), %rcx
cmpq 0x120(%rcx), %rax
je 0x455e2
movq 0xf0(%rsp), %rax
movl $0x0, 0x20(%rax)
movq 0x108(%rsp), %rcx
movq 0x110(%rsp), %rax
movq %rcx, (%rax)
jmp 0x45604
movq 0xf0(%rsp), %rax
movl $0x1, 0x20(%rax)
movq 0x100(%rsp), %rcx
movq 0x110(%rsp), %rax
movq %rcx, (%rax)
movq 0x110(%rsp), %rdi
movl $0x198, %esi            # imm = 0x198
callq 0x163d0
jmp 0x45618
movb 0xef(%rsp), %cl
movq 0x110(%rsp), %rax
andb $0x1, %cl
movb %cl, 0x678(%rax)
movl 0xe8(%rsp), %ecx
movq 0x110(%rsp), %rax
movl %ecx, 0x67c(%rax)
movq 0x110(%rsp), %rdi
addq $0x5b0, %rdi            # imm = 0x5B0
leaq 0x10(%rsp), %rsi
movl $0xc8, %edx
callq 0x93e0
cmpl $0x4, 0xe4(%rsp)
jne 0x45697
movq 0x110(%rsp), %rax
testb $0x1, 0x678(%rax)
je 0x45697
movq 0x110(%rsp), %rdi
addq $0x5b0, %rdi            # imm = 0x5B0
movl $0x4, %esi
callq 0x9530
jmp 0x45699
movq 0x110(%rsp), %rax
movq 0x110(%rax), %rcx
movq 0x110(%rsp), %rax
movq %rcx, 0x4f8(%rax)
movq 0x110(%rsp), %rax
movq 0x110(%rax), %rcx
movq 0x110(%rsp), %rax
movq %rcx, 0x500(%rax)
movq 0x110(%rsp), %rax
movq 0x20(%rax), %rax
movzwl (%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
je 0x45716
movq 0x110(%rsp), %rdi
movq 0x110(%rsp), %rax
movq 0x20(%rax), %rsi
callq 0x28170
movq %rax, %rcx
movq 0x110(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x110(%rsp), %rax
movq 0x20(%rax), %rax
addq $0x118, %rsp            # imm = 0x118
retq
nopw (%rax,%rax)