// File: /workspace/github_c_makefile_star2_O3/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 0xbdcd
leaq 0x58(%rsp), %r13
leaq 0x20(%rsp), %rbx
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq *0x10(%r12)
cmpl $0x1, %eax
jne 0xbdc5
movq 0x20(%r12), %r12
testq %r12, %r12
jne 0xbda1
movl $0x1, %ebp
jmp 0xbdc7
movl %eax, %ebp
movl $0x1, %r13d
movq 0x30(%r15), %r15
testq %r15, %r15
je 0xbe00
leaq 0x30(%rsp), %r12
leaq 0x10(%rsp), %rbx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq *0x10(%r15)
cmpl $0x1, %eax
jne 0xbdfd
movq 0x20(%r15), %r15
testq %r15, %r15
jne 0xbde0
jmp 0xbe00
movl %eax, %r13d
testl %ebp, %ebp
je 0xbeab
cmpl $0x2, %ebp
je 0xbe50
cmpl $0x1, %ebp
jne 0xbf9b
testl %r13d, %r13d
je 0xbf20
cmpl $0x2, %r13d
jne 0xbf98
movq 0x8(%rsp), %rbx
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xbe3c
callq 0x394d
movl 0x10(%rsp), %eax
movl %eax, (%rbx)
movq 0x18(%rsp), %rdi
movq %rdi, 0x8(%rbx)
movl %r13d, %ebp
jmp 0xbe9a
testl %r13d, %r13d
je 0xbf65
cmpl $0x2, %r13d
je 0xbf39
cmpl $0x1, %r13d
movq 0x8(%rsp), %rbx
jne 0xbf86
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xbe80
callq 0x394d
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 0xbf9b
incq (%rdi)
jmp 0xbf93
cmpl $0x2, %r13d
je 0xbef0
testl %r13d, %r13d
jne 0xbeff
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0xbeff
cmpb $0xa, 0x14(%rdi)
jne 0xbefa
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x3a65
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0xbee9
callq 0x394d
movq 0x38(%rsp), %rax
jmp 0xbf12
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xbeff
callq 0x394d
movq 0x60(%rsp), %rdi
movq 0x8(%r14), %rsi
callq 0x3a65
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rdi
xorl %r13d, %r13d
movl $0x0, %ebp
jmp 0xbf8e
movq 0x38(%rsp), %rdi
movq 0x8(%r14), %rsi
callq 0x3a65
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
jmp 0xbf8b
movq 0x8(%rsp), %rbx
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xbf4c
callq 0x394d
movl 0x10(%rsp), %eax
movl %eax, (%rbx)
movq 0x18(%rsp), %rdi
movq %rdi, 0x8(%rbx)
testq %rdi, %rdi
je 0xbf86
incq (%rdi)
jmp 0xbf81
movq 0x38(%rsp), %rdi
movq 0x8(%r14), %rsi
callq 0x3a65
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0xbf86
callq 0x394d
movq 0x28(%rsp), %rdi
movl %r13d, %ebp
testq %rdi, %rdi
je 0xbf9b
callq 0x394d
movl %r13d, %ebp
movl %ebp, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq