// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/tools/translator/section.cpp
// Function: Section::Export(smooth::IO::OutStream&, int)
Bool Section::Export(IO::OutStream &stream, Int level)
{
	String	 indent;

	indent.FillN(' ', level * 2);

	for (Int i = 0; i < items.Length(); i++)
	{
		StringItem	*item = items.GetNth(i);

		/* Save only entries with a translation.
		 */
		if (item->GetTranslation() != NIL) stream.OutputLine(String(indent).Append(item->GetTranslation().Replace("\n", " \\ ")));
	}

	foreach (Section *section, sections)
	{
		if (section->items.Length() == 0 && section->sections.Length() == 0) continue;

		stream.OutputString("\n");
		stream.OutputLine(String(indent).Append("# ").Append(section->GetName()));
		stream.OutputString("\n");

		section->Export(stream, level + 1);
	}

	return True;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %edx, %r13d
movq %rsi, %r14
movq %rdi, %r15
leaq 0x50(%rsp), %r12
xorl %ebx, %ebx
movq %r12, %rdi
xorl %esi, %esi
callq 0x8480
movq %r13, 0x8(%rsp)
leal (,%r13,2), %edx
pushq $0x20
popq %rsi
movq %r12, %rdi
callq 0x8810
movq %r15, 0x10(%rsp)
leaq 0x20(%r15), %r12
movq 0x10(%rsp), %rax
cmpl 0x28(%rax), %ebx
jge 0x99d6
movq %r12, %rdi
movl %ebx, %esi
callq 0xb65c
movq (%rax), %r13
movl $0x650, %eax            # imm = 0x650
addq %rax, %r13
movq %r13, %rdi
xorl %esi, %esi
callq 0x86f0
testb %al, %al
je 0x99cf
leaq 0x18(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x8720
leaq 0x68(%rsp), %rdi
leaq 0x8bd9(%rip), %rsi      # 0x12531
callq 0x8800
leaq 0x80(%rsp), %rbp
movq %rbp, %rdi
leaq 0x86d8(%rip), %rsi      # 0x12047
callq 0x8800
leaq 0x38(%rsp), %r15
movq %r15, %rdi
movq %r13, %rsi
leaq 0x68(%rsp), %rdx
movq %rbp, %rcx
callq 0x83a0
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x8170
movq %r14, %rdi
movq %rax, %rsi
callq 0x8640
leaq 0x38(%rsp), %rdi
callq 0x8990
leaq 0x80(%rsp), %rdi
callq 0x8990
leaq 0x68(%rsp), %rdi
callq 0x8990
leaq 0x18(%rsp), %rdi
callq 0x8990
incl %ebx
jmp 0x9908
movq 0x10(%rsp), %rax
addq $0xd0, %rax
movq %rax, 0x30(%rsp)
movq 0x8(%rsp), %rax
incl %eax
movq %rax, 0x8(%rsp)
xorl %r13d, %r13d
leaq 0x18(%rsp), %rbx
leaq 0x38(%rsp), %rbp
leal -0x1(%r13), %eax
movq 0x10(%rsp), %rcx
movl 0xd8(%rcx), %ecx
decl %ecx
cmpl %ecx, %eax
jge 0x9ae8
movq 0x30(%rsp), %rdi
movl %r13d, %esi
callq 0xaaf2
movq (%rax), %r12
cmpl $0x0, 0x28(%r12)
jne 0x9a3f
cmpl $0x0, 0xd8(%r12)
je 0x9ae0
movq %rbx, %rdi
leaq 0x8ae8(%rip), %rsi      # 0x12531
callq 0x8800
movq %r14, %rdi
movq %rbx, %rsi
callq 0x85b0
movq %rbx, %rdi
callq 0x8990
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
callq 0x8720
movq %rbp, %rdi
leaq 0x85d3(%rip), %rsi      # 0x1204b
callq 0x8800
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x8170
movq %rax, %rdi
movq %r12, %rsi
callq 0x8170
movq %r14, %rdi
movq %rax, %rsi
callq 0x8640
movq %rbp, %rdi
callq 0x8990
movq %rbx, %rdi
callq 0x8990
movq %rbx, %rdi
leaq 0x8a79(%rip), %rsi      # 0x12531
callq 0x8800
movq %r14, %rdi
movq %rbx, %rsi
callq 0x85b0
movq %rbx, %rdi
callq 0x8990
movq %r12, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x98bc
incl %r13d
jmp 0x99ff
leaq 0x50(%rsp), %rdi
callq 0x8990
movb $0x1, %al
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9b48
jmp 0x9b48
movq %rax, %rbx
jmp 0x9b3f
movq %rax, %rbx
jmp 0x9b32
jmp 0x9b20
jmp 0x9b48
jmp 0x9b48
jmp 0x9b48
jmp 0x9b20
jmp 0x9b20
movq %rax, %rbx
jmp 0x9b5a
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x8990
leaq 0x80(%rsp), %rdi
callq 0x8990
leaq 0x68(%rsp), %rdi
jmp 0x9b55
jmp 0x9b48
movq %rax, %rbx
jmp 0x9b64
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x8990
leaq 0x18(%rsp), %rdi
callq 0x8990
leaq 0x50(%rsp), %rdi
callq 0x8990
movq %rbx, %rdi
callq 0x8290