// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/tools/translator/translator.cpp
// Function: Translator::FormatLines(smooth::String const&)
Void Translator::FormatLines(const String &file)
{
	String::InputFormat	 inputFormat("UTF-8");
	String::OutputFormat	 outputFormat("UTF-8");

	IO::InStream	 in(IO::STREAM_FILE, file, IO::IS_READ);

	String		 xmlString;

	while (in.GetPos() < in.Size())
	{
		String	 line = in.InputLine();

		if (line.Trim().StartsWith("<section ")) xmlString.Append("\n");

		while (line.StartsWith("    "))	{ xmlString.Append("\t"); line = line.Tail(line.Length() - 4); }
		while (line.StartsWith(" "))	{ xmlString.Append("  "); line = line.Tail(line.Length() - 1); }

		xmlString.Append(line).Append("\n");
	}

	IO::OutStream	 out(IO::STREAM_FILE, file, IO::OS_REPLACE);

	out.OutputString(xmlString);

	out.Close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3b0, %rsp            # imm = 0x3B0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x4679(%rip), %rsi      # 0x1d503
movq %rsi, -0x388(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x1a6a0
movq -0x388(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0x1a720
jmp 0x18eac
movq -0x10(%rbp), %rdx
leaq -0x158(%rbp), %rdi
movl $0x3, %esi
movl $0x2, %ecx
callq 0x8410
jmp 0x18ec8
leaq -0x170(%rbp), %rdi
xorl %esi, %esi
callq 0x8490
jmp 0x18ed8
jmp 0x18eda
leaq -0x158(%rbp), %rdi
callq 0x1a8b0
movq %rax, -0x390(%rbp)
jmp 0x18eef
leaq -0x158(%rbp), %rdi
callq 0x1a7a0
movq %rax, -0x398(%rbp)
jmp 0x18f04
movq -0x390(%rbp), %rax
movq -0x398(%rbp), %rcx
cmpq %rcx, %rax
jge 0x1936c
leaq -0x188(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x8760
jmp 0x18f30
leaq -0x1a0(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x8980
jmp 0x18f45
leaq 0x45e7(%rip), %rsi      # 0x1d533
leaq -0x1b8(%rbp), %rdi
callq 0x8800
jmp 0x18f5a
leaq -0x1a0(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
callq 0x87c0
movb %al, -0x399(%rbp)
jmp 0x18f75
leaq -0x1b8(%rbp), %rdi
callq 0x8990
leaq -0x1a0(%rbp), %rdi
callq 0x8990
movb -0x399(%rbp), %al
testb $0x1, %al
jne 0x18f9c
jmp 0x19080
leaq 0x458e(%rip), %rsi      # 0x1d531
leaq -0x1d0(%rbp), %rdi
callq 0x8800
jmp 0x18fb1
leaq -0x170(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x8170
jmp 0x18fc6
leaq -0x1d0(%rbp), %rdi
callq 0x8990
jmp 0x19080
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x19423
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x1941a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x1940e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x19402
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x1935b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x19052
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0x8990
leaq -0x1a0(%rbp), %rdi
callq 0x8990
jmp 0x1935b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x1d0(%rbp), %rdi
callq 0x8990
jmp 0x1935b
jmp 0x19082
leaq 0x44b4(%rip), %rsi      # 0x1d53d
leaq -0x1e8(%rbp), %rdi
callq 0x8800
jmp 0x19097
leaq -0x188(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
callq 0x87c0
movb %al, -0x39a(%rbp)
jmp 0x190b2
leaq -0x1e8(%rbp), %rdi
callq 0x8990
movb -0x39a(%rbp), %al
testb $0x1, %al
jne 0x190cd
jmp 0x191b2
leaq 0x446e(%rip), %rsi      # 0x1d542
leaq -0x200(%rbp), %rdi
callq 0x8800
jmp 0x190e2
leaq -0x170(%rbp), %rdi
leaq -0x200(%rbp), %rsi
callq 0x8170
jmp 0x190f7
leaq -0x200(%rbp), %rdi
callq 0x8990
leaq -0x188(%rbp), %rdi
callq 0x8280
movl %eax, -0x3a0(%rbp)
jmp 0x19117
movl -0x3a0(%rbp), %edx
addl $-0x4, %edx
leaq -0x218(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x8340
jmp 0x19135
leaq -0x188(%rbp), %rdi
leaq -0x218(%rbp), %rsi
callq 0x8560
jmp 0x1914a
leaq -0x218(%rbp), %rdi
callq 0x8990
jmp 0x19082
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x1e8(%rbp), %rdi
callq 0x8990
jmp 0x1935b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x200(%rbp), %rdi
callq 0x8990
jmp 0x1935b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x218(%rbp), %rdi
callq 0x8990
jmp 0x1935b
jmp 0x191b4
leaq 0x4385(%rip), %rsi      # 0x1d540
leaq -0x230(%rbp), %rdi
callq 0x8800
jmp 0x191c9
leaq -0x188(%rbp), %rdi
leaq -0x230(%rbp), %rsi
callq 0x87c0
movb %al, -0x3a1(%rbp)
jmp 0x191e4
leaq -0x230(%rbp), %rdi
callq 0x8990
movb -0x3a1(%rbp), %al
testb $0x1, %al
jne 0x191ff
jmp 0x192e0
leaq 0x4339(%rip), %rsi      # 0x1d53f
leaq -0x248(%rbp), %rdi
callq 0x8800
jmp 0x19214
leaq -0x170(%rbp), %rdi
leaq -0x248(%rbp), %rsi
callq 0x8170
jmp 0x19229
leaq -0x248(%rbp), %rdi
callq 0x8990
leaq -0x188(%rbp), %rdi
callq 0x8280
movl %eax, -0x3a8(%rbp)
jmp 0x19249
movl -0x3a8(%rbp), %edx
decl %edx
leaq -0x260(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x8340
jmp 0x19266
leaq -0x188(%rbp), %rdi
leaq -0x260(%rbp), %rsi
callq 0x8560
jmp 0x1927b
leaq -0x260(%rbp), %rdi
callq 0x8990
jmp 0x191b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x230(%rbp), %rdi
callq 0x8990
jmp 0x1935b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x248(%rbp), %rdi
callq 0x8990
jmp 0x1935b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x260(%rbp), %rdi
callq 0x8990
jmp 0x1935b
leaq -0x170(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x8170
movq %rax, -0x3b0(%rbp)
jmp 0x192fc
leaq 0x422e(%rip), %rsi      # 0x1d531
leaq -0x278(%rbp), %rdi
callq 0x8800
jmp 0x19311
movq -0x3b0(%rbp), %rdi
leaq -0x278(%rbp), %rsi
callq 0x8170
jmp 0x19326
leaq -0x278(%rbp), %rdi
callq 0x8990
leaq -0x188(%rbp), %rdi
callq 0x8990
jmp 0x18eda
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x278(%rbp), %rdi
callq 0x8990
leaq -0x188(%rbp), %rdi
callq 0x8990
jmp 0x19402
movq -0x10(%rbp), %rdx
leaq -0x380(%rbp), %rdi
movl $0x3, %esi
movl $0x1, %ecx
callq 0x8890
jmp 0x19388
leaq -0x380(%rbp), %rdi
leaq -0x170(%rbp), %rsi
callq 0x85c0
jmp 0x1939d
leaq -0x380(%rbp), %rdi
callq 0x86a0
jmp 0x193ab
leaq -0x380(%rbp), %rdi
callq 0x8620
leaq -0x170(%rbp), %rdi
callq 0x8990
leaq -0x158(%rbp), %rdi
callq 0x8530
leaq -0x40(%rbp), %rdi
callq 0x1a7f0
leaq -0x28(%rbp), %rdi
callq 0x1a850
addq $0x3b0, %rsp            # imm = 0x3B0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x380(%rbp), %rdi
callq 0x8620
leaq -0x170(%rbp), %rdi
callq 0x8990
leaq -0x158(%rbp), %rdi
callq 0x8530
leaq -0x40(%rbp), %rdi
callq 0x1a7f0
leaq -0x28(%rbp), %rdi
callq 0x1a850
movq -0x48(%rbp), %rdi
callq 0x8290
nopw %cs:(%rax,%rax)