// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: execute_while_local_statement
static enum result execute_while_local_statement( struct statement *this,
	struct variables *vars, struct variable *result ) {
	struct environment *env = vars->func->env;
	struct variable *lhs = &vars->locals[ this->local ];
	struct variable *rhs = &vars->locals[ ( ( struct block_statement * ) this )->rhs ];
	int oper = ( ( struct block_statement * ) this )->oper;
	struct statement *stmt;
	enum result ret;
	while( 1 ) {
		if( lhs->string_value || rhs->string_value ) {
			return execute_while_statement( this, vars, result );
		} else {
			switch( oper ) {
				case '!': if( lhs->number_value == rhs->number_value ) return OKAY; break;
				case '(': if( lhs->number_value >  rhs->number_value ) return OKAY; break;
				case ')': if( lhs->number_value <  rhs->number_value ) return OKAY; break;
				case '<': if( lhs->number_value >= rhs->number_value ) return OKAY; break;
				case '=': if( lhs->number_value != rhs->number_value ) return OKAY; break;
				case '>': if( lhs->number_value <= rhs->number_value ) return OKAY; break;
				default: return execute_while_statement( this, vars, result );
			}
		}
		stmt = ( ( struct block_statement * ) this )->if_block;
		while( stmt && ( ret = stmt->execute( stmt, vars, result ) ) == OKAY ) {
			stmt = stmt->next;
		}
		if( stmt ) {
			if( ret == RETURN ) {
				return RETURN;
			} else if( ret == BREAK ) {
				return OKAY;
			} else if( ret == EXCEPTION ) {
				return EXCEPTION;
			}
		}
		if( env->interrupted ) {
			return throw_interrupted( vars, this->source );
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq 0x10(%rsi), %rax
movq 0x18(%rsi), %rcx
movq 0x40(%rcx), %rcx
movq %rcx, 0x10(%rsp)
movslq (%rdi), %rbp
shlq $0x4, %rbp
addq %rax, %rbp
movslq 0x3c(%rdi), %r13
shlq $0x4, %r13
addq %rax, %r13
movq %rdi, 0x8(%rsp)
movl 0x38(%rdi), %r15d
cmpq $0x0, 0x8(%rbp)
jne 0xb849
cmpq $0x0, 0x8(%r13)
jne 0xb849
cmpl $0x3b, %r15d
jg 0xb78d
cmpl $0x21, %r15d
je 0xb7b1
cmpl $0x28, %r15d
je 0xb7c7
cmpl $0x29, %r15d
jne 0xb849
movl (%rbp), %eax
cmpl (%r13), %eax
jge 0xb7db
jmp 0xb835
cmpl $0x3c, %r15d
je 0xb7bc
cmpl $0x3d, %r15d
je 0xb7d2
cmpl $0x3e, %r15d
jne 0xb849
movl (%rbp), %eax
cmpl (%r13), %eax
jg 0xb7db
jmp 0xb835
movl (%rbp), %eax
cmpl (%r13), %eax
jne 0xb7db
jmp 0xb835
movl (%rbp), %eax
cmpl (%r13), %eax
jl 0xb7db
jmp 0xb835
movl (%rbp), %eax
cmpl (%r13), %eax
jle 0xb7db
jmp 0xb835
movl (%rbp), %eax
cmpl (%r13), %eax
jne 0xb835
movq 0x8(%rsp), %rax
movq 0x28(%rax), %r12
testq %r12, %r12
je 0xb811
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq *0x10(%r12)
cmpl $0x1, %eax
jne 0xb803
movq 0x20(%r12), %r12
jmp 0xb7e4
testl %eax, %eax
je 0xb83a
cmpl $0x2, %eax
je 0xb83a
cmpl $0x3, %eax
je 0xb835
movq 0x10(%rsp), %rax
cmpb $0x0, 0x18(%rax)
je 0xb74d
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rsi
movq %rbx, %rdi
callq 0x4320
xorl %eax, %eax
jmp 0xb83a
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb632