// File: /workspace/github_c_makefile_star2_O2/mohuangrui[P]ArtraCFD/ensight_writer.c
// Function: WriteStructuredDataEnsight
void WriteStructuredDataEnsight(const Time *time, const Space *space, const Model *model)
{
    EnSet enSet = { /* initialize environment */
        .rname = "field",
        .bname = {'\0'},
        .fname = {'\0'},
        .str = {'\0'},
        .fmt = "%s%05d",
        .gtag = {'\0'},
        .vtag = "*****",
        .dtype = "block",
        .part = {PIO, PIO + 1},
        .scaN = 7,
        .sca = {"rho", "u", "v", "w", "p", "T", "did"},
        .vecN = 1,
        .vec = {"Vel"},
    };
    snprintf(enSet.bname, sizeof(EnStr), enSet.fmt, enSet.rname, time->dataC);
    if (0 == time->stepC) { /* initialization step */
        InitializeTransientCaseFile(&enSet);
        WriteGeometryFile(space, &enSet);
    }
    WriteCaseFile(time, &enSet);
    WriteStructuredData(space, model, &enSet);
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x358, %rsp            # imm = 0x358
movq %rdx, 0x38(%rsp)
movq %rsi, %rbx
movq %rdi, %r12
leaq 0xdf65(%rip), %rsi      # 0x1c3ac
leaq 0x58(%rsp), %r14
movl $0x300, %edx            # imm = 0x300
movq %r14, %rdi
callq 0x2170
leaq 0xa8(%rsp), %rdi
leaq 0x198(%rsp), %rdx
movl 0x38(%r12), %r8d
pushq $0x50
popq %rsi
movq %r14, %rcx
xorl %eax, %eax
callq 0x20b0
cmpl $0x0, 0x8(%r12)
movq %rbx, 0x40(%rsp)
jne 0xe769
movq %r12, 0x50(%rsp)
leaq 0x58(%rsp), %r14
movq %r14, %rdi
callq 0xebd6
leaq 0xf8(%rsp), %r15
leaq 0xded1(%rip), %rdx      # 0x1c37e
pushq $0x50
popq %r12
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rcx
xorl %eax, %eax
callq 0x20b0
leaq 0xeb13(%rip), %rsi      # 0x1cfdb
movq %r15, %rdi
callq 0x8820
movq %rax, %r14
leaq 0x148(%rsp), %r15
leaq 0xe6fd(%rip), %rsi      # 0x1cbdf
movq %r15, %rdi
movq %r12, %rdx
callq 0x2170
pushq $0x1
popq %r13
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x2210
leaq 0xe727(%rip), %rsi      # 0x1cc30
movq %r15, %rdi
movq %r12, %rdx
callq 0x2170
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x2210
leaq 0xe755(%rip), %rsi      # 0x1cc81
movq %r15, %rdi
movq %r12, %rdx
callq 0x2170
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x2210
leaq 0xe783(%rip), %rsi      # 0x1ccd2
movq %r15, %rdi
movq %r12, %rdx
callq 0x2170
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x2210
leaq 0xe7b1(%rip), %rsi      # 0x1cd23
movq %r15, %rdi
movq %r12, %rdx
callq 0x2170
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, 0x18(%rsp)
movq %r14, %rcx
callq 0x2210
movslq 0x190(%r15), %r13
leaq 0x90(%rbx), %rax
movq %rax, 0x48(%rsp)
leaq 0x3f0(%rbx), %rax
movq %rax, 0x20(%rsp)
pushq $0x1
popq %rax
movl %eax, 0x2c(%rsp)
movslq 0x2dc(%rsp), %rax
cmpq %rax, %r13
jge 0xe75a
leaq 0x148(%rsp), %r15
movq %r15, %rdi
leaq 0xe798(%rip), %rsi      # 0x1cd74
pushq $0x50
popq %rbx
movq %rbx, %rdx
callq 0x2170
movq %r15, %rdi
movq %rbx, %rsi
pushq $0x1
popq %r12
movq %r12, %rdx
movq 0x18(%rsp), %r14
movq %r14, %rcx
callq 0x2210
leaq 0x2c(%rsp), %rdi
pushq $0x4
popq %rbp
movq %rbp, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x2210
movq %r15, %rdi
movq %rbx, %rsi
leaq 0xe9ba(%rip), %rdx      # 0x1cfde
movl %r13d, %ecx
xorl %eax, %eax
callq 0x20b0
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x2210
movq %r15, %rdi
leaq 0x288(%rsp), %rsi
movq %rbx, %rdx
callq 0x2040
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x2210
movq %r13, 0x30(%rsp)
imulq $0x18, %r13, %rax
movq 0x48(%rsp), %rdx
leaq (%rdx,%rax), %r15
movl 0x4(%rdx,%rax), %ecx
subl (%rdx,%rax), %ecx
movl %ecx, 0xc(%rsp)
movl 0xc(%rdx,%rax), %ecx
subl 0x8(%rdx,%rax), %ecx
movl %ecx, 0x10(%rsp)
movl 0x14(%rdx,%rax), %ecx
subl 0x10(%rdx,%rax), %ecx
movl %ecx, 0x14(%rsp)
leaq 0xc(%rsp), %rdi
movq %rbp, %rsi
pushq $0x3
popq %rdx
movq %r14, %rcx
callq 0x2210
xorl %ebx, %ebx
cmpq $0x3, %rbx
je 0xe742
movl 0x10(%r15), %r14d
movq %rbx, %rbp
shlq $0x4, %rbp
addq 0x20(%rsp), %rbp
cmpl 0x14(%r15), %r14d
jge 0xe73a
movl 0x8(%r15), %r12d
cmpl 0xc(%r15), %r12d
jge 0xe735
movl (%r15), %r13d
cmpl 0x4(%r15), %r13d
jge 0xe730
movl %r13d, 0xc(%rsp)
movl %r12d, 0x10(%rsp)
movl %r14d, 0x14(%rsp)
movl 0xc(%rsp,%rbx,4), %edi
movsd (%rbp), %xmm0
movq 0x40(%rsp), %rax
movsd 0x58(%rax,%rbx,8), %xmm1
movl 0x40(%rax,%rbx,4), %esi
callq 0x7651
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
movq 0x18(%rsp), %rcx
callq 0x2210
incl %r13d
jmp 0xe6da
incl %r12d
jmp 0xe6d1
incl %r14d
jmp 0xe6c7
incq %rbx
jmp 0xe6ad
movq 0x30(%rsp), %r13
incq %r13
movl 0x2c(%rsp), %eax
incl %eax
movq 0x40(%rsp), %rbx
jmp 0xe5b5
movq 0x18(%rsp), %rdi
callq 0x2080
movq 0x50(%rsp), %r12
leaq 0x58(%rsp), %rsi
movq %r12, %rdi
callq 0xedcc
leaq 0xc(%rsp), %rax
andl $0x0, (%rax)
movq (%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0x90(%rbx), %rax
movq %rax, 0x30(%rsp)
xorl %r15d, %r15d
movslq 0x2e0(%rsp), %rax
cmpq %rax, %r15
jge 0xe9e8
imulq $0xa, %r15, %r8
movq %r15, %r13
leaq 0x2e4(%rsp), %rax
addq %rax, %r8
leaq 0xf8(%rsp), %r14
movq %r14, %rdi
pushq $0x50
popq %r12
movq %r12, %rsi
leaq 0xdb9b(%rip), %rdx      # 0x1c36c
leaq 0xa8(%rsp), %rcx
xorl %eax, %eax
callq 0x20b0
movq %r14, %rdi
leaq 0xe7f1(%rip), %rsi      # 0x1cfdb
callq 0x8820
movq %rax, %r15
leaq 0x148(%rsp), %r14
movq %r14, %rdi
leaq 0xe38a(%rip), %rsi      # 0x1cb8e
movq %r12, %rdx
callq 0x2170
movq %r14, %rdi
movq %r12, %rsi
pushq $0x1
popq %rdx
movq %r15, %rbx
movq %r15, %rcx
callq 0x2210
movslq 0x2d8(%rsp), %rcx
movq %r13, %r15
movl %r13d, %eax
movq %rax, 0x20(%rsp)
pushq $0x1
popq %rax
movl %eax, 0x8(%rsp)
movslq 0x2dc(%rsp), %rax
cmpq %rax, %rcx
jge 0xe9d8
leaq 0x148(%rsp), %r12
movq %r12, %rdi
leaq 0xe517(%rip), %rsi      # 0x1cd74
pushq $0x50
popq %r13
movq %r13, %rdx
movq %rcx, %r14
callq 0x2170
movq %r12, %rdi
movq %r13, %rsi
pushq $0x1
popq %r12
movq %r12, %rdx
movq %rbx, %rcx
callq 0x2210
leaq 0x8(%rsp), %rdi
pushq $0x4
popq %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x2210
leaq 0x148(%rsp), %r12
movq %r12, %rdi
leaq 0x288(%rsp), %rsi
movq %r13, %rdx
callq 0x2040
movq %r12, %rdi
movq %r13, %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x2210
movq %r14, 0x48(%rsp)
imulq $0x18, %r14, %rax
movq 0x30(%rsp), %rcx
leaq (%rcx,%rax), %r13
movl 0x10(%rcx,%rax), %r14d
cmpl 0x14(%r13), %r14d
jge 0xe9c5
movl 0x8(%r13), %r12d
cmpl 0xc(%r13), %r12d
jge 0xe9bd
movl (%r13), %ebp
cmpl 0x4(%r13), %ebp
jge 0xe9b5
movq 0x40(%rsp), %rax
movl 0x34(%rax), %r8d
movl 0x38(%rax), %ecx
movl %r14d, %edi
movl %r12d, %esi
movl %ebp, %edx
callq 0x75ec
cmpl $0x6, %r15d
ja 0xe995
cltq
imulq $0x88, %rax, %rcx
movq 0x18(%rsp), %rdx
leaq (%rdx,%rcx), %rax
leaq (%rdx,%rcx), %rdi
addq $0x10, %rdi
leaq 0xda53(%rip), %rdx      # 0x1c390
movq 0x20(%rsp), %rcx
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cvtsd2ss (%rdi), %xmm0
jmp 0xe98f
movq 0x38(%rsp), %rax
movsd 0x40(%rax), %xmm0
callq 0x7437
jmp 0xe98b
movsd 0x20(%rax), %xmm0
jmp 0xe975
movsd 0x28(%rax), %xmm0
jmp 0xe975
movsd 0x18(%rax), %xmm0
divsd 0x10(%rax), %xmm0
jmp 0xe98b
movq 0x38(%rsp), %rax
movsd 0x50(%rax), %xmm0
callq 0x752b
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
leaq 0xc(%rsp), %rdi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x2210
incl %ebp
jmp 0xe8f3
cvtsi2ssl (%rax), %xmm0
jmp 0xe98f
incl %r12d
jmp 0xe8e5
incl %r14d
jmp 0xe8d7
movq 0x48(%rsp), %rcx
incq %rcx
movl 0x8(%rsp), %eax
incl %eax
jmp 0xe836
movq %rbx, %rdi
callq 0x2080
incq %r15
jmp 0xe795
xorl %ecx, %ecx
movslq 0x348(%rsp), %rax
cmpq %rax, %rcx
jge 0xebc4
movq %rcx, 0x38(%rsp)
imulq $0xa, %rcx, %r8
leaq 0x34c(%rsp), %rax
addq %rax, %r8
leaq 0xf8(%rsp), %rbx
movq %rbx, %rdi
pushq $0x50
popq %r14
movq %r14, %rsi
leaq 0xd944(%rip), %rdx      # 0x1c36c
leaq 0xa8(%rsp), %rcx
xorl %eax, %eax
callq 0x20b0
movq %rbx, %rdi
leaq 0xe59a(%rip), %rsi      # 0x1cfdb
callq 0x8820
movq %rax, %r13
leaq 0x148(%rsp), %rbx
movq %rbx, %rdi
leaq 0xe0e2(%rip), %rsi      # 0x1cb3d
movq %r14, %rdx
callq 0x2170
movq %rbx, %rdi
movq %r14, %rsi
pushq $0x1
popq %rdx
movq %r13, %rcx
callq 0x2210
movslq 0x2d8(%rsp), %r12
pushq $0x1
popq %rax
movl %eax, 0x8(%rsp)
movslq 0x2dc(%rsp), %rax
cmpq %rax, %r12
jge 0xebaf
leaq 0x148(%rsp), %rbx
movq %rbx, %rdi
leaq 0xe2ce(%rip), %rsi      # 0x1cd74
pushq $0x50
popq %r14
movq %r14, %rdx
callq 0x2170
movq %rbx, %rdi
movq %r14, %rsi
pushq $0x1
popq %r15
movq %r15, %rdx
movq %r13, %rcx
callq 0x2210
leaq 0x8(%rsp), %rdi
pushq $0x4
popq %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0x2210
movq %rbx, %rdi
leaq 0x288(%rsp), %rsi
movq %r14, %rdx
callq 0x2040
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0x2210
movq %r12, 0x20(%rsp)
imulq $0x18, %r12, %rbx
addq 0x30(%rsp), %rbx
cmpq $0x4, %r15
je 0xeb9c
movl 0x10(%rbx), %r12d
cmpl 0x14(%rbx), %r12d
jge 0xeb94
movl 0x8(%rbx), %r14d
cmpl 0xc(%rbx), %r14d
jge 0xeb8f
movl (%rbx), %ebp
cmpl 0x4(%rbx), %ebp
jge 0xeb8a
movq 0x40(%rsp), %rax
movl 0x34(%rax), %r8d
movl 0x38(%rax), %ecx
movl %r12d, %edi
movl %r14d, %esi
movl %ebp, %edx
callq 0x75ec
cltq
imulq $0x88, %rax, %rax
movq 0x18(%rsp), %rdx
leaq (%rdx,%rax), %rcx
movsd 0x10(%rcx,%r15,8), %xmm0
divsd 0x10(%rdx,%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
leaq 0xc(%rsp), %rdi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
movq %r13, %rcx
callq 0x2210
incl %ebp
jmp 0xeb2c
incl %r14d
jmp 0xeb24
incl %r12d
jmp 0xeb1a
incq %r15
jmp 0xeb0c
movq 0x20(%rsp), %r12
incq %r12
movl 0x8(%rsp), %eax
incl %eax
jmp 0xea7f
movq %r13, %rdi
callq 0x2080
movq 0x38(%rsp), %rcx
incq %rcx
jmp 0xe9ea
addq $0x358, %rsp            # imm = 0x358
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq