//
// cocos2d::VolatileTexture::findVolotileTexture from 0xda5efc to 0xda5f78 (124 bytes)
//
// 6 xrefs:
// > cocos2d::VolatileTexture::addCCImage @ 0xda5f88
// > cocos2d::VolatileTexture::addDataTexture @ 0xda5fec
// > cocos2d::VolatileTexture::setTexParameters @ 0xda6028
// > cocos2d::VolatileTexture::addImageTexture @ 0xda633c
// > cocos2d::VolatileTexture::addStringTexture @ 0xda6950
// > ??> @ 0xdea30
//
// 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
//
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 *)qword_1562350;
if ( (__int64 *)qword_1562350 == &cocos2d::VolatileTexture::textures )
{
LABEL_6:
v5 = (cocos2d::VolatileTexture *)operator new(0xA8u);
cocos2d::VolatileTexture::VolatileTexture(v5, this);
return (cocos2d::VolatileTexture **)v5;
}
else
{
while ( 1 )
{
v3 = (cocos2d::VolatileTexture **)v2[2];
v2 = (__int64 *)v2[1];
if ( *v3 == this )
return v3;
if ( v2 == &cocos2d::VolatileTexture::textures )
goto LABEL_6;
}
}
}