// File: /workspace/github_c_makefile_star2_O1/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 0xf28a
movq %rdi, %rbx
addq $0x688, %rdi            # imm = 0x688
xorl %esi, %esi
callq 0x77c0
leaq 0x6a0(%rbx), %rdi
xorl %esi, %esi
callq 0x77c0
movq 0x5b8(%rbx), %r14
leaq 0x325f(%rip), %rsi      # 0x12309
leaq 0x20(%rsp), %rdi
callq 0x77f0
leaq 0x3262(%rip), %rsi      # 0x1231d
leaq 0x8(%rsp), %rdi
callq 0x77f0
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x7170
movq (%r14), %rcx
movq %r14, %rdi
movq %rax, %rsi
callq *0xa0(%rcx)
leaq 0x6b8(%rbx), %r14
leaq 0x8(%rsp), %rdi
callq 0x7980
leaq 0x20(%rsp), %rdi
callq 0x7980
movq 0x608(%rbx), %rsi
movq %rbx, %rdi
callq 0xf344
movq 0x600(%rbx), %rdi
movq (%rdi), %rax
callq *0x168(%rax)
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x9ca8
movq (%rax), %rdi
callq 0x7950
incl %ebp
cmpl $0x7, %ebp
jne 0xf11f
leaq 0x710(%rbx), %r15
cmpl $0x0, 0x718(%rbx)
jle 0xf166
xorl %ebp, %ebp
movq %r15, %rdi
movl %ebp, %esi
callq 0x9ca8
movq (%rax), %rdi
callq 0x7950
incl %ebp
cmpl 0x718(%rbx), %ebp
jl 0xf14a
movq %r14, %rdi
callq 0x1086c
movq %r15, %rdi
callq 0x1086c
movq 0x768(%rbx), %r14
testq %r14, %r14
je 0xf197
movq %r14, %rdi
callq 0x7eb2
movl $0x128, %esi            # imm = 0x128
movq %r14, %rdi
callq 0x70a0
movq $0x0, 0x768(%rbx)
movb $0x0, 0x770(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0xc332
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
movl $0x1, %esi
callq *0x180(%rax)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x70(%rcx)
movq 0x5d8(%rbx), %rdi
movq (%rdi), %rax
movl $0x4, %esi
callq *0x180(%rax)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x70(%rcx)
movq 0x5d8(%rbx), %rdi
movq (%rdi), %rax
movl $0x5, %esi
callq *0x180(%rax)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x70(%rcx)
movq 0x5d8(%rbx), %rdi
movq (%rdi), %rax
movl $0x7, %esi
callq *0x180(%rax)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x70(%rcx)
movq 0x5c8(%rbx), %rdi
movq (%rdi), %rax
movl $0x1, %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 0xf2a7
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7980
leaq 0x20(%rsp), %rdi
callq 0x7980
movq %rbx, %rdi
callq 0x7290
nop