//
// SpawnTriggerGameObject::getRemapWithSource from 0x765f20 to 0x765f6c (76 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::addTriggersWithTargetGroupID @ 0x6744a0
// > ??> @ 0x6d6f8
//
// 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
//
ChanceObject *SpawnTriggerGameObject::getRemapWithSource(SpawnTriggerGameObject *a1, int a2)
{
ChanceObject *m_start; // x4
ChanceObject *m_finish; // x0
ChanceObject *i; // x2
int m_groupID; // t1
m_start = a1->m_remapObjects.m_start;
m_finish = a1->m_remapObjects.m_finish;
if ( m_finish == m_start )
return nullptr;
if ( m_start->m_groupID != a2 )
{
for ( i = m_start + 1; ; ++i )
{
m_start = i;
if ( m_finish == i )
break;
m_groupID = i->m_groupID;
if ( m_groupID == a2 )
return m_start;
}
return nullptr;
}
return m_start;
}