// File: /workspace/github_c_makefile_star2_O2/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
andl $0x0, 0xc(%rsp)
leaq 0xba0c(%rip), %rdi      # 0x145b7
xorl %esi, %esi
callq 0x551c
leaq 0x268(%rbx), %r14
movl $0x8000000, %esi        # imm = 0x8000000
movq %r14, %rdi
callq 0x10de4
movq 0x14a9b(%rip), %r15     # 0x1d668
cmpb $0x0, 0xba(%rbx)
jne 0x8db2
leaq 0x40(%rbx), %rsi
leaq 0xa0(%rbx), %r12
movq %r15, %rdi
movq %rsi, 0x58(%rsp)
movq %r12, %rdx
callq 0xa531
testb %al, %al
je 0x8db2
movq (%r12), %r12
leaq 0xbc50(%rip), %rsi      # 0x14858
pushq $0x8
popq %rdi
xorl %eax, %eax
callq 0x5981
cmpl $0x41, 0x10(%r12)
jl 0x8c33
leaq 0xbc5d(%rip), %rsi      # 0x1487e
pushq $0x1
popq %rdi
pushq $0x40
popq %rdx
xorl %eax, %eax
callq 0x5981
jmp 0x8da8
movq %r15, 0x48(%rsp)
movq %r14, 0x40(%rsp)
movslq 0x54(%r12), %rax
testq %rax, %rax
leaq 0x54(%rax,%r12), %rbp
cmoveq %rax, %rbp
movq %r12, 0x50(%rsp)
movslq 0x50(%r12), %r15
shlq $0x4, %r15
movq %rbp, %r14
testq %r15, %r15
je 0x8ca2
movq %rbx, %r12
movslq (%r14), %rax
leaq (%rax,%rbp), %r13
testq %rax, %rax
cmoveq %rax, %r13
movq 0x8(%r14), %rbx
leaq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0xc948
cmpq %rbx, 0x20(%rsp)
jne 0x8d1d
addq $0x10, %r14
addq $0x10, %rbp
addq $-0x10, %r15
movq %r12, %rbx
jmp 0x8c5f
movq 0x50(%rsp), %rcx
movslq 0x5c(%rcx), %rax
testq %rax, %rax
leaq 0x5c(%rax,%rcx), %r13
cmoveq %rax, %r13
movslq 0x58(%rcx), %rax
leaq 0x8(%rbx), %r12
leaq 0x4(%r13), %rbp
imulq $0x14, %rax, %r14
movq 0x48(%rsp), %r15
testq %r14, %r14
je 0x8d40
movslq -0x4(%rbp), %rax
leaq (%rax,%r13), %rdi
testq %rax, %rax
cmoveq %rax, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x116ee
movq %rax, 0x60(%rsp)
movq %rdx, 0x68(%rsp)
movdqu (%rbp), %xmm0
movdqu 0x60(%rsp), %xmm1
pcmpeqb %xmm0, %xmm1
pmovmskb %xmm1, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x8d5b
addq $0x14, %rbp
addq $0x14, %r13
addq $-0x14, %r14
jmp 0x8ccc
leaq 0xbb75(%rip), %rsi      # 0x14899
pushq $0x4
popq %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x5981
movq 0x40(%rsp), %r14
movq 0x48(%rsp), %r15
movq %r12, %rbx
jmp 0x8da8
leaq 0xba12(%rip), %rsi      # 0x14759
pushq $0x8
popq %rdi
xorl %eax, %eax
callq 0x5981
movq 0x40(%rsp), %r14
jmp 0x8de4
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0xce31
movq 0x40(%rsp), %r14
leaq 0x70(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0xce31
movslq -0x4(%rbp), %rax
addq %rax, %r13
testq %rax, %rax
cmoveq %rax, %r13
leaq 0xbb31(%rip), %rsi      # 0x148c2
pushq $0x4
popq %rdi
leaq 0x10(%rsp), %rcx
leaq 0x70(%rsp), %r8
movq %r13, %rdx
xorl %eax, %eax
callq 0x5981
movq 0x58(%rsp), %rdi
callq 0xd8b4
movq 0x148a7(%rip), %rdi     # 0x1d660
movq %r15, %rsi
callq 0x5f7d
testb %al, %al
je 0x8e74
leaq 0x40(%rbx), %rsi
leaq 0xa0(%rbx), %rdx
movq %r15, %rdi
callq 0xa531
testb %al, %al
je 0x8e7b
movq 0xa0(%rbx), %rax
movslq 0x7c(%rax), %rcx
testq %rcx, %rcx
leaq 0x7c(%rcx,%rax), %rsi
cmoveq %rcx, %rsi
movq %r14, %rdi
callq 0x10e5e
movq 0xa0(%rbx), %rax
movslq 0x6c(%rax), %rcx
testq %rcx, %rcx
leaq 0x6c(%rcx,%rax), %r14
cmoveq %rcx, %r14
leaq 0x10(%rsp), %rdi
callq 0xd8a4
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0xd94b
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0x8e93
movl 0x18(%rsp), %r8d
leaq 0xb97e(%rip), %rsi      # 0x147c5
pushq $0x8
popq %rbp
movl %ebp, %edi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x5981
movq 0x18(%rsp), %rcx
cmpq $0xf, %rcx
ja 0x8ea9
pushq $0x2
popq %rbp
pushq $0x10
popq %r8
leaq 0xb97c(%rip), %rsi      # 0x147ee
jmp 0x8ee3
xorl %ebp, %ebp
jmp 0x8fef
xorl %ebp, %ebp
leaq 0xb913(%rip), %rsi      # 0x14797
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x5981
jmp 0x8fef
leaq 0xb9ae(%rip), %rsi      # 0x14848
pushq $0x8
popq %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5981
jmp 0x8eef
movl (%r15), %ecx
cmpl $0x6d99231c, %ecx       # imm = 0x6D99231C
jne 0x8ed6
leaq 0x60(%rbx), %rax
movdqu 0x10(%rsp), %xmm0
movdqu 0x20(%rsp), %xmm1
movdqu %xmm1, 0x10(%rax)
movdqu %xmm0, (%rax)
movq %r15, 0xa8(%rbx)
jmp 0x8ef9
movl $0x6d99231c, %r8d       # imm = 0x6D99231C
leaq 0xb939(%rip), %rsi      # 0x1481c
movl %ebp, %edi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5981
leaq 0x10(%rsp), %rdi
callq 0xd8af
movq 0xa0(%rbx), %rax
movslq 0x74(%rax), %rcx
testq %rcx, %rcx
leaq 0x74(%rcx,%rax), %r14
cmoveq %rcx, %r14
leaq 0x10(%rsp), %rdi
callq 0xd8a4
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0xd94b
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0x8f6a
movl 0x18(%rsp), %r8d
leaq 0xb888(%rip), %rsi      # 0x147c5
pushq $0x8
popq %rbp
movl %ebp, %edi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x5981
movq 0x18(%rsp), %rcx
cmpq $0x13, %rcx
ja 0x8f80
pushq $0x14
popq %r8
leaq 0xb889(%rip), %rsi      # 0x147ee
pushq $0x2
popq %rbp
jmp 0x8fbd
leaq 0xb8d7(%rip), %rsi      # 0x14848
pushq $0x8
popq %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5981
jmp 0x8fc9
movl (%r15), %ecx
cmpl $0x6d072210, %ecx       # imm = 0x6D072210
jne 0x8fb0
leaq 0x80(%rbx), %rax
movdqu 0x10(%rsp), %xmm0
movdqu 0x20(%rsp), %xmm1
movdqu %xmm1, 0x10(%rax)
movdqu %xmm0, (%rax)
movq %r15, 0xb0(%rbx)
jmp 0x8fda
movl $0x6d072210, %r8d       # imm = 0x6D072210
leaq 0xb85f(%rip), %rsi      # 0x1481c
movl %ebp, %edi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5981
leaq 0x10(%rsp), %rdi
callq 0xd8af
movq 0xb0(%rbx), %r15
addq $0x150, %rbx            # imm = 0x150
movb $0x1, %bpl
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe4a3
leaq 0xc(%rsp), %rdi
callq 0x5488
movl %ebp, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9011
jmp 0x9011
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x5488
movq %rbx, %rdi
callq 0x35e0