// File: icemiliang[P]vot/src/vot/diagram.cc
// Function: vot::Diagram::write_dirac(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Diagram::write_dirac(std::string pFilename) {
        std::cout << "--> Writing resulting Diract measures to a " << pFilename << std::endl;
        std::ofstream outP(pFilename);
        for (int i = 0; i < mNumDiracs; i++) {
            // Index starts from 0
            outP << mDiracs[i].x() << " " << mDiracs[i].y() << " "
                 << mDiracs[i].z() << " "  << mDiracs[i].dirac() << " "
                 << mDiracs[i].mass() << " "  << mHs[i] << std::endl;
        }
        outP.close();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2c0, %rsp            # imm = 0x2C0
movq %rsi, -0x230(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x238(%rbp)
movq 0x9f9bc(%rip), %rdi     # 0xbef98
leaq 0x6e83e(%rip), %rsi     # 0x8de21
callq 0xa4a0
movq -0x230(%rbp), %rsi
movq %rax, %rdi
callq 0xa460
movq %rax, %rdi
movq 0x9f927(%rip), %rsi     # 0xbef28
callq 0xa500
movq -0x230(%rbp), %rsi
leaq -0x210(%rbp), %rdi
movl $0x10, %edx
callq 0xaa30
movl $0x0, -0x214(%rbp)
movq -0x238(%rbp), %rcx
movl -0x214(%rbp), %eax
cmpl 0x38(%rcx), %eax
jge 0x1f8a3
movq -0x238(%rbp), %rdi
addq $0x20, %rdi
movslq -0x214(%rbp), %rsi
callq 0x218b0
movq %rax, %rdi
callq 0x218d0
movsd %xmm0, -0x240(%rbp)
jmp 0x1f667
movsd -0x240(%rbp), %xmm0
leaq -0x210(%rbp), %rdi
callq 0xa9f0
movq %rax, -0x248(%rbp)
jmp 0x1f684
movq -0x248(%rbp), %rdi
leaq 0x74eca(%rip), %rsi     # 0x9455c
callq 0xa4a0
movq %rax, -0x250(%rbp)
jmp 0x1f6a0
movq -0x238(%rbp), %rdi
addq $0x20, %rdi
movslq -0x214(%rbp), %rsi
callq 0x218b0
movq %rax, %rdi
callq 0x218f0
movsd %xmm0, -0x258(%rbp)
jmp 0x1f6c9
movsd -0x258(%rbp), %xmm0
movq -0x250(%rbp), %rdi
callq 0xa9f0
movq %rax, -0x260(%rbp)
jmp 0x1f6e6
movq -0x260(%rbp), %rdi
leaq 0x74e68(%rip), %rsi     # 0x9455c
callq 0xa4a0
movq %rax, -0x268(%rbp)
jmp 0x1f702
movq -0x238(%rbp), %rdi
addq $0x20, %rdi
movslq -0x214(%rbp), %rsi
callq 0x218b0
movq %rax, %rdi
callq 0x21910
movsd %xmm0, -0x270(%rbp)
jmp 0x1f72b
movsd -0x270(%rbp), %xmm0
movq -0x268(%rbp), %rdi
callq 0xa9f0
movq %rax, -0x278(%rbp)
jmp 0x1f748
movq -0x278(%rbp), %rdi
leaq 0x74e06(%rip), %rsi     # 0x9455c
callq 0xa4a0
movq %rax, -0x280(%rbp)
jmp 0x1f764
movq -0x238(%rbp), %rdi
addq $0x20, %rdi
movslq -0x214(%rbp), %rsi
callq 0x218b0
movq %rax, %rdi
callq 0x21970
movsd %xmm0, -0x288(%rbp)
jmp 0x1f78d
movsd -0x288(%rbp), %xmm0
movq -0x280(%rbp), %rdi
callq 0xa9f0
movq %rax, -0x290(%rbp)
jmp 0x1f7aa
movq -0x290(%rbp), %rdi
leaq 0x74da4(%rip), %rsi     # 0x9455c
callq 0xa4a0
movq %rax, -0x298(%rbp)
jmp 0x1f7c6
movq -0x238(%rbp), %rdi
addq $0x20, %rdi
movslq -0x214(%rbp), %rsi
callq 0x218b0
movq %rax, %rdi
callq 0x21930
movsd %xmm0, -0x2a0(%rbp)
jmp 0x1f7ef
movsd -0x2a0(%rbp), %xmm0
movq -0x298(%rbp), %rdi
callq 0xa9f0
movq %rax, -0x2a8(%rbp)
jmp 0x1f80c
movq -0x2a8(%rbp), %rdi
leaq 0x74d42(%rip), %rsi     # 0x9455c
callq 0xa4a0
movq %rax, -0x2b0(%rbp)
jmp 0x1f828
movq -0x238(%rbp), %rdi
addq $0x50, %rdi
movslq -0x214(%rbp), %rsi
callq 0x21950
movq -0x2b0(%rbp), %rdi
movsd (%rax), %xmm0
callq 0xa9f0
movq %rax, -0x2b8(%rbp)
jmp 0x1f858
movq -0x2b8(%rbp), %rdi
movq 0x9f6c2(%rip), %rsi     # 0xbef28
callq 0xa500
jmp 0x1f86d
jmp 0x1f86f
movl -0x214(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x214(%rbp)
jmp 0x1f628
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x220(%rbp)
movl %eax, -0x224(%rbp)
leaq -0x210(%rbp), %rdi
callq 0xa7b0
jmp 0x1f8c6
leaq -0x210(%rbp), %rdi
callq 0xa740
jmp 0x1f8b1
leaq -0x210(%rbp), %rdi
callq 0xa7b0
addq $0x2c0, %rsp            # imm = 0x2C0
popq %rbp
retq
movq -0x220(%rbp), %rdi
callq 0xa950
nopw %cs:(%rax,%rax)