//
// SpawnTriggerGameObject::getRemapWithSource from 0x87e320 to 0x87e36c (76 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::addTriggersWithTargetGroupID @ 0x79b374
// > ??> @ 0x93c40
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:55:54 +0000
//
_DWORD *__fastcall SpawnTriggerGameObject::getRemapWithSource(SpawnTriggerGameObject *this, int a2)
{
_DWORD *v2; // x4
_DWORD *v3; // x0
_DWORD *i; // x2
int v5; // t1
v2 = *((_DWORD **)this + 230);
v3 = *((_DWORD **)this + 231);
if ( v2 == v3 )
return nullptr;
if ( *v2 != a2 )
{
for ( i = v2 + 4; ; i += 4 )
{
v2 = i;
if ( v3 == i )
break;
v5 = *i;
if ( v5 == a2 )
return v2;
}
return nullptr;
}
return v2;
}