// File: /workspace/github_c_makefile_star2_O0/martincameron[P]towntalk/towntalk.c
// Function: execute_tail_call_statement
static enum result execute_tail_call_statement( struct statement *this,
	struct variables *vars, struct variable *result ) {
	enum result ret = OKAY;
	struct expression *source = this->source, *parameter = source->parameters;
	struct function *func = ( ( struct function_expression * ) source )->function;
	int num_params = func->num_parameters, num_locals = func->num_variables;
	int idx = 0, size = sizeof( struct variable ) * num_params;
	struct variable *locals = alloca( size );
	memset( locals, 0, size );
	while( idx < num_params ) {
		ret = parameter->evaluate( parameter, vars, &locals[ idx++ ] );
		if( ret ) {
			parameter = parameter->next;
		} else {
			break;
		}
	}
	if( ret ) {
		idx = 0;
		while( idx < num_params ) {
			assign_variable( &locals[ idx ], &vars->locals[ idx ] );
			idx++;
		}
		while( idx < num_locals ) {
			dispose_variable( &vars->locals[ idx++ ] );
		}
		if( func->env->interrupted ) {
			ret = throw_interrupted( vars, source );
		} else {
			ret = AGAIN;
		}
	}
	idx = 0;
	while( idx < num_params ) {
		dispose_temporary( &locals[ idx++ ] );
	}
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x1, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x40(%rbp)
movl $0x0, -0x44(%rbp)
movl -0x3c(%rbp), %eax
shll $0x4, %eax
movl %eax, -0x48(%rbp)
movslq -0x48(%rbp), %rcx
addq $0xf, %rcx
andq $-0x10, %rcx
movq %rsp, %rax
subq %rcx, %rax
movq %rax, %rsp
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
movslq -0x48(%rbp), %rdx
xorl %esi, %esi
callq 0x30f0
movl -0x44(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jge 0x9afc
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x50(%rbp), %rdx
movl -0x44(%rbp), %ecx
movl %ecx, %r8d
addl $0x1, %r8d
movl %r8d, -0x44(%rbp)
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rdx
callq *%rax
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x9af8
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x9afa
jmp 0x9afc
jmp 0x9aab
cmpl $0x0, -0x1c(%rbp)
je 0x9b9d
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jge 0x9b47
movq -0x50(%rbp), %rdi
movslq -0x44(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movslq -0x44(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rsi
callq 0x3d10
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x9b0d
jmp 0x9b49
movl -0x44(%rbp), %eax
cmpl -0x40(%rbp), %eax
jge 0x9b74
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movl -0x44(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x44(%rbp)
cltq
shlq $0x4, %rax
addq %rax, %rdi
callq 0x3be0
jmp 0x9b49
movq -0x38(%rbp), %rax
movq 0x40(%rax), %rax
cmpb $0x0, 0x18(%rax)
je 0x9b94
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x4e70
movl %eax, -0x1c(%rbp)
jmp 0x9b9b
movl $0x5, -0x1c(%rbp)
jmp 0x9b9d
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jge 0x9bcb
movq -0x50(%rbp), %rdi
movl -0x44(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x44(%rbp)
cltq
shlq $0x4, %rax
addq %rax, %rdi
callq 0x3ce0
jmp 0x9ba4
movl -0x1c(%rbp), %eax
movq %rbp, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)