// // GJBaseGameLayer::generateSpawnRemap from 0x1000f3710 to 0x1000f388a (378 bytes) // // 2 xrefs: // > LevelEditorLayer::getLevelString @ 0x1000b304a // > GJBaseGameLayer::updateSpecialGroupData @ 0x1000f36a9 // // 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:21:12 +0000 // unsigned int *__fastcall GJBaseGameLayer::generateSpawnRemap(_QWORD *a1) { unsigned __int64 v2; // r14 void **v3; // r15 _QWORD *v4; // rdi _QWORD *v5; // r12 void *v6; // rdi __int64 v7; // rax _QWORD *v8; // rdi _QWORD *v9; // r14 void *v10; // rdi unsigned int *result; // rax __int64 *v12; // r14 unsigned __int64 v13; // r15 __int64 v14; // r12 void *v15[2]; // [rsp+0h] [rbp-50h] BYREF void *__p[2]; // [rsp+10h] [rbp-40h] int v17; // [rsp+20h] [rbp-30h] v2 = a1[261]; v3 = (void **)a1[262]; while ( v3 != (void **)v2 ) { v4 = *(v3 - 3); if ( v4 ) { do { v5 = (_QWORD *)*v4; operator delete(v4); v4 = v5; } while ( v5 ); } v3 -= 5; v6 = *v3; *v3 = nullptr; if ( v6 ) operator delete(v6); } a1[262] = v2; *(_OWORD *)__p = 0; *(_OWORD *)v15 = 0; v17 = 1065353216; if ( v2 >= a1[263] ) { v7 = sub_100148440(a1 + 261, v15); v8 = __p[0]; a1[262] = v7; if ( v8 ) { do { v9 = (_QWORD *)*v8; operator delete(v8); v8 = v9; } while ( v9 ); } } else { *(_OWORD *)v2 = 0; v15[1] = nullptr; *(_OWORD *)(v2 + 16) = 0; *(_DWORD *)(v2 + 32) = 1065353216; a1[262] = v2 + 40; } v10 = v15[0]; v15[0] = nullptr; if ( v10 ) operator delete(v10); result = (unsigned int *)a1[410]; if ( result ) { result = *((unsigned int **)result + 7); if ( *result ) { v12 = *((__int64 **)result + 2); v13 = (unsigned __int64)&v12[*result - 1]; do { v14 = *v12; if ( !*v12 ) break; if ( *(_DWORD *)(v14 + 1028) == 1268 ) { if ( *(_QWORD *)(v14 + 1840) == *(_QWORD *)(v14 + 1848) ) result = nullptr; else result = (unsigned int *)GJBaseGameLayer::registerSpawnRemap(a1, v14 + 1840); *(_DWORD *)(v14 + 1864) = (_DWORD)result; } ++v12; } while ( (unsigned __int64)v12 <= v13 ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source