//
// cocos2d::VolatileTexture::removeTexture from 0xb359fc to 0xb35a64 (104 bytes)
//
// 2 xrefs:
// > cocos2d::CCTexture2D::~CCTexture2D @ 0xb30fd4
// > ??> @ 0x95730
//
// 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::VolatileTexture::removeTexture(cocos2d::VolatileTexture *this, cocos2d::CCTexture2D *a2)
{
__int64 *v2; // x1
cocos2d::VolatileTexture *v3; // x19
v2 = (__int64 *)cocos2d::VolatileTexture::textures;
if ( (__int64 *)cocos2d::VolatileTexture::textures != &cocos2d::VolatileTexture::textures )
{
while ( 1 )
{
v3 = (cocos2d::VolatileTexture *)v2[2];
v2 = (__int64 *)*v2;
if ( (cocos2d::VolatileTexture *)v3->texture == this )
break;
if ( v2 == &cocos2d::VolatileTexture::textures )
return;
}
cocos2d::VolatileTexture::~VolatileTexture(v3);
operator delete(v3);
}
}