// File: /workspace/github_c_makefile_star2_O1/martincameron[P]towntalk/towntalk.c
// Function: execute_try_finally_statement
static enum result execute_try_finally_statement( struct statement *this,
	struct variables *vars, struct variable *result ) {
	enum result try_ret, fin_ret;
	struct variables try_vars, fin_vars;
	struct variable try_exc = { 0 }, try_res = { 0 };
	struct variable fin_exc = { 0 }, fin_res = { 0 };
	try_vars.parent = fin_vars.parent = vars->parent;
	try_vars.exception = &try_exc;
	fin_vars.exception = &fin_exc;
	try_vars.locals = fin_vars.locals = vars->locals;
	try_vars.func = fin_vars.func = vars->func;
	try_vars.line = fin_vars.line = vars->line;
	try_ret = execute_statements( ( ( struct block_statement * ) this )->if_block, &try_vars, &try_res );
	fin_ret = execute_statements( ( ( struct block_statement * ) this )->else_block, &fin_vars, &fin_res );
	if( try_ret == OKAY ) {
		if( fin_ret == OKAY ) {
			return OKAY;
		} else if( fin_ret == RETURN ) {
			assign_variable( &fin_res, result );
			dispose_temporary( &fin_res );
		} else if( fin_ret == EXCEPTION ) {
			assign_variable( fin_vars.exception, vars->exception );
			dispose_temporary( fin_vars.exception );
		}
		return fin_ret;
	}
	if( try_ret == RETURN ) {
		if( fin_ret == OKAY ) {
			assign_variable( &try_res, result );
			dispose_temporary( &try_res );
			return RETURN;
		} else if( fin_ret == EXCEPTION ) {
			assign_variable( fin_vars.exception, vars->exception );
			dispose_temporary( fin_vars.exception );
		} else if( fin_ret == RETURN ) {
			assign_variable( &fin_res, result );
			dispose_temporary( &fin_res );
		}
		dispose_temporary( &try_res );
		return fin_ret;
	}
	if( try_ret == EXCEPTION ) {
		if( fin_ret == EXCEPTION ) {
			if( is_exit( fin_vars.exception ) ) {
				assign_variable( fin_vars.exception, vars->exception );
				dispose_temporary( try_vars.exception );
				dispose_temporary( fin_vars.exception );
				return EXCEPTION;
			}
			dispose_temporary( fin_vars.exception );
		} else if( fin_ret == RETURN ) {
			dispose_temporary( &fin_res );
		}
		assign_variable( try_vars.exception, vars->exception );
		dispose_temporary( try_vars.exception );
	}
	return try_ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
leaq 0x90(%rsp), %rax
movaps %xmm0, (%rax)
movaps %xmm0, 0x20(%rsp)
leaq 0x80(%rsp), %rcx
movaps %xmm0, (%rcx)
movaps %xmm0, 0x10(%rsp)
movq (%rsi), %rdx
movq %rdx, 0x30(%rsp)
movq %rdx, 0x58(%rsp)
movq %rax, 0x60(%rsp)
movq %rcx, 0x38(%rsp)
movq 0x10(%rsi), %rax
movq %rax, 0x40(%rsp)
movq %rax, 0x68(%rsp)
movq 0x18(%rsi), %rax
movq %rax, 0x48(%rsp)
movq %rax, 0x70(%rsp)
movl 0x20(%rsi), %eax
movl %eax, 0x50(%rsp)
movl %eax, 0x78(%rsp)
movq 0x28(%rdi), %r12
movl $0x1, %r13d
movl $0x1, %ebp
testq %r12, %r12
je 0xc016
leaq 0x58(%rsp), %r13
leaq 0x20(%rsp), %rbx
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq *0x10(%r12)
cmpl $0x1, %eax
jne 0xc00e
movq 0x20(%r12), %r12
testq %r12, %r12
jne 0xbfea
movl $0x1, %ebp
jmp 0xc010
movl %eax, %ebp
movl $0x1, %r13d
movq 0x30(%r15), %r15
testq %r15, %r15
je 0xc049
leaq 0x30(%rsp), %r12
leaq 0x10(%rsp), %rbx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq *0x10(%r15)
cmpl $0x1, %eax
jne 0xc046
movq 0x20(%r15), %r15
testq %r15, %r15
jne 0xc029
jmp 0xc049
movl %eax, %r13d
testl %ebp, %ebp
je 0xc0f7
cmpl $0x2, %ebp
je 0xc099
cmpl $0x1, %ebp
jne 0xc1ea
testl %r13d, %r13d
je 0xc16d
cmpl $0x2, %r13d
jne 0xc186
movq 0x8(%rsp), %rbx
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xc085
callq 0x3979
movl 0x10(%rsp), %eax
movl %eax, (%rbx)
movq 0x18(%rsp), %rdi
movq %rdi, 0x8(%rbx)
movl %r13d, %ebp
jmp 0xc0e3
testl %r13d, %r13d
je 0xc1b7
cmpl $0x2, %r13d
je 0xc18b
cmpl $0x1, %r13d
movq 0x8(%rsp), %rbx
jne 0xc1d8
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xc0c9
callq 0x3979
movl 0x20(%rsp), %eax
movl %eax, (%rbx)
movq 0x28(%rsp), %rdi
movq %rdi, 0x8(%rbx)
movl $0x2, %r13d
movl $0x2, %ebp
testq %rdi, %rdi
je 0xc1ea
incq (%rdi)
movl %r13d, %ebp
jmp 0xc1e5
cmpl $0x2, %r13d
je 0xc145
testl %r13d, %r13d
jne 0xc154
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0xc154
cmpb $0xa, 0x14(%rdi)
jne 0xc14a
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x3a95
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0xc135
callq 0x3979
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
xorl %ebp, %ebp
jmp 0xc1e0
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xc154
callq 0x3979
movq 0x60(%rsp), %rdi
movq 0x8(%r14), %rsi
callq 0x3a95
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rdi
jmp 0xc1e0
movq 0x38(%rsp), %rdi
movq 0x8(%r14), %rsi
callq 0x3a95
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
jmp 0xc1dd
movl %r13d, %ebp
jmp 0xc1ea
movq 0x8(%rsp), %rbx
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xc19e
callq 0x3979
movl 0x10(%rsp), %eax
movl %eax, (%rbx)
movq 0x18(%rsp), %rdi
movq %rdi, 0x8(%rbx)
testq %rdi, %rdi
je 0xc1d8
incq (%rdi)
jmp 0xc1d3
movq 0x38(%rsp), %rdi
movq 0x8(%r14), %rsi
callq 0x3a95
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0xc1d8
callq 0x3979
movq 0x28(%rsp), %rdi
movl %r13d, %ebp
testq %rdi, %rdi
je 0xc1ea
callq 0x3979
movl %ebp, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq