// File: /workspace/github_c_makefile_star2_O0/mohuangrui[P]ArtraCFD/initialization.c
// Function: WritePolyMassProperty
static void WritePolyMassProperty(const Geometry *const geo)
{
    FILE *fp = Fopen("geo_mass_property.csv", "w");
    const char *fmtI = "  %.6g, %.6g, %.6g, %.6g, %.6g, %.6g, %.6g, %.6g, %.6g, %.6g, %.6g, %.6g, %.6g, %.6g, %.6g, %.6g, %.6g, %.6g\n";
    fprintf(fp, "#------------------------------------------------------------------------------\n");
    fprintf(fp, "#                                                                             -\n");
    fprintf(fp, "#                          Polyhedron Mass Property                           -\n");
    fprintf(fp, "#                                                                             -\n");
    fprintf(fp, "# O[X,Y,Z], I[XX,YY,ZZ,XY,YZ,ZX], Box[X,Y,Z][MIN,MAX], rho, area, volume      -\n");
    fprintf(fp, "#------------------------------------------------------------------------------\n");
    const Polyhedron *poly = NULL;
    for (int n = geo->sphN; n < geo->totN; ++n) {
        poly = geo->poly + n;
        fprintf(fp, fmtI,
                poly->O[X], poly->O[Y], poly->O[Z],
                poly->I[X][X], poly->I[Y][Y], poly->I[Z][Z],
                poly->I[X][Y], poly->I[Y][Z], poly->I[Z][X],
                poly->box[X][MIN], poly->box[Y][MIN], poly->box[Z][MIN],
                poly->box[X][MAX], poly->box[Y][MAX], poly->box[Z][MAX],
                poly->rho, poly->area, poly->volume);
    }
    fprintf(fp, "#------------------------------------------------------------------------------\n");
    fclose(fp);
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
leaq 0xe3a5(%rip), %rdi      # 0x28fbb
leaq 0xc25f(%rip), %rsi      # 0x26e7c
callq 0xbf90
movq %rax, -0x10(%rbp)
leaq 0xe3a4(%rip), %rax      # 0x28fd1
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x9eb2(%rip), %rsi      # 0x24aee
movb $0x0, %al
callq 0x2140
movq -0x10(%rbp), %rdi
leaq 0x9ef1(%rip), %rsi      # 0x24b3f
movb $0x0, %al
callq 0x2140
movq -0x10(%rbp), %rdi
leaq 0xe3df(%rip), %rsi      # 0x2903f
movb $0x0, %al
callq 0x2140
movq -0x10(%rbp), %rdi
leaq 0x9ecd(%rip), %rsi      # 0x24b3f
movb $0x0, %al
callq 0x2140
movq -0x10(%rbp), %rdi
leaq 0xe40c(%rip), %rsi      # 0x29090
movb $0x0, %al
callq 0x2140
movq -0x10(%rbp), %rdi
leaq 0x9e58(%rip), %rsi      # 0x24aee
movb $0x0, %al
callq 0x2140
movq $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x1ae1f
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x24(%rbp), %rcx
imulq $0x238, %rcx, %rcx      # imm = 0x238
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rax
movsd 0x20(%rax), %xmm0
movsd %xmm0, -0x40(%rbp)
movq -0x20(%rbp), %rax
movsd 0x28(%rax), %xmm1
movq -0x20(%rbp), %rax
movsd 0x30(%rax), %xmm2
movq -0x20(%rbp), %rax
movsd 0x38(%rax), %xmm3
movq -0x20(%rbp), %rax
movsd 0x58(%rax), %xmm4
movq -0x20(%rbp), %rax
movsd 0x78(%rax), %xmm5
movq -0x20(%rbp), %rax
movsd 0x40(%rax), %xmm6
movq -0x20(%rbp), %rax
movsd 0x60(%rax), %xmm7
movq -0x20(%rbp), %rax
movsd 0x68(%rax), %xmm8
movq -0x20(%rbp), %rax
movsd 0x1d0(%rax), %xmm0
movsd %xmm0, -0x38(%rbp)
movq -0x20(%rbp), %rax
movsd 0x1e0(%rax), %xmm15
movq -0x20(%rbp), %rax
movsd 0x1f0(%rax), %xmm14
movq -0x20(%rbp), %rax
movsd 0x1d8(%rax), %xmm13
movq -0x20(%rbp), %rax
movsd 0x1e8(%rax), %xmm12
movq -0x20(%rbp), %rax
movsd 0x1f8(%rax), %xmm11
movq -0x20(%rbp), %rax
movsd 0x1a8(%rax), %xmm10
movq -0x20(%rbp), %rax
movsd 0x1c0(%rax), %xmm9
movq -0x20(%rbp), %rax
movsd 0x1c8(%rax), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x40(%rbp), %xmm0
movsd %xmm8, (%rsp)
movsd -0x38(%rbp), %xmm8
movsd %xmm8, 0x8(%rsp)
movsd -0x30(%rbp), %xmm8
movsd %xmm15, 0x10(%rsp)
movsd %xmm14, 0x18(%rsp)
movsd %xmm13, 0x20(%rsp)
movsd %xmm12, 0x28(%rsp)
movsd %xmm11, 0x30(%rsp)
movsd %xmm10, 0x38(%rsp)
movsd %xmm9, 0x40(%rsp)
movsd %xmm8, 0x48(%rsp)
movb $0x8, %al
callq 0x2140
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x1acaf
movq -0x10(%rbp), %rdi
leaq 0x9cc4(%rip), %rsi      # 0x24aee
movb $0x0, %al
callq 0x2140
movq -0x10(%rbp), %rdi
callq 0x2080
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)