// File: Luthaf[P]zeopp/network.cc
// Function: NEWcalculateFreeSphereParametersPrint(MATERIAL*, char*, bool)
void NEWcalculateFreeSphereParametersPrint(MATERIAL *Mat, char *filename, bool extendedPrintout){
  fstream output;
  output.setf(ios::fixed,ios::floatfield);
  output.precision(5);
  output.width(12);
  output.open(filename, fstream::out);

  output << filename << "    " << Mat->Di << " ";

  output << Mat->Df << "  " << Mat->Dif;

  if(extendedPrintout==true){
    output << "  ";
    for(unsigned int i = 0; i < Mat->directionDf.size(); i++)
       output << Mat->directionDf.at(i) << "  ";

    for(unsigned int i = 0; i < Mat->directionDif.size(); i++)
       output << Mat->directionDif.at(i) << "  ";
    };

 /* 
  for(unsigned int i = 0; i < NtoN.size(); i++)
    output << (NtoN[i] ? "t" : "f") << "  ";
 */

  output << "\n";


}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2b0, %rsp            # imm = 0x2B0
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
leaq -0x228(%rbp), %rdi
callq 0x5660
movq -0x228(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x228(%rbp,%rax), %rdi
movl $0x4, %esi
movl $0x104, %edx            # imm = 0x104
callq 0xf8d0
jmp 0x915a
movq -0x228(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x228(%rbp,%rax), %rdi
movl $0x5, %esi
callq 0xf930
jmp 0x9179
movq -0x228(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x228(%rbp,%rax), %rdi
movl $0xc, %esi
callq 0xf960
jmp 0x9198
movq -0x10(%rbp), %rsi
leaq -0x228(%rbp), %rdi
movl $0x10, %edx
callq 0x54b0
jmp 0x91af
leaq -0x218(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x5540
movq %rax, -0x248(%rbp)
jmp 0x91c8
movq -0x248(%rbp), %rdi
leaq 0x1e92b0(%rip), %rsi    # 0x1f2486
callq 0x5540
movq %rax, -0x250(%rbp)
jmp 0x91e4
movq -0x250(%rbp), %rdi
movq -0x8(%rbp), %rax
movsd 0xc28(%rax), %xmm0
callq 0x5980
movq %rax, -0x258(%rbp)
jmp 0x9205
movq -0x258(%rbp), %rdi
leaq 0x1f309b(%rip), %rsi    # 0x1fc2ae
callq 0x5540
jmp 0x921a
leaq -0x218(%rbp), %rdi
movq -0x8(%rbp), %rax
movsd 0xc30(%rax), %xmm0
callq 0x5980
movq %rax, -0x260(%rbp)
jmp 0x923b
movq -0x260(%rbp), %rdi
leaq 0x1e923f(%rip), %rsi    # 0x1f2488
callq 0x5540
movq %rax, -0x268(%rbp)
jmp 0x9257
movq -0x268(%rbp), %rdi
movq -0x8(%rbp), %rax
movsd 0xc38(%rax), %xmm0
callq 0x5980
jmp 0x9271
movb -0x11(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x9420
leaq -0x218(%rbp), %rdi
leaq 0x1e91f8(%rip), %rsi    # 0x1f2488
callq 0x5540
jmp 0x9297
movl $0x0, -0x238(%rbp)
movl -0x238(%rbp), %eax
movq %rax, -0x270(%rbp)
movq -0x8(%rbp), %rdi
addq $0xc40, %rdi            # imm = 0xC40
callq 0xf990
movq %rax, %rcx
movq -0x270(%rbp), %rax
cmpq %rcx, %rax
jae 0x936e
leaq -0x218(%rbp), %rax
movq %rax, -0x280(%rbp)
movq -0x8(%rbp), %rdi
addq $0xc40, %rdi            # imm = 0xC40
movl -0x238(%rbp), %eax
movl %eax, %esi
callq 0xfc80
movq %rax, -0x278(%rbp)
jmp 0x9300
movq -0x280(%rbp), %rdi
movq -0x278(%rbp), %rax
movsd (%rax), %xmm0
callq 0x5980
movq %rax, -0x288(%rbp)
jmp 0x9320
movq -0x288(%rbp), %rdi
leaq 0x1e915a(%rip), %rsi    # 0x1f2488
callq 0x5540
jmp 0x9335
jmp 0x9337
movl -0x238(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x238(%rbp)
jmp 0x92a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x230(%rbp)
movl %eax, -0x234(%rbp)
leaq -0x228(%rbp), %rdi
callq 0x5150
jmp 0x944a
movl $0x0, -0x23c(%rbp)
movl -0x23c(%rbp), %eax
movq %rax, -0x290(%rbp)
movq -0x8(%rbp), %rdi
addq $0xc58, %rdi            # imm = 0xC58
callq 0xf990
movq %rax, %rcx
movq -0x290(%rbp), %rax
cmpq %rcx, %rax
jae 0x941e
leaq -0x218(%rbp), %rax
movq %rax, -0x2a0(%rbp)
movq -0x8(%rbp), %rdi
addq $0xc58, %rdi            # imm = 0xC58
movl -0x23c(%rbp), %eax
movl %eax, %esi
callq 0xfc80
movq %rax, -0x298(%rbp)
jmp 0x93d3
movq -0x2a0(%rbp), %rdi
movq -0x298(%rbp), %rax
movsd (%rax), %xmm0
callq 0x5980
movq %rax, -0x2a8(%rbp)
jmp 0x93f3
movq -0x2a8(%rbp), %rdi
leaq 0x1e9087(%rip), %rsi    # 0x1f2488
callq 0x5540
jmp 0x9408
jmp 0x940a
movl -0x23c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x23c(%rbp)
jmp 0x9378
jmp 0x9420
leaq -0x218(%rbp), %rdi
leaq 0x1f01f7(%rip), %rsi    # 0x1f9625
callq 0x5540
jmp 0x9435
leaq -0x228(%rbp), %rdi
callq 0x5150
addq $0x2b0, %rsp            # imm = 0x2B0
popq %rbp
retq
movq -0x230(%rbp), %rdi
callq 0x58f0
nopw %cs:(%rax,%rax)