// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/src/Driver.cpp
// Function: t2::DriverInitData(t2::Driver*)
bool DriverInitData(Driver* self)
{
  ProfilerScope prof_scope("Tundra InitData", 0);

  DigestCacheInit(&self->m_DigestCache, MB(128));

  if (!DriverPrepareDag(self, s_DagFileName))
    return false;

  DigestCacheOpen(&self->m_DigestCache, self->m_DagData->m_DigestCacheFileName);

  LoadFrozenData<StateData>(self->m_DagData->m_StateFileName, &self->m_StateFile, &self->m_StateData);

  LoadFrozenData<ScanData>(self->m_DagData->m_ScanCacheFileName, &self->m_ScanFile, &self->m_ScanData);

  ScanCacheSetCache(&self->m_ScanCache, self->m_ScanData);

  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
movl $0x0, 0xc(%rsp)
leaq 0x141ff(%rip), %rax     # 0x1d680
cmpb $0x1, (%rax)
jne 0x9494
leaq 0xd12c(%rip), %rdi      # 0x165b9
xorl %esi, %esi
callq 0xf4a3
leaq 0x268(%rbx), %r14
movl $0x8000000, %esi        # imm = 0x8000000
movq %r14, %rdi
callq 0x124bc
movq 0x141b9(%rip), %r15     # 0x1d668
cmpb $0x0, 0xba(%rbx)
jne 0x96a0
leaq 0x40(%rbx), %rsi
leaq 0xa0(%rbx), %r12
movq %r15, %rdi
movq %rsi, 0x58(%rsp)
movq %r12, %rdx
callq 0xb56d
testb %al, %al
je 0x96a0
movq (%r12), %r12
leaq 0xd370(%rip), %rsi      # 0x1685a
movl $0x8, %edi
xorl %eax, %eax
callq 0x5d74
cmpl $0x41, 0x10(%r12)
jl 0x951b
leaq 0xd37b(%rip), %rsi      # 0x16880
movl $0x1, %edi
movl $0x40, %edx
xorl %eax, %eax
callq 0x5d74
jmp 0x9696
movq %r15, 0x48(%rsp)
movq %r14, 0x40(%rsp)
movslq 0x54(%r12), %rax
testq %rax, %rax
leaq 0x54(%rax,%r12), %r14
cmoveq %rax, %r14
movq %r12, 0x50(%rsp)
movslq 0x50(%r12), %r15
testq %r15, %r15
je 0x9586
shlq $0x4, %r15
addq %r14, %r15
movq %r14, %rbp
movslq (%r14), %rax
leaq (%rax,%rbp), %r13
testq %rax, %rax
cmoveq %rax, %r13
movq 0x8(%r14), %r12
leaq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0xd860
cmpq %r12, 0x20(%rsp)
jne 0x9625
addq $0x10, %r14
addq $0x10, %rbp
cmpq %r15, %r14
jne 0x954f
movq 0x50(%rsp), %rcx
movslq 0x5c(%rcx), %rax
testq %rax, %rax
leaq 0x5c(%rax,%rcx), %r13
cmoveq %rax, %r13
movslq 0x58(%rcx), %rax
testq %rax, %rax
movq 0x48(%rsp), %r15
je 0x9608
leaq 0x8(%rbx), %r12
movq %r13, %rbp
addq $0x4, %rbp
shlq $0x2, %rax
leaq (%rax,%rax,4), %r14
movslq -0x4(%rbp), %rax
leaq (%rax,%r13), %rdi
testq %rax, %rax
cmoveq %rax, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x12f96
movq %rax, 0x60(%rsp)
movq %rdx, 0x68(%rsp)
movdqu 0x60(%rsp), %xmm0
movdqu (%rbp), %xmm1
pcmpeqb %xmm0, %xmm1
pmovmskb %xmm1, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x9647
addq $0x14, %rbp
addq $0x14, %r13
addq $-0x14, %r14
jne 0x95bc
leaq 0xd14c(%rip), %rsi      # 0x1675b
movl $0x8, %edi
xorl %eax, %eax
callq 0x5d74
movq 0x40(%rsp), %r14
jmp 0x96d2
leaq 0xd26f(%rip), %rsi      # 0x1689b
movl $0x4, %edi
movq %r13, %rdx
xorl %eax, %eax
callq 0x5d74
movq 0x40(%rsp), %r14
movq 0x48(%rsp), %r15
jmp 0x9696
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0xddf3
movq 0x40(%rsp), %r14
leaq 0x70(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0xddf3
movslq -0x4(%rbp), %rax
addq %rax, %r13
testq %rax, %rax
cmoveq %rax, %r13
leaq 0xd247(%rip), %rsi      # 0x168c4
leaq 0x10(%rsp), %rcx
leaq 0x70(%rsp), %r8
movl $0x4, %edi
movq %r13, %rdx
xorl %eax, %eax
callq 0x5d74
movq 0x58(%rsp), %rdi
callq 0xe9a4
movq 0x13fb9(%rip), %rdi     # 0x1d660
movq %r15, %rsi
callq 0x648b
testb %al, %al
je 0x9766
leaq 0x40(%rbx), %rsi
leaq 0xa0(%rbx), %rdx
movq %r15, %rdi
callq 0xb56d
testb %al, %al
je 0x976d
movq 0xa0(%rbx), %rax
movslq 0x7c(%rax), %rcx
testq %rcx, %rcx
leaq 0x7c(%rcx,%rax), %rsi
cmoveq %rcx, %rsi
movq %r14, %rdi
callq 0x12554
movq 0xa0(%rbx), %rax
movslq 0x6c(%rax), %rcx
testq %rcx, %rcx
leaq 0x6c(%rcx,%rax), %r14
cmoveq %rcx, %r14
leaq 0x10(%rsp), %rdi
callq 0xe994
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0xea3b
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0x9787
movl 0x18(%rsp), %r8d
leaq 0xd092(%rip), %rsi      # 0x167c7
movl $0x8, %edi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x5d74
movq 0x18(%rsp), %rcx
cmpq $0xf, %rcx
ja 0x979f
movl $0x10, %r8d
leaq 0xd091(%rip), %rsi      # 0x167f0
movl $0x2, %edi
jmp 0x97de
xorl %ebp, %ebp
jmp 0x98f1
xorl %ebp, %ebp
leaq 0xd023(%rip), %rsi      # 0x16799
movl $0x1, %edi
xorl %eax, %eax
callq 0x5d74
jmp 0x98f1
leaq 0xd0bc(%rip), %rsi      # 0x1684a
movl $0x8, %edi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5d74
jmp 0x97e8
movl (%r15), %ecx
cmpl $0x6d99231c, %ecx       # imm = 0x6D99231C
jne 0x97cc
leaq 0x60(%rbx), %rax
movdqu 0x10(%rsp), %xmm0
movdqu 0x20(%rsp), %xmm1
movdqu %xmm1, 0x10(%rax)
movdqu %xmm0, (%rax)
movq %r15, 0xa8(%rbx)
jmp 0x97f2
movl $0x6d99231c, %r8d       # imm = 0x6D99231C
leaq 0xd045(%rip), %rsi      # 0x1681e
movl $0x8, %edi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5d74
leaq 0x10(%rsp), %rdi
callq 0xe99f
movq 0xa0(%rbx), %rax
movslq 0x74(%rax), %rcx
testq %rcx, %rcx
leaq 0x74(%rcx,%rax), %r14
cmoveq %rcx, %r14
leaq 0x10(%rsp), %rdi
callq 0xe994
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0xea3b
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0x9867
movl 0x18(%rsp), %r8d
leaq 0xcf91(%rip), %rsi      # 0x167c7
movl $0x8, %edi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x5d74
movq 0x18(%rsp), %rcx
cmpq $0x13, %rcx
ja 0x987f
movl $0x14, %r8d
leaq 0xcf90(%rip), %rsi      # 0x167f0
movl $0x2, %edi
jmp 0x98c1
leaq 0xcfdc(%rip), %rsi      # 0x1684a
movl $0x8, %edi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5d74
jmp 0x98cb
movl (%r15), %ecx
cmpl $0x6d072210, %ecx       # imm = 0x6D072210
jne 0x98af
leaq 0x80(%rbx), %rax
movdqu 0x10(%rsp), %xmm0
movdqu 0x20(%rsp), %xmm1
movdqu %xmm1, 0x10(%rax)
movdqu %xmm0, (%rax)
movq %r15, 0xb0(%rbx)
jmp 0x98dc
movl $0x6d072210, %r8d       # imm = 0x6D072210
leaq 0xcf62(%rip), %rsi      # 0x1681e
movl $0x8, %edi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5d74
leaq 0x10(%rsp), %rdi
callq 0xe99f
movq 0xb0(%rbx), %r15
addq $0x150, %rbx            # imm = 0x150
movb $0x1, %bpl
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf695
leaq 0xc(%rsp), %rdi
callq 0x5a06
movl %ebp, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9913
jmp 0x9913
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x5a06
movq %rbx, %rdi
callq 0x35e0