// File: /workspace/github_cpp_makefile_star2_O2/Luthaf[P]zeopp/material.cc
// Function: MATERIAL::PLDvisualize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void MATERIAL::PLDvisualize(string basefilename, string visformat){

  fstream output;

  // Three data structures storing information about 
  vector<Point> NodesFracCoord;
  vector<int> NodesSegmentIDs;
  vector<double> NodesSize;

  string filename_vis;
  if(visformat == "ZEOVIS") filename_vis = basefilename + ".zpld_segments";
  if(visformat == "VISIT") filename_vis = basefilename + ".vpld_segments";
  if(visformat == "LIVERPOOL") filename_vis = basefilename + ".lpld_segments";
  output.open(filename_vis.data(), fstream::out);

  accessAnalysis.getPLDvisData(&NodesFracCoord, &NodesSegmentIDs, &NodesSize, "INITSEGMAP");
  NEWreportPointsValue(output, &atmnet, &NodesFracCoord, &NodesSegmentIDs, &NodesSize, visformat);

  output.close();

  if(visformat == "ZEOVIS") filename_vis = basefilename + ".zpld_segmentdi";
  if(visformat == "VISIT") filename_vis = basefilename + ".vpld_segmentdi";
  if(visformat == "LIVERPOOL") filename_vis = basefilename + ".lpld_segmentdi";
  output.open(filename_vis.data(), fstream::out);

  accessAnalysis.getPLDvisData(&NodesFracCoord, &NodesSegmentIDs, &NodesSize, "INITSEGDINODE");
  NEWreportPointsValue(output, &atmnet, &NodesFracCoord, &NodesSegmentIDs, &NodesSize, visformat);

  output.close();

  if(visformat == "ZEOVIS") filename_vis = basefilename + ".zpld_segmentpld";
  if(visformat == "VISIT") filename_vis = basefilename + ".vpld_segmentpld";
  if(visformat == "LIVERPOOL") filename_vis = basefilename + ".lpld_segmentpld";
  output.open(filename_vis.data(), fstream::out);

  accessAnalysis.getPLDvisData(&NodesFracCoord, &NodesSegmentIDs, &NodesSize, "PLDNODES");
  NEWreportPointsValue(output, &atmnet, &NodesFracCoord, &NodesSegmentIDs, &NodesSize, visformat);

  output.close();

  if(visformat == "ZEOVIS") filename_vis = basefilename + ".zpld_segmentdf";
  if(visformat == "VISIT") filename_vis = basefilename + ".vpld_segmentdf";
  if(visformat == "LIVERPOOL") filename_vis = basefilename + ".lpld_segmentdf";
  output.open(filename_vis.data(), fstream::out);

  accessAnalysis.getPLDvisData(&NodesFracCoord, &NodesSegmentIDs, &NodesSize, "DFSPHERES");
  NEWreportPointsValue(output, &atmnet, &NodesFracCoord, &NodesSegmentIDs, &NodesSize, visformat);

  output.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3a8, %rsp            # imm = 0x3A8
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x198(%rsp), %rdi
callq 0x4540
andq $0x0, 0x90(%rsp)
xorps %xmm0, %xmm0
andq $0x0, 0x70(%rsp)
movaps %xmm0, 0x80(%rsp)
andq $0x0, 0x50(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x40(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x3cfa3(%rip), %rsi     # 0x1005e0
movq %r14, %rdi
callq 0x36bf4
testb %al, %al
je 0xc3673
leaq 0x43063(%rip), %rdx     # 0x1066b3
movq %rsp, %rdi
movq %r15, %rsi
callq 0xc3cf5
leaq 0x20(%rsp), %rdi
movq %rsp, %r12
movq %r12, %rsi
callq 0x4560
movq %r12, %rdi
callq 0x4210
leaq 0x3cf9d(%rip), %rsi     # 0x100617
movq %r14, %rdi
callq 0x36bf4
testb %al, %al
je 0xc36b0
leaq 0x43035(%rip), %rdx     # 0x1066c2
movq %rsp, %rdi
movq %r15, %rsi
callq 0xc3cf5
leaq 0x20(%rsp), %rdi
movq %rsp, %r12
movq %r12, %rsi
callq 0x4560
movq %r12, %rdi
callq 0x4210
leaq 0x3cf72(%rip), %rsi     # 0x100629
movq %r14, %rdi
callq 0x36bf4
testb %al, %al
je 0xc36ed
leaq 0x43007(%rip), %rdx     # 0x1066d1
movq %rsp, %rdi
movq %r15, %rsi
callq 0xc3cf5
leaq 0x20(%rsp), %rdi
movq %rsp, %r12
movq %r12, %rsi
callq 0x4560
movq %r12, %rdi
callq 0x4210
movq 0x20(%rsp), %rsi
leaq 0x198(%rsp), %rdi
pushq $0x10
popq %rdx
callq 0x4410
leaq 0x41b00(%rip), %rsi     # 0x105209
leaq 0x178(%rsp), %rdi
movq %rsp, %rdx
callq 0x1b80e
leaq 0x990(%rbx), %r12
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
leaq 0x40(%rsp), %rcx
leaq 0x178(%rsp), %r8
movq %r12, %rdi
callq 0x708ce
leaq 0x178(%rsp), %rdi
callq 0x4210
leaq 0x158(%rsp), %rdi
movq %r14, %rsi
callq 0x45d0
leaq 0x1a8(%rsp), %r13
leaq 0x80(%rsp), %rdx
leaq 0x60(%rsp), %rcx
leaq 0x40(%rsp), %r8
leaq 0x158(%rsp), %r9
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2df27
leaq 0x158(%rsp), %rdi
callq 0x4210
leaq 0x198(%rsp), %rdi
callq 0x4080
leaq 0x3ce33(%rip), %rsi     # 0x1005e0
movq %r14, %rdi
callq 0x36bf4
testb %al, %al
je 0xc37e3
leaq 0x42f20(%rip), %rdx     # 0x1066e0
movq %rsp, %rdi
movq %r15, %rsi
callq 0xc3cf5
leaq 0x20(%rsp), %rdi
movq %rsp, %rbp
movq %rbp, %rsi
callq 0x4560
movq %rbp, %rdi
callq 0x4210
leaq 0x3ce2d(%rip), %rsi     # 0x100617
movq %r14, %rdi
callq 0x36bf4
testb %al, %al
je 0xc3820
leaq 0x42ef3(%rip), %rdx     # 0x1066f0
movq %rsp, %rdi
movq %r15, %rsi
callq 0xc3cf5
leaq 0x20(%rsp), %rdi
movq %rsp, %rbp
movq %rbp, %rsi
callq 0x4560
movq %rbp, %rdi
callq 0x4210
leaq 0x3ce02(%rip), %rsi     # 0x100629
movq %r14, %rdi
callq 0x36bf4
testb %al, %al
je 0xc385d
leaq 0x42ec6(%rip), %rdx     # 0x106700
movq %rsp, %rdi
movq %r15, %rsi
callq 0xc3cf5
leaq 0x20(%rsp), %rdi
movq %rsp, %rbp
movq %rbp, %rsi
callq 0x4560
movq %rbp, %rdi
callq 0x4210
movq 0x20(%rsp), %rsi
leaq 0x198(%rsp), %rdi
pushq $0x10
popq %rdx
callq 0x4410
leaq 0x419a7(%rip), %rsi     # 0x105220
leaq 0x138(%rsp), %rdi
movq %rsp, %rdx
callq 0x1b80e
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
leaq 0x40(%rsp), %rcx
leaq 0x138(%rsp), %r8
movq %r12, %rdi
callq 0x708ce
leaq 0x138(%rsp), %rdi
callq 0x4210
leaq 0x118(%rsp), %rdi
movq %r14, %rsi
callq 0x45d0
leaq 0x80(%rsp), %rdx
leaq 0x60(%rsp), %rcx
leaq 0x40(%rsp), %r8
leaq 0x118(%rsp), %r9
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2df27
leaq 0x118(%rsp), %rdi
callq 0x4210
leaq 0x198(%rsp), %rdi
callq 0x4080
leaq 0x3ccd2(%rip), %rsi     # 0x1005e0
movq %r14, %rdi
callq 0x36bf4
testb %al, %al
je 0xc3944
leaq 0x42def(%rip), %rdx     # 0x106710
movq %rsp, %rdi
movq %r15, %rsi
callq 0xc3cf5
leaq 0x20(%rsp), %rdi
movq %rsp, %rbp
movq %rbp, %rsi
callq 0x4560
movq %rbp, %rdi
callq 0x4210
leaq 0x3cccc(%rip), %rsi     # 0x100617
movq %r14, %rdi
callq 0x36bf4
testb %al, %al
je 0xc3981
leaq 0x42dc3(%rip), %rdx     # 0x106721
movq %rsp, %rdi
movq %r15, %rsi
callq 0xc3cf5
leaq 0x20(%rsp), %rdi
movq %rsp, %rbp
movq %rbp, %rsi
callq 0x4560
movq %rbp, %rdi
callq 0x4210
leaq 0x3cca1(%rip), %rsi     # 0x100629
movq %r14, %rdi
callq 0x36bf4
testb %al, %al
je 0xc39be
leaq 0x42d97(%rip), %rdx     # 0x106732
movq %rsp, %rdi
movq %r15, %rsi
callq 0xc3cf5
leaq 0x20(%rsp), %rdi
movq %rsp, %rbp
movq %rbp, %rsi
callq 0x4560
movq %rbp, %rdi
callq 0x4210
movq 0x20(%rsp), %rsi
leaq 0x198(%rsp), %rdi
pushq $0x10
popq %rdx
callq 0x4410
leaq 0x41854(%rip), %rsi     # 0x10522e
leaq 0xf8(%rsp), %rdi
movq %rsp, %rdx
callq 0x1b80e
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
leaq 0x40(%rsp), %rcx
leaq 0xf8(%rsp), %r8
movq %r12, %rdi
callq 0x708ce
leaq 0xf8(%rsp), %rdi
callq 0x4210
leaq 0xd8(%rsp), %rdi
movq %r14, %rsi
callq 0x45d0
leaq 0x80(%rsp), %rdx
leaq 0x60(%rsp), %rcx
leaq 0x40(%rsp), %r8
leaq 0xd8(%rsp), %r9
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2df27
leaq 0xd8(%rsp), %rdi
callq 0x4210
leaq 0x198(%rsp), %rdi
callq 0x4080
leaq 0x3cb71(%rip), %rsi     # 0x1005e0
movq %r14, %rdi
callq 0x36bf4
testb %al, %al
je 0xc3aa5
leaq 0x42cc1(%rip), %rdx     # 0x106743
movq %rsp, %rdi
movq %r15, %rsi
callq 0xc3cf5
leaq 0x20(%rsp), %rdi
movq %rsp, %rbp
movq %rbp, %rsi
callq 0x4560
movq %rbp, %rdi
callq 0x4210
leaq 0x3cb6b(%rip), %rsi     # 0x100617
movq %r14, %rdi
callq 0x36bf4
testb %al, %al
je 0xc3ae2
leaq 0x42c94(%rip), %rdx     # 0x106753
movq %rsp, %rdi
movq %r15, %rsi
callq 0xc3cf5
leaq 0x20(%rsp), %rdi
movq %rsp, %rbp
movq %rbp, %rsi
callq 0x4560
movq %rbp, %rdi
callq 0x4210
leaq 0x3cb40(%rip), %rsi     # 0x100629
movq %r14, %rdi
callq 0x36bf4
testb %al, %al
je 0xc3b1f
leaq 0x42c67(%rip), %rdx     # 0x106763
movq %rsp, %rdi
movq %r15, %rsi
callq 0xc3cf5
leaq 0x20(%rsp), %rdi
movq %rsp, %r15
movq %r15, %rsi
callq 0x4560
movq %r15, %rdi
callq 0x4210
movq 0x20(%rsp), %rsi
leaq 0x198(%rsp), %rdi
pushq $0x10
popq %rdx
callq 0x4410
leaq 0x416fc(%rip), %rsi     # 0x105237
leaq 0xb8(%rsp), %rdi
movq %rsp, %rdx
callq 0x1b80e
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
leaq 0x40(%rsp), %rcx
leaq 0xb8(%rsp), %r8
movq %r12, %rdi
callq 0x708ce
leaq 0xb8(%rsp), %rdi
callq 0x4210
leaq 0x98(%rsp), %rdi
movq %r14, %rsi
callq 0x45d0
leaq 0x80(%rsp), %rdx
leaq 0x60(%rsp), %rcx
leaq 0x40(%rsp), %r8
leaq 0x98(%rsp), %r9
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2df27
leaq 0x98(%rsp), %rdi
callq 0x4210
leaq 0x198(%rsp), %rdi
callq 0x4080
leaq 0x20(%rsp), %rdi
callq 0x4210
leaq 0x40(%rsp), %rdi
callq 0xb25c
leaq 0x60(%rsp), %rdi
callq 0xb290
leaq 0x80(%rsp), %rdi
callq 0xb83e
leaq 0x198(%rsp), %rdi
callq 0x4120
addq $0x3a8, %rsp            # imm = 0x3A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc3cb2
jmp 0xc3cb2
jmp 0xc3cb2
jmp 0xc3cb2
jmp 0xc3cb2
jmp 0xc3cb2
jmp 0xc3cb2
jmp 0xc3cb2
jmp 0xc3cb2
jmp 0xc3cb2
jmp 0xc3cb2
jmp 0xc3cb2
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0xc3ca9
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
jmp 0xc3ca9
jmp 0xc3cb2
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
jmp 0xc3ca9
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
jmp 0xc3ca9
jmp 0xc3cb2
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
jmp 0xc3ca9
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
jmp 0xc3ca9
jmp 0xc3cb2
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
jmp 0xc3ca9
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
callq 0x4210
jmp 0xc3cb5
jmp 0xc3cb2
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4210
leaq 0x40(%rsp), %rdi
callq 0xb25c
leaq 0x60(%rsp), %rdi
callq 0xb290
leaq 0x80(%rsp), %rdi
callq 0xb83e
leaq 0x198(%rsp), %rdi
callq 0x4120
movq %rbx, %rdi
callq 0x4780