// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rsi, 0x28(%rdi)
cmpb $0x30, (%rsi)
jb 0x35e5e
movq %rbx, %rdi
movq %r15, %rsi
callq *0x10(%r12)
jmp 0x35f9a
movq %r12, 0x4f8(%rbx)
movq %r15, 0x500(%rbx)
movb 0x678(%rbx), %r13b
movl 0x67c(%rbx), %eax
movl %eax, 0xc(%rsp)
leaq 0x5b0(%rbx), %r14
leaq 0x10(%rsp), %rdi
movl $0xc8, %edx
movq %r14, %rsi
callq 0x83e0
movb $0x1, 0x678(%rbx)
movl $0x4, 0x67c(%rbx)
movq %r14, %rdi
callq 0x8350
movl %eax, %ebp
testl %eax, %eax
je 0x35ef0
cmpl $0x4, %ebp
je 0x35f69
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
callq 0xe1a8
cmpl $0x3, %ebp
jne 0x35f69
movq 0x50(%rbx), %rax
cmpq 0x48(%rbx), %rax
jne 0x35f69
movq $0x1ed, 0x18(%rax)      # imm = 0x1ED
addq $0x20, 0x50(%rbx)
jmp 0x35f69
cmpq $0x0, 0x6a0(%rbx)
jle 0x35f0c
leaq 0xa0461(%rip), %rsi     # 0xd6362
movq %rbx, %rdi
movq %r15, %rdx
callq 0x2e1c9
movq (%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, (%rcx)
movq 0x8(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x10(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x10(%rcx)
movq 0x50(%rbx), %rax
movq $0x1df, 0x18(%rax)      # imm = 0x1DF
addq $0x20, 0x50(%rbx)
movq %r12, (%rbx)
testb $0x10, 0x3(%r12)
je 0x35f58
movq %rbx, %rdi
movq %r15, %rsi
callq 0x35492
movq %rax, %r15
movq %r15, 0x10(%rbx)
movl $0x198, %esi            # imm = 0x198
movq %rbx, %rdi
callq 0xe1a8
movb %r13b, 0x678(%rbx)
movl 0xc(%rsp), %eax
movl %eax, 0x67c(%rbx)
leaq 0x10(%rsp), %rsi
movl $0xc8, %edx
movq %r14, %rdi
callq 0x83e0
cmpl $0x4, %ebp
jne 0x35f96
testb %r13b, %r13b
jne 0x35fac
movq 0x20(%rbx), %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x4
popq %rsi
movq %r14, %rdi
callq 0x8530