// File: /workspace/github_cpp_makefile_star2_O1/attractivechaos[P]udb2/stb/./stb.h
// Function: stb__add_alloc
static void stb__add_alloc(void *p, int sz, char *file, int line)
{
   stb_uint32 h;
   int n;
   if (stb__alloc_count >= stb__alloc_limit)
      stb__grow_alloc();
   h = stb_hashptr(p);
   n = h & stb__alloc_mask;
   if (stb__allocations[n].p > STB_DEL) {
      int s = stb_rehash(h)|1;
      do {
         n = (n+s) & stb__alloc_mask;
      } while (stb__allocations[n].p > STB_DEL);
   }
   assert(stb__allocations[n].p == NULL || stb__allocations[n].p == STB_DEL);
   stb__allocations[n].p = p;
   stb__allocations[n].size = sz;
   stb__allocations[n].line = line;
   stb__allocations[n].file = file;
   ++stb__alloc_count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebp
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, %r15
movl 0x15207(%rip), %eax     # 0x200c0
cmpl 0x1551d(%rip), %eax     # 0x203dc
jl 0xafea
movl %ebp, 0xc(%rsp)
movq %rbx, 0x10(%rsp)
movl 0x136c3(%rip), %r13d    # 0x1e598
leal (,%r13,2), %eax
testq %r13, %r13
movq 0x136a9(%rip), %r12     # 0x1e590
movl $0x40, %ecx
cmovnel %eax, %ecx
movl %ecx, 0x136a3(%rip)     # 0x1e598
shll $0x3, %ecx
leal (%rcx,%rcx,2), %eax
movslq %eax, %rdi
callq 0x2250
movq %rax, 0x13686(%rip)     # 0x1e590
testq %rax, %rax
je 0xb112
movq 0x13676(%rip), %rdi     # 0x1e590
movslq 0x13677(%rip), %rbx     # 0x1e598
movq %rbx, %rax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rdx
xorl %esi, %esi
callq 0x2160
leal (%rbx,%rbx,2), %eax
sarl $0x2, %eax
movl %eax, 0x1549d(%rip)     # 0x203dc
leal -0x1(%rbx), %eax
movl %eax, 0x15490(%rip)     # 0x203d8
movl $0x0, 0x1516e(%rip)     # 0x200c0
testl %r13d, %r13d
jle 0xaf9d
leaq (,%r13,8), %rax
leaq (%rax,%rax,2), %rbx
xorl %ebp, %ebp
movq (%r12,%rbp), %rdi
cmpq $0x2, %rdi
jb 0xaf94
movl 0x14(%r12,%rbp), %esi
movq 0x8(%r12,%rbp), %rdx
movl 0x10(%r12,%rbp), %ecx
callq 0xae9a
movq (%r12,%rbp), %rdi
callq 0xadf4
testl %eax, %eax
js 0xb0b5
addq $0x18, %rbp
cmpq %rbp, %rbx
jne 0xaf65
testl %r13d, %r13d
jle 0xafd4
shlq $0x3, %r13
leaq (,%r13,2), %rbx
addq %r13, %rbx
xorl %r13d, %r13d
movq (%r12,%r13), %rdi
cmpq $0x2, %rdi
jb 0xafcb
callq 0xadf4
testl %eax, %eax
js 0xb0d4
addq $0x18, %r13
cmpq %r13, %rbx
jne 0xafb4
testq %r12, %r12
movq 0x10(%rsp), %rbx
movl 0xc(%rsp), %ebp
je 0xafea
movq %r12, %rdi
callq 0x23d0
movl %r15d, %eax
shrl $0x6, %eax
addl %r15d, %eax
movl %r15d, %ecx
shrl $0x13, %ecx
addl %eax, %ecx
movl %ecx, %eax
shll $0x10, %eax
addl %ecx, %eax
movl %ecx, %edx
shll $0x13, %edx
leal (%rdx,%rcx,8), %ecx
xorl %eax, %ecx
movl %ecx, %eax
shrl $0x5, %eax
addl %ecx, %eax
leal (,%rax,4), %ecx
xorl %eax, %ecx
movl %ecx, %edx
shrl $0xf, %edx
addl %ecx, %edx
movl %edx, %eax
shll $0xa, %eax
xorl %edx, %eax
movl %eax, %ecx
shrl $0x6, %ecx
addl %eax, %ecx
shrl $0x13, %eax
addl %ecx, %eax
movl 0x1539c(%rip), %esi     # 0x203d8
movl %esi, %edx
andl %eax, %edx
movq 0x13549(%rip), %rcx     # 0x1e590
movslq %edx, %rdi
leaq (%rdi,%rdi,2), %rdi
cmpq $0x2, (%rcx,%rdi,8)
jb 0xb076
movl %eax, %edi
shrl $0x6, %edi
addl %eax, %edi
shrl $0x13, %eax
addl %edi, %eax
orl $0x1, %eax
addl %eax, %edx
andl %esi, %edx
movslq %edx, %rdi
leaq (%rdi,%rdi,2), %rdi
cmpq $0x1, (%rcx,%rdi,8)
ja 0xb064
movslq %edx, %rax
leaq (%rax,%rax,2), %rax
cmpq $0x2, (%rcx,%rax,8)
jae 0xb0f3
leaq (%rcx,%rax,8), %rcx
movq %r15, (%rcx)
movq 0x134fe(%rip), %rcx     # 0x1e590
movl %r14d, 0x14(%rcx,%rax,8)
movl %ebp, 0x10(%rcx,%rax,8)
movq %rbx, 0x8(%rcx,%rax,8)
incl 0x1501a(%rip)           # 0x200c0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x80cf(%rip), %rdi      # 0x1318b
leaq 0x743e(%rip), %rsi      # 0x12501
leaq 0x80de(%rip), %rcx      # 0x131a8
movl $0x1c9b, %edx           # imm = 0x1C9B
callq 0x2140
leaq 0x80b0(%rip), %rdi      # 0x1318b
leaq 0x741f(%rip), %rsi      # 0x12501
leaq 0x80bf(%rip), %rcx      # 0x131a8
movl $0x1c9f, %edx           # imm = 0x1C9F
callq 0x2140
leaq 0x7fee(%rip), %rdi      # 0x130e8
leaq 0x7400(%rip), %rsi      # 0x12501
leaq 0x8022(%rip), %rcx      # 0x1312a
movl $0x1cb1, %edx           # imm = 0x1CB1
callq 0x2140
leaq 0x803f(%rip), %rdi      # 0x13158
xorl %eax, %eax
callq 0x3048