// // GJBaseGameLayer::generateSpawnRemap from 0x10027a264 to 0x10027a33c (216 bytes) // // 2 xrefs: // > GJBaseGameLayer::updateSpecialGroupData @ 0x10027a208 // > LevelEditorLayer::getLevelString @ 0x1003fc67c // // 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 11:01:52 +0000 // __int64 __fastcall GJBaseGameLayer::generateSpawnRemap(_QWORD *a1) { __int64 v2; // x0 __int64 v3; // x20 __int64 result; // x0 __int64 v5; // x8 unsigned int *v6; // x9 __int64 v7; // x8 __int64 *v8; // x20 unsigned __int64 v9; // x21 __int64 v10; // x22 _OWORD v11[2]; // [xsp+0h] [xbp-50h] BYREF int v12; // [xsp+20h] [xbp-30h] v2 = a1[262]; v3 = a1[261]; while ( v2 != v3 ) v2 = sub_1000184EC(v2 - 40); a1[262] = v3; memset(v11, 0, sizeof(v11)); v12 = 1065353216; sub_100289678(a1 + 261, v11); result = sub_1000184EC((__int64)v11); v5 = a1[410]; if ( v5 ) { v6 = *(unsigned int **)(v5 + 56); v7 = *v6; if ( (_DWORD)v7 ) { v8 = *((__int64 **)v6 + 2); v9 = (unsigned __int64)&v8[v7 - 1]; do { v10 = *v8; if ( !*v8 ) break; if ( *(_DWORD *)(v10 + 1028) == 1268 ) { if ( *(_QWORD *)(v10 + 1840) == *(_QWORD *)(v10 + 1848) ) result = 0; else result = GJBaseGameLayer::registerSpawnRemap(a1, v10 + 1840); *(_DWORD *)(v10 + 1864) = result; } ++v8; } while ( (unsigned __int64)v8 <= v9 ); } } return result; }