//
// ChanceTriggerGameObject::remapChanceObjects from 0x3eb43c to 0x3eb46e (50 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::applyRemap @ 0x48bfa4
//
// 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 ChanceTriggerGameObject::remapChanceObjects(ChanceTriggerGameObject *a1, std::unordered_map *const a2)
{
ChanceObject *m_finish; // r6
ChanceObject *i; // r4
_DWORD **v5; // r0
m_finish = a1->m_chanceObjects.m_finish;
for ( i = a1->m_chanceObjects.m_start; i != m_finish; ++i )
{
v5 = sub_3E597A(a2, i->m_groupID % a2->_M_h._M_bucket_count, i);
if ( v5 )
{
if ( *v5 )
i->m_groupID = (*v5)[2];
}
}
}