//
// SpawnTriggerGameObject::getRemapWithTarget from 0x3ebb92 to 0x3ebbb2 (32 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::addTriggersWithGroupID @ 0x372874
//
// 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::getRemapWithTarget(SpawnTriggerGameObject *a1, int a2)
{
ChanceObject *m_finish; // r2
ChanceObject *m_start; // r3
ChanceObject *result; // r0
m_finish = a1->m_remapObjects.m_finish;
m_start = a1->m_remapObjects.m_start;
while ( 1 )
{
result = m_start;
if ( m_start == m_finish )
break;
++m_start;
if ( m_start[-1].m_chance == a2 )
return result;
}
return nullptr;
}