// File: /workspace/github_c_makefile_star2_O3/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 0xab5c(%rip), %xmm1     # 0x18a30
movaps %xmm1, 0xc0(%rsp)
movups 0xab3d(%rip), %xmm1     # 0x18a20
movaps %xmm1, 0xb0(%rsp)
movups 0xab1e(%rip), %xmm1     # 0x18a10
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)
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x4478
movl %eax, 0x4(%rsp)
testl %eax, %eax
je 0xdfae
leaq 0x4(%rsp), %rax
cmpq %rax, (%r13)
jbe 0xdf4e
leaq 0x4317(%rip), %rcx      # 0x12263
jmp 0xdf8a
movq %r15, 0x8(%rsp)
movq 0x18(%rsp), %rbp
movl (%rbx), %eax
leaq 0xa0(%rsp), %rdx
movl %eax, 0x28(%rdx)
leaq 0x51bd(%rip), %rdi      # 0x13129
leaq 0x20(%rsp), %r15
movq %rbp, %rsi
movq %r13, %rcx
movq %r15, %r8
callq 0x65fe
cmpb $0x0, (%r15)
je 0xdfc4
leaq 0x20(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3c96
movl $0x0, 0x4(%rsp)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xdfae
callq 0x394d
movl 0x4(%rsp), %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 0x7020
testq %rax, %rax
je 0xdf85
movq %rax, %r13
leaq -0xa541(%rip), %rax     # 0x3aa5
cmpq %rax, 0x18(%r12)
je 0xdffa
movq 0x28(%r13), %rdi
callq 0x394d
movq %r13, 0x28(%r13)
leaq 0x20(%rsp), %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x7328
testl %eax, %eax
movq 0x8(%rsp), %rax
je 0xe019
movq %r13, 0x8(%rax)
jmp 0xdf9f
movq %r13, %rdi
callq 0x394d
jmp 0xdf85