// File: /workspace/github_c_makefile_star2_O2/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 $0x28, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq 0x10(%rsi), %rax
movq 0x18(%rsi), %rcx
movq 0x40(%rcx), %rcx
movq %rcx, 0x20(%rsp)
movslq (%rdi), %rbp
shlq $0x4, %rbp
addq %rax, %rbp
movslq 0x3c(%rdi), %rbx
shlq $0x4, %rbx
addq %rax, %rbx
movl 0x38(%rdi), %eax
movq %rdi, 0x8(%rsp)
leaq 0x28(%rdi), %r13
leaq 0x6242(%rip), %r12      # 0x11158
movl %eax, 0x14(%rsp)
movq %r13, 0x18(%rsp)
cmpq $0x0, 0x8(%rbp)
jne 0xaff9
cmpq $0x0, 0x8(%rbx)
jne 0xaff9
cmpl $0x3e, %eax
je 0xaf75
cmpl $0x28, %eax
je 0xaf87
cmpl $0x29, %eax
je 0xaf63
cmpl $0x3c, %eax
je 0xaf7e
cmpl $0x3d, %eax
je 0xaf6c
cmpl $0x21, %eax
jne 0xaff9
movl (%rbp), %eax
cmpl (%rbx), %eax
jne 0xaf8e
jmp 0xafe7
movl (%rbp), %eax
cmpl (%rbx), %eax
jge 0xaf8e
jmp 0xafe7
movl (%rbp), %eax
cmpl (%rbx), %eax
je 0xaf8e
jmp 0xafe7
movl (%rbp), %eax
cmpl (%rbx), %eax
jg 0xaf8e
jmp 0xafe7
movl (%rbp), %eax
cmpl (%rbx), %eax
jl 0xaf8e
jmp 0xafe7
movl (%rbp), %eax
cmpl (%rbx), %eax
jg 0xafe7
movq (%r13), %r13
testq %r13, %r13
je 0xafba
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq *0x10(%r13)
cmpl $0x3, %eax
ja 0xafba
movl %eax, %ecx
movslq (%r12,%rcx,4), %rcx
addq %r12, %rcx
jmpq *%rcx
addq $0x20, %r13
jmp 0xaf8e
movq 0x20(%rsp), %rax
cmpb $0x0, 0x18(%rax)
movl 0x14(%rsp), %eax
movq 0x18(%rsp), %r13
je 0xaf1f
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x41a9
xorl %eax, %eax
jmp 0xafea
pushq $0x1
popq %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xadf6