//
// SpawnTriggerGameObject::updateRemapKeys from 0x10038eb1c to 0x10038ebe8 (204 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8b88
// > GJBaseGameLayer::playerTouchedTrigger @ 0x1001e93f4
// > GJBaseGameLayer::checkSpawnObjects @ 0x1001ebfdc
// > GJBaseGameLayer::spawnObject @ 0x1001ec4e4
// > GJBaseGameLayer::spawnObject @ 0x1001ec578
//
// 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 __fastcall SpawnTriggerGameObject::updateRemapKeys(SpawnTriggerGameObject *a1, std::vector *const a2)
{
__int64 *p_m_remapKeys; // x0
int v5; // [xsp+Ch] [xbp-14h] BYREF
if ( a1->m_remapKey < 1 )
{
if ( !a1->m_resetRemap )
{
p_m_remapKeys = (__int64 *)&a1->m_remapKeys;
if ( &a1->m_remapKeys != a2 )
sub_100017888(p_m_remapKeys, (char *)a2->__begin_, (char *)a2->__end_, a2->__end_ - a2->__begin_);
}
}
else
{
a1->m_remapKeys.__end_ = a1->m_remapKeys.__begin_;
sub_10000CBA8((__int64)&a1->m_remapKeys, &a1->m_remapKey);
if ( !a1->m_resetRemap )
sub_100399C68((_DWORD)a1 + 1872, a1->m_remapKeys.__end_, a2->__begin_);
if ( a2->__begin_ == a2->__end_ || a1->m_resetRemap )
{
v5 = -a1->m_uniqueID;
sub_10000CBA8((__int64)&a1->m_remapKeys, &v5);
}
}
}