// File: /workspace/github_c_makefile_star2_O0/mohuangrui[P]ArtraCFD/initialization.c
// Function: InitializeFieldData
static void InitializeFieldData(Space *space, const Model *model)
{
    const Partition *const part = &(space->part);
    Node *const node = space->node;
    RealVec pc = {0.0}; /* coordinates of current node */
    int idx = 0; /* linear array index math variable */
    for (int k = part->ns[PAL][Z][MIN]; k < part->ns[PAL][Z][MAX]; ++k) {
        for (int j = part->ns[PAL][Y][MIN]; j < part->ns[PAL][Y][MAX]; ++j) {
            for (int i = part->ns[PAL][X][MIN]; i < part->ns[PAL][X][MAX]; ++i) {
                idx = IndexNode(k, j, i, part->n[Y], part->n[X]);
                node[idx].did = NONE;
                node[idx].fid = NONE;
                node[idx].lid = NONE;
                node[idx].gst = NONE;
                memset(node[idx].U, 1, DIMT * sizeof(*node[idx].U));
                if (!InPartBox(k, j, i, part->ns[PIN])) {
                    continue;
                }
                /* geometric field initializer */
                node[idx].did = 0;
                node[idx].fid = 0;
                node[idx].lid = 0;
                node[idx].gst = 0;
                /* data field initializer */
                pc[X] = MapPoint(i, part->domain[X][MIN], part->d[X], part->ng[X]);
                pc[Y] = MapPoint(j, part->domain[Y][MIN], part->d[Y], part->ng[Y]);
                pc[Z] = MapPoint(k, part->domain[Z][MIN], part->d[Z], part->ng[Z]);
                for (int n = 0; n < part->nIC; ++n) {
                    ApplyInitializer(n, pc, node[idx].U[TO], part, model);
                }
            }
        }
    }
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
addq $0x28, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x20d0
movl $0x0, -0x44(%rbp)
movq -0x18(%rbp), %rax
movl 0x1c8(%rax), %eax
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0x1cc(%rcx), %eax
jge 0x1b34f
movq -0x18(%rbp), %rax
movl 0x1c0(%rax), %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0x1c4(%rcx), %eax
jge 0x1b33f
movq -0x18(%rbp), %rax
movl 0x1b8(%rax), %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0x1bc(%rcx), %eax
jge 0x1b32f
movl -0x48(%rbp), %edi
movl -0x4c(%rbp), %esi
movl -0x50(%rbp), %edx
movq -0x18(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x18(%rbp), %rax
movl 0xc(%rax), %r8d
callq 0x9500
movl %eax, -0x44(%rbp)
movq -0x20(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x20(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
movl $0xffffffff, 0x4(%rax)  # imm = 0xFFFFFFFF
movq -0x20(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
movl $0xffffffff, 0x8(%rax)  # imm = 0xFFFFFFFF
movq -0x20(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
movl $0xffffffff, 0xc(%rax)  # imm = 0xFFFFFFFF
movq -0x20(%rbp), %rdi
movslq -0x44(%rbp), %rax
imulq $0x88, %rax, %rax
addq %rax, %rdi
addq $0x10, %rdi
movl $0x1, %esi
movl $0x78, %edx
callq 0x20d0
movl -0x48(%rbp), %edi
movl -0x4c(%rbp), %esi
movl -0x50(%rbp), %edx
movq -0x18(%rbp), %rcx
addq $0x68, %rcx
callq 0x9530
cmpl $0x0, %eax
jne 0x1b1f6
jmp 0x1b321
movq -0x20(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x4(%rax)
movq -0x20(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x8(%rax)
movq -0x20(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0x88, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0xc(%rax)
movl -0x50(%rbp), %edi
movq -0x18(%rbp), %rax
movsd 0x3c8(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd 0x30(%rax), %xmm1
movq -0x18(%rbp), %rax
movl 0x18(%rax), %esi
callq 0x9690
movsd %xmm0, -0x40(%rbp)
movl -0x4c(%rbp), %edi
movq -0x18(%rbp), %rax
movsd 0x3d8(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd 0x38(%rax), %xmm1
movq -0x18(%rbp), %rax
movl 0x1c(%rax), %esi
callq 0x9690
movsd %xmm0, -0x38(%rbp)
movl -0x48(%rbp), %edi
movq -0x18(%rbp), %rax
movsd 0x3e8(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd 0x40(%rax), %xmm1
movq -0x18(%rbp), %rax
movl 0x20(%rax), %esi
callq 0x9690
movsd %xmm0, -0x30(%rbp)
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0x3a8(%rcx), %eax
jge 0x1b31f
movl -0x54(%rbp), %edi
leaq -0x40(%rbp), %rsi
movq -0x20(%rbp), %rdx
movslq -0x44(%rbp), %rax
imulq $0x88, %rax, %rax
addq %rax, %rdx
addq $0x10, %rdx
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %r8
callq 0x1b770
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x1b2db
jmp 0x1b321
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x1b11b
jmp 0x1b331
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x1b0fb
jmp 0x1b341
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x1b0db
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)