// File: /workspace/github_c_makefile_star2_O1/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), %rcx
shlq $0x4, %rcx
addq %rax, %rcx
movslq 0x3c(%rdi), %r13
shlq $0x4, %r13
addq %rax, %r13
movq %rdi, (%rsp)
movl 0x38(%rdi), %r15d
movq %rcx, 0x8(%rsp)
cmpq $0x0, 0x8(%rcx)
jne 0xba25
cmpq $0x0, 0x8(%r13)
jne 0xba25
cmpl $0x3b, %r15d
jg 0xb95d
cmpl $0x21, %r15d
je 0xb980
cmpl $0x28, %r15d
je 0xb99a
cmpl $0x29, %r15d
jne 0xba25
movl (%rcx), %ecx
cmpl (%r13), %ecx
jge 0xb9b3
jmp 0xba42
cmpl $0x3c, %r15d
je 0xb98d
cmpl $0x3d, %r15d
je 0xb9a7
cmpl $0x3e, %r15d
jne 0xba25
movl (%rcx), %ecx
cmpl (%r13), %ecx
jg 0xb9b3
jmp 0xba42
movl (%rcx), %ecx
cmpl (%r13), %ecx
jne 0xb9b3
jmp 0xba42
movl (%rcx), %ecx
cmpl (%r13), %ecx
jl 0xb9b3
jmp 0xba42
movl (%rcx), %ecx
cmpl (%r13), %ecx
jle 0xb9b3
jmp 0xba42
movl (%rcx), %ecx
cmpl (%r13), %ecx
jne 0xba42
movq (%rsp), %rcx
movq 0x28(%rcx), %r12
testq %r12, %r12
sete %bpl
je 0xb9ea
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq *0x10(%r12)
cmpl $0x1, %eax
jne 0xb9ea
movq 0x20(%r12), %r12
testq %r12, %r12
sete %bpl
jne 0xb9c4
movl $0x1, %eax
testb %bpl, %bpl
jne 0xb9fd
testl %eax, %eax
je 0xba47
cmpl $0x2, %eax
je 0xba47
cmpl $0x3, %eax
je 0xba42
movq 0x10(%rsp), %rcx
cmpb $0x0, 0x18(%rcx)
movq 0x8(%rsp), %rcx
je 0xb91e
movq (%rsp), %rax
movq 0x8(%rax), %rsi
movq %rbx, %rdi
callq 0x4351
xorl %eax, %eax
jmp 0xba47
movq (%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb7ea
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq