// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/tools/translator/translator.cpp
// Function: Translator::CloseFile()
Void Translator::CloseFile()
{
	if (entries.Length() == 0) return;

	fileName     = NIL;
	templateName = NIL;

	wnd->SetText(String("smooth Translator v").Append(SMOOTH_VERSION));

	ClearFilter(list_filtered);

	list_entries->RemoveAllEntries();

	for (Int i = 0; i < numInfoItems;	     i++) DeleteObject(entries.GetNth(i));
	for (Int i = 0; i < createdEntries.Length(); i++) DeleteObject(createdEntries.GetNth(i));

	entries.RemoveAll();
	createdEntries.RemoveAll();

	delete dataSection;

	dataSection = NIL;
	modified    = False;

	SelectEntry(NIL);

	list_entries->Deactivate();
	list_filtered->Deactivate();

	layer_edit->Deactivate();

	text_filter->Deactivate();
	edit_filter->Deactivate();

	menu_file->GetNthEntry(1)->Deactivate();
	menu_file->GetNthEntry(4)->Deactivate();
	menu_file->GetNthEntry(5)->Deactivate();
	menu_file->GetNthEntry(7)->Deactivate();

	menubar->GetNthEntry(1)->Deactivate();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
cmpl $0x0, 0x6c0(%rdi)
je 0xfdeb
movq %rdi, %rbx
addq $0x688, %rdi            # imm = 0x688
xorl %esi, %esi
callq 0x87d0
leaq 0x6a0(%rbx), %rdi
xorl %esi, %esi
callq 0x87d0
movq 0x5b8(%rbx), %r14
leaq 0x26dd(%rip), %rsi      # 0x122f9
leaq 0x20(%rsp), %rdi
callq 0x8800
leaq 0x26e0(%rip), %rsi      # 0x1230d
leaq 0x8(%rsp), %rdi
callq 0x8800
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x8170
movq (%r14), %rcx
movq %r14, %rdi
movq %rax, %rsi
callq *0xa0(%rcx)
leaq 0x6b8(%rbx), %r14
leaq 0x8(%rsp), %rdi
callq 0x8990
leaq 0x20(%rsp), %rdi
callq 0x8990
movq 0x608(%rbx), %rsi
movq %rbx, %rdi
callq 0xfea4
movq 0x600(%rbx), %rdi
movq (%rdi), %rax
callq *0x168(%rax)
xorl %ebp, %ebp
cmpl $0x7, %ebp
je 0xfcac
movq %r14, %rdi
movl %ebp, %esi
callq 0xab92
movq (%rax), %rdi
callq 0x8960
incl %ebp
jmp 0xfc91
leaq 0x710(%rbx), %r15
xorl %ebp, %ebp
cmpl 0x718(%rbx), %ebp
jge 0xfcd3
movq %r15, %rdi
movl %ebp, %esi
callq 0xab92
movq (%rax), %rdi
callq 0x8960
incl %ebp
jmp 0xfcb5
movq %r14, %rdi
callq 0x112fa
movq %r15, %rdi
callq 0x112fa
movq 0x768(%rbx), %r14
testq %r14, %r14
je 0xfcf7
movq %r14, %rdi
callq 0x8e58
movl $0x128, %esi            # imm = 0x128
movq %r14, %rdi
callq 0x80a0
andq $0x0, 0x768(%rbx)
movb $0x0, 0x770(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0xd0a2
movq 0x600(%rbx), %rdi
movq (%rdi), %rax
callq *0x70(%rax)
movq 0x608(%rbx), %rdi
movq (%rdi), %rax
callq *0x70(%rax)
movq 0x630(%rbx), %rdi
movq (%rdi), %rax
callq *0x70(%rax)
movq 0x5e8(%rbx), %rdi
movq (%rdi), %rax
callq *0x70(%rax)
movq 0x5f0(%rbx), %rdi
movq (%rdi), %rax
callq *0x70(%rax)
movq 0x5d8(%rbx), %rdi
movq (%rdi), %rax
pushq $0x1
popq %rbp
movl %ebp, %esi
callq *0x180(%rax)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x70(%rcx)
movq 0x5d8(%rbx), %rdi
movq (%rdi), %rax
pushq $0x4
popq %rsi
callq *0x180(%rax)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x70(%rcx)
movq 0x5d8(%rbx), %rdi
movq (%rdi), %rax
pushq $0x5
popq %rsi
callq *0x180(%rax)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x70(%rcx)
movq 0x5d8(%rbx), %rdi
movq (%rdi), %rax
pushq $0x7
popq %rsi
callq *0x180(%rax)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x70(%rcx)
movq 0x5c8(%rbx), %rdi
movq (%rdi), %rax
movl %ebp, %esi
callq *0x180(%rax)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x70(%rcx)
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0xfe08
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8990
leaq 0x20(%rsp), %rdi
callq 0x8990
movq %rbx, %rdi
callq 0x8290