// File: /workspace/github_cpp_makefile_star2_O3/UCBASiCS[P]SPRIGHT/src/customizedoutput.cpp
// Function: CustomizedOutput::process()
void CustomizedOutput::process()
{
    chrono->start("Output");

    std::unordered_map<int,ffast_complex> decodedFrequencies;

    decodedFrequencies = backEnd->getDecodedFrequencies();

    std::ofstream myfile (config->getOutputFile());
    if (myfile.is_open())
    {
        myfile.precision(15);
        for (auto i = decodedFrequencies.cbegin(); i != decodedFrequencies.cend(); ++i)
            myfile << i->first << ":" << i->second << std::endl;
        myfile.close();
    }

    chrono->stop("Output");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x260, %rsp            # imm = 0x260
movq %rdi, %rbx
movq 0x8(%rdi), %r14
leaq 0x70(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5d92(%rip), %rsi      # 0xecc3
leaq 0x5d91(%rip), %rdx      # 0xecc9
leaq 0x60(%rsp), %rdi
callq 0x4430
leaq 0x60(%rsp), %rsi
movq %r14, %rdi
callq 0x5940
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x8f66
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3270
leaq 0x58(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
movq 0x18(%rbx), %rdi
callq 0x4222
leaq 0x28(%rsp), %rcx
cmpq %rcx, %rax
je 0x8fa9
leaq 0x28(%rsp), %rdi
movq %rax, %rsi
callq 0x91b6
movq 0x10(%rbx), %rdi
callq 0x8128
leaq 0x60(%rsp), %rdi
movq %rax, %rsi
movl $0x10, %edx
callq 0x3290
leaq 0xd0(%rsp), %rdi
callq 0x3070
testb %al, %al
je 0x9069
movq 0x60(%rsp), %rax
movq -0x18(%rax), %rax
movq $0xf, 0x68(%rsp,%rax)
movq 0x38(%rsp), %r13
testq %r13, %r13
je 0x905f
leaq 0x60(%rsp), %r14
leaq 0x5c48(%rip), %r15      # 0xec49
movl 0x8(%r13), %esi
movq %r14, %rdi
callq 0x3470
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x32b0
leaq 0x10(%r13), %rsi
movq %r12, %rdi
callq 0x32d0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3250
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3170
movq (%r13), %r13
testq %r13, %r13
jne 0x9001
leaq 0x60(%rsp), %rdi
callq 0x3350
movq 0x8(%rbx), %rbx
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x5c46(%rip), %rsi      # 0xecc3
leaq 0x5c45(%rip), %rdx      # 0xecc9
leaq 0x8(%rsp), %rdi
callq 0x4430
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x59dc
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x90b2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3270
movq 0xbeff(%rip), %rax      # 0x14fb8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x68(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x60(%rsp,%rcx)
callq 0x31f0
leaq 0x158(%rsp), %rdi
callq 0x30b0
leaq 0x28(%rsp), %rdi
callq 0x43c0
addq $0x260, %rsp            # imm = 0x260
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x9147
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x914a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3270
jmp 0x914a
jmp 0x9147
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x915e
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3270
jmp 0x915e
movq %rax, %rbx
jmp 0x915e
jmp 0x9142
movq %rax, %rbx
jmp 0x9154
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x33a0
leaq 0x28(%rsp), %rdi
callq 0x43c0
movq %rbx, %rdi
callq 0x3490