// File: /workspace/github_c_makefile_star2_O3/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 0x90c8(%rip), %r15      # 0xb470
movl (%rbx), %eax
leal -0x11(%rax), %ecx
cmpl $0xc, %ecx
ja 0x243a
movslq (%r15,%rcx,4), %rax
addq %r15, %rax
jmpq *%rax
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x2e8d
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x2961
movq 0x10(%rbx), %rax
movl (%rax), %eax
cmpl $0x2, %eax
je 0x23eb
cmpl $0x5, %eax
jne 0x2572
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x2393
movq 0x20(%rbx), %rbx
testq %rbx, %rbx
jne 0x23a8
jmp 0x2545
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x2e8d
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x2961
movq 0x10(%rbx), %rax
movl (%rax), %eax
cmpl $0x2, %eax
je 0x2431
cmpl $0x5, %eax
jne 0x257b
movq 0x18(%rbx), %rbx
jmp 0x23a8
cmpl $0x3, %eax
je 0x251b
cmpl $0x4, %eax
jne 0x245e
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x26cd
leaq 0x9290(%rip), %rdx      # 0xb6f5
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2598
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2961
movq 0x18(%r14), %r15
leaq 0x59d4(%rip), %rsi      # 0x7e67
movq %r15, %rdi
callq 0xa1ff
movq %rax, 0x10(%rbx)
movq %rax, 0x18(%r14)
cmpl $0x0, 0x18(%rbx)
je 0x24c7
xorl %r12d, %r12d
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rsi
movq %r14, %rdi
callq 0x2393
incq %r12
movl 0x18(%rbx), %eax
cmpq %rax, %r12
jb 0x24ac
movq %r15, 0x18(%r14)
jmp 0x2545
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x212c
movq 0x30(%r14), %rax
cmpl $0x0, 0x8(%rax)
je 0x2531
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x2551
movq %r14, %rdi
callq 0x2961
cmpw %dx, 0x38(%r14)
je 0x2540
leaq 0x9261(%rip), %rdx      # 0xb76d
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2598
jmp 0x2540
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x27de
cmpw $0x0, 0x38(%r14)
jne 0x2540
cmpq $0x0, 0x10(%rbx)
jne 0x258f
movb $0x1, 0x28(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movb $0x1, 0x28(%r14)
leaq 0x91e0(%rip), %rdx      # 0xb73d
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2598
leaq 0x9420(%rip), %rdx      # 0xb999
jmp 0x2582
leaq 0x9485(%rip), %rdx      # 0xba07
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2286
leaq 0x9177(%rip), %rdx      # 0xb70d
jmp 0x2582