// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/tools/translator/translator.cpp
// Function: Translator::NewEntry()
Void Translator::NewEntry()
{
	Int	 id = 1;

	if (entries.Length() > 7)
	{
		StringItem	*entry = (StringItem *) entries.GetLast();

		id = Math::Max(entry->GetID(), 0) + 1;
	}

	text_id->Activate();
	edit_id->Activate();
	text_original->Activate();
	edit_original->Activate();
	text_translated->Activate();
	edit_translated->Activate();
	button_save->Activate();
	button_remove->Activate();
	button_copy->Activate();

	menu_entry->GetNthEntry(2)->Activate();
	menu_entry->GetNthEntry(3)->Activate();

	text_original->SetText("Original:");
	text_translated->SetText("Translation:");

	edit_id->SetText(String::FromInt(id));
	edit_original->SetText(NIL);
	edit_translated->SetText(NIL);

	modified = True;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
movl $0x1, -0xc(%rbp)
addq $0x6b8, %rdi            # imm = 0x6B8
callq 0xb410
cmpl $0x7, %eax
jle 0x13854
movq -0xa8(%rbp), %rdi
addq $0x6b8, %rdi            # imm = 0x6B8
callq 0x1a9b0
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0xb630
movl %eax, %edi
xorl %esi, %esi
callq 0x1a9d0
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movq -0xa8(%rbp), %rax
movq 0x640(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0xa8(%rbp), %rax
movq 0x648(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0xa8(%rbp), %rax
movq 0x650(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0xa8(%rbp), %rax
movq 0x658(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0xa8(%rbp), %rax
movq 0x660(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0xa8(%rbp), %rax
movq 0x668(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0xa8(%rbp), %rax
movq 0x670(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0xa8(%rbp), %rax
movq 0x678(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0xa8(%rbp), %rax
movq 0x680(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0xa8(%rbp), %rax
movq 0x5e0(%rax), %rdi
movq (%rdi), %rax
movq 0x180(%rax), %rax
movl $0x2, %esi
callq *%rax
movq %rax, %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0xa8(%rbp), %rax
movq 0x5e0(%rax), %rdi
movq (%rdi), %rax
movq 0x180(%rax), %rax
movl $0x3, %esi
callq *%rax
movq %rax, %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0xa8(%rbp), %rax
movq 0x650(%rax), %rax
movq %rax, -0xb8(%rbp)
leaq 0x9a29(%rip), %rsi      # 0x1d3be
leaq -0x30(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x8800
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x139c1
leaq -0x30(%rbp), %rdi
callq 0x8990
movq -0xa8(%rbp), %rax
movq 0x660(%rax), %rax
movq %rax, -0xc8(%rbp)
leaq 0x99e2(%rip), %rsi      # 0x1d3c8
leaq -0x58(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x8800
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x13a12
leaq -0x58(%rbp), %rdi
callq 0x8990
movq -0xa8(%rbp), %rax
movq 0x648(%rax), %rax
movq %rax, -0xd8(%rbp)
movslq -0xc(%rbp), %rsi
leaq -0x70(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x8220
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x13a60
leaq -0x70(%rbp), %rdi
callq 0x8990
movq -0xa8(%rbp), %rax
movq 0x658(%rax), %rax
movq %rax, -0xe8(%rbp)
leaq -0x88(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
xorl %esi, %esi
callq 0x8490
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x13aaf
leaq -0x88(%rbp), %rdi
callq 0x8990
movq -0xa8(%rbp), %rax
movq 0x668(%rax), %rax
movq %rax, -0xf8(%rbp)
leaq -0xa0(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
xorl %esi, %esi
callq 0x8490
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x13b01
leaq -0xa0(%rbp), %rdi
callq 0x8990
movq -0xa8(%rbp), %rax
movb $0x1, 0x770(%rax)
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x8990
jmp 0x13b9b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x8990
jmp 0x13b9b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x8990
jmp 0x13b9b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x8990
jmp 0x13b9b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x8990
movq -0x38(%rbp), %rdi
callq 0x8290
nopw %cs:(%rax,%rax)