// // SpawnTriggerGameObject::changeRemap from 0x4f7560 to 0x4f76d6 (374 bytes) // // 2 xrefs: // > EditorUI::replaceGroupID @ 0x482f3e // > EditorUI::replaceGroupID @ 0x482f4e // // 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::changeRemap(SpawnTriggerGameObject *this, int a2, int a3, int a4) { int v5; // r4 int v6; // r5 int i; // r0 char *v8; // r5 char *v9; // lr _DWORD *v10; // r3 int v11; // r10 int v12; // r11 _DWORD *v13; // r2 int v14; // r1 int v15; // r1 int v16; // r2 int v17; // r2 _DWORD *v18; // r0 _DWORD **v19; // r3 _DWORD *v20; // r2 _DWORD ***v21; // r4 char *j; // r4 int v23; // r1 int v24; // r2 int v25; // r3 char *v26; // r4 char *v27; // r3 _DWORD **v28; // [sp+4h] [bp-18h] BYREF _DWORD *v29; // [sp+8h] [bp-14h] BYREF _DWORD *v30; // [sp+Ch] [bp-10h] BYREF int v31; // [sp+10h] [bp-Ch] v5 = *((_DWORD *)this + 412); v6 = *((_DWORD *)this + 413); if ( v5 != v6 ) { for ( i = v5 + 16; ; i += 16 ) { if ( a4 ) { if ( *(_DWORD *)(i - 16) == a2 && *(_DWORD *)(i - 8) != a3 ) *(_DWORD *)(i - 16) = a3; } else if ( *(_DWORD *)(i - 8) == a2 && *(_DWORD *)(i - 16) != a3 ) { *(_DWORD *)(i - 8) = a3; } if ( v6 == i ) break; } v8 = *((char **)this + 412); v30 = nullptr; v31 = 0; v29 = &v30; while ( 1 ) { LABEL_13: v9 = *((char **)this + 413); if ( v8 == v9 ) { std::__tree>::destroy((int)&v29, v30); return; } v10 = v30; v11 = *(_DWORD *)v8; v12 = *((_DWORD *)v8 + 2); v13 = v30; while ( v13 ) { v14 = v13[4]; if ( v11 < v14 ) goto LABEL_34; if ( v14 < v11 ) goto LABEL_35; v15 = v13[5]; if ( v12 < v15 ) { LABEL_34: v13 = (_DWORD *)*v13; } else { if ( v15 >= v12 ) { for ( j = v8 + 16; j != v9; j += 16 ) { v23 = *((_DWORD *)j + 1); v24 = *((_DWORD *)j + 2); v25 = *((_DWORD *)j + 3); *((_DWORD *)j - 4) = *(_DWORD *)j; *((_DWORD *)j - 3) = v23; *((_DWORD *)j - 2) = v24; *((_DWORD *)j - 1) = v25; } v26 = &v8[(j - (v8 + 16)) & 0xFFFFFFF0]; while ( 1 ) { v27 = *((char **)this + 413); if ( v26 == v27 ) break; *((_DWORD *)this + 413) = v27 - 16; } goto LABEL_13; } LABEL_35: v13 = (_DWORD *)v13[1]; } } if ( !v30 ) { v21 = (_DWORD ***)&v30; v28 = &v30; goto LABEL_28; } while ( 2 ) { v16 = v10[4]; if ( v11 < v16 ) goto LABEL_36; if ( v16 < v11 ) goto LABEL_39; v17 = v10[5]; if ( v12 < v17 ) { LABEL_36: v20 = (_DWORD *)*v10; if ( !*v10 ) { v28 = (_DWORD **)v10; v21 = (_DWORD ***)v10; goto LABEL_28; } LABEL_37: v10 = v20; continue; } break; } if ( v17 >= v12 ) { v28 = (_DWORD **)v10; v21 = &v28; goto LABEL_28; } LABEL_39: v20 = (_DWORD *)v10[1]; if ( v20 ) goto LABEL_37; v28 = (_DWORD **)v10; v21 = (_DWORD ***)(v10 + 1); LABEL_28: if ( !*v21 ) { v18 = (_DWORD *)operator new(0x18u); v19 = v28; *v18 = 0; v18[4] = v11; v18[2] = v19; v18[5] = v12; v18[1] = 0; *v21 = (_DWORD **)v18; if ( *v29 ) v29 = (_DWORD *)*v29; std::__tree_balance_after_insert *>(v30, *v21); ++v31; } v8 += 16; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source