// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x128(%rbp)
leaq -0x30(%rbp), %rdi
movq %rdi, -0x120(%rbp)
xorl %esi, %esi
callq 0x8490
movq -0x120(%rbp), %rdi
movl -0x14(%rbp), %edx
addl %edx, %edx
movl $0x20, %esi
callq 0x8810
jmp 0xa96b
movl $0x0, -0x40(%rbp)
movq -0x128(%rbp), %rdi
movl -0x40(%rbp), %eax
movl %eax, -0x130(%rbp)
addq $0x20, %rdi
callq 0xb410
movl %eax, -0x12c(%rbp)
jmp 0xa993
movl -0x130(%rbp), %eax
movl -0x12c(%rbp), %ecx
cmpl %ecx, %eax
jge 0xab5b
movq -0x128(%rbp), %rdi
addq $0x20, %rdi
movl -0x40(%rbp), %esi
callq 0xba20
movq %rax, -0x138(%rbp)
jmp 0xa9c3
movq -0x138(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0xb5c0
movq %rax, -0x140(%rbp)
jmp 0xa9e3
movq -0x140(%rbp), %rdi
xorl %esi, %esi
callq 0x8700
movb %al, -0x141(%rbp)
jmp 0xa9f9
movb -0x141(%rbp), %al
testb $0x1, %al
jne 0xaa08
jmp 0xab4b
movq -0x10(%rbp), %rax
movq %rax, -0x150(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x8730
jmp 0xaa22
movq -0x48(%rbp), %rdi
callq 0xb5c0
movq %rax, -0x158(%rbp)
jmp 0xaa34
leaq 0x12af6(%rip), %rsi     # 0x1d531
leaq -0x90(%rbp), %rdi
callq 0x8800
jmp 0xaa49
leaq 0x125f7(%rip), %rsi     # 0x1d047
leaq -0xa8(%rbp), %rdi
callq 0x8800
jmp 0xaa5e
movq -0x158(%rbp), %rsi
leaq -0x78(%rbp), %rdi
leaq -0x90(%rbp), %rdx
leaq -0xa8(%rbp), %rcx
callq 0x83a0
jmp 0xaa7e
leaq -0x60(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x8170
movq %rax, -0x160(%rbp)
jmp 0xaa94
movq -0x160(%rbp), %rsi
movq -0x150(%rbp), %rdi
callq 0x8650
jmp 0xaaa9
leaq -0x78(%rbp), %rdi
callq 0x8990
leaq -0xa8(%rbp), %rdi
callq 0x8990
leaq -0x90(%rbp), %rdi
callq 0x8990
leaq -0x60(%rbp), %rdi
callq 0x8990
jmp 0xab4b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xae5d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xab3d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xab31
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xab25
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x8990
leaq -0xa8(%rbp), %rdi
callq 0x8990
leaq -0x90(%rbp), %rdi
callq 0x8990
leaq -0x60(%rbp), %rdi
callq 0x8990
jmp 0xae5d
jmp 0xab4d
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0xa972
movl $0x0, -0xac(%rbp)
movl $0xffffffff, -0xb0(%rbp) # imm = 0xFFFFFFFF
xorl %eax, %eax
cmpl $0x0, -0xac(%rbp)
movb %al, -0x161(%rbp)
jne 0xabc1
movq -0x128(%rbp), %rdi
movl -0xb0(%rbp), %eax
movl %eax, -0x16c(%rbp)
addq $0xd0, %rdi
callq 0xb410
movl %eax, -0x168(%rbp)
jmp 0xaba7
movl -0x16c(%rbp), %eax
movl -0x168(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
setl %al
movb %al, -0x161(%rbp)
movb -0x161(%rbp), %al
testb $0x1, %al
jne 0xabd0
jmp 0xae47
movq -0x128(%rbp), %rdi
addq $0xd0, %rdi
movl -0xb0(%rbp), %esi
incl %esi
movl %esi, -0xb0(%rbp)
callq 0xb4a0
movq %rax, -0x178(%rbp)
jmp 0xabfa
movq -0x178(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xb8(%rbp)
cmpl $0x0, -0xac(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xac20
jmp 0xae31
movq -0xb8(%rbp), %rdi
addq $0x20, %rdi
callq 0xb410
movl %eax, -0x17c(%rbp)
jmp 0xac38
movl -0x17c(%rbp), %eax
cmpl $0x0, %eax
jne 0xac6e
movq -0xb8(%rbp), %rdi
addq $0xd0, %rdi
callq 0xb410
movl %eax, -0x180(%rbp)
jmp 0xac5e
movl -0x180(%rbp), %eax
cmpl $0x0, %eax
jne 0xac6e
jmp 0xadb5
movq -0x10(%rbp), %rax
movq %rax, -0x188(%rbp)
leaq 0x128b1(%rip), %rsi     # 0x1d531
leaq -0xd0(%rbp), %rdi
callq 0x8800
jmp 0xac8e
movq -0x188(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x85c0
jmp 0xaca3
leaq -0xd0(%rbp), %rdi
callq 0x8990
movq -0x10(%rbp), %rax
movq %rax, -0x190(%rbp)
leaq -0xe8(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x8730
jmp 0xaccc
leaq 0x12378(%rip), %rsi     # 0x1d04b
leaq -0x100(%rbp), %rdi
callq 0x8800
jmp 0xace1
leaq -0xe8(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x8170
movq %rax, -0x198(%rbp)
jmp 0xacfd
movq -0xb8(%rbp), %rdi
callq 0xb720
movq %rax, -0x1a0(%rbp)
jmp 0xad12
movq -0x1a0(%rbp), %rsi
movq -0x198(%rbp), %rdi
callq 0x8170
movq %rax, -0x1a8(%rbp)
jmp 0xad2e
movq -0x1a8(%rbp), %rsi
movq -0x190(%rbp), %rdi
callq 0x8650
jmp 0xad43
leaq -0x100(%rbp), %rdi
callq 0x8990
leaq -0xe8(%rbp), %rdi
callq 0x8990
movq -0x10(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq 0x127c4(%rip), %rsi     # 0x1d531
leaq -0x118(%rbp), %rdi
callq 0x8800
jmp 0xad7b
movq -0x1b0(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x85c0
jmp 0xad90
leaq -0x118(%rbp), %rdi
callq 0x8990
movq -0xb8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
incl %edx
callq 0xa920
jmp 0xadb3
jmp 0xadb5
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0xac0b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x8990
jmp 0xae5d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xae09
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x8990
leaq -0xe8(%rbp), %rdi
callq 0x8990
jmp 0xae5d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x8990
jmp 0xae5d
jmp 0xae33
movl -0xac(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0xab6f
leaq -0x30(%rbp), %rdi
callq 0x8990
movb $0x1, %al
andb $0x1, %al
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbp
retq
leaq -0x30(%rbp), %rdi
callq 0x8990
movq -0x38(%rbp), %rdi
callq 0x8290
nop