// // cocos2d::CCAutoreleasePool::clear from 0x180007580 to 0x1800075e8 (104 bytes) // // 4 xrefs: // > cocos2d::CCPoolManager::finalize @ 0x180007638 // > cocos2d::CCPoolManager::pop @ 0x1800076b3 // > @ 0x1801438a8 // > @ 0x1801ada68 // // 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 // void __fastcall cocos2d::CCAutoreleasePool::clear(cocos2d::CCAutoreleasePool *this) { cocos2d::CCArray *m_pManagedObjectArray; // rax cocos2d::ccArray *data; // rdx __int64 num; // rax cocos2d::CCObject **arr; // rdx cocos2d::CCObject **i; // rcx if ( (unsigned int)cocos2d::CCArray::count(this->m_pManagedObjectArray) ) { m_pManagedObjectArray = this->m_pManagedObjectArray; if ( m_pManagedObjectArray ) { data = m_pManagedObjectArray->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; for ( i = &arr[num - 1]; i >= arr; --i ) { if ( !*i ) break; --(*i)->m_uAutoReleaseCount; } } } cocos2d::CCArray::removeAllObjects(this->m_pManagedObjectArray); } }