//
// sub_140266890 from 0x140266890 to 0x14026690b (123 bytes)
//
// 13 xrefs:
// > sub_14025A480 @ 0x14025ac48
// > GJEffectManager::runPulseEffect @ 0x140260ee6
// > sub_1402657E0 @ 0x140265847
// > sub_1402658B0 @ 0x1402658e7
// > sub_140265920 @ 0x140265920
// > sub_140266670 @ 0x14026673d
// > sub_140266670 @ 0x14026680d
// > sub_14026A200 @ 0x14026a36b
// > sub_14026A200 @ 0x14026a3da
// > sub_14026AC70 @ 0x14026acaa
// > sub_14026AE90 @ 0x14026aea6
// > sub_1403A5660 @ 0x1403a579c
// > ??> @ 0x1406d0524
//
// 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_140266890(__int64 a1)
{
_QWORD *v2; // rcx
__int64 result; // rax
v2 = *(_QWORD **)a1;
if ( v2 )
{
if ( (unsigned __int64)(72 * ((*(_QWORD *)(a1 + 16) - (_QWORD)v2) / 72LL)) >= 0x1000 )
{
if ( (unsigned __int64)v2 - *(v2 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v2 = (_QWORD *)*(v2 - 1);
}
j_j_free(v2);
result = 0;
*(_QWORD *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = 0;
}
return result;
}