// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: s7_call
s7_pointer s7_call(s7_scheme *sc, s7_pointer func, s7_pointer args)
                {
                    declare_jump_info();
                    TRACK(sc);
                    set_current_code(sc, history_cons(sc, func, args));

#if SHOW_EVAL_OPS
                    safe_print(fprintf(stderr, "%s: %s %s\n", __func__, DISPLAY(func), DISPLAY_80(args)));
#endif

                    if (is_c_function(func))
                        return(c_function_call(func)(sc, args));         /* no check for wrong-number-of-args -- is that reasonable? */

                    sc->temp1 = T_App(func);                           /* this is feeble GC protection */
                    sc->temp2 = T_Lst(args);

                    store_jump_info(sc);
                    set_jump_info(sc, S7_CALL_SET_JUMP);
                    if (jump_loc != NO_JUMP)
                    {
                        if (jump_loc != ERROR_JUMP)
                            eval(sc, sc->cur_op);

                        if ((jump_loc == CATCH_JUMP) &&                /* we're returning (back to eval) from an error in catch */
                                (sc->stack_end == sc->stack_start))
                            push_stack_op(sc, OP_ERROR_QUIT);
                    }
                    else
                    {
                        if (sc->safety > NO_SAFETY)
                            check_list_validity(sc, "s7_call", args);

                        push_stack(sc, OP_EVAL_DONE, sc->args, sc->code); /* this saves the current evaluation and will eventually finish this (possibly) nested call */
                        sc->code = func;
                        sc->args = (needs_copied_args(func)) ? copy_list(sc, args) : args;
                        /* besides a closure, "func" can also be an object (T_C_OBJECT) -- in Snd, a generator for example  */
                        eval(sc, OP_APPLY);
                    }
                    restore_jump_info(sc);
                    /* don't clear temp1 or temp2 here -- lots of (Snd) code calls s7_call repeatedly and assumes the "func" arg is protected between calls. */
                    return(sc->value);
                }

// Assembly:
subq $0x108, %rsp            # imm = 0x108
movq %rdi, 0xf8(%rsp)
movq %rsi, 0xf0(%rsp)
movq %rdx, 0xe8(%rsp)
movq 0xf0(%rsp), %rcx
movq 0xf8(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0xf0(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x30, %eax
jl 0x458fe
movq 0xf0(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xf8(%rsp), %rdi
movq 0xe8(%rsp), %rsi
callq *%rax
movq %rax, 0x100(%rsp)
jmp 0x45bef
movq 0xf0(%rsp), %rcx
movq 0xf8(%rsp), %rax
movq %rcx, 0x4f8(%rax)
movq 0xe8(%rsp), %rcx
movq 0xf8(%rsp), %rax
movq %rcx, 0x500(%rax)
movq 0xf8(%rsp), %rax
movb 0x678(%rax), %al
andb $0x1, %al
movb %al, 0xe7(%rsp)
movq 0xf8(%rsp), %rax
movl 0x67c(%rax), %eax
movl %eax, 0xe0(%rsp)
leaq 0x10(%rsp), %rdi
movq 0xf8(%rsp), %rsi
addq $0x5b0, %rsi            # imm = 0x5B0
movl $0xc8, %edx
callq 0x93e0
jmp 0x45978
movq 0xf8(%rsp), %rax
movb $0x1, 0x678(%rax)
movq 0xf8(%rsp), %rax
movl $0x4, 0x67c(%rax)
movq 0xf8(%rsp), %rdi
addq $0x5b0, %rdi            # imm = 0x5B0
callq 0x9350
movl %eax, 0xdc(%rsp)
cmpl $0x0, 0xdc(%rsp)
je 0x45a37
cmpl $0x4, 0xdc(%rsp)
je 0x459e1
movq 0xf8(%rsp), %rdi
movq 0xf8(%rsp), %rax
movq 0x18(%rax), %rsi
callq 0x163d0
cmpl $0x3, 0xdc(%rsp)
jne 0x45a32
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq 0xf8(%rsp), %rcx
cmpq 0x48(%rcx), %rax
jne 0x45a32
jmp 0x45a07
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movl $0x1ed, %ecx            # imm = 0x1ED
movq %rcx, 0x18(%rax)
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x20, %rcx
movq %rcx, 0x50(%rax)
jmp 0x45a32
jmp 0x45b58
movq 0xf8(%rsp), %rax
cmpq $0x0, 0x6a0(%rax)
jle 0x45a65
movq 0xf8(%rsp), %rdi
movq 0xe8(%rsp), %rdx
leaq 0x19c44a(%rip), %rsi    # 0x1e1eaa
callq 0x32de0
jmp 0x45a67
movq 0xf8(%rsp), %rax
movq (%rax), %rcx
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, (%rax)
movq 0xf8(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movl $0x1df, %ecx            # imm = 0x1DF
movq %rcx, 0x18(%rax)
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0xf0(%rsp), %rcx
movq 0xf8(%rsp), %rax
movq %rcx, (%rax)
movq 0xf0(%rsp), %rax
movq (%rax), %rax
andq $0x10000000, %rax       # imm = 0x10000000
cmpq $0x0, %rax
je 0x45b28
movq 0xf8(%rsp), %rdi
movq 0xe8(%rsp), %rsi
callq 0x44270
movq %rax, 0x8(%rsp)
jmp 0x45b35
movq 0xe8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rcx
movq 0xf8(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0xf8(%rsp), %rdi
movl $0x198, %esi            # imm = 0x198
callq 0x163d0
jmp 0x45b5a
movb 0xe7(%rsp), %cl
movq 0xf8(%rsp), %rax
andb $0x1, %cl
movb %cl, 0x678(%rax)
movl 0xe0(%rsp), %ecx
movq 0xf8(%rsp), %rax
movl %ecx, 0x67c(%rax)
movq 0xf8(%rsp), %rdi
addq $0x5b0, %rdi            # imm = 0x5B0
leaq 0x10(%rsp), %rsi
movl $0xc8, %edx
callq 0x93e0
cmpl $0x4, 0xdc(%rsp)
jne 0x45bd9
movq 0xf8(%rsp), %rax
testb $0x1, 0x678(%rax)
je 0x45bd9
movq 0xf8(%rsp), %rdi
addq $0x5b0, %rdi            # imm = 0x5B0
movl $0x4, %esi
callq 0x9530
jmp 0x45bdb
movq 0xf8(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x100(%rsp)
movq 0x100(%rsp), %rax
addq $0x108, %rsp            # imm = 0x108
retq
nop