//
// cocos2d::extension::AssetsManager::Helper::~Helper from 0xd0970c to 0xd097b8 (172 bytes)
//
// 4 xrefs:
// > cocos2d::extension::AssetsManager::Helper::~Helper @ 0xd097c8
// > ??> @ 0x50b18
// > ??> @ 0xd9708
// > ??> @ 0x1509c78
//
// 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 13:06:58 +0000
//
// Alternative name is '_ZN7cocos2d9extension13AssetsManager6HelperD2Ev'
void __fastcall cocos2d::extension::AssetsManager::Helper::~Helper(cocos2d::extension::AssetsManager::Helper *this)
{
__int64 v2; // x0
cocos2d::CCScheduler *v3; // x0
_QWORD *v4; // x19
_QWORD *v5; // x0
__int64 v6; // x1
_QWORD *v7; // x20
*(_QWORD *)this = &off_1509C70;
v2 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)&off_1509C70);
v3 = (cocos2d::CCScheduler *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 128LL))(v2);
cocos2d::CCScheduler::unscheduleAllForTarget(v3, this);
v4 = *((_QWORD **)this + 7);
if ( v4 )
{
if ( v4[2] )
{
v5 = (_QWORD *)v4[1];
v6 = *v4;
*(_QWORD *)(*v5 + 8LL) = *(_QWORD *)(*v4 + 8LL);
**(_QWORD **)(v6 + 8) = *v5;
v4[2] = 0;
if ( v5 != v4 )
{
do
{
v7 = (_QWORD *)v5[1];
operator delete(v5);
v5 = v7;
}
while ( v4 != v7 );
}
}
operator delete(v4);
}
cocos2d::CCObject::~CCObject(this);
}