// File: /workspace/github_c_makefile_star2_O1/deplinenoise[P]tundra/unittest/Test_MemAllocLinear.cpp
// Function: MemAllocLinearTest_Reset_Test::TestBody()
TEST_F(MemAllocLinearTest, Reset)
{
  ASSERT_EQ(0, alloc.m_Offset);
  LinearAllocate<int>(&alloc);

  ASSERT_EQ(sizeof(int), alloc.m_Offset);
  LinearAllocReset(&alloc);

  ASSERT_EQ(0, alloc.m_Offset);
  LinearAllocate<int>(&alloc);

  ASSERT_EQ(sizeof(int), alloc.m_Offset);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rcx
movl $0x0, (%rcx)
leaq 0x30(%rdi), %rbx
leaq 0x19675(%rip), %rsi     # 0x54b08
leaq 0x1b065(%rip), %rdx     # 0x564ff
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %rbx, %r8
callq 0x3352d
movb (%r15), %bpl
testb %bpl, %bpl
jne 0x3b539
leaq 0x8(%rsp), %rdi
callq 0x12eee
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x3b4cf
movq (%rax), %r8
jmp 0x3b4d6
leaq 0x1d97d(%rip), %r8      # 0x58e53
leaq 0x1b001(%rip), %rdx     # 0x564de
leaq 0x10(%rsp), %rdi
movl $0x2, %esi
movl $0x34, %ecx
callq 0x10bb8
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x10c56
leaq 0x10(%rsp), %rdi
callq 0x10c24
cmpq $0x0, 0x8(%rsp)
je 0x3b539
movl $0x1, %edi
callq 0x10bb4
testb %al, %al
je 0x3b530
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3b530
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x2c81c
testb %bpl, %bpl
je 0x3b7dc
addq $0x18, %r14
movl $0x4, %esi
movl $0x4, %edx
movq %r14, %rdi
callq 0x42e6c
leaq 0x8(%rsp), %rcx
movq $0x4, (%rcx)
leaq 0x1afa4(%rip), %rsi     # 0x5651b
leaq 0x1af81(%rip), %rdx     # 0x564ff
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %rbx, %r8
callq 0x3b9ca
movb (%r15), %bpl
testb %bpl, %bpl
jne 0x3b61d
leaq 0x8(%rsp), %rdi
callq 0x12eee
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x3b5b3
movq (%rax), %r8
jmp 0x3b5ba
leaq 0x1d899(%rip), %r8      # 0x58e53
leaq 0x1af1d(%rip), %rdx     # 0x564de
leaq 0x10(%rsp), %rdi
movl $0x2, %esi
movl $0x37, %ecx
callq 0x10bb8
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x10c56
leaq 0x10(%rsp), %rdi
callq 0x10c24
cmpq $0x0, 0x8(%rsp)
je 0x3b61d
movl $0x1, %edi
callq 0x10bb4
testb %al, %al
je 0x3b614
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3b614
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x2c81c
testb %bpl, %bpl
je 0x3b7dc
movq %r14, %rdi
callq 0x42ea4
leaq 0x8(%rsp), %rcx
movl $0x0, (%rcx)
leaq 0x194bc(%rip), %rsi     # 0x54b08
leaq 0x1aeac(%rip), %rdx     # 0x564ff
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %rbx, %r8
callq 0x3352d
movb (%r15), %bpl
testb %bpl, %bpl
jne 0x3b6f2
leaq 0x8(%rsp), %rdi
callq 0x12eee
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x3b688
movq (%rax), %r8
jmp 0x3b68f
leaq 0x1d7c4(%rip), %r8      # 0x58e53
leaq 0x1ae48(%rip), %rdx     # 0x564de
leaq 0x10(%rsp), %rdi
movl $0x2, %esi
movl $0x3a, %ecx
callq 0x10bb8
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x10c56
leaq 0x10(%rsp), %rdi
callq 0x10c24
cmpq $0x0, 0x8(%rsp)
je 0x3b6f2
movl $0x1, %edi
callq 0x10bb4
testb %al, %al
je 0x3b6e9
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3b6e9
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x2c81c
testb %bpl, %bpl
je 0x3b7dc
movl $0x4, %esi
movl $0x4, %edx
movq %r14, %rdi
callq 0x42e6c
leaq 0x8(%rsp), %rcx
movq $0x4, (%rcx)
leaq 0x1adef(%rip), %rsi     # 0x5651b
leaq 0x1adcc(%rip), %rdx     # 0x564ff
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %rbx, %r8
callq 0x3b9ca
cmpb $0x0, (%r14)
jne 0x3b7d0
leaq 0x8(%rsp), %rdi
callq 0x12eee
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x3b766
movq (%rax), %r8
jmp 0x3b76d
leaq 0x1d6e6(%rip), %r8      # 0x58e53
leaq 0x1ad6a(%rip), %rdx     # 0x564de
leaq 0x10(%rsp), %rdi
movl $0x2, %esi
movl $0x3d, %ecx
callq 0x10bb8
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x10c56
leaq 0x10(%rsp), %rdi
callq 0x10c24
cmpq $0x0, 0x8(%rsp)
je 0x3b7d0
movl $0x1, %edi
callq 0x10bb4
testb %al, %al
je 0x3b7c7
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3b7c7
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x2c81c
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3b83a
jmp 0x3b807
jmp 0x3b816
jmp 0x3b825
jmp 0x3b83a
jmp 0x3b83a
jmp 0x3b807
jmp 0x3b816
jmp 0x3b825
jmp 0x3b83a
jmp 0x3b83a
jmp 0x3b807
jmp 0x3b816
jmp 0x3b825
jmp 0x3b83a
jmp 0x3b83a
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x10c24
jmp 0x3b819
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x31faa
jmp 0x3b828
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x31fbc
movq %rbx, %rdi
callq 0xcbb0
movq %rax, %rdi
callq 0x28baf