// // SetGroupIDLayer::onNextFreeEditorLayer2 from 0x1002ff400 to 0x1002ff4f2 (242 bytes) // // 1 xrefs: // > SetGroupIDLayer::init @ 0x1002fd5e0 // // 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:28:32 +0000 // __int64 __fastcall SetGroupIDLayer::onNextFreeEditorLayer2(__int64 a1, __int64 a2, __int64 a3) { __int64 v4; // rax __int64 v5; // rdi _QWORD *v6; // rdi _QWORD *v7; // r14 void *v8; // rdi __int64 v9; // rax unsigned int v10; // r14d void *v12[2]; // [rsp+0h] [rbp-40h] BYREF void *__p[2]; // [rsp+10h] [rbp-30h] int v14; // [rsp+20h] [rbp-20h] GameManager::sharedState(a1, a2, a3); v5 = *(_QWORD *)(v4 + 552); *(_OWORD *)__p = 0; *(_OWORD *)v12 = 0; v14 = 1065353216; *(_DWORD *)(a1 + 772) = LevelEditorLayer::getNextFreeEditorLayer(v5, (__int64)v12); v6 = __p[0]; if ( __p[0] ) { do { v7 = (_QWORD *)*v6; operator delete(v6); v6 = v7; } while ( v7 ); } v8 = v12[0]; v12[0] = nullptr; if ( v8 ) operator delete(v8); v9 = *(_QWORD *)(a1 + 672); if ( v9 ) { *(_WORD *)(v9 + 1204) = *(_WORD *)(a1 + 772); } else if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 680)) ) { v10 = 0; do *(_WORD *)(sub_1007FEFE0(*(_QWORD *)(a1 + 680), v10++) + 1204) = *(_WORD *)(a1 + 772); while ( v10 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 680)) ); } return sub_1003007F0(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source