// File: /workspace/github_c_makefile_star2_O1/mohuangrui[P]ArtraCFD/paraview_writer.c
// Function: WriteStructuredDataParaview
void WriteStructuredDataParaview(const Time *time, const Space *space, const Model *model)
{
    PvSet pvSet = { /* initialize environment */
        .rname = "field",
        .bname = {'\0'},
        .fname = {'\0'},
        .fext = ".vts",
        .fmt = "%s%05d",
        .intType = "Int32",
        .floatType = "Float32",
        .byteOrder = "LittleEndian",
        .scaN = 10,
        .sca = {"rho", "u", "v", "w", "p", "T", "did", "fid", "lid", "gst"},
        .vecN = 1,
        .vec = {"Vel"},
    };
    snprintf(pvSet.bname, sizeof(PvStr), pvSet.fmt, pvSet.rname, time->dataC);
    if (0 == time->stepC) { /* initialization step */
        InitializeTransientCaseFile(&pvSet);
    }
    WriteCaseFile(time, &pvSet);
    WriteStructuredData(space, model, &pvSet);
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
movq %rdx, 0x10(%rsp)
movq %rsi, %rbx
movq %rdi, %r15
leaq 0xadf9(%rip), %rsi      # 0x1fd28
leaq 0x20(%rsp), %r12
movl $0x2f8, %edx            # imm = 0x2F8
movq %r12, %rdi
callq 0x2160
leaq 0x70(%rsp), %r14
leaq 0x160(%rsp), %rdx
movl 0x38(%r15), %r8d
movl $0x50, %esi
movq %r14, %rdi
movq %r12, %rcx
xorl %eax, %eax
callq 0x20b0
cmpl $0x0, 0x8(%r15)
jne 0x14f75
leaq 0x20(%rsp), %rdi
callq 0x1557e
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x15645
leaq 0xc0(%rsp), %r15
leaq 0x110(%rsp), %r8
leaq 0xad33(%rip), %rdx      # 0x1fccc
movl $0x50, %esi
movq %r15, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x20b0
leaq 0x7d76(%rip), %rsi      # 0x1cd28
movq %r15, %rdi
callq 0x9269
movq %rax, %r12
movq (%rbx), %r14
movl 0x90(%rbx), %ebp
notl %ebp
addl 0x94(%rbx), %ebp
movl 0x98(%rbx), %r15d
notl %r15d
addl 0x9c(%rbx), %r15d
movl 0xa0(%rbx), %r13d
notl %r13d
addl 0xa4(%rbx), %r13d
leaq 0xb619(%rip), %rdi      # 0x20610
movl $0x16, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x2200
leaq 0x250(%rsp), %rdx
leaq 0xb6e9(%rip), %rsi      # 0x20701
movq %r12, %rdi
xorl %eax, %eax
callq 0x2150
leaq 0xb717(%rip), %rsi      # 0x20740
movq %r12, %rdi
xorl %edx, %edx
movl %ebp, %ecx
xorl %r8d, %r8d
movl %r15d, %r9d
xorl %eax, %eax
pushq %r13
xorl %r10d, %r10d
pushq %r10
callq 0x2150
addq $0x10, %rsp
leaq 0xb725(%rip), %rsi      # 0x20774
movq %r12, %rdi
xorl %edx, %edx
movl %ebp, %ecx
xorl %r8d, %r8d
movl %r15d, %r9d
xorl %eax, %eax
pushq %r13
xorl %r15d, %r15d
pushq %r15
callq 0x2150
addq $0x10, %rsp
leaq 0xb727(%rip), %rdi      # 0x2079c
movl $0x12, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x2200
leaq 0x250(%rsp), %rax
cmpl %r15d, 0x50(%rax)
movq %r12, 0x8(%rsp)
jle 0x15258
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
xorl %r15d, %r15d
leaq (%r15,%r15,4), %rax
leaq 0x200(%rsp), %rdx
leaq (%rdx,%rax,2), %rcx
addq $0xa4, %rcx
movq %r12, %rdi
leaq 0xb6e4(%rip), %rsi      # 0x207af
xorl %eax, %eax
callq 0x2150
movl $0xa, %esi
movl $0x1, %edx
leaq 0xb704(%rip), %rdi      # 0x207e7
movq %r12, %rcx
callq 0x2200
movl 0xa0(%rbx), %ebp
cmpl 0xa4(%rbx), %ebp
jge 0x15220
movq %r15, %r13
movl %r15d, %eax
movq %rax, 0x18(%rsp)
movl 0x98(%rbx), %r12d
cmpl 0x9c(%rbx), %r12d
jge 0x15210
movl 0x90(%rbx), %r15d
cmpl 0x94(%rbx), %r15d
jge 0x15208
movl 0x34(%rbx), %r8d
movl 0x38(%rbx), %ecx
movl %ebp, %edi
movl %r12d, %esi
movl %r15d, %edx
callq 0x7ea3
cmpl $0x9, %r13d
ja 0x151e8
cltq
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rcx
leaq (%r14,%rcx), %rax
leaq (%r14,%rcx), %rdi
addq $0x10, %rdi
leaq 0xab92(%rip), %rdx      # 0x1fd00
movq 0x18(%rsp), %rcx
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movsd (%rdi), %xmm0
jmp 0x151e3
movq 0x10(%rsp), %rax
movsd 0x40(%rax), %xmm0
callq 0x7ceb
jmp 0x151e3
xorps %xmm0, %xmm0
cvtsi2sdl 0xc(%rax), %xmm0
jmp 0x151e3
movsd 0x20(%rax), %xmm0
jmp 0x151ba
movsd 0x28(%rax), %xmm0
jmp 0x151ba
xorps %xmm0, %xmm0
cvtsi2sdl 0x4(%rax), %xmm0
jmp 0x151e3
movsd 0x18(%rax), %xmm0
divsd 0x10(%rax), %xmm0
jmp 0x151e3
movq 0x10(%rsp), %rax
movsd 0x50(%rax), %xmm0
callq 0x7de5
jmp 0x151e3
xorps %xmm0, %xmm0
cvtsi2sdl (%rax), %xmm0
jmp 0x151e3
xorps %xmm0, %xmm0
cvtsi2sdl 0x8(%rax), %xmm0
movsd %xmm0, (%rsp)
movq 0x8(%rsp), %rdi
leaq 0xb66e(%rip), %rsi      # 0x20862
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x2150
incl %r15d
jmp 0x15123
incl %r12d
jmp 0x1510f
incl %ebp
cmpl 0xa4(%rbx), %ebp
jl 0x15108
jmp 0x15223
movq %r15, %r13
movl $0x16, %esi
movl $0x1, %edx
leaq 0xb5be(%rip), %rdi      # 0x207f2
movq 0x8(%rsp), %r12
movq %r12, %rcx
callq 0x2200
movq %r13, %r15
incq %r15
movslq 0x2a0(%rsp), %rax
cmpq %rax, %r15
jl 0x150aa
cmpl $0x0, 0x308(%rsp)
jle 0x15389
xorl %ecx, %ecx
movq 0x8(%rsp), %rbp
movq %rcx, (%rsp)
leaq (%rcx,%rcx,4), %rax
leaq 0x200(%rsp), %rdx
leaq (%rdx,%rax,2), %rcx
addq $0x10c, %rcx            # imm = 0x10C
movq %r12, %rdi
leaq 0xb577(%rip), %rsi      # 0x20809
xorl %eax, %eax
callq 0x2150
movl $0xa, %esi
movl $0x1, %edx
leaq 0xb53d(%rip), %rdi      # 0x207e7
movq %r12, %rcx
callq 0x2200
movl 0xa0(%rbx), %r13d
cmpl 0xa4(%rbx), %r13d
jge 0x15353
movl 0x98(%rbx), %r12d
cmpl 0x9c(%rbx), %r12d
jge 0x1534b
movl 0x90(%rbx), %r15d
cmpl 0x94(%rbx), %r15d
jge 0x15346
movl 0x34(%rbx), %r8d
movl 0x38(%rbx), %ecx
movl %r13d, %edi
movl %r12d, %esi
movl %r15d, %edx
callq 0x7ea3
cltq
movq %rax, %rcx
shlq $0x7, %rcx
leaq (%rcx,%rax,8), %rax
movsd 0x10(%r14,%rax), %xmm3
movsd 0x18(%r14,%rax), %xmm0
divsd %xmm3, %xmm0
movsd 0x20(%r14,%rax), %xmm1
divsd %xmm3, %xmm1
movsd 0x28(%r14,%rax), %xmm2
divsd %xmm3, %xmm2
movq %rbp, %rdi
leaq 0xb51e(%rip), %rsi      # 0x20858
movb $0x3, %al
callq 0x2150
incl %r15d
jmp 0x152dd
incl %r12d
jmp 0x152cd
incl %r13d
jmp 0x152b9
movl $0x16, %esi
movl $0x1, %edx
leaq 0xb48e(%rip), %rdi      # 0x207f2
movq 0x8(%rsp), %r12
movq %r12, %rcx
callq 0x2200
movq (%rsp), %rcx
incq %rcx
movslq 0x308(%rsp), %rax
cmpq %rax, %rcx
jl 0x1526d
leaq 0xb4d8(%rip), %rdi      # 0x20868
movl $0x13, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x2200
leaq 0xb4d3(%rip), %rdi      # 0x2087c
movl $0x11, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x2200
leaq 0xb4cc(%rip), %rdi      # 0x2088e
movl $0x12, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x2200
leaq 0xb4c6(%rip), %rdi      # 0x208a1
movl $0xf, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x2200
leaq 0x200(%rsp), %rdx
leaq 0xb4b5(%rip), %rsi      # 0x208b1
movq %r12, %rdi
xorl %eax, %eax
callq 0x2150
leaq 0xb3da(%rip), %rdi      # 0x207e7
movl $0xa, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x2200
movl 0xa0(%rbx), %ebp
cmpl 0xa4(%rbx), %ebp
movq %r12, %r14
jge 0x154e7
leaq 0xb41d(%rip), %r15      # 0x20858
movl 0x98(%rbx), %r12d
cmpl 0x9c(%rbx), %r12d
jge 0x154d9
movl 0x90(%rbx), %r13d
cmpl 0x94(%rbx), %r13d
jge 0x154d1
movsd 0x3f0(%rbx), %xmm0
movsd 0x58(%rbx), %xmm1
movl 0x40(%rbx), %esi
movl %r13d, %edi
callq 0x7f08
movsd %xmm0, (%rsp)
movsd 0x400(%rbx), %xmm0
movsd 0x60(%rbx), %xmm1
movl 0x44(%rbx), %esi
movl %r12d, %edi
callq 0x7f08
movsd %xmm0, 0x8(%rsp)
movsd 0x410(%rbx), %xmm0
movsd 0x68(%rbx), %xmm1
movl 0x48(%rbx), %esi
movl %ebp, %edi
callq 0x7f08
movaps %xmm0, %xmm2
movq %r14, %rdi
movq %r15, %rsi
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movb $0x3, %al
callq 0x2150
incl %r13d
jmp 0x15456
incl %r12d
jmp 0x15442
incl %ebp
cmpl 0xa4(%rbx), %ebp
jl 0x1543b
leaq 0xb304(%rip), %rdi      # 0x207f2
movl $0x16, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x2200
leaq 0xb3fd(%rip), %rdi      # 0x20904
movl $0x10, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x2200
leaq 0xb3f5(%rip), %rdi      # 0x20915
movl $0xd, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x2200
leaq 0xb3ea(%rip), %rdi      # 0x20923
movl $0x14, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x2200
leaq 0xb131(%rip), %rdi      # 0x20683
movl $0xb, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x2200
movq %r14, %rdi
callq 0x2080
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq