// File: /workspace/github_c_makefile_star2_O0/mohuangrui[P]ArtraCFD/data_stream.c
// Function: ReadPolyStateData
void ReadPolyStateData(const int pm, const int pn, FILE *fp, Geometry *const geo)
{
    const char *fmtI = ParseFormat("%lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %d");
    const char *fmtJ = ParseFormat("%lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg, %lg");
    Polyhedron *poly  = NULL;
    const Real zero = 0.0;
    for (int n = pm; n < pn; ++n) {
        poly = geo->poly + n;
        Sread(fp, 16, fmtI,
                &(poly->O[X]), &(poly->O[Y]), &(poly->O[Z]), &(poly->r),
                &(poly->V[TO][X]), &(poly->V[TO][Y]), &(poly->V[TO][Z]),
                &(poly->W[TO][X]), &(poly->W[TO][Y]), &(poly->W[TO][Z]),
                &(poly->rho), &(poly->T), &(poly->cf),
                &(poly->area), &(poly->volume), &(poly->mid));
        Sread(fp, 16, fmtJ,
                &(poly->at[TO][X]), &(poly->at[TO][Y]), &(poly->at[TO][Z]),
                &(poly->ar[TO][X]), &(poly->ar[TO][Y]), &(poly->ar[TO][Z]),
                &(poly->at[TN][X]), &(poly->at[TN][Y]), &(poly->at[TN][Z]),
                &(poly->g[X]), &(poly->g[Y]), &(poly->g[Z]),
                &(poly->ar[TN][X]), &(poly->ar[TN][Y]), &(poly->ar[TN][Z]),
                &(poly->to));
        if (zero >= poly->to) {
            poly->to = FLT_MAX;
        }
        if (geo->sphN > n) {
            poly->faceN = 0; /* analytical polyhedron tag */
            poly->facet = NULL;
        }
        for (int s = 0; s < DIMS; ++s) {
            poly->V[TN][s] = poly->V[TO][s];
            poly->W[TN][s] = poly->W[TO][s];
        }
    }
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movl %edi, -0x2c(%rbp)
movl %esi, -0x30(%rbp)
movq %rdx, -0x38(%rbp)
movq %rcx, -0x40(%rbp)
leaq 0x15724(%rip), %rdi     # 0x27b3d
callq 0xbbc0
movq %rax, -0x48(%rbp)
leaq 0x15762(%rip), %rdi     # 0x27b8b
callq 0xbbc0
movq %rax, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x60(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x30(%rbp), %eax
jge 0x127ee
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x64(%rbp), %rcx
imulq $0x238, %rcx, %rcx      # imm = 0x238
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rdx
movq -0x58(%rbp), %rcx
addq $0x20, %rcx
movq -0x58(%rbp), %r8
addq $0x20, %r8
addq $0x8, %r8
movq -0x58(%rbp), %r9
addq $0x20, %r9
addq $0x10, %r9
movq -0x58(%rbp), %rax
addq $0x18, %rax
movq -0x58(%rbp), %rsi
addq $0x80, %rsi
movq %rsi, -0xb8(%rbp)
movq -0x58(%rbp), %rsi
addq $0x80, %rsi
addq $0x8, %rsi
movq %rsi, -0xb0(%rbp)
movq -0x58(%rbp), %rsi
addq $0x80, %rsi
addq $0x10, %rsi
movq %rsi, -0xa8(%rbp)
movq -0x58(%rbp), %rsi
addq $0xb0, %rsi
movq %rsi, -0xa0(%rbp)
movq -0x58(%rbp), %r13
addq $0xb0, %r13
addq $0x8, %r13
movq -0x58(%rbp), %r12
addq $0xb0, %r12
addq $0x10, %r12
movq -0x58(%rbp), %r15
addq $0x1a8, %r15            # imm = 0x1A8
movq -0x58(%rbp), %r14
addq $0x1b0, %r14            # imm = 0x1B0
movq -0x58(%rbp), %rbx
addq $0x1b8, %rbx            # imm = 0x1B8
movq -0x58(%rbp), %r11
addq $0x1c0, %r11            # imm = 0x1C0
movq -0x58(%rbp), %r10
addq $0x1c8, %r10            # imm = 0x1C8
movq -0x58(%rbp), %rsi
addq $0x10, %rsi
movq %rsi, -0x98(%rbp)
movl $0x10, %esi
movq %rax, (%rsp)
movq -0xb8(%rbp), %rax
movq %rax, 0x8(%rsp)
movq -0xb0(%rbp), %rax
movq %rax, 0x10(%rsp)
movq -0xa8(%rbp), %rax
movq %rax, 0x18(%rsp)
movq -0xa0(%rbp), %rax
movq %rax, 0x20(%rsp)
movq -0x98(%rbp), %rax
movq %r13, 0x28(%rsp)
movq %r12, 0x30(%rsp)
movq %r15, 0x38(%rsp)
movq %r14, 0x40(%rsp)
movq %rbx, 0x48(%rsp)
movq %r11, 0x50(%rsp)
movq %r10, 0x58(%rsp)
movq %rax, 0x60(%rsp)
movb $0x0, %al
callq 0xc1e0
movq -0x38(%rbp), %rdi
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
addq $0xe0, %rcx
movq -0x58(%rbp), %r8
addq $0xe0, %r8
addq $0x8, %r8
movq -0x58(%rbp), %r9
addq $0xe0, %r9
addq $0x10, %r9
movq -0x58(%rbp), %rax
addq $0x128, %rax            # imm = 0x128
movq -0x58(%rbp), %rsi
addq $0x128, %rsi            # imm = 0x128
addq $0x8, %rsi
movq %rsi, -0x90(%rbp)
movq -0x58(%rbp), %rsi
addq $0x128, %rsi            # imm = 0x128
addq $0x10, %rsi
movq %rsi, -0x88(%rbp)
movq -0x58(%rbp), %rsi
addq $0xe0, %rsi
addq $0x18, %rsi
movq %rsi, -0x80(%rbp)
movq -0x58(%rbp), %rsi
addq $0xe0, %rsi
addq $0x18, %rsi
addq $0x8, %rsi
movq %rsi, -0x78(%rbp)
movq -0x58(%rbp), %r13
addq $0xe0, %r13
addq $0x18, %r13
addq $0x10, %r13
movq -0x58(%rbp), %r12
addq $0x110, %r12            # imm = 0x110
movq -0x58(%rbp), %r15
addq $0x110, %r15            # imm = 0x110
addq $0x8, %r15
movq -0x58(%rbp), %r14
addq $0x110, %r14            # imm = 0x110
addq $0x10, %r14
movq -0x58(%rbp), %rbx
addq $0x128, %rbx            # imm = 0x128
addq $0x18, %rbx
movq -0x58(%rbp), %r11
addq $0x128, %r11            # imm = 0x128
addq $0x18, %r11
addq $0x8, %r11
movq -0x58(%rbp), %r10
addq $0x128, %r10            # imm = 0x128
addq $0x18, %r10
addq $0x10, %r10
movq -0x58(%rbp), %rsi
addq $0x1a0, %rsi            # imm = 0x1A0
movq %rsi, -0x70(%rbp)
movl $0x10, %esi
movq %rax, (%rsp)
movq -0x90(%rbp), %rax
movq %rax, 0x8(%rsp)
movq -0x88(%rbp), %rax
movq %rax, 0x10(%rsp)
movq -0x80(%rbp), %rax
movq %rax, 0x18(%rsp)
movq -0x78(%rbp), %rax
movq %rax, 0x20(%rsp)
movq -0x70(%rbp), %rax
movq %r13, 0x28(%rsp)
movq %r12, 0x30(%rsp)
movq %r15, 0x38(%rsp)
movq %r14, 0x40(%rsp)
movq %rbx, 0x48(%rsp)
movq %r11, 0x50(%rsp)
movq %r10, 0x58(%rsp)
movq %rax, 0x60(%rsp)
movb $0x0, %al
callq 0xc1e0
movq -0x58(%rbp), %rax
xorps %xmm0, %xmm0
ucomisd 0x1a0(%rax), %xmm0
jb 0x1275d
movq -0x58(%rbp), %rax
movsd 0x15173(%rip), %xmm0    # 0x278c8
movsd %xmm0, 0x1a0(%rax)
movq -0x40(%rbp), %rax
movl 0x4(%rax), %eax
cmpl -0x64(%rbp), %eax
jle 0x12782
movq -0x58(%rbp), %rax
movl $0x0, (%rax)
movq -0x58(%rbp), %rax
movq $0x0, 0x230(%rax)
movl $0x0, -0x68(%rbp)
cmpl $0x3, -0x68(%rbp)
jge 0x127de
movq -0x58(%rbp), %rax
movslq -0x68(%rbp), %rcx
movsd 0x80(%rax,%rcx,8), %xmm0
movq -0x58(%rbp), %rax
movslq -0x68(%rbp), %rcx
movsd %xmm0, 0x98(%rax,%rcx,8)
movq -0x58(%rbp), %rax
movslq -0x68(%rbp), %rcx
movsd 0xb0(%rax,%rcx,8), %xmm0
movq -0x58(%rbp), %rax
movslq -0x68(%rbp), %rcx
movsd %xmm0, 0xc8(%rax,%rcx,8)
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x12789
jmp 0x127e0
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x12448
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq