// File: /workspace/github_c_makefile_star2_O2/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 $0x98, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r13
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %rax
movaps %xmm0, (%rax)
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
leaq 0x70(%rsp), %rcx
movaps %xmm0, (%rcx)
movq %rsp, %r15
movaps %xmm0, (%r15)
movq (%rsi), %rdi
leaq 0x20(%rsp), %rbp
movq %rdi, (%rbp)
leaq 0x48(%rsp), %rsi
movq %rdi, (%rsi)
movq %rax, 0x8(%rsi)
movq %rcx, 0x8(%rbp)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rbp)
movq %rax, 0x10(%rsi)
movq 0x18(%rbx), %rax
movq %rax, 0x18(%rbp)
movq %rax, 0x18(%rsi)
movl 0x20(%rbx), %eax
movl %eax, 0x20(%rbp)
movl %eax, 0x20(%rsi)
movq 0x28(%r13), %rdi
callq 0xb64e
movl %eax, %r12d
movq 0x30(%r13), %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0xb64e
movl %eax, %ebp
testl %r12d, %r12d
je 0xb58d
cmpl $0x2, %r12d
je 0xb552
cmpl $0x1, %r12d
jne 0xb639
testl %ebp, %ebp
je 0xb5ec
cmpl $0x2, %ebp
jne 0xb636
movq %rsp, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3996
movq %rbx, %rdi
jmp 0xb631
testl %ebp, %ebp
je 0xb614
cmpl $0x2, %ebp
je 0xb601
cmpl $0x1, %ebp
jne 0xb62c
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3996
movq %rbx, %rdi
callq 0x3988
pushq $0x2
popq %r12
jmp 0xb639
cmpl $0x2, %ebp
je 0xb5c7
testl %ebp, %ebp
jne 0xb5cf
movq 0x28(%rsp), %r15
movq 0x8(%r15), %rax
testq %rax, %rax
je 0xb5c7
cmpb $0xa, 0x14(%rax)
jne 0xb5c7
movq 0x8(%rbx), %rsi
movq %r15, %rdi
callq 0x3996
movq 0x50(%rsp), %rdi
callq 0x3988
movq 0x28(%rsp), %rdi
jmp 0xb5e2
movq %r15, %rdi
callq 0x3988
movq 0x50(%rsp), %rdi
movq 0x8(%rbx), %rsi
callq 0x3996
movq 0x50(%rsp), %rdi
callq 0x3988
xorl %r12d, %r12d
jmp 0xb639
movq 0x28(%rsp), %rdi
movq 0x8(%rbx), %rsi
callq 0x3996
movq 0x28(%rsp), %rdi
jmp 0xb631
movq %rsp, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3996
movq %rbx, %rdi
jmp 0xb627
movq 0x28(%rsp), %rdi
movq 0x8(%rbx), %rsi
callq 0x3996
movq 0x28(%rsp), %rdi
callq 0x3988
leaq 0x10(%rsp), %rdi
callq 0x3988
movl %ebp, %r12d
movl %r12d, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq