// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: evaluate_function_expression
static enum result evaluate_function_expression( struct expression *this,
	struct variables *vars, struct variable *result ) {
	struct expression *parameter = this->parameters;
	struct environment *env = vars->func->env;
	struct variable var = { 0, NULL };
	struct function *func;
	struct element *elem, key = { { 1, "$function", 9, ELEMENT }, NULL, NULL, 0 };
	char message[ 128 ] = "";
	enum result ret = evaluate_element( parameter, vars, &var, 0 );
	if( ret ) {
		elem = ( struct element * ) var.string_value;
		if( ( size_t ) &ret < env->stack_limit ) {
			ret = throw_stack_overflow( vars, this );
		} else {
			key.line = this->line;
			validate_syntax( "({0", elem, &key, env, message );
			if( message[ 0 ] == 0 ) {
				func = parse_function( elem, NULL, vars->func, message );
				if( func ) {
					if( parameter->evaluate != evaluate_string_literal_expression ) {
						unref_string( func->file );
						func->file = &func->str;
					}
					if( parse_function_body( func, vars, message ) ) {
						result->string_value = &func->str;
					} else {
						unref_string( &func->str );
						ret = throw( vars, this, 0, message );
					}
				} else {
					ret = throw( vars, this, 0, message );
				}
			} else {
				ret = throw( vars, this, 0, message );
			}
		}
		dispose_temporary( &var );
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %r12
movq 0x18(%rsi), %rax
movq 0x40(%rax), %r13
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movups 0xaad1(%rip), %xmm1     # 0x17d30
movaps %xmm1, 0xc0(%rsp)
movups 0xaab2(%rip), %xmm1     # 0x17d20
movaps %xmm1, 0xb0(%rsp)
movups 0xaa93(%rip), %xmm1     # 0x17d10
movaps %xmm1, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
xorl %ebp, %ebp
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x42ce
movl %eax, 0x4(%rsp)
testl %eax, %eax
je 0xd33b
leaq 0x4(%rsp), %rax
cmpq %rax, (%r13)
jbe 0xd2df
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4ca3
jmp 0xd328
movq %r15, 0x8(%rsp)
movq 0x18(%rsp), %rbp
movl (%rbx), %eax
leaq 0xa0(%rsp), %rdx
movl %eax, 0x28(%rdx)
leaq 0x4e6c(%rip), %rdi      # 0x12169
leaq 0x20(%rsp), %r15
movq %rbp, %rsi
movq %r13, %rcx
movq %r15, %r8
callq 0x61d9
cmpb $0x0, (%r15)
je 0xd34f
leaq 0x20(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3bb2
andl $0x0, 0x4(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x3988
movl 0x4(%rsp), %ebp
movl %ebp, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%r14), %rdx
leaq 0x20(%rsp), %rcx
movq %rbp, %rdi
xorl %esi, %esi
callq 0x6b26
testq %rax, %rax
je 0xd316
movq %rax, %r13
leaq -0x999d(%rip), %rax     # 0x39d4
cmpq %rax, 0x18(%r12)
je 0xd385
movq 0x28(%r13), %rdi
callq 0x38b2
movq %r13, 0x28(%r13)
leaq 0x20(%rsp), %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x6e19
testl %eax, %eax
movq 0x8(%rsp), %rax
je 0xd3a4
movq %r13, 0x8(%rax)
jmp 0xd32d
movq %r13, %rdi
callq 0x38b2
jmp 0xd316