// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/tools/translator/translator.cpp
// Function: Translator::ReplaceLineEndings(smooth::String const&)
Void Translator::ReplaceLineEndings(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 = in.InputString(in.Size());

	/* Replace line endings.
	 */
	xmlString.Replace("\n", "&#10;");
	xmlString.Replace(">&#10;", ">\n");

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

	out.OutputString(xmlString);

	out.Close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x4939(%rip), %rsi      # 0x1d503
movq %rsi, -0x2e0(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x1a6a0
movq -0x2e0(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0x1a720
jmp 0x18bec
movq -0x10(%rbp), %rdx
leaq -0x158(%rbp), %rdi
movl $0x3, %esi
movl $0x2, %ecx
callq 0x8410
jmp 0x18c08
leaq -0x158(%rbp), %rdi
callq 0x1a7a0
movq %rax, -0x2e8(%rbp)
jmp 0x18c1d
movq -0x2e8(%rbp), %rax
movl %eax, %edx
leaq -0x170(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x8900
jmp 0x18c3b
leaq 0x48ef(%rip), %rsi      # 0x1d531
leaq -0x188(%rbp), %rdi
callq 0x8800
jmp 0x18c50
leaq 0x48d3(%rip), %rsi      # 0x1d52a
leaq -0x1a0(%rbp), %rdi
callq 0x8800
jmp 0x18c65
leaq -0x170(%rbp), %rdi
leaq -0x188(%rbp), %rsi
leaq -0x1a0(%rbp), %rdx
callq 0x82e0
jmp 0x18c81
leaq -0x1a0(%rbp), %rdi
callq 0x8990
leaq -0x188(%rbp), %rdi
callq 0x8990
leaq 0x4889(%rip), %rsi      # 0x1d529
leaq -0x1b8(%rbp), %rdi
callq 0x8800
jmp 0x18cae
leaq 0x487b(%rip), %rsi      # 0x1d530
leaq -0x1d0(%rbp), %rdi
callq 0x8800
jmp 0x18cc3
leaq -0x170(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
leaq -0x1d0(%rbp), %rdx
callq 0x82e0
jmp 0x18cdf
leaq -0x1d0(%rbp), %rdi
callq 0x8990
leaq -0x1b8(%rbp), %rdi
callq 0x8990
movq -0x10(%rbp), %rdx
leaq -0x2d8(%rbp), %rdi
movl $0x3, %esi
movl $0x1, %ecx
callq 0x8890
jmp 0x18d13
leaq -0x2d8(%rbp), %rdi
leaq -0x170(%rbp), %rsi
callq 0x85c0
jmp 0x18d28
leaq -0x2d8(%rbp), %rdi
callq 0x86a0
jmp 0x18d36
leaq -0x2d8(%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 $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x18e5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x18e51
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x18e45
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x18e39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x18ddf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x1a0(%rbp), %rdi
callq 0x8990
leaq -0x188(%rbp), %rdi
callq 0x8990
jmp 0x18e39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x18e13
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x1d0(%rbp), %rdi
callq 0x8990
leaq -0x1b8(%rbp), %rdi
callq 0x8990
jmp 0x18e39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x2d8(%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
nopl (%rax)