//
// SpawnTriggerGameObject::removeRemap from 0x1001b4090 to 0x1001b4115 (133 bytes)
//
// 1 xrefs:
// > SetupSpawnPopup::onDeleteRemap @ 0x10027b66a
//
// This function is hookable on this platform (idp: pc, 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:26:11 +0000
//
char *__fastcall SpawnTriggerGameObject::removeRemap(__int64 a1, int a2, int a3)
{
char *v3; // rbx
char *result; // rax
__int64 v5; // rcx
size_t v6; // r14
v3 = *(char **)(a1 + 1840);
result = *(char **)(a1 + 1848);
if ( v3 != result )
{
v5 = ((result - v3) >> 4 == 0) + ((result - v3) >> 4);
v6 = result - v3 - 16;
while ( *(_DWORD *)v3 != a2 || *((_DWORD *)v3 + 2) != a3 )
{
v3 += 16;
v6 -= 16LL;
if ( !--v5 )
return result;
}
if ( v3 + 16 != result )
result = (char *)memmove(v3, v3 + 16, v6);
*(_QWORD *)(a1 + 1848) = &v3[v6];
}
return result;
}