// File: /workspace/github_c_makefile_star2_O1/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 $0x88, %rsp
movq %rdi, %rbx
movl $0x0, 0x4(%rsp)
leaq 0x13e47(%rip), %rax     # 0x1d680
cmpb $0x1, (%rax)
jne 0x984c
leaq 0xcd84(%rip), %rdi      # 0x165c9
xorl %esi, %esi
callq 0xfb72
leaq 0x268(%rbx), %r15
movl $0x8000000, %esi        # imm = 0x8000000
movq %r15, %rdi
callq 0x12bcc
movq 0x13e01(%rip), %r12     # 0x1d668
cmpb $0x0, 0xba(%rbx)
jne 0x9ac4
leaq 0x40(%rbx), %rsi
leaq 0xa0(%rbx), %r13
movq %r12, %rdi
movq %rsi, 0x58(%rsp)
movq %r13, %rdx
callq 0xb903
testb %al, %al
je 0x9ac4
movq (%r13), %r13
leaq 0xcfc8(%rip), %rsi      # 0x1686a
movl $0x8, %edi
xorl %eax, %eax
callq 0x5ef0
cmpl $0x41, 0x10(%r13)
jl 0x98d2
leaq 0xcfd4(%rip), %rsi      # 0x16890
movl $0x1, %edi
movl $0x40, %edx
xorl %eax, %eax
callq 0x5ef0
jmp 0x9aba
movq %r12, 0x8(%rsp)
movq %r15, 0x48(%rsp)
movslq 0x54(%r13), %rax
testq %rax, %rax
leaq 0x54(%rax,%r13), %r14
cmoveq %rax, %r14
movq %r13, 0x50(%rsp)
movslq 0x50(%r13), %r15
testq %r15, %r15
je 0x993b
shlq $0x4, %r15
addq %r14, %r15
movq %r14, %r12
movslq (%r14), %rax
leaq (%r12,%rax), %rbp
testq %rax, %rax
cmoveq %rax, %rbp
movq 0x8(%r14), %r13
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0xdd8c
cmpq %r13, 0x20(%rsp)
jne 0x99b6
addq $0x10, %r14
addq $0x10, %r12
cmpq %r15, %r14
jne 0x9904
movq 0x50(%rsp), %rcx
movslq 0x5c(%rcx), %rax
testq %rax, %rax
leaq 0x5c(%rax,%rcx), %r13
cmoveq %rax, %r13
movslq 0x58(%rcx), %r14
testq %r14, %r14
sete %al
movq 0x48(%rsp), %r15
je 0x9a99
leaq 0x8(%rbx), %rbp
movslq (%r13), %rdi
leaq (%rdi,%r13), %rax
testq %rdi, %rdi
cmovneq %rax, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x136ed
movq 0x8(%rsp), %r12
movq %rax, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movdqu 0x38(%rsp), %xmm0
movdqu 0x4(%r13), %xmm1
pcmpeqb %xmm0, %xmm1
pmovmskb %xmm1, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
je 0x99db
leaq 0x4(%r13), %rsi
jmp 0x9a50
leaq 0xceee(%rip), %rsi      # 0x168ab
movl $0x4, %edi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x5ef0
movq 0x48(%rsp), %r15
movq 0x8(%rsp), %r12
jmp 0x9aba
leaq (%r14,%r14,4), %rax
leaq -0x14(,%rax,4), %r14
xorl %r12d, %r12d
cmpq %r12, %r14
sete %al
je 0x9a99
leaq (%r12,%r13), %rax
movslq 0x14(%r13,%r12), %rcx
testq %rcx, %rcx
leaq 0x14(%rcx,%rax), %rdi
cmoveq %rcx, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x136ed
movq %rax, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movdqu 0x38(%rsp), %xmm0
movdqu 0x18(%r13,%r12), %xmm1
pcmpeqb %xmm0, %xmm1
pmovmskb %xmm1, %eax
addq $0x14, %r12
cmpl $0xffff, %eax           # imm = 0xFFFF
je 0x99ea
leaq (%r12,%r13), %rsi
addq $0x4, %rsi
addq %r12, %r13
movq 0x8(%rsp), %r12
leaq 0x10(%rsp), %rdi
callq 0xe2cf
leaq 0x60(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0xe2cf
movslq (%r13), %rax
addq %rax, %r13
testq %rax, %rax
cmoveq %rax, %r13
leaq 0xce56(%rip), %rsi      # 0x168d4
leaq 0x10(%rsp), %rcx
leaq 0x60(%rsp), %r8
movl $0x4, %edi
movq %r13, %rdx
xorl %eax, %eax
callq 0x5ef0
jmp 0x9aba
testb %al, %al
movq 0x8(%rsp), %r12
je 0x9aba
movb $0x1, %bpl
leaq 0xccbf(%rip), %rsi      # 0x1676b
movl $0x8, %edi
xorl %eax, %eax
callq 0x5ef0
jmp 0x9b0a
movq 0x58(%rsp), %rdi
callq 0xf084
movq 0x13b95(%rip), %rdi     # 0x1d660
movq %r12, %rsi
callq 0x661a
testb %al, %al
je 0x9b08
leaq 0x40(%rbx), %rsi
leaq 0xa0(%rbx), %rdx
movq %r12, %rdi
callq 0xb903
movb $0x1, %bpl
testb %al, %al
jne 0x9b0a
xorl %ebp, %ebp
leaq 0xccaf(%rip), %rsi      # 0x167a9
movl $0x1, %edi
xorl %eax, %eax
callq 0x5ef0
jmp 0x9b0a
xorl %ebp, %ebp
testb %bpl, %bpl
je 0x9d0b
movq 0xa0(%rbx), %rax
movslq 0x7c(%rax), %rcx
testq %rcx, %rcx
leaq 0x7c(%rcx,%rax), %rsi
cmoveq %rcx, %rsi
movq %r15, %rdi
callq 0x12c64
movq 0xa0(%rbx), %rax
movslq 0x6c(%rax), %rcx
testq %rcx, %rcx
leaq 0x6c(%rcx,%rax), %r14
cmoveq %rcx, %r14
leaq 0x10(%rsp), %rdi
callq 0xf074
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0xf11b
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0x9ba7
movl 0x18(%rsp), %r8d
leaq 0xcc61(%rip), %rsi      # 0x167d7
movl $0x8, %edi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x5ef0
movq 0x18(%rsp), %rcx
cmpq $0xf, %rcx
ja 0x9bbf
movl $0x10, %r8d
leaq 0xcc60(%rip), %rsi      # 0x16800
movl $0x2, %edi
jmp 0x9bfe
leaq 0xccac(%rip), %rsi      # 0x1685a
movl $0x8, %edi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5ef0
jmp 0x9c08
movl (%r15), %ecx
cmpl $0x6d99231c, %ecx       # imm = 0x6D99231C
jne 0x9bec
leaq 0x60(%rbx), %rax
movdqu 0x10(%rsp), %xmm0
movdqu 0x20(%rsp), %xmm1
movdqu %xmm1, 0x10(%rax)
movdqu %xmm0, (%rax)
movq %r15, 0xa8(%rbx)
jmp 0x9c12
movl $0x6d99231c, %r8d       # imm = 0x6D99231C
leaq 0xcc35(%rip), %rsi      # 0x1682e
movl $0x8, %edi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5ef0
leaq 0x10(%rsp), %rdi
callq 0xf07f
movq 0xa0(%rbx), %rax
movslq 0x74(%rax), %rcx
testq %rcx, %rcx
leaq 0x74(%rcx,%rax), %r14
cmoveq %rcx, %r14
leaq 0x10(%rsp), %rdi
callq 0xf074
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0xf11b
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0x9c87
movl 0x18(%rsp), %r8d
leaq 0xcb81(%rip), %rsi      # 0x167d7
movl $0x8, %edi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x5ef0
movq 0x18(%rsp), %rcx
cmpq $0x13, %rcx
ja 0x9c9f
movl $0x14, %r8d
leaq 0xcb80(%rip), %rsi      # 0x16800
movl $0x2, %edi
jmp 0x9ce1
leaq 0xcbcc(%rip), %rsi      # 0x1685a
movl $0x8, %edi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5ef0
jmp 0x9ceb
movl (%r15), %ecx
cmpl $0x6d072210, %ecx       # imm = 0x6D072210
jne 0x9ccf
leaq 0x80(%rbx), %rax
movdqu 0x10(%rsp), %xmm0
movdqu 0x20(%rsp), %xmm1
movdqu %xmm1, 0x10(%rax)
movdqu %xmm0, (%rax)
movq %r15, 0xb0(%rbx)
jmp 0x9cf5
movl $0x6d072210, %r8d       # imm = 0x6D072210
leaq 0xcb52(%rip), %rsi      # 0x1682e
movl $0x8, %edi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5ef0
leaq 0x10(%rsp), %rdi
callq 0xf07f
movq 0xb0(%rbx), %rsi
addq $0x150, %rbx            # imm = 0x150
movq %rbx, %rdi
callq 0xfd65
leaq 0x4(%rsp), %rdi
callq 0x5b82
movl %ebp, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9d2d
jmp 0x9d2d
movq %rax, %rbx
leaq 0x4(%rsp), %rdi
callq 0x5b82
movq %rbx, %rdi
callq 0x35e0