//
// SpawnTriggerGameObject::getRemapWithTarget from 0x87e36c to 0x87e3bc (80 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::addTriggersWithGroupID @ 0x79b4d0
// > ??> @ 0xe6da0
//
// 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
//
__int64 __fastcall SpawnTriggerGameObject::getRemapWithTarget(SpawnTriggerGameObject *this, int a2)
{
__int64 v2; // x4
__int64 v3; // x0
__int64 v4; // x2
bool v5; // zf
v2 = *((_QWORD *)this + 230);
v3 = *((_QWORD *)this + 231);
if ( v2 == v3 )
return 0;
if ( *(_DWORD *)(v2 + 8) != a2 )
{
v4 = v2 + 16;
while ( 1 )
{
v5 = v3 == v4;
v2 = v4;
v4 += 16;
if ( v5 )
break;
if ( *(_DWORD *)(v4 - 8) == a2 )
return v2;
}
return 0;
}
return v2;
}