// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: execute_while_const_statement
static enum result execute_while_const_statement( struct statement *this,
	struct variables *vars, struct variable *result ) {
	struct environment *env = vars->func->env;
	struct variable *lhs = &vars->locals[ this->local ];
	number rhs = ( ( struct block_statement * ) this )->num;
	int oper = ( ( struct block_statement * ) this )->oper;
	struct statement *stmt;
	enum result ret;
	while( 1 ) {
		if( lhs->string_value ) {
			if( oper ) {
				return execute_while_statement( this, vars, result );
			}
		} else {
			switch( oper ) {
				case  0 : if( lhs->number_value == 0 ) return OKAY; break;
				case '!': if( lhs->number_value == rhs ) return OKAY; break;
				case '(': if( lhs->number_value >  rhs ) return OKAY; break;
				case ')': if( lhs->number_value <  rhs ) return OKAY; break;
				case '<': if( lhs->number_value >= rhs ) return OKAY; break;
				case '=': if( lhs->number_value != rhs ) return OKAY; break;
				case '>': if( lhs->number_value <= rhs ) 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 0x18(%rsi), %rax
movq 0x40(%rax), %rax
movq %rax, 0x20(%rsp)
movslq (%rdi), %rdx
shlq $0x4, %rdx
addq 0x10(%rsi), %rdx
movl 0x38(%rdi), %eax
movl 0x40(%rdi), %ecx
movl %ecx, 0xc(%rsp)
movq %rdi, 0x10(%rsp)
leaq 0x28(%rdi), %r13
leaq 0x610b(%rip), %rbx      # 0x11168
movq %rdx, 0x18(%rsp)
cmpq $0x0, 0x8(%rdx)
je 0xb0be
movq %r13, %rbp
movl %eax, %r12d
testl %eax, %eax
jne 0xb17d
movq (%r13), %r13
testq %r13, %r13
je 0xb0a3
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq *0x10(%r13)
cmpl $0x3, %eax
ja 0xb0a3
movl %eax, %ecx
movslq (%rbx,%rcx,4), %rcx
addq %rbx, %rcx
jmpq *%rcx
addq $0x20, %r13
jmp 0xb077
movq 0x20(%rsp), %rax
cmpb $0x0, 0x18(%rax)
movl %r12d, %eax
movq %rbp, %r13
movq 0x18(%rsp), %rdx
je 0xb062
jmp 0xb19b
cmpl $0x3e, %eax
je 0xb159
cmpl $0x21, %eax
je 0xb145
cmpl $0x28, %eax
je 0xb0f5
cmpl $0x29, %eax
je 0xb11d
cmpl $0x3c, %eax
je 0xb109
cmpl $0x3d, %eax
je 0xb131
testl %eax, %eax
jne 0xb17d
movl %eax, %r12d
cmpl $0x0, (%rdx)
movq %r13, %rbp
jne 0xb077
jmp 0xb16b
movl %eax, %r12d
movq %r13, %rbp
movl 0xc(%rsp), %eax
cmpl %eax, (%rdx)
jle 0xb077
jmp 0xb16b
movl %eax, %r12d
movq %r13, %rbp
movl 0xc(%rsp), %eax
cmpl %eax, (%rdx)
jl 0xb077
jmp 0xb16b
movl %eax, %r12d
movq %r13, %rbp
movl 0xc(%rsp), %eax
cmpl %eax, (%rdx)
jge 0xb077
jmp 0xb16b
movl %eax, %r12d
movq %r13, %rbp
movl 0xc(%rsp), %eax
cmpl %eax, (%rdx)
je 0xb077
jmp 0xb16b
movl %eax, %r12d
movq %r13, %rbp
movl 0xc(%rsp), %eax
cmpl %eax, (%rdx)
jne 0xb077
jmp 0xb16b
movl %eax, %r12d
movq %r13, %rbp
movl 0xc(%rsp), %eax
cmpl %eax, (%rdx)
jg 0xb077
pushq $0x1
popq %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%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
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x41a9
xorl %eax, %eax
jmp 0xb16e