//
// sub_1004EC3D4 from 0x1004ec3d4 to 0x1004ec410 (60 bytes)
//
// 1 xrefs:
// > sub_1004ECE90 @ 0x1004ed204
//
// 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_1004EC3D4(__int64 a1, __int64 a2)
{
__int64 result; // x0
sub_10042CBAC(a1, (__int64 *)(a2 + 528));
result = sub_10042CB4C(a1, a2 + 648);
*(_DWORD *)(a2 + 128) = 2;
return result;
}