//
// sub_100667470 from 0x100667470 to 0x1006674b1 (65 bytes)
//
// 1 xrefs:
// > sub_1007203E0 @ 0x1007203e9
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void *__fastcall sub_100667470(__int64 a1)
{
void *result; // rax
__int64 v2; // rsi
result = (void *)*(unsigned int *)(a1 + 4);
LOBYTE(result) = (unsigned int)result <= *(_DWORD *)a1 || (_DWORD)result == 1;
if ( !(_BYTE)result )
{
v2 = (unsigned int)(*(_DWORD *)a1 == 0) + *(_DWORD *)a1;
*(_DWORD *)(a1 + 4) = v2;
result = realloc(*(void **)(a1 + 16), 8 * v2);
*(_QWORD *)(a1 + 16) = result;
}
return result;
}