//
// SetupSpawnPopup::onSelectRemap from 0x4bc028 to 0x4bc0ba (146 bytes)
//
// 0 xrefs:
//
// 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 SetupSpawnPopup::onSelectRemap(SetupSpawnPopup *a1, cocos2d::CCObject *a2)
{
_BOOL4 m_isBusy; // r5
unsigned int v4; // r0
int *m_start; // r3
int v6; // r2
int v7; // r3
m_isBusy = a1->m_isBusy;
if ( !a1->m_isBusy )
{
v4 = a2->getTag(a2);
m_start = a1->m_remapGroups.m_start;
if ( v4 >= ((char *)a1->m_remapGroups.m_finish - (char *)m_start) >> 3 )
sub_7732C4("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)", v4);
v6 = m_start[2 * v4];
v7 = m_start[2 * v4 + 1];
if ( a1->m_remapOriginalID == v6 && a1->m_remapNewID == v7 )
{
a1->m_remapOriginalID = m_isBusy;
a1->m_remapNewID = m_isBusy;
}
else
{
a1->m_remapOriginalID = v6;
a1->m_remapNewID = v7;
SetupTriggerPopup::updateValue(a1, -1, (float)v6);
SetupTriggerPopup::updateValue(a1, -2, (float)a1->m_remapNewID);
}
SetupSpawnPopup::queueUpdateButtons(a1);
}
}