// File: /workspace/github_c_makefile_star2_O1/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 0xa7fa(%rip), %xmm1     # 0x18a30
movaps %xmm1, 0xc0(%rsp)
movups 0xa7db(%rip), %xmm1     # 0x18a20
movaps %xmm1, 0xb0(%rsp)
movups 0xa7bc(%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 0x44a9
movl %eax, 0x4(%rsp)
testl %eax, %eax
je 0xe310
leaq 0x4(%rsp), %rax
cmpq %rax, (%r13)
jbe 0xe2b0
leaq 0x3fad(%rip), %rcx      # 0x1225b
jmp 0xe2ec
movq %r15, 0x8(%rsp)
movq 0x18(%rsp), %rbp
movl (%rbx), %eax
leaq 0xa0(%rsp), %rdx
movl %eax, 0x28(%rdx)
leaq 0x4e5d(%rip), %rdi      # 0x1312b
leaq 0x20(%rsp), %r15
movq %rbp, %rsi
movq %r13, %rcx
movq %r15, %r8
callq 0x66f3
cmpb $0x0, (%r15)
je 0xe326
leaq 0x20(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3cc3
movl $0x0, 0x4(%rsp)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xe310
callq 0x3979
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 0x7175
testq %rax, %rax
je 0xe2e7
movq %rax, %r13
leaq -0xa873(%rip), %rax     # 0x3ad5
cmpq %rax, 0x18(%r12)
je 0xe35c
movq 0x28(%r13), %rdi
callq 0x3979
movq %r13, 0x28(%r13)
leaq 0x20(%rsp), %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x745e
testl %eax, %eax
movq 0x8(%rsp), %rax
je 0xe37b
movq %r13, 0x8(%rax)
jmp 0xe301
movq %r13, %rdi
callq 0x3979
jmp 0xe2e7