// File: /workspace/github_c_makefile_star2_O1/deplinenoise[P]tundra/unittest/Test_Buffer.cpp
// Function: BufferTest_Init_Test::TestBody()
TEST_F(BufferTest, Init)
{
  Buffer<int> b;

  BufferInit(&b);
  ASSERT_EQ(nullptr, b.m_Storage);
  ASSERT_EQ(0, b.m_Size);

  BufferDestroy(&b, &heap);
  ASSERT_EQ(nullptr, b.m_Storage);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
xorl %eax, %eax
movq %rax, 0x30(%rsp)
movq %rsp, %r8
movq %rax, (%r8)
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
leaq 0x231bd(%rip), %rsi     # 0x553db
leaq 0x231be(%rip), %rdx     # 0x553e3
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x33386
cmpb $0x0, (%r14)
je 0x32307
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x2c81c
movq %rsp, %rcx
movl $0x0, (%rcx)
leaq 0x28(%rsp), %r8
leaq 0x228ab(%rip), %rsi     # 0x54b08
leaq 0x2318b(%rip), %rdx     # 0x553ef
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x3352d
cmpb $0x0, (%r14)
je 0x3231e
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x2c81c
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0x322ae
addq $0x10, %rbx
movq %rbx, %rdi
callq 0x42da6
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x20(%rsp), %rax
movq %rsp, %r8
movq %rax, (%r8)
leaq 0x8(%rsp), %rcx
movq $0x0, (%rcx)
leaq 0x2310f(%rip), %rsi     # 0x553db
leaq 0x23110(%rip), %rdx     # 0x553e3
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x33386
cmpb $0x0, (%rbx)
jne 0x32483
movq %rsp, %rdi
callq 0x12eee
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x3241e
movq (%rax), %r8
jmp 0x32425
movq %rsp, %rdi
callq 0x12eee
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x32335
movq (%rax), %r8
jmp 0x3233c
movq %rsp, %rdi
callq 0x12eee
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x323ab
movq (%rax), %r8
jmp 0x323b2
leaq 0x26b17(%rip), %r8      # 0x58e53
leaq 0x2307f(%rip), %rdx     # 0x553c2
leaq 0x8(%rsp), %rdi
movl $0x2, %esi
movl $0x1e, %ecx
callq 0x10bb8
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x10c56
leaq 0x8(%rsp), %rdi
callq 0x10c24
cmpq $0x0, (%rsp)
je 0x3239a
movl $0x1, %edi
callq 0x10bb4
testb %al, %al
je 0x32392
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x32392
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, (%rsp)
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x2c81c
jmp 0x3248f
leaq 0x26aa1(%rip), %r8      # 0x58e53
leaq 0x23009(%rip), %rdx     # 0x553c2
leaq 0x8(%rsp), %rdi
movl $0x2, %esi
movl $0x1f, %ecx
callq 0x10bb8
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x10c56
leaq 0x8(%rsp), %rdi
callq 0x10c24
cmpq $0x0, (%rsp)
je 0x32410
movl $0x1, %edi
callq 0x10bb4
testb %al, %al
je 0x32408
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x32408
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, (%rsp)
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x2c81c
jmp 0x3248f
leaq 0x26a2e(%rip), %r8      # 0x58e53
leaq 0x22f96(%rip), %rdx     # 0x553c2
leaq 0x8(%rsp), %rdi
movl $0x2, %esi
movl $0x22, %ecx
callq 0x10bb8
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x10c56
leaq 0x8(%rsp), %rdi
callq 0x10c24
cmpq $0x0, (%rsp)
je 0x32483
movl $0x1, %edi
callq 0x10bb4
testb %al, %al
je 0x3247b
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3247b
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, (%rsp)
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x2c81c
addq $0x38, %rsp
popq %rbx
popq %r14
retq
jmp 0x324e2
jmp 0x324b1
jmp 0x324c0
jmp 0x324cd
jmp 0x324e2
jmp 0x324e2
jmp 0x324e2
jmp 0x324b1
jmp 0x324c0
jmp 0x324cd
jmp 0x324e2
jmp 0x324e2
jmp 0x324e2
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x10c24
jmp 0x324c3
movq %rax, %rbx
movq %rsp, %rdi
callq 0x31faa
jmp 0x324d0
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x31fbc
movq %rbx, %rdi
callq 0xcbb0
movq %rax, %rdi
callq 0x28baf