// File: /workspace/github_c_makefile_star2_O3/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 $0x18, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq 0x18(%rsi), %rax
movq 0x40(%rax), %rax
movq %rax, 0x10(%rsp)
movslq (%rdi), %rbp
shlq $0x4, %rbp
addq 0x10(%rsi), %rbp
movl 0x38(%rdi), %r13d
movl 0x40(%rdi), %eax
movl %eax, 0xc(%rsp)
cmpq $0x0, 0x8(%rbp)
je 0xb8fe
testl %r13d, %r13d
jne 0xb9ab
movq 0x28(%r15), %r12
testq %r12, %r12
je 0xb8ee
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq *0x10(%r12)
cmpl $0x1, %eax
jne 0xb8d4
movq 0x20(%r12), %r12
jmp 0xb8b5
testl %eax, %eax
je 0xb99c
cmpl $0x2, %eax
je 0xb99c
cmpl $0x3, %eax
je 0xb997
movq 0x10(%rsp), %rax
cmpb $0x0, 0x18(%rax)
je 0xb8a1
jmp 0xb9c7
cmpl $0x28, %r13d
jle 0xb925
cmpl $0x3c, %r13d
jg 0xb945
cmpl $0x29, %r13d
je 0xb960
cmpl $0x3c, %r13d
jne 0xb9ab
movl 0xc(%rsp), %eax
cmpl %eax, (%rbp)
jl 0xb8b1
jmp 0xb997
testl %r13d, %r13d
je 0xb98d
cmpl $0x21, %r13d
je 0xb97e
cmpl $0x28, %r13d
jne 0xb9ab
movl 0xc(%rsp), %eax
cmpl %eax, (%rbp)
jle 0xb8b1
jmp 0xb997
cmpl $0x3d, %r13d
je 0xb96f
cmpl $0x3e, %r13d
jne 0xb9ab
movl 0xc(%rsp), %eax
cmpl %eax, (%rbp)
jg 0xb8b1
jmp 0xb997
movl 0xc(%rsp), %eax
cmpl %eax, (%rbp)
jge 0xb8b1
jmp 0xb997
movl 0xc(%rsp), %eax
cmpl %eax, (%rbp)
je 0xb8b1
jmp 0xb997
movl 0xc(%rsp), %eax
cmpl %eax, (%rbp)
jne 0xb8b1
jmp 0xb997
cmpl $0x0, (%rbp)
jne 0xb8b1
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb632
movq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x4320
xorl %eax, %eax
jmp 0xb99c