// File: attractivechaos[P]udb2/stb/./stb.h
// Function: stb__grow_alloc
static void stb__grow_alloc(void)
{
   int i,old_num = stb__alloc_size;
   stb_malloc_record *old = stb__allocations;
   if (stb__alloc_size == 0)
      stb__alloc_size = 64;
   else
      stb__alloc_size *= 2;

   stb__allocations = (stb_malloc_record *) stb__realloc_raw(NULL, stb__alloc_size * sizeof(stb__allocations[0]));
   if (stb__allocations == NULL)
      stb_fatal("Internal error: couldn't grow malloc wrapper table");
   memset(stb__allocations, 0, stb__alloc_size * sizeof(stb__allocations[0]));
   stb__alloc_limit = (stb__alloc_size*3)>>2;
   stb__alloc_mask = stb__alloc_size-1;

   stb__alloc_count = 0;

   for (i=0; i < old_num; ++i)
      if (old[i].p > STB_DEL) {
         stb__add_alloc(old[i].p, old[i].size, old[i].file, old[i].line);
         assert(stb__hashfind(old[i].p) >= 0);
      }
   for (i=0; i < old_num; ++i)
      if (old[i].p > STB_DEL)
         assert(stb__hashfind(old[i].p) >= 0);
   stb__realloc_raw(old, 0);
}

// Assembly:
subq $0x18, %rsp
movl 0xd01e(%rip), %eax      # 0x2a6f8
movl %eax, 0x10(%rsp)
movq 0xd00b(%rip), %rax      # 0x2a6f0
movq %rax, 0x8(%rsp)
cmpl $0x0, 0xd007(%rip)      # 0x2a6f8
jne 0x1d6ff
movl $0x40, 0xcffb(%rip)     # 0x2a6f8
jmp 0x1d70d
movl 0xcff3(%rip), %eax      # 0x2a6f8
shll %eax
movl %eax, 0xcfeb(%rip)      # 0x2a6f8
movslq 0xcfe4(%rip), %rax      # 0x2a6f8
imulq $0x18, %rax, %rax
movl %eax, %esi
xorl %eax, %eax
movl %eax, %edi
callq 0x1d8f0
movq %rax, 0xcfc6(%rip)      # 0x2a6f0
cmpq $0x0, 0xcfbe(%rip)      # 0x2a6f0
jne 0x1d742
leaq 0x28d4(%rip), %rdi      # 0x2000f
movb $0x0, %al
callq 0x3610
movq 0xcfa7(%rip), %rdi      # 0x2a6f0
movslq 0xcfa8(%rip), %rax      # 0x2a6f8
imulq $0x18, %rax, %rdx
xorl %esi, %esi
callq 0x2160
imull $0x3, 0xcf96(%rip), %eax # 0x2a6f8
sarl $0x2, %eax
movl %eax, 0xedd1(%rip)      # 0x2c53c
movl 0xcf87(%rip), %eax      # 0x2a6f8
subl $0x1, %eax
movl %eax, 0xedbe(%rip)      # 0x2c538
movl $0x0, 0xea9c(%rip)      # 0x2c220
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
cmpl 0x10(%rsp), %eax
jge 0x1d862
movq 0x8(%rsp), %rax
movslq 0x14(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl $0x1, %ecx
cmpq %rcx, (%rax)
jbe 0x1d850
movq 0x8(%rsp), %rax
movslq 0x14(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq 0x8(%rsp), %rax
movslq 0x14(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x14(%rax), %esi
movq 0x8(%rsp), %rax
movslq 0x14(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdx
movq 0x8(%rsp), %rax
movslq 0x14(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %ecx
callq 0x12270
movq 0x8(%rsp), %rax
movslq 0x14(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq 0x12160
cmpl $0x0, %eax
jl 0x1d82f
jmp 0x1d84e
leaq 0x280c(%rip), %rdi      # 0x20042
leaq 0x1b4c(%rip), %rsi      # 0x1f389
movl $0x1c9b, %edx           # imm = 0x1C9B
leaq 0x2816(%rip), %rcx      # 0x2005f
callq 0x2140
jmp 0x1d850
jmp 0x1d852
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x1d78c
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
cmpl 0x10(%rsp), %eax
jge 0x1d8df
movq 0x8(%rsp), %rax
movslq 0x14(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl $0x1, %ecx
cmpq %rcx, (%rax)
jbe 0x1d8d0
movq 0x8(%rsp), %rax
movslq 0x14(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq 0x12160
cmpl $0x0, %eax
jl 0x1d8af
jmp 0x1d8ce
leaq 0x278c(%rip), %rdi      # 0x20042
leaq 0x1acc(%rip), %rsi      # 0x1f389
movl $0x1c9f, %edx           # imm = 0x1C9F
leaq 0x2796(%rip), %rcx      # 0x2005f
callq 0x2140
jmp 0x1d8d0
jmp 0x1d8d2
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x1d86a
movq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x1d8f0
addq $0x18, %rsp
retq