//
// GJBaseGameLayer::clearHitboxTrail from 0x99c3ec to 0x99c494 (168 bytes)
//
// 3 xrefs:
// > PlayLayer::resetLevel @ 0x711110
// > LevelEditorLayer::onPlaytest @ 0x796410
// > ??> @ 0x52420
//
// This function is hookable on this platform (idp: arm, 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 12:58:05 +0000
//
__int64 __fastcall GJBaseGameLayer::clearHitboxTrail(GJBaseGameLayer *this)
{
__int64 v1; // x4
__int64 v2; // x3
__int64 v3; // x4
__int64 v4; // x3
char *v5; // x1
v1 = *((_QWORD *)this + 1731);
v2 = *((_QWORD *)this + 1732);
if ( v1 != v2 )
*((_QWORD *)this + 1732) = v2
- 20
* (((0xCCCCCCCCCCCCCCDLL * ((unsigned __int64)(v2 - 20 - v1) >> 2)) & 0x3FFFFFFFFFFFFFFFLL)
+ 1);
v3 = *((_QWORD *)this + 1734);
v4 = *((_QWORD *)this + 1735);
if ( v3 != v4 )
*((_QWORD *)this + 1735) = v4
- 20
* (((0xCCCCCCCCCCCCCCDLL * ((unsigned __int64)(v4 - 20 - v3) >> 2)) & 0x3FFFFFFFFFFFFFFFLL)
+ 1);
v5 = (char *)this + 12288;
*((_DWORD *)this + 3474) = 0;
*((_DWORD *)this + 3475) = 0;
v5[1616] = 1;
return 1;
}