//
// sub_100592EB0 from 0x100592eb0 to 0x100592f24 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x100838708
//
// 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
//
__int64 __fastcall sub_100592EB0(__int64 a1, void **a2)
{
const void **v3; // x20
_BYTE *v4; // x0
v3 = *(const void ***)(a1 + 32);
if ( a2 )
{
if ( *a2 )
{
memcpy(*a2, v3[1], *(int *)v3);
*a2 = (char *)*a2 + *(int *)v3;
}
else
{
v4 = sub_100588710(*(unsigned int *)v3, (__int64)"hm_ameth.c", 127);
*a2 = v4;
memcpy(v4, v3[1], *(int *)v3);
}
}
return *(unsigned int *)v3;
}