// File: /workspace/github_c_makefile_star2_O1/Encryptr[P]O-plus-plus/opp/analysis/analysis.c
// Function: opp_analize_stmt
static void opp_analize_stmt(struct Opp_Analize* ctx, struct Opp_Node* node)
{
	switch (node->type)
	{
		case STMT_VAR:
			opp_analize_var(ctx, node);
			break;

		case STMT_RET:
			opp_analize_ret(ctx, node);
			break;

		case EASSIGN:
			opp_analize_assign(ctx, node);
			break;

		case ECALL:
			opp_analize_call(ctx, node);
			break;

		case STMT_IF:
			opp_analize_if(ctx, node);
			break;

		case STMT_WHILE:
			opp_analize_while(ctx, node);
			break;

		case STMT_BLOCK:
			opp_analize_block(ctx, node);
			break;

		case STMT_BREAK:
		case STMT_CASE:
			break; // add these

		default:
			// node->type = IGNORE;
			opp_warning(ctx, node, "Unused expression found");

			opp_analize_expr(ctx, node);
			break;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x90d1(%rip), %r15      # 0xb478
movl (%rbx), %eax
leal -0x11(%rax), %ecx
cmpl $0xc, %ecx
ja 0x2439
movslq (%r15,%rcx,4), %rax
addq %r15, %rax
jmpq *%rax
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x2eed
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x297d
movq 0x10(%rbx), %rax
movl (%rax), %eax
cmpl $0x2, %eax
je 0x23ea
cmpl $0x5, %eax
jne 0x2578
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x2392
movq 0x20(%rbx), %rbx
testq %rbx, %rbx
jne 0x23a7
jmp 0x2535
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x2eed
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x297d
movq 0x10(%rbx), %rax
movl (%rax), %eax
cmpl $0x2, %eax
je 0x2430
cmpl $0x5, %eax
jne 0x2581
movq 0x18(%rbx), %rbx
jmp 0x23a7
cmpl $0x3, %eax
je 0x2541
cmpl $0x4, %eax
jne 0x245d
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x26d3
leaq 0x9291(%rip), %rdx      # 0xb6f5
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x259e
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x297d
movq 0x18(%r14), %r15
leaq 0x5ad1(%rip), %rsi      # 0x7f63
movq %r15, %rdi
callq 0xa36b
movq %rax, 0x10(%rbx)
movq %rax, 0x18(%r14)
cmpl $0x0, 0x18(%rbx)
je 0x24c6
xorl %r12d, %r12d
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rsi
movq %r14, %rdi
callq 0x2392
incq %r12
movl 0x18(%rbx), %eax
cmpq %rax, %r12
jb 0x24ab
movq %r15, 0x18(%r14)
jmp 0x2535
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2118
movq 0x30(%r14), %rax
movl 0x8(%rax), %eax
testl %eax, %eax
jne 0x2504
cmpw $0x0, 0x38(%r14)
jne 0x2500
cmpq $0x0, 0x10(%rbx)
jne 0x2595
testl %eax, %eax
je 0x2530
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x2557
movq %r14, %rdi
callq 0x297d
cmpw %dx, 0x38(%r14)
je 0x2530
leaq 0x924a(%rip), %rdx      # 0xb76d
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x259e
movb $0x1, 0x28(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x27fc
movb $0x1, 0x28(%r14)
leaq 0x91da(%rip), %rdx      # 0xb73d
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x259e
leaq 0x941a(%rip), %rdx      # 0xb999
jmp 0x2588
leaq 0x947f(%rip), %rdx      # 0xba07
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2285
leaq 0x9171(%rip), %rdx      # 0xb70d
jmp 0x2588