//
// SetupSpawnPopup::onDeleteRemap from 0x10027b5e0 to 0x10027b6dc (252 bytes)
//
// 1 xrefs:
// > SetupSpawnPopup::init @ 0x10027b1c4
//
// This function is hookable on this platform (idp: pc, 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:27:41 +0000
//
__int64 __fastcall SetupSpawnPopup::onDeleteRemap(__int64 a1, __int64 a2)
{
__int64 v3; // rdi
__int64 v4; // r14
__int64 v5; // rdi
__int64 result; // rax
unsigned int v7; // r15d
__int64 v8; // rax
__int64 v9; // rax
__int64 v10; // rax
if ( !*(_BYTE *)(a1 + 1012) && (*(_DWORD *)(a1 + 1048) || *(_DWORD *)(a1 + 1052)) )
{
v3 = *(_QWORD *)(a1 + 680);
if ( v3 )
{
v4 = sub_1007FE9A0(v3);
v5 = v4;
result = sub_1007FEF90(v4);
if ( !(_DWORD)result )
{
LABEL_10:
*(_QWORD *)(a1 + 1048) = 0;
if ( !*(_BYTE *)(a1 + 1012) )
{
v9 = cocos2d::CCDirector::sharedDirector(v5, a2);
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 128LL))(v9);
return cocos2d::CCScheduler::scheduleSelector(
v10,
SetupSpawnPopup::updateRemapButtons,
0,
a1,
4294967294LL,
0,
0.0,
0.0);
}
return result;
}
}
else
{
v4 = *(_QWORD *)(a1 + 688);
v5 = v4;
result = sub_1007FEF90(v4);
if ( !(_DWORD)result )
goto LABEL_10;
}
v7 = 0;
do
{
v8 = sub_1007FEFE0(v4, v7);
a2 = *(unsigned int *)(a1 + 1048);
SpawnTriggerGameObject::removeRemap(v8, a2, *(_DWORD *)(a1 + 1052));
++v7;
v5 = v4;
result = sub_1007FEF90(v4);
}
while ( v7 < (unsigned int)result );
goto LABEL_10;
}
return result;
}