//
// cocos2d::VolatileTexture::removeTexture from 0xda5a64 to 0xda5acc (104 bytes)
//
// 2 xrefs:
// > cocos2d::CCTexture2D::~CCTexture2D @ 0xda2384
// > ??> @ 0xc5758
//
// 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:08:32 +0000
//
void __fastcall cocos2d::VolatileTexture::removeTexture(cocos2d::VolatileTexture *this, cocos2d::CCTexture2D *a2)
{
__int64 *v2; // x1
cocos2d::VolatileTexture *v3; // x19
v2 = (__int64 *)qword_1562350;
if ( (__int64 *)qword_1562350 != &cocos2d::VolatileTexture::textures )
{
while ( 1 )
{
v3 = (cocos2d::VolatileTexture *)v2[2];
v2 = (__int64 *)v2[1];
if ( *(cocos2d::VolatileTexture **)v3 == this )
break;
if ( v2 == &cocos2d::VolatileTexture::textures )
return;
}
cocos2d::VolatileTexture::~VolatileTexture(v3);
operator delete(v3);
}
}