//
// sub_140353CE0 from 0x140353ce0 to 0x140353d7a (154 bytes)
//
// 3 xrefs:
// > sub_1406A9FD0 @ 0x1406a9fd7
// > ??> @ 0x1408b5777
// > ??> @ 0x1409204bc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:30:48 +0000
//
void __fastcall sub_140353CE0(_QWORD *a1)
{
_QWORD *v2; // rcx
_QWORD *v3; // rcx
v2 = (_QWORD *)*a1;
if ( v2 )
{
sub_14035BF50(v2, a1[1]);
v3 = (_QWORD *)*a1;
if ( (unsigned __int64)(200 * ((a1[2] - *a1) / 200LL)) >= 0x1000 )
{
if ( (unsigned __int64)v3 - *(v3 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v3 = (_QWORD *)*(v3 - 1);
}
j_j_free(v3);
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
}
}