// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/tools/translator/translator.cpp
// Function: Translator::SelectEntry(smooth::GUI::ListEntry*)
Void Translator::SelectEntry(ListEntry *entry)
{
	if (entry == NIL)
	{
		edit_id->SetText(NIL);
		edit_original->SetText(NIL);
		edit_translated->SetText(NIL);

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

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

		text_original->SetText("Original:");
		text_translated->SetText("Translation:");
	}
	else if (entry->GetObjectType() == InfoItem::classID)
	{
		edit_id->SetText(NIL);
		edit_original->SetText(((InfoItem *) entry)->GetName());
		edit_translated->SetText(((InfoItem *) entry)->GetValue());

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

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

		text_original->SetText("Field:");
		text_translated->SetText("Value:");

		edit_translated->MarkAll();
	}
	else
	{
		edit_id->SetText(String::FromInt(((StringItem *) entry)->GetID()));
		edit_original->SetText(((StringItem *) entry)->GetOriginal());
		edit_translated->SetText(((StringItem *) entry)->GetTranslation());

		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_translated->MarkAll();
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x200, %rsp            # imm = 0x200
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x130(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x12ab4
movq -0x130(%rbp), %rax
movq 0x648(%rax), %rax
movq %rax, -0x140(%rbp)
leaq -0x28(%rbp), %rdi
movq %rdi, -0x138(%rbp)
xorl %esi, %esi
callq 0x8490
movq -0x140(%rbp), %rdi
movq -0x138(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x127bc
leaq -0x28(%rbp), %rdi
callq 0x8990
movq -0x130(%rbp), %rax
movq 0x658(%rax), %rax
movq %rax, -0x150(%rbp)
leaq -0x50(%rbp), %rdi
movq %rdi, -0x148(%rbp)
xorl %esi, %esi
callq 0x8490
movq -0x150(%rbp), %rdi
movq -0x148(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x12808
leaq -0x50(%rbp), %rdi
callq 0x8990
movq -0x130(%rbp), %rax
movq 0x668(%rax), %rax
movq %rax, -0x160(%rbp)
leaq -0x68(%rbp), %rdi
movq %rdi, -0x158(%rbp)
xorl %esi, %esi
callq 0x8490
movq -0x160(%rbp), %rdi
movq -0x158(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x12854
leaq -0x68(%rbp), %rdi
callq 0x8990
movq -0x130(%rbp), %rax
movq 0x640(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x648(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x650(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x658(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x660(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x668(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x670(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x678(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x680(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%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 0x70(%rax), %rax
callq *%rax
movq -0x130(%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 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x650(%rax), %rax
movq %rax, -0x170(%rbp)
leaq 0xaa20(%rip), %rsi      # 0x1d3be
leaq -0x80(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x8800
movq -0x170(%rbp), %rdi
movq -0x168(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x129ca
leaq -0x80(%rbp), %rdi
callq 0x8990
movq -0x130(%rbp), %rax
movq 0x660(%rax), %rax
movq %rax, -0x180(%rbp)
leaq 0xa9d9(%rip), %rsi      # 0x1d3c8
leaq -0x98(%rbp), %rdi
movq %rdi, -0x178(%rbp)
callq 0x8800
movq -0x180(%rbp), %rdi
movq -0x178(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x12a1e
leaq -0x98(%rbp), %rdi
callq 0x8990
jmp 0x130d0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x8990
jmp 0x130d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x8990
jmp 0x130d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x8990
jmp 0x130d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x8990
jmp 0x130d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x8990
jmp 0x130d9
movq -0x10(%rbp), %rdi
callq 0xba50
movq %rax, %rdi
leaq 0x12a1b(%rip), %rax     # 0x254e2
movswl (%rax), %esi
callq 0x82d0
testb $0x1, %al
jne 0x12ad8
jmp 0x12dd4
movq -0x130(%rbp), %rax
movq 0x648(%rax), %rax
movq %rax, -0x190(%rbp)
leaq -0xb0(%rbp), %rdi
movq %rdi, -0x188(%rbp)
xorl %esi, %esi
callq 0x8490
movq -0x190(%rbp), %rdi
movq -0x188(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x12b1e
leaq -0xb0(%rbp), %rdi
callq 0x8990
movq -0x130(%rbp), %rax
movq 0x658(%rax), %rax
movq %rax, -0x1b0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1a990
movq -0x1b0(%rbp), %rdi
movq %rax, %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x668(%rax), %rax
movq %rax, -0x1a8(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1a660
movq -0x1a8(%rbp), %rdi
movq %rax, %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x640(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x648(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x650(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x658(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x660(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x668(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x670(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x678(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x680(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq -0x130(%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 -0x130(%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 0x70(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x650(%rax), %rax
movq %rax, -0x1a0(%rbp)
leaq 0xa871(%rip), %rsi      # 0x1d544
leaq -0xc8(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0x8800
movq -0x1a0(%rbp), %rdi
movq -0x198(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x12d02
leaq -0xc8(%rbp), %rdi
callq 0x8990
movq -0x130(%rbp), %rax
movq 0x660(%rax), %rax
movq %rax, -0x1c0(%rbp)
leaq 0xa821(%rip), %rsi      # 0x1d54b
leaq -0xe0(%rbp), %rdi
movq %rdi, -0x1b8(%rbp)
callq 0x8800
movq -0x1c0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x12d59
leaq -0xe0(%rbp), %rdi
callq 0x8990
movq -0x130(%rbp), %rax
movq 0x668(%rax), %rdi
callq 0x1a900
jmp 0x130ce
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x8990
jmp 0x130d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x8990
jmp 0x130d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x8990
jmp 0x130d9
movq -0x130(%rbp), %rax
movq 0x648(%rax), %rax
movq %rax, -0x1d0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb630
movslq %eax, %rsi
leaq -0xf8(%rbp), %rdi
movq %rdi, -0x1c8(%rbp)
callq 0x8220
movq -0x1d0(%rbp), %rdi
movq -0x1c8(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x12e24
leaq -0xf8(%rbp), %rdi
callq 0x8990
movq -0x130(%rbp), %rax
movq 0x658(%rax), %rax
movq %rax, -0x1f0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb5e0
movq -0x1f0(%rbp), %rdi
movq %rax, %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x668(%rax), %rax
movq %rax, -0x1e8(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb5c0
movq -0x1e8(%rbp), %rdi
movq %rax, %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x640(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x648(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x650(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x658(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x660(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x668(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x670(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x678(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%rbp), %rax
movq 0x680(%rax), %rdi
movq (%rdi), %rax
movq 0x68(%rax), %rax
callq *%rax
movq -0x130(%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 -0x130(%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 -0x130(%rbp), %rax
movq 0x650(%rax), %rax
movq %rax, -0x1e0(%rbp)
leaq 0xa3e5(%rip), %rsi      # 0x1d3be
leaq -0x110(%rbp), %rdi
movq %rdi, -0x1d8(%rbp)
callq 0x8800
movq -0x1e0(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x13008
leaq -0x110(%rbp), %rdi
callq 0x8990
movq -0x130(%rbp), %rax
movq 0x660(%rax), %rax
movq %rax, -0x200(%rbp)
leaq 0xa398(%rip), %rsi      # 0x1d3c8
leaq -0x128(%rbp), %rdi
movq %rdi, -0x1f8(%rbp)
callq 0x8800
movq -0x200(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x1305f
leaq -0x128(%rbp), %rdi
callq 0x8990
movq -0x130(%rbp), %rax
movq 0x668(%rax), %rdi
callq 0x1a900
jmp 0x130ce
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0x8990
jmp 0x130d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x8990
jmp 0x130d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x8990
jmp 0x130d9
jmp 0x130d0
addq $0x200, %rsp            # imm = 0x200
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x8290
nopw %cs:(%rax,%rax)