// File: /workspace/github_c_makefile_star2_O3/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 0x43c23
movq %rbx, %rdi
movq %r15, %rsi
callq *0x10(%r12)
jmp 0x43e7c
movq %r12, 0x4f8(%rbx)
movq %r15, 0x500(%rbx)
movb 0x678(%rbx), %r13b
movl 0x67c(%rbx), %eax
movl %eax, 0x4(%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
testl %eax, %eax
je 0x43cbc
movl %eax, %ebp
cmpl $0x4, %eax
jne 0x43e13
movb %r13b, 0x678(%rbx)
movl 0x4(%rsp), %eax
movl %eax, 0x67c(%rbx)
leaq 0x10(%rsp), %rsi
movl $0xc8, %edx
movq %r14, %rdi
callq 0x83e0
testb %r13b, %r13b
je 0x43e78
movq %r14, %rdi
movl $0x4, %esi
callq 0x8530
cmpq $0x0, 0x6a0(%rbx)
jle 0x43cd8
leaq 0xc66f5(%rip), %rsi     # 0x10a3c2
movq %rbx, %rdi
movq %r15, %rdx
callq 0x3a3fd
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 0x43e44
cmpb $0x1, (%r15)
jne 0x43e3d
movb %r13b, 0x3(%rsp)
movq %r15, 0x4c8(%rbx)
movq 0x8(%r15), %rbp
movq 0x90(%rbx), %rcx
movq 0x110(%rbx), %r12
movq %rcx, %rax
cmpq 0x98(%rbx), %rcx
ja 0x43d5d
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %rbp, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %rax, 0x8(%rsp)
movq %rax, 0x4e8(%rbx)
movq 0x10(%r15), %r15
cmpb $0x1, (%r15)
jne 0x43df2
movq 0x8(%rsp), %rbp
movq 0x8(%r15), %r12
movq 0x90(%rbx), %rcx
movq 0x110(%rbx), %r13
movq %rcx, %rax
cmpq 0x98(%rbx), %rcx
ja 0x43dc3
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %r12, 0x8(%rax)
movq %r13, 0x10(%rax)
movq %rax, 0x10(%rbp)
movq 0x10(%r15), %r15
cmpb $0x1, (%r15)
movq %rax, %rbp
je 0x43d96
movq 0x110(%rbx), %rax
movq %rax, 0x4e8(%rbx)
movq %rax, 0x4c8(%rbx)
movq 0x8(%rsp), %r15
movb 0x3(%rsp), %r13b
jmp 0x43e44
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
callq 0xfd85
cmpl $0x3, %ebp
jne 0x43e55
movq 0x50(%rbx), %rax
cmpq 0x48(%rbx), %rax
jne 0x43e55
movq $0x1ed, 0x18(%rax)      # imm = 0x1ED
addq $0x20, 0x50(%rbx)
jmp 0x43e55
movq 0x110(%rbx), %r15
movq %r15, 0x10(%rbx)
movl $0x198, %esi            # imm = 0x198
movq %rbx, %rdi
callq 0xfd85
movb %r13b, 0x678(%rbx)
movl 0x4(%rsp), %eax
movl %eax, 0x67c(%rbx)
leaq 0x10(%rsp), %rsi
movl $0xc8, %edx
movq %r14, %rdi
callq 0x83e0
movq 0x20(%rbx), %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq