//
// SetupSpawnPopup::onDeleteRemap from 0x100290150 to 0x10029024c (252 bytes)
//
// 1 xrefs:
// > SetupSpawnPopup::init @ 0x10028fd01
//
// 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 SetupSpawnPopup::onDeleteRemap(SetupSpawnPopup *a1, cocos2d::CCObject *m_remapOriginalID)
{
EffectGameObject *m_gameObject; // rdi
cocos2d::CCArray *m_gameObjects; // r14
unsigned int v5; // r15d
SpawnTriggerGameObject *v6; // rax
cocos2d::CCDirector *v7; // rax
cocos2d::CCScheduler *v8; // rax
if ( !a1->m_isBusy && (a1->m_remapOriginalID || a1->m_remapNewID) )
{
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)sub_10071FA80(m_gameObject);
if ( !(unsigned int)sub_100720070(m_gameObjects) )
{
LABEL_10:
*(_QWORD *)&a1->m_remapOriginalID = 0;
if ( !a1->m_isBusy )
{
v7 = cocos2d::CCDirector::sharedDirector();
v8 = (cocos2d::CCScheduler *)((__int64 (__fastcall *)(cocos2d::CCDirector *, cocos2d::CCObject *))v7->getScheduler)(
v7,
m_remapOriginalID);
cocos2d::CCScheduler::scheduleSelector(
v8,
(cocos2d::SEL_SCHEDULE)(unsigned __int64)SetupSpawnPopup::updateRemapButtons,
a1,
0.0,
0xFFFFFFFE,
0.0,
0);
}
return;
}
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( !(unsigned int)sub_100720070(m_gameObjects) )
goto LABEL_10;
}
v5 = 0;
do
{
v6 = (SpawnTriggerGameObject *)sub_1007200C0(m_gameObjects, v5);
m_remapOriginalID = (cocos2d::CCObject *)(unsigned int)a1->m_remapOriginalID;
SpawnTriggerGameObject::removeRemap(v6, (int)m_remapOriginalID, a1->m_remapNewID);
++v5;
}
while ( v5 < (unsigned int)sub_100720070(m_gameObjects) );
goto LABEL_10;
}
}