//
// sub_52EAC from 0x52eac to 0x52edc (48 bytes)
//
// 2 xrefs:
// > sub_52A58 @ 0x52ae4
// > sub_52A58 @ 0x52cae
//
// 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
//
int __fastcall sub_52EAC(__int64 *a1, __int64 *a2)
{
int result; // r0
__int64 v5; // kr00_8
__int64 v6; // kr08_8
result = sub_53460(a1, *((_DWORD *)a1 + 1) + 1);
if ( !result )
{
v5 = *a2;
v6 = *a1;
*(_DWORD *)(*(_DWORD *)a1 + 8 * *((_DWORD *)a1 + 1)) = *(_DWORD *)a2;
*(_DWORD *)(v6 + 8 * HIDWORD(v6) + 4) = HIDWORD(v5);
++*((_DWORD *)a1 + 1);
}
return result;
}