//
// cocos2d::VolatileTexture::findVolotileTexture from 0xb34850 to 0xb348cc (124 bytes)
//
// 6 xrefs:
// > cocos2d::VolatileTexture::addImageTexture @ 0xb348f8
// > cocos2d::VolatileTexture::addCCImage @ 0xb35594
// > cocos2d::VolatileTexture::addDataTexture @ 0xb358bc
// > cocos2d::VolatileTexture::addStringTexture @ 0xb35944
// > cocos2d::VolatileTexture::setTexParameters @ 0xb359bc
// > ??> @ 0xa9d88
//
// 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
//
cocos2d::VolatileTexture **__fastcall cocos2d::VolatileTexture::findVolotileTexture(
cocos2d::VolatileTexture *this,
cocos2d::CCTexture2D *a2)
{
__int64 *v2; // x2
cocos2d::VolatileTexture **v3; // x19
cocos2d::VolatileTexture *v5; // x19
v2 = (__int64 *)cocos2d::VolatileTexture::textures;
if ( (__int64 *)cocos2d::VolatileTexture::textures == &cocos2d::VolatileTexture::textures )
{
LABEL_6:
v5 = (cocos2d::VolatileTexture *)operator new(0x78u);
cocos2d::VolatileTexture::VolatileTexture(v5, (cocos2d::CCTexture2D *)this);
return (cocos2d::VolatileTexture **)v5;
}
else
{
while ( 1 )
{
v3 = (cocos2d::VolatileTexture **)v2[2];
v2 = (__int64 *)*v2;
if ( *v3 == this )
return v3;
if ( v2 == &cocos2d::VolatileTexture::textures )
goto LABEL_6;
}
}
}