// File: /workspace/github_c_makefile_star2_O1/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 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
movq %rdi, 0x8(%rsp)
movl 0x40(%rdi), %eax
movl %eax, 0x4(%rsp)
cmpq $0x0, 0x8(%rbp)
je 0xbb09
testl %r13d, %r13d
jne 0xbbd3
movq 0x8(%rsp), %rcx
movq 0x28(%rcx), %r12
testq %r12, %r12
sete %r15b
je 0xbada
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq *0x10(%r12)
cmpl $0x1, %eax
jne 0xbada
movq 0x20(%r12), %r12
testq %r12, %r12
sete %r15b
jne 0xbab4
movl $0x1, %eax
testb %r15b, %r15b
jne 0xbaf9
testl %eax, %eax
je 0xbbc4
cmpl $0x2, %eax
je 0xbbc4
cmpl $0x3, %eax
je 0xbbaa
movq 0x10(%rsp), %rcx
cmpb $0x0, 0x18(%rcx)
je 0xba92
jmp 0xbbb1
cmpl $0x28, %r13d
jle 0xbb34
cmpl $0x3c, %r13d
jg 0xbb58
cmpl $0x29, %r13d
je 0xbb73
cmpl $0x3c, %r13d
jne 0xbbd3
movl 0x4(%rsp), %ecx
cmpl %ecx, (%rbp)
jl 0xbaa2
jmp 0xbbaa
testl %r13d, %r13d
je 0xbba0
cmpl $0x21, %r13d
je 0xbb91
cmpl $0x28, %r13d
jne 0xbbd3
movl 0x4(%rsp), %ecx
cmpl %ecx, (%rbp)
jle 0xbaa2
jmp 0xbbaa
cmpl $0x3d, %r13d
je 0xbb82
cmpl $0x3e, %r13d
jne 0xbbd3
movl 0x4(%rsp), %ecx
cmpl %ecx, (%rbp)
jg 0xbaa2
jmp 0xbbaa
movl 0x4(%rsp), %ecx
cmpl %ecx, (%rbp)
jge 0xbaa2
jmp 0xbbaa
movl 0x4(%rsp), %ecx
cmpl %ecx, (%rbp)
je 0xbaa2
jmp 0xbbaa
movl 0x4(%rsp), %ecx
cmpl %ecx, (%rbp)
jne 0xbaa2
jmp 0xbbaa
cmpl $0x0, (%rbp)
jne 0xbaa2
movl $0x1, %eax
jmp 0xbbc4
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rsi
movq %rbx, %rdi
callq 0x4351
xorl %eax, %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 0xb7ea