// // SpawnTriggerGameObject::updateRemapKeys from 0x4f65a0 to 0x4f66b8 (280 bytes) // // 5 xrefs: // > GJBaseGameLayer::playerTouchedTrigger @ 0x5a414a // > GJBaseGameLayer::spawnObject @ 0x5a8042 // > GJBaseGameLayer::spawnObject @ 0x5a8096 // > GJBaseGameLayer::checkSpawnObjects @ 0x5a8d7c // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba9ec // // 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:17 +0000 // void __fastcall SpawnTriggerGameObject::updateRemapKeys(int a1, char **a2) { int v3; // r1 int *v5; // r3 int *v6; // r2 int v7; // r6 char **v8; // r0 int *v9; // r2 unsigned int v10; // r0 int v11; // r7 int v12; // r3 int v13; // r4 int v14; // r2 unsigned int v15; // r1 unsigned int v16; // r0 unsigned int v17; // r0 _DWORD v18[2]; // [sp+0h] [bp-1Ch] BYREF int *v19; // [sp+8h] [bp-14h] v3 = *(_DWORD *)(a1 + 1660); if ( v3 <= 0 ) { if ( !*(_BYTE *)(a1 + 1696) ) { v8 = (char **)(a1 + 1664); if ( v8 != a2 ) std::vector::assign(v8, *a2, a2[1]); } } else { v5 = *(int **)(a1 + 1664); while ( 1 ) { v6 = *(int **)(a1 + 1668); if ( v5 == v6 ) break; *(_DWORD *)(a1 + 1668) = v6 - 1; } v7 = a1 + 1664; if ( v5 == *(int **)(a1 + 1672) ) { std::vector::__push_back_slow_path(a1 + 1664, (_DWORD *)(a1 + 1660)); } else { if ( v5 ) *v5 = v3; *(_DWORD *)(a1 + 1668) += 4; } if ( !*(_BYTE *)(a1 + 1696) ) std::vector::insert>((_DWORD *)(a1 + 1664), *(char **)(a1 + 1668), *a2, a2[1]); if ( *a2 == a2[1] || *(_BYTE *)(a1 + 1696) ) { v9 = *(int **)(a1 + 1668); v10 = *(_DWORD *)(a1 + 1672); v11 = -*(_DWORD *)(a1 + 780); if ( (unsigned int)v9 >= v10 ) { v12 = a1 + 1672; v13 = *(_DWORD *)(a1 + 1664); v14 = ((int)v9 - v13) >> 2; v15 = v14 + 1; if ( (unsigned int)(v14 + 1) >= 0x40000000 ) sub_388170(); v16 = (int)(v10 - v13) >> 2; if ( v16 > 0x1FFFFFFE ) { v15 = 0x3FFFFFFF; } else { v17 = 2 * v16; if ( v15 < v17 ) v15 = v17; } std::__split_buffer::__split_buffer(v18, v15, v14, v12); if ( v19 ) *v19 = v11; ++v19; std::vector::__swap_out_circular_buffer(v7, v18); std::__split_buffer::~__split_buffer((int)v18); } else { if ( v9 ) *v9 = v11; *(_DWORD *)(a1 + 1668) += 4; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source