//
// sub_9ECD0 from 0x9ecd0 to 0x9ed28 (88 bytes)
//
// 1 xrefs:
// > sub_9EA78 @ 0x9ea84
//
// 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_9ECD0(__int64 a1, __int64 a2, int a3, int a4)
{
int v6; // [xsp+Ch] [xbp-4h] BYREF
if ( !a3 || a4 == 8 )
{
v6 = a3;
}
else
{
sub_9ED30(a1, &v6);
a3 = v6;
}
return sub_E08C0(*(_QWORD *)(a1 + 368), (unsigned int)(a3 + *(_DWORD *)(a1 + 272)));
}