//
// sub_1007469A0 from 0x1007469a0 to 0x1007469e1 (65 bytes)
//
// 1 xrefs:
// > sub_1007FF300 @ 0x1007ff309
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:36:31 +0000
//
void *__fastcall sub_1007469A0(__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;
}