//
// LevelEditorLayer::resetSPTriggered from 0x1000f0830 to 0x1000f087a (74 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008c06f8
//
// 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
//
void __fastcall LevelEditorLayer::resetSPTriggered(LevelEditorLayer *a1)
{
cocos2d::CCArray *m_speedObjects; // rax
cocos2d::ccArray *data; // rax
__int64 num; // rcx
unsigned __int64 arr; // rax
unsigned __int64 v5; // rcx
m_speedObjects = a1->m_drawGridLayer->m_speedObjects;
if ( m_speedObjects )
{
data = m_speedObjects->data;
num = data->num;
if ( data->num )
{
arr = (unsigned __int64)data->arr;
v5 = arr + 8 * num - 8;
do
{
if ( !*(_QWORD *)arr )
break;
*(_BYTE *)(*(_QWORD *)arr + 1834LL) = 0;
arr += 8LL;
}
while ( arr <= v5 );
}
}
}