//
// SetupSpawnPopup::addRemap from 0x10027beb0 to 0x10027bf93 (227 bytes)
//
// 2 xrefs:
// > SetupSpawnPopup::onAddRemap @ 0x10027b5d6
// > SetupSpawnPopup::onPasteRemap @ 0x10027b71b
//
// 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::addRemap(__int64 a1, __int64 a2, unsigned int a3)
{
unsigned int v4; // r15d
__int64 v6; // rdi
__int64 v7; // r12
__int64 v8; // rdi
__int64 result; // rax
unsigned int v10; // r13d
_QWORD *v11; // rax
__int64 v12; // rax
__int64 v13; // rax
if ( !*(_BYTE *)(a1 + 1012) )
{
v4 = a2;
v6 = *(_QWORD *)(a1 + 680);
if ( v6 )
{
v7 = sub_1007FE9A0(v6);
v8 = v7;
result = sub_1007FEF90(v7);
if ( !(_DWORD)result )
{
LABEL_8:
if ( !*(_BYTE *)(a1 + 1012) )
{
v12 = cocos2d::CCDirector::sharedDirector(v8, a2);
v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 128LL))(v12);
return cocos2d::CCScheduler::scheduleSelector(
v13,
SetupSpawnPopup::updateRemapButtons,
0,
a1,
4294967294LL,
0,
0.0,
0.0);
}
return result;
}
}
else
{
v7 = *(_QWORD *)(a1 + 688);
v8 = v7;
result = sub_1007FEF90(v7);
if ( !(_DWORD)result )
goto LABEL_8;
}
v10 = 0;
do
{
v11 = (_QWORD *)sub_1007FEFE0(v7, v10);
a2 = v4;
SpawnTriggerGameObject::addRemap(v11, v4, a3);
++v10;
v8 = v7;
result = sub_1007FEF90(v7);
}
while ( v10 < (unsigned int)result );
goto LABEL_8;
}
return result;
}