//
// cocos2d::VolatileTexture::addImageTexture from 0xb348cc to 0xb34948 (124 bytes)
//
// 4 xrefs:
// > cocos2d::CCTextureCache::addImageAsyncCallBack @ 0xb34aa0
// > cocos2d::CCTextureCache::addPVRImage @ 0xb34e4c
// > cocos2d::CCTextureCache::addImage @ 0xb352e0
// > ??> @ 0x3ab90
//
// 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::addImageTexture(
cocos2d::VolatileTexture *result,
cocos2d::CCTexture2D *a2,
int a3)
{
cocos2d::VolatileTexture *v5; // x19
cocos2d::VolatileTexture **VolotileTexture; // x22
size_t v7; // x0
long double v8; // q0
cocos2d::CCTexture2D *texture; // x1
if ( !cocos2d::VolatileTexture::isReloading )
{
v5 = result;
VolotileTexture = cocos2d::VolatileTexture::findVolotileTexture(result, a2);
*((_DWORD *)VolotileTexture + 4) = 1;
v7 = strlen((const char *)a2);
*(__n128 *)&v8 = sub_D1798C(VolotileTexture + 6, (const char *)a2, v7);
texture = v5->texture;
*((_DWORD *)VolotileTexture + 14) = a3;
result = (cocos2d::VolatileTexture *)(*(__int64 (__fastcall **)(cocos2d::VolatileTexture *, long double))&texture->m_fMaxT)(
v5,
v8);
*((_DWORD *)VolotileTexture + 10) = (_DWORD)result;
}
return result;
}