// File: /workspace/github_c_makefile_star2_O1/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 $0xe8, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rsi, 0x28(%rdi)
cmpb $0x30, (%rsi)
jb 0x466dd
movq %rbx, %rdi
movq %r15, %rsi
callq *0x10(%r12)
jmp 0x46917
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 0x20(%rsp), %rdi
movl $0xc8, %edx
movq %r14, %rsi
callq 0x93e0
movb $0x1, 0x678(%rbx)
movl $0x4, 0x67c(%rbx)
movq %r14, %rdi
callq 0x9350
movl %eax, %ebp
testl %eax, %eax
je 0x46772
cmpl $0x4, %ebp
je 0x468e6
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
callq 0x10b83
cmpl $0x3, %ebp
jne 0x468e6
movq 0x50(%rbx), %rax
cmpq 0x48(%rbx), %rax
jne 0x468e6
movq $0x1ed, 0x18(%rax)      # imm = 0x1ED
addq $0x20, 0x50(%rbx)
jmp 0x468e6
cmpq $0x0, 0x6a0(%rbx)
jle 0x4678e
leaq 0xccb2f(%rip), %rsi     # 0x1132b2
movq %rbx, %rdi
movq %r15, %rdx
callq 0x3c989
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 0x468d5
cmpb $0x1, (%r15)
jne 0x468ce
movb %r13b, 0xb(%rsp)
movq %r14, 0x18(%rsp)
movq %r15, 0x4c8(%rbx)
movq 0x8(%r15), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x4680e
movq %rbx, %rdi
callq 0xb389
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(%rsp)
movq %rax, 0x4e8(%rbx)
movq 0x10(%r15), %r15
cmpb $0x1, (%r15)
jne 0x468a8
movq 0x10(%rsp), %r12
movq 0x8(%r15), %r13
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r14
cmpq 0x98(%rbx), %rax
ja 0x46871
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %r13, 0x8(%rax)
movq %r14, 0x10(%rax)
movq %rax, 0x10(%r12)
movq 0x10(%r15), %r15
cmpb $0x1, (%r15)
movq %rax, %r12
je 0x4684e
movq 0x110(%rbx), %rax
movq %rax, 0x4e8(%rbx)
movq %rax, 0x4c8(%rbx)
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %r14
movb 0xb(%rsp), %r13b
jmp 0x468d5
movq 0x110(%rbx), %r15
movq %r15, 0x10(%rbx)
movl $0x198, %esi            # imm = 0x198
movq %rbx, %rdi
callq 0x10b83
movb %r13b, 0x678(%rbx)
movl 0xc(%rsp), %eax
movl %eax, 0x67c(%rbx)
leaq 0x20(%rsp), %rsi
movl $0xc8, %edx
movq %r14, %rdi
callq 0x93e0
cmpl $0x4, %ebp
jne 0x46913
testb %r13b, %r13b
jne 0x46929
movq 0x20(%rbx), %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movl $0x4, %esi
callq 0x9530