//
// cocos2d::VolatileTexture::removeTexture from 0x800bf0 to 0x800c1e (46 bytes)
//
// 1 xrefs:
// > cocos2d::CCTexture2D::~CCTexture2D @ 0x7ff0f2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:20 +0000
//
void __fastcall cocos2d::VolatileTexture::removeTexture(cocos2d::VolatileTexture *this, cocos2d::CCTexture2D *a2)
{
int *i; // r2
cocos2d::VolatileTexture *v3; // r4
for ( i = (int *)dword_D311E0; i != &cocos2d::VolatileTexture::textures; i = (int *)i[1] )
{
v3 = (cocos2d::VolatileTexture *)i[2];
if ( *(cocos2d::VolatileTexture **)v3 == this )
{
cocos2d::VolatileTexture::~VolatileTexture(v3, i[1], *(_DWORD *)v3);
operator delete(v3);
return;
}
}
}