// File: /workspace/github_c_makefile_star2_O2/mohuangrui[P]ArtraCFD/initialization.c
// Function: InitializeComputeDomain
void InitializeComputeDomain(Time *time, Space *space, const Model *model)
{
    if (0 == time->restart) { /* non restart */
        InitializeSpaceData(space, model);
    } else {
        ReadData(PROSD, time, space, model);
    }
    ComputeGeometryParameters(space->part.collapse, &(space->geo));
    WritePolyMassProperty(&(space->geo));
    ComputeGeometricField(space, model);
    TreatBoundary(TO, space, model);
    IdentifyGeometryState(&(space->geo));
    if (0 == time->restart) { /* non restart */
        WriteData(PROPT, time, space, model);
        WriteData(PROFC, time, space, model);
        WriteData(PROSD, time, space, model);
    }
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2c8, %rsp            # imm = 0x2C8
movq %rsi, %r14
cmpl $0x0, (%rdi)
movq %rdx, 0xb0(%rsp)
movq %rdi, 0xd0(%rsp)
je 0x11abb
movq %rdx, %rcx
movq %rdi, %rsi
pushq $0x4
popq %rdi
movq %r14, %rdx
callq 0xbfff
jmp 0x122c5
movq (%r14), %rax
movq %rax, 0xa8(%rsp)
leaq 0x90(%r14), %rax
movq %rax, 0xd8(%rsp)
movl 0x1f0(%r14), %ebx
leaq 0x9a95(%rip), %rax      # 0x1b578
movsd (%rax), %xmm0
movsd %xmm0, 0xe8(%rsp)
leaq 0x130(%rsp), %rbp
cmpl 0x1f4(%r14), %ebx
jge 0x12018
movl 0x1e8(%r14), %r13d
movl %ebx, 0x14(%rsp)
cmpl 0x1ec(%r14), %r13d
jge 0x12011
movl 0x1e0(%r14), %r12d
movl %r13d, 0x18(%rsp)
cmpl 0x1e4(%r14), %r12d
jge 0x12009
movl 0x34(%r14), %r8d
movl 0x38(%r14), %ecx
movl %ebx, %edi
movl %r13d, %esi
movl %r12d, %edx
callq 0x75ec
cltq
imulq $0x88, %rax, %r15
movq 0xa8(%rsp), %rax
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, (%rax,%r15)
movapd 0xa052(%rip), %xmm0     # 0x1bbc0
movupd %xmm0, 0x10(%rax,%r15)
movupd %xmm0, 0x20(%rax,%r15)
movupd %xmm0, 0x30(%rax,%r15)
movupd %xmm0, 0x40(%rax,%r15)
movupd %xmm0, 0x50(%rax,%r15)
movupd %xmm0, 0x60(%rax,%r15)
movupd %xmm0, 0x70(%rax,%r15)
movabsq $0x101010101010101, %rcx # imm = 0x101010101010101
movq %rcx, 0x80(%rax,%r15)
movl %ebx, %edi
movl %r13d, %esi
movl %r12d, 0x1c(%rsp)
movl %r12d, %edx
movq 0xd8(%rsp), %rcx
callq 0x75f9
testl %eax, %eax
leaq 0xb464(%rip), %rbx      # 0x1d038
je 0x11ff3
movq 0xa8(%rsp), %rcx
leaq (%rcx,%r15), %rax
addq %r15, %rcx
addq $0x10, %rcx
movq %rcx, 0xe0(%rsp)
xorpd %xmm0, %xmm0
movupd %xmm0, (%rax)
movsd 0x3f0(%r14), %xmm0
movsd 0x58(%r14), %xmm1
movl 0x40(%r14), %esi
movl 0x1c(%rsp), %edi
callq 0x7651
movaps %xmm0, 0x100(%rsp)
movsd 0x400(%r14), %xmm0
movsd 0x60(%r14), %xmm1
movl 0x44(%r14), %esi
movl 0x18(%rsp), %edi
callq 0x7651
movaps %xmm0, 0xf0(%rsp)
movsd 0x410(%r14), %xmm0
movsd 0x68(%r14), %xmm1
movl 0x48(%r14), %esi
movl 0x14(%rsp), %edi
callq 0x7651
movsd %xmm0, 0xa0(%rsp)
movapd 0x100(%rsp), %xmm0
unpcklpd 0xf0(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0]
movapd %xmm0, 0x110(%rsp)
movl $0x190, %r15d           # imm = 0x190
pushq $0xc
popq %r12
xorl %r13d, %r13d
movslq 0x3d0(%r14), %rax
cmpq %rax, %r13
jge 0x11ff3
movq 0x3e0(%r14), %rax
movsd -0x20(%rax,%r12,4), %xmm0
movsd %xmm0, 0x58(%rsp)
movups -0x30(%rax,%r12,4), %xmm0
movaps %xmm0, 0x120(%rsp)
movsd -0x18(%rax,%r12,4), %xmm0
movaps %xmm0, 0x40(%rsp)
movsd %xmm0, 0x80(%rsp)
movsd -0x10(%rax,%r12,4), %xmm0
movaps %xmm0, 0xc0(%rsp)
movsd %xmm0, 0x88(%rsp)
movsd -0x8(%rax,%r12,4), %xmm0
movsd %xmm0, 0xb8(%rsp)
movsd %xmm0, 0x90(%rsp)
movsd (%rax,%r12,4), %xmm0
movsd %xmm0, 0x8(%rsp)
andq $0x0, 0x130(%rsp)
movaps 0x100(%rsp), %xmm0
movsd %xmm0, 0x138(%rsp)
movaps 0xf0(%rsp), %xmm0
movsd %xmm0, 0x140(%rsp)
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x148(%rsp)
andq $0x0, 0x150(%rsp)
movsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0x158(%rsp)
movq 0x3e8(%r14), %rax
leaq (%rax,%r15), %rsi
addq $-0x190, %rsi           # imm = 0xFE70
movq %rbp, %rdi
callq 0x2ee1
movsd %xmm0, 0x200(%rsp)
movq 0x3e8(%r14), %rax
leaq (%rax,%r15), %rsi
addq $-0x12c, %rsi           # imm = 0xFED4
movq %rbp, %rdi
callq 0x2ee1
movsd %xmm0, 0x208(%rsp)
movq 0x3e8(%r14), %rax
leaq (%rax,%r15), %rsi
addq $-0xc8, %rsi
movq %rbp, %rdi
callq 0x2ee1
movsd %xmm0, 0x210(%rsp)
movq 0x3e8(%r14), %rax
leaq (%rax,%r15), %rsi
addq $-0x64, %rsi
movq %rbp, %rdi
callq 0x2ee1
movsd %xmm0, 0x218(%rsp)
movq 0x3e8(%r14), %rsi
addq %r15, %rsi
movq %rbp, %rdi
callq 0x2ee1
movsd %xmm0, 0x220(%rsp)
andq $0x0, 0x228(%rsp)
movapd 0x40(%rsp), %xmm0
unpcklpd 0xc0(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0]
movapd %xmm0, 0x40(%rsp)
subpd 0x120(%rsp), %xmm0
movapd %xmm0, 0x60(%rsp)
movsd 0xb8(%rsp), %xmm0
subsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x70(%rsp)
leaq 0x60(%rsp), %rdi
movq %rdi, %rsi
callq 0x76cc
movsd 0x8(%rsp), %xmm2
movapd 0x110(%rsp), %xmm1
subpd 0x120(%rsp), %xmm1
movapd %xmm1, 0x20(%rsp)
movsd 0xa0(%rsp), %xmm3
subsd 0x58(%rsp), %xmm3
movsd %xmm3, 0x30(%rsp)
movq 0x3d8(%r14), %rax
movl (%rax,%r13,4), %eax
cmpq $0x4, %rax
ja 0x11fe0
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
mulsd %xmm2, %xmm2
jmpq *%rax
leaq 0x20(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x76cc
ucomisd 0x6140(%rip), %xmm0     # 0x18010
jae 0x11fbe
jmp 0x11fe0
leaq 0x20(%rsp), %rdi
leaq 0x60(%rsp), %rsi
movsd %xmm2, 0x8(%rsp)
movsd %xmm0, 0xc0(%rsp)
callq 0x76cc
movsd 0xc0(%rsp), %xmm2
movapd %xmm0, %xmm3
xorpd %xmm0, %xmm0
ucomisd %xmm3, %xmm0
ja 0x11fe0
ucomisd %xmm2, %xmm3
ja 0x11fe0
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movsd %xmm3, 0x40(%rsp)
callq 0x76cc
movsd 0x40(%rsp), %xmm1
mulsd %xmm1, %xmm1
divsd 0xc0(%rsp), %xmm1
subsd %xmm1, %xmm0
jmp 0x11f5d
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movsd %xmm2, 0x8(%rsp)
callq 0x76cc
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x11fbe
jmp 0x11fe0
movapd 0x110(%rsp), %xmm2
subpd 0x40(%rsp), %xmm2
mulpd %xmm2, %xmm1
movapd %xmm1, 0x20(%rsp)
movsd 0xa0(%rsp), %xmm2
subsd 0xb8(%rsp), %xmm2
mulsd %xmm2, %xmm3
movsd %xmm3, 0x30(%rsp)
xorpd %xmm2, %xmm2
ucomisd %xmm1, %xmm2
jb 0x11fe0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
ucomisd %xmm1, %xmm2
jb 0x11fe0
xorpd %xmm1, %xmm1
ucomisd %xmm3, %xmm1
jb 0x11fe0
movq 0xb0(%rsp), %rax
movsd 0x40(%rax), %xmm0
leaq 0x200(%rsp), %rdi
movq 0xe0(%rsp), %rsi
callq 0x7570
incq %r13
addq $0x1f4, %r15            # imm = 0x1F4
addq $0xe, %r12
jmp 0x11c92
movl 0x1c(%rsp), %r12d
incl %r12d
movl 0x14(%rsp), %ebx
movl 0x18(%rsp), %r13d
jmp 0x11b29
incl %r13d
jmp 0x11b10
incl %ebx
jmp 0x11af8
leaq 0x8(%r14), %rbx
leaq 0x7eda(%rip), %rdi      # 0x19efd
leaq 0x9569(%rip), %rsi      # 0x1b593
callq 0x8820
movq %rax, %r15
leaq 0x9985(%rip), %rdi      # 0x1b9be
callq 0x8566
movq %rax, 0x40(%rsp)
leaq 0x130(%rsp), %rdi
movl $0xc8, %edx
xorl %esi, %esi
callq 0x20d0
leaq 0x200(%rsp), %rbp
movl $0xc8, %edx
movq %rbp, %rdi
xorl %esi, %esi
callq 0x20d0
leaq 0x130(%rsp), %r12
movq %r12, %rdi
movl $0xc8, %esi
movq %r15, %rdx
callq 0x2120
testq %rax, %rax
je 0x122bd
movq %r12, %rdi
callq 0x841c
movq %r12, %rdi
leaq 0xafab(%rip), %rsi      # 0x1d04c
pushq $0x13
popq %rdx
callq 0x2190
testl %eax, %eax
je 0x12248
movq %r12, %rdi
leaq 0xafa4(%rip), %rsi      # 0x1d05f
pushq $0x1a
popq %rdx
callq 0x2190
testl %eax, %eax
je 0x12250
movq %r12, %rdi
leaq 0xafa4(%rip), %rsi      # 0x1d079
pushq $0x17
popq %rdx
callq 0x2190
testl %eax, %eax
je 0x122a5
movq %r12, %rdi
leaq 0xafa1(%rip), %rsi      # 0x1d090
pushq $0x1b
popq %rdx
callq 0x2190
testl %eax, %eax
jne 0x1206e
andq $0x0, 0x90(%rsp)
andq $0x0, 0x70(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x80(%rsp)
andq $0x0, 0x30(%rsp)
movapd %xmm0, 0x60(%rsp)
movapd %xmm0, 0x20(%rsp)
movslq 0xc(%r14), %r12
imulq $0x238, %r12, %r13      # imm = 0x238
movslq (%rbx), %rax
cmpq %rax, %r12
jge 0x1206e
movq %r15, %rdi
pushq $0x9
popq %rsi
movq 0x40(%rsp), %rdx
leaq 0x80(%rsp), %rcx
leaq 0x88(%rsp), %r8
leaq 0x90(%rsp), %r9
xorl %eax, %eax
leaq 0x30(%rsp), %r10
pushq %r10
leaq 0x30(%rsp), %r10
pushq %r10
leaq 0x30(%rsp), %r10
pushq %r10
leaq 0x88(%rsp), %r10
pushq %r10
leaq 0x88(%rsp), %r10
pushq %r10
leaq 0x88(%rsp), %r10
pushq %r10
callq 0x89d6
addq $0x30, %rsp
movsd 0x90(%rsp), %xmm0
unpcklpd 0x60(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0]
movsd 0x5e4c(%rip), %xmm1     # 0x18008
cmpneqpd %xmm1, %xmm0
movupd 0x68(%rsp), %xmm1
movapd 0x20(%rsp), %xmm2
xorpd %xmm3, %xmm3
cmpneqpd %xmm3, %xmm2
cmpneqpd %xmm3, %xmm1
packssdw %xmm2, %xmm1
movapd 0x80(%rsp), %xmm2
cmpneqpd 0x934f(%rip), %xmm2     # 0x1b540
packssdw %xmm0, %xmm2
packssdw %xmm1, %xmm2
pmovmskb %xmm2, %eax
testl %eax, %eax
jne 0x12213
movsd 0x30(%rsp), %xmm0
ucomisd 0x5e01(%rip), %xmm0     # 0x18010
jne 0x12213
jnp 0x12239
movq 0x18(%r14), %r8
leaq (%r8,%r13), %rdi
addq $0x20, %rdi
addq %r13, %r8
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
leaq 0x20(%rsp), %rcx
callq 0x8e9f
incq %r12
addq $0x238, %r13            # imm = 0x238
jmp 0x12138
movl 0xc(%r14), %esi
xorl %edi, %edi
jmp 0x122ad
movslq 0xc(%r14), %r12
imulq $0x238, %r12, %r13      # imm = 0x238
movslq (%rbx), %rax
cmpq %rax, %r12
jge 0x1206e
movq %r15, %rdi
pushq $0x1
popq %rsi
leaq 0x93aa(%rip), %rdx      # 0x1b61e
movq %rbp, %rcx
xorl %eax, %eax
callq 0x89d6
movq 0x18(%r14), %rsi
addq %r13, %rsi
movq %rbp, %rdi
callq 0x17130
movq 0x18(%r14), %rdi
addq %r13, %rdi
callq 0x8ad8
incq %r12
addq $0x238, %r13            # imm = 0x238
jmp 0x1225b
movl 0x8(%r14), %esi
movl 0xc(%r14), %edi
movq %r15, %rdx
movq %rbx, %rcx
callq 0xc1a5
jmp 0x1206e
movq %r15, %rdi
callq 0x2080
movl 0x50(%r14), %edi
leaq 0x8(%r14), %rbx
movq %rbx, %rsi
callq 0x9572
leaq 0xadcf(%rip), %rdi      # 0x1d0ab
leaq 0x8935(%rip), %rsi      # 0x1ac18
callq 0x8820
movq %rax, %r15
leaq 0x6584(%rip), %rdi      # 0x18876
pushq $0x50
popq %r13
pushq $0x1
popq %rbp
movq %r13, %rsi
movq %rbp, %rdx
movq %rax, %rcx
callq 0x2210
leaq 0x65b9(%rip), %r12      # 0x188c7
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x2210
leaq 0xae09(%rip), %rdi      # 0x1d12f
movq %r13, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x2210
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x2210
leaq 0xae34(%rip), %rdi      # 0x1d180
movq %r13, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x2210
leaq 0x6515(%rip), %rdi      # 0x18876
movq %r13, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x2210
movslq 0xc(%r14), %r13
imulq $0x238, %r13, %rbp      # imm = 0x238
addq $0x1f8, %rbp            # imm = 0x1F8
leaq 0xad39(%rip), %r12      # 0x1d0c1
movslq (%rbx), %rax
cmpq %rax, %r13
jge 0x124ab
movq 0x18(%r14), %rax
movsd -0x1d8(%rax,%rbp), %xmm0
movsd %xmm0, 0x40(%rsp)
movsd -0x1d0(%rax,%rbp), %xmm0
movsd %xmm0, 0x58(%rsp)
movsd -0x1c8(%rax,%rbp), %xmm2
movsd -0x1c0(%rax,%rbp), %xmm3
movsd -0x1a0(%rax,%rbp), %xmm4
movsd -0x180(%rax,%rbp), %xmm5
movsd -0x1b8(%rax,%rbp), %xmm6
movsd -0x198(%rax,%rbp), %xmm7
movsd -0x190(%rax,%rbp), %xmm8
movsd -0x28(%rax,%rbp), %xmm9
movsd -0x18(%rax,%rbp), %xmm10
movsd -0x8(%rax,%rbp), %xmm11
movsd -0x20(%rax,%rbp), %xmm12
movsd -0x10(%rax,%rbp), %xmm13
movsd (%rax,%rbp), %xmm14
movsd -0x50(%rax,%rbp), %xmm15
movsd -0x38(%rax,%rbp), %xmm1
movsd -0x30(%rax,%rbp), %xmm0
subq $0x50, %rsp
movsd %xmm0, 0x48(%rsp)
movsd %xmm1, 0x40(%rsp)
movsd %xmm15, 0x38(%rsp)
movsd %xmm14, 0x30(%rsp)
movsd %xmm13, 0x28(%rsp)
movsd %xmm12, 0x20(%rsp)
movsd %xmm11, 0x18(%rsp)
movsd %xmm10, 0x10(%rsp)
movsd %xmm9, 0x8(%rsp)
movsd %xmm8, (%rsp)
movq %r15, %rdi
movq %r12, %rsi
movsd 0x90(%rsp), %xmm0
movsd 0xa8(%rsp), %xmm1
movb $0x8, %al
callq 0x2160
addq $0x50, %rsp
incq %r13
addq $0x238, %rbp            # imm = 0x238
jmp 0x12388
leaq 0x63c4(%rip), %rdi      # 0x18876
pushq $0x50
popq %rsi
pushq $0x1
popq %rdx
movq %r15, %rcx
callq 0x2210
movq %r15, %rdi
callq 0x2080
movq %r14, %rdi
movq 0xb0(%rsp), %r15
movq %r15, %rsi
callq 0x104f8
xorl %ebx, %ebx
xorl %edi, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x233c
movl 0x8(%r14), %eax
testl %eax, %eax
cmovlel %ebx, %eax
imulq $0x238, %rax, %rax      # imm = 0x238
movsd 0xab26(%rip), %xmm0     # 0x1d028
xorpd %xmm1, %xmm1
movsd 0xab22(%rip), %xmm2     # 0x1d030
cmpq %rbx, %rax
je 0x1268f
movq 0x18(%r14), %rcx
movsd 0x1a8(%rcx,%rbx), %xmm3
ucomisd %xmm0, %xmm3
jbe 0x12683
movl $0x2, 0xc(%rcx,%rbx)
movsd 0x80(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0x88(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0x90(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0xb0(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0xb8(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0xc0(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0xf8(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0x100(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0x108(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0x110(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0x118(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0x120(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0x140(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
movsd 0x148(%rcx,%rbx), %xmm4
ucomisd %xmm1, %xmm4
jne 0x12683
jp 0x12683
ucomisd %xmm2, %xmm3
jbe 0x12683
movsd 0x150(%rcx,%rbx), %xmm3
ucomisd %xmm1, %xmm3
jne 0x12683
jp 0x12683
movl $0x1, 0xc(%rcx,%rbx)
addq $0x238, %rbx            # imm = 0x238
jmp 0x1250e
movq 0xd0(%rsp), %rbx
cmpl $0x0, (%rbx)
jne 0x126ce
xorl %edi, %edi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0xbfe8
pushq $0x3
popq %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0xbfe8
pushq $0x4
popq %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0xbfe8
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq