//
// cocos2d::VolatileTexture::~VolatileTexture from 0x5f4fd8 to 0x5f506a (146 bytes)
//
// 1 xrefs:
// > cocos2d::VolatileTexture::removeTexture @ 0x5f57be
//
// 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
//
// Alternative name is '_ZN7cocos2d15VolatileTextureD1Ev'
void __fastcall cocos2d::VolatileTexture::~VolatileTexture(cocos2d::VolatileTexture *this, int a2)
{
int *v3; // r4
int *i; // r5
int *v5; // r10
cocos2d::CCImage *uiImage; // r0
_DWORD v7[2]; // [sp+0h] [bp-8h] BYREF
v7[1] = a2;
v7[0] = this;
v3 = &cocos2d::VolatileTexture::textures;
for ( i = (int *)cocos2d::VolatileTexture::textures; i != &cocos2d::VolatileTexture::textures; i = v5 )
{
v5 = (int *)*i;
if ( (cocos2d::VolatileTexture *)i[2] == this )
{
if ( i + 2 == v7 )
{
v3 = i;
}
else
{
sub_74AB00(i);
operator delete(i);
}
}
}
if ( v3 != i )
{
sub_74AB00(v3);
operator delete(v3);
}
uiImage = this->uiImage;
if ( uiImage )
cocos2d::CCObject::release(uiImage);
sub_774008(&this->m_strText);
sub_774008(&this->m_strFontName);
sub_774008(&this->m_strFileName);
}