//
// SpawnTriggerGameObject::removeRemap from 0x4e9034 to 0x4e9094 (96 bytes)
//
// 1 xrefs:
// > SetupSpawnPopup::onDeleteRemap @ 0x5eab6e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:51:07 +0000
//
int __fastcall SpawnTriggerGameObject::removeRemap(int this, int a2, int a3)
{
int v3; // r7
char *v4; // r5
char *v5; // lr
int v6; // r3
char *i; // r4
int v8; // r1
int v9; // r2
int v10; // r3
char *v11; // r2
v3 = this;
v4 = *(char **)(this + 1648);
v5 = *(char **)(this + 1652);
if ( v4 != v5 )
{
this = 0;
v6 = (v5 - v4) >> 4;
while ( this != v6 )
{
if ( *(_DWORD *)v4 == a2 && *((_DWORD *)v4 + 2) == a3 )
{
for ( i = v4 + 16; i != v5; i += 16 )
{
this = *(_DWORD *)i;
v8 = *((_DWORD *)i + 1);
v9 = *((_DWORD *)i + 2);
v10 = *((_DWORD *)i + 3);
*((_DWORD *)i - 4) = *(_DWORD *)i;
*((_DWORD *)i - 3) = v8;
*((_DWORD *)i - 2) = v9;
*((_DWORD *)i - 1) = v10;
}
while ( 1 )
{
v11 = *(char **)(v3 + 1652);
if ( &v4[(i - (v4 + 16)) & 0xFFFFFFF0] == v11 )
break;
*(_DWORD *)(v3 + 1652) = v11 - 16;
}
return this;
}
++this;
v4 += 16;
}
}
return this;
}