// // GameLevelManager::getNextFreeTemplateID from 0x10054ef60 to 0x10054f023 (195 bytes) // // 1 xrefs: // > GameLevelManager::createSmartTemplate @ 0x10054f045 // // 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:32:02 +0000 // __int64 __fastcall GameLevelManager::getNextFreeTemplateID(__int64 a1) { _QWORD *v1; // rbx void *v2; // r12 unsigned int v3; // r13d int v4; // r14d __int64 v5; // rdx __int64 v6; // r15 v1 = cocos2d::CCDictionary::create(); v2 = cocos2d::CCNode::create(); if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 1520)) ) { v3 = 0; v4 = 0; do { v5 = *(int *)(sub_1007FEFE0(*(_QWORD *)(a1 + 1520), v3) + 192); if ( (int)v5 > v4 ) v4 = v5; cocos2d::CCDictionary::setObject_1((__int64)v1, (__int64)v2, v5); ++v3; } while ( v3 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 1520)) ); } else { v4 = 0; } v6 = 1; while ( cocos2d::CCDictionary::objectForKey_1((__int64)v1, v6) ) { if ( ++v6 == 1001 ) return (unsigned int)v4; } return (unsigned int)v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source