// File: /workspace/github_c_makefile_star2_O3/Liutos[P]Eloquent/interp.c
// Function: interp_execute_function
static value_kind_t interp_execute_function(interp_t *interp, value_t *f, ast_t *args, value_t **value)
{
    int arity = VALUE_FUNC_ARITY(f);
    int nargs = ast_cons_length(args);
    if (nargs != arity) {
        if (value != NULL)
            *value = value_error_newf("Line %d, column %d: Incorrect number of arguments. Expecting %d but get %d", args->line, args->column, arity, nargs);
        return VALUE_ERROR;
    }
    if (VALUE_FUNC_ISBIF(f))
        return interp_execute_bif(interp, f, args, value);
    else
        return interp_execute_udf(interp, f, args, value);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %r15
movl 0x10(%rsi), %r12d
movq %rdx, %rdi
callq 0x5a2a
cmpl %r12d, %eax
jne 0x40a7
cmpl $0x0, 0x8(%r14)
je 0x40d9
callq 0x61aa
movq %rax, %r12
cmpl $0x2, (%r13)
je 0x406d
movq %rsp, %rbp
movq 0x10(%r13), %rsi
movq $0x0, (%rsp)
movq %r15, %rdi
movq %rbp, %rdx
callq 0x39d4
movq (%rsp), %rsi
cmpl $0x2, %eax
je 0x4267
movq %r12, %rdi
callq 0x61d6
movq 0x18(%r13), %r13
cmpl $0x2, (%r13)
jne 0x4036
movl 0x10(%r14), %esi
cmpl $0x2, %esi
je 0x42a2
cmpl $0x1, %esi
je 0x4276
testl %esi, %esi
jne 0x4302
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0x4343
movq 0x20(%r15), %rdi
callq *0x20(%r14)
jmp 0x42e3
movl $0x2, %ebp
testq %rbx, %rbx
je 0x4332
movl 0x4(%r13), %esi
movl 0x8(%r13), %edx
leaq 0x3417(%rip), %rdi      # 0x74db
movl %r12d, %ecx
movl %eax, %r8d
xorl %eax, %eax
callq 0x2596
movq %rax, (%rbx)
jmp 0x4332
movq %rbx, 0x8(%rsp)
movq 0x18(%r14), %rdi
callq 0x556b
movq %rax, %r12
movq %r14, 0x10(%rsp)
movq 0x20(%r14), %rbx
cmpl $0x1, (%rbx)
jne 0x413f
movq %rsp, %rbp
movq 0x10(%rbx), %r14
movq 0x10(%r13), %rsi
movq $0x0, (%rsp)
movq %r15, %rdi
movq %rbp, %rdx
callq 0x39d4
cmpl $0x2, %eax
je 0x431f
movq 0x10(%r14), %rax
movq (%rax), %rsi
movq (%rsp), %rdx
movq %r12, %rdi
callq 0x55ee
movq 0x18(%rbx), %rbx
movq 0x18(%r13), %r13
cmpl $0x1, (%rbx)
je 0x40fb
movq 0x10(%r15), %rdi
movq 0x10(%rsp), %r14
movq %r14, %rsi
xorl %edx, %edx
callq 0x5d56
testq %rax, %rax
je 0x4210
movq %rax, %r13
movq %r15, %rdi
callq 0x4564
movq 0x6e63(%rip), %rbp      # 0xafd0
movq (%rbp), %rdi
movl (%r15), %edx
leaq 0x33d7(%rip), %rsi      # 0x7552
xorl %eax, %eax
callq 0x20d0
movq (%rbp), %rsi
movq (%r13), %rdi
callq 0x2070
movq (%rbp), %rsi
movl $0x28, %edi
callq 0x20a0
movq 0x20(%r14), %r13
cmpl $0x2, (%r13)
je 0x41f6
leaq 0x30ba(%rip), %rbx      # 0x7269
movq 0x10(%r13), %rax
movq 0x10(%rax), %rax
movq (%rax), %rsi
movq %r12, %rdi
callq 0x574b
movq (%rbp), %rsi
movq %rax, %rdi
callq 0x2755
movq 0x18(%r13), %r13
cmpl $0x2, (%r13)
je 0x41f6
movq (%rbp), %rcx
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2140
cmpl $0x2, (%r13)
jne 0x41af
movq (%rbp), %rcx
leaq 0x306b(%rip), %rdi      # 0x726c
movl $0x2, %esi
movl $0x1, %edx
callq 0x2140
incl (%r15)
movq 0x18(%r15), %rbx
movq 0x20(%r15), %rdi
movq %r12, 0x18(%r15)
callq 0x556b
movq %rax, 0x20(%r15)
movq 0x28(%r14), %rsi
movq %r15, %rdi
movq %r14, %r12
movq 0x8(%rsp), %r14
movq %r14, %rdx
callq 0x3c7b
movl %eax, %ebp
decl (%r15)
movq %rbx, 0x18(%r15)
movq 0x20(%r15), %rax
movq 0x18(%rax), %rax
movq %rax, 0x20(%r15)
movq (%r14), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x44c8
jmp 0x4332
testq %rbx, %rbx
je 0x426f
movq %rsi, (%rbx)
movl (%rsi), %ebp
jmp 0x4332
movq %r12, %rdi
xorl %esi, %esi
callq 0x629b
movq %rax, %r12
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x4343
movq 0x20(%r15), %rdi
movq %r12, %rsi
callq *0x20(%r14)
jmp 0x42e3
movq %r12, %rdi
xorl %esi, %esi
callq 0x629b
movq %rax, %r13
movl $0x1, %esi
movq %r12, %rdi
callq 0x629b
movq %rax, %r12
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x4343
movq 0x20(%r15), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq *0x20(%r14)
movq %rax, %r12
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x44c8
testq %rbx, %rbx
je 0x42fc
movq %r12, (%rbx)
movl (%r12), %ebp
jmp 0x4332
movl $0x2, %ebp
testq %rbx, %rbx
je 0x4332
leaq 0x3213(%rip), %rdi      # 0x7526
xorl %eax, %eax
callq 0x2596
jmp 0x40d1
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
testq %rcx, %rcx
je 0x4330
movq %rax, (%rcx)
movl (%rax), %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq