//
// LevelEditorLayer::resetSPTriggered from 0x45e66a to 0x45e69c (50 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:51 +0000
//
int __fastcall LevelEditorLayer::resetSPTriggered(int this)
{
int v1; // r3
_DWORD *v2; // r2
int v3; // r3
int *v4; // r2
int *v5; // r3
int v6; // r1
int v7; // t1
v1 = *(_DWORD *)(*(_DWORD *)(this + 11880) + 404);
if ( v1 )
{
v2 = *(_DWORD **)(v1 + 52);
if ( *v2 )
{
v3 = *v2 + 0x40000000;
v4 = (int *)v2[3];
this = 0;
v5 = &v4[v3 - 1];
while ( v4 <= v5 )
{
v7 = *v4++;
v6 = v7;
if ( !v7 )
break;
*(_BYTE *)(v6 + 1642) = 0;
}
}
}
return this;
}