// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cc_symboltable.cpp
// Function: symbolTable::add_ex(char const*, int, char)
int symbolTable::add_ex(const char*nta,int typo,char sizee) {
	if (find(nta) >= 0) {
		return -1;
	}

	int p_value = entries.size();

	SymbolTableEntry entry = {};
	entry.sname = std::string(nta);
    entry.stype = typo;
    entry.flags = 0;
    entry.vartype = 0;
    entry.soffs = 0;
	entry.ssize = sizee;
	entry.sscope = 0;
    entry.arrsize = 0;
    entry.extends = 0;
	entry.funcparamtypes = std::vector<unsigned long>(MAX_FUNCTION_PARAMETERS + 1);
    entry.funcParamDefaultValues = std::vector<int>(MAX_FUNCTION_PARAMETERS + 1);
	entry.funcParamHasDefaultValues = std::vector<bool>(MAX_FUNCTION_PARAMETERS + 1);
	entries.push_back(entry);

    symbolTree.addEntry(nta, p_value);
    return p_value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movl %ecx, %ebp
movl %edx, %r13d
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x70(%rdi), %r14
movq %r14, %rdi
callq 0x106bc
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
testl %eax, %eax
jns 0x11f2a
movq %r14, 0x40(%rsp)
movq 0x30(%r15), %rax
subq 0x28(%r15), %rax
movq %rax, 0x38(%rsp)
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb $0x0, (%r14)
movw %ax, 0x10(%r14)
movq %rax, 0x18(%r14)
movw %ax, 0x20(%r14)
movl $0x0, 0x24(%r14)
movq %rax, 0x28(%r14)
movw %ax, 0x30(%r14)
movq %rax, 0x38(%r14)
movw %ax, 0x40(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%r14)
movups %xmm0, 0x58(%r14)
movups %xmm0, 0x68(%r14)
movups %xmm0, 0x78(%r14)
movups %xmm0, 0x88(%r14)
movq %rax, 0x98(%r14)
leaq 0x10(%rsp), %rdi
leaq 0xe(%rsp), %rdx
movq %rbx, %rsi
callq 0xfa64
leaq 0x48(%rsp), %rdi
leaq 0x10(%rsp), %r12
movq %r12, %rsi
callq 0x33f0
movq (%r12), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x11cce
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3320
movw %r13w, 0x68(%rsp)
xorl %eax, %eax
movq %rax, 0x70(%rsp)
movw %ax, 0x78(%rsp)
movl $0x0, 0x7c(%rsp)
movsbq %bpl, %rcx
movq %rcx, 0x80(%rsp)
movw %ax, 0x88(%rsp)
movq %rax, 0x90(%rsp)
movw %ax, 0x98(%rsp)
movl $0x80, %edi
callq 0x3310
movq %rax, %rcx
subq $-0x80, %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x70(%rax)
movups %xmm0, 0x60(%rax)
movups %xmm0, 0x50(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq 0xa0(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movq %rax, 0xa0(%rsp)
movq %rcx, 0xa8(%rsp)
movq %rcx, 0xb0(%rsp)
testq %rdi, %rdi
je 0x11d74
subq %rdi, %rsi
callq 0x3320
movl $0x40, %edi
callq 0x3310
movq %rax, %rcx
addq $0x40, %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq 0xb8(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq %rax, 0xb8(%rsp)
movq %rcx, 0xc0(%rsp)
movq %rcx, 0xc8(%rsp)
testq %rdi, %rdi
je 0x11dcc
subq %rdi, %rsi
callq 0x3320
leaq 0xe(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movl $0x10, %esi
callq 0x12c3e
addq $0x28, %r15
leaq 0xd0(%rsp), %r12
movq (%r12), %rdi
testq %rdi, %rdi
je 0x11e35
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x3320
xorl %eax, %eax
movq %rax, 0xd0(%rsp)
movl %eax, 0xd8(%rsp)
movq %rax, 0xe0(%rsp)
movl %eax, 0xe8(%rsp)
movq %rax, 0xf0(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x20(%r12)
movups 0x10(%rsp), %xmm0
movups 0x20(%rsp), %xmm1
movups %xmm1, 0x10(%r12)
movups %xmm0, (%r12)
xorl %eax, %eax
movl %eax, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movl %eax, 0x28(%rsp)
leaq 0x48(%rsp), %rsi
movq %r15, %rdi
callq 0x127c6
movq 0x38(%rsp), %rax
shrq $0x4, %rax
imull $0xba2e8ba3, %eax, %r12d # imm = 0xBA2E8BA3
movq 0x40(%rsp), %rdi
movq %rbx, %rsi
movl %r12d, %edx
callq 0x10770
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x11ed9
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x3320
xorl %eax, %eax
movq %rax, 0xd0(%rsp)
movl %eax, 0xd8(%rsp)
movq %rax, 0xe0(%rsp)
movl %eax, 0xe8(%rsp)
movq %rax, 0xf0(%rsp)
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x11ef6
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x3320
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x11f13
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x3320
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x11f2a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3320
movl %r12d, %eax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11f47
jmp 0x11f47
jmp 0x11f47
jmp 0x11f47
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x127f6
movq %rbx, %rdi
callq 0x3560