// // GJBaseGameLayer::generateSpawnRemap from 0x9f0bec to 0x9f0dc4 (472 bytes) // // 3 xrefs: // > LevelEditorLayer::getLevelString @ 0x7a7810 // > GJBaseGameLayer::updateSpecialGroupData @ 0x9f3c58 // > @ 0xefd28 // // 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:59:06 +0000 // __int64 __fastcall GJBaseGameLayer::generateSpawnRemap(GJBaseGameLayer *this) { __int64 v2; // x23 unsigned __int64 i; // x20 _QWORD *v4; // x0 _QWORD *v5; // x19 void *v6; // x0 unsigned __int64 v7; // x0 _QWORD *v8; // x0 _QWORD *v9; // x19 void *v10; // x0 __int64 v11; // x0 unsigned int *v12; // x1 __int64 *v13; // x19 __int64 *j; // x23 __int64 v15; // x20 void *v17[2]; // [xsp+40h] [xbp+40h] BYREF void *v18; // [xsp+50h] [xbp+50h] __int64 v19; // [xsp+58h] [xbp+58h] float v20; // [xsp+60h] [xbp+60h] v2 = *((_QWORD *)this + 261); for ( i = *((_QWORD *)this + 262); v2 != i; i = *((_QWORD *)this + 262) ) { *((_QWORD *)this + 262) = i - 40; v4 = *(_QWORD **)(i - 24); if ( v4 ) { do { v5 = (_QWORD *)*v4; operator delete(v4); v4 = v5; } while ( v5 ); } v6 = *(void **)(i - 40); *(_QWORD *)(i - 40) = 0; if ( v6 ) operator delete(v6); } v7 = *((_QWORD *)this + 263); v17[0] = nullptr; v17[1] = nullptr; v18 = nullptr; v19 = 0; v20 = 1.0; if ( v7 <= i ) { std::vector>::__push_back_slow_path>( (__int64 *)this + 261, (__int64 *)v17); v8 = v18; } else { if ( i ) { std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__hash_table( i, (__int64 *)v17); v8 = v18; } else { v8 = nullptr; } *((_QWORD *)this + 262) += 40LL; } if ( v8 ) { do { v9 = (_QWORD *)*v8; operator delete(v8); v8 = v9; } while ( v9 ); } v10 = v17[0]; v17[0] = nullptr; if ( v10 ) operator delete(v10); v11 = *((_QWORD *)this + 410); if ( v11 ) { v12 = *(unsigned int **)(v11 + 56); if ( *v12 ) { v13 = *((__int64 **)v12 + 2); for ( j = &v13[*v12 - 1]; j >= v13; ++v13 ) { v15 = *v13; if ( !*v13 ) break; if ( *(_DWORD *)(v15 + 1028) == 1268 ) { if ( *(_QWORD *)(v15 + 1840) == *(_QWORD *)(v15 + 1848) ) *(_DWORD *)(v15 + 1864) = 0; else *(_DWORD *)(v15 + 1864) = GJBaseGameLayer::registerSpawnRemap(this, (int **)(v15 + 1840)); } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source