//
// sub_100588648 from 0x100588648 to 0x1005886a8 (96 bytes)
//
// 1 xrefs:
// > sub_1005D9670 @ 0x1005d9bf4
//
// 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 *(__cdecl **__fastcall sub_100588648(
void *(__cdecl **result)(size_t __size),
void *(__cdecl **a2)(void *__ptr, size_t __size),
_QWORD *a3))(size_t __size)
{
void *(__cdecl *v3)(size_t); // x8
void *(__cdecl *v4)(void *, size_t); // x8
if ( result )
{
if ( (char *)off_10085DEE8 == (char *)sub_10058861C )
v3 = off_10085DEE0;
else
v3 = nullptr;
*result = v3;
}
if ( a2 )
{
if ( (char *)off_10085DEF8 == (char *)sub_100588628 )
v4 = off_10085DEF0;
else
v4 = nullptr;
*a2 = v4;
}
if ( a3 )
*a3 = off_10085DF00;
return result;
}