// // sub_100667360 from 0x100667360 to 0x1006673ee (142 bytes) // // 4 xrefs: // > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x100234288 // > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x10044346b // > cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0x1004aec03 // > sub_100720270 @ 0x100720279 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_100667360(unsigned int *a1) { __int64 v2; // rax __int64 v3; // rcx __int64 v4; // rdx int v5; // esi __int64 v6; // rdi __int64 v7; // rcx unsigned int v8; // eax __int64 result; // rax v2 = a1[2]; if ( v2 != 0xFFFFFFFFLL ) { if ( (int)v2 > 0 ) { v3 = *((_QWORD *)a1 + 2); v4 = 0; v5 = 0; do { v6 = *(_QWORD *)(v3 + 8 * v4); if ( v6 ) { if ( v5 > 0 ) { *(_QWORD *)(v3 - 8LL * v5 + 8 * v4) = v6; *(_DWORD *)(v6 + 36) = v4 - v5; } } else { ++v5; } ++v4; } while ( v2 != v4 ); } a1[2] = -1; } while ( 1 ) { result = *a1; if ( !(_DWORD)result ) break; v7 = *((_QWORD *)a1 + 2); v8 = result - 1; *a1 = v8; cocos2d::CCObject::release(*(cocos2d::CCObject **)(v7 + 8LL * v8)); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source