// File: /workspace/github_c_makefile_star2_O2/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 0x812a(%rip), %r15      # 0xa470
movl (%rbx), %eax
leal -0x11(%rax), %ecx
cmpl $0xc, %ecx
ja 0x23d8
movslq (%r15,%rcx,4), %rax
addq %r15, %rax
jmpq *%rax
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x2e16
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x28ea
movq 0x10(%rbx), %rax
movl (%rax), %eax
cmpl $0x2, %eax
je 0x2389
cmpl $0x5, %eax
jne 0x250c
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x2331
movq 0x20(%rbx), %rbx
testq %rbx, %rbx
jne 0x2346
jmp 0x24df
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x2e16
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x28ea
movq 0x10(%rbx), %rax
movl (%rax), %eax
cmpl $0x2, %eax
je 0x23cf
cmpl $0x5, %eax
jne 0x2515
movq 0x18(%rbx), %rbx
jmp 0x2346
cmpl $0x3, %eax
je 0x24b5
cmpl $0x4, %eax
jne 0x23fc
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2665
leaq 0x82f2(%rip), %rdx      # 0xa6f5
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2532
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x28ea
movq 0x18(%r14), %r15
leaq 0x5645(%rip), %rsi      # 0x7a76
movq %r15, %rdi
callq 0x9c2a
movq %rax, 0x10(%rbx)
movq %rax, 0x18(%r14)
xorl %r12d, %r12d
movl 0x18(%rbx), %eax
cmpq %rax, %r12
jae 0x2461
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rsi
movq %r14, %rdi
callq 0x2331
incq %r12
jmp 0x2444
movq %r15, 0x18(%r14)
jmp 0x24df
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x20ce
movq 0x30(%r14), %rax
cmpl $0x0, 0x8(%rax)
je 0x24cb
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x24eb
movq %r14, %rdi
callq 0x28ea
cmpw %dx, 0x38(%r14)
je 0x24da
leaq 0x82c7(%rip), %rdx      # 0xa76d
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2532
jmp 0x24da
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2776
cmpw $0x0, 0x38(%r14)
jne 0x24da
cmpq $0x0, 0x10(%rbx)
jne 0x2529
movb $0x1, 0x28(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movb $0x1, 0x28(%r14)
leaq 0x8246(%rip), %rdx      # 0xa73d
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2532
leaq 0x8486(%rip), %rdx      # 0xa999
jmp 0x251c
leaq 0x84eb(%rip), %rdx      # 0xaa07
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2228
leaq 0x81dd(%rip), %rdx      # 0xa70d
jmp 0x251c