//
// cocos2d::CCTexture2D::initWithPVRFile from 0x7ff3c0 to 0x7ff472 (178 bytes)
//
// 2 xrefs:
// > cocos2d::CCTextureCache::addPVRImage @ 0x801290
// > cocos2d::VolatileTexture::reloadAllTextures @ 0x80153e
//
// 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:18 +0000
//
int __fastcall cocos2d::CCTexture2D::initWithPVRFile(cocos2d::CCTexture2D *this, const char *a2, float a3, float a4)
{
int v6; // r5
int v7; // r7
unsigned int v8; // s15
unsigned int v9; // r2
float v11[3]; // [sp+4h] [bp-Ch] BYREF
LODWORD(v11[0]) = a2;
v11[1] = a3;
v11[2] = a4;
v6 = operator new(0xD0u);
cocos2d::CCTexturePVR::CCTexturePVR((cocos2d::CCTexturePVR *)v6);
v7 = cocos2d::CCTexturePVR::initWithContentsOfFile((cocos2d::CCTexturePVR *)v6, a2);
if ( v7 )
{
*(_BYTE *)(v6 + 199) = 1;
*((_DWORD *)this + 17) = *(_DWORD *)(v6 + 192);
*((_DWORD *)this + 18) = 1065353216;
*((_DWORD *)this + 19) = 1065353216;
v8 = *(_DWORD *)(v6 + 184);
*((_DWORD *)this + 15) = v8;
v9 = *(_DWORD *)(v6 + 188);
*((_DWORD *)this + 16) = v9;
cocos2d::CCSize::CCSize(v11, (float)v8, (float)v9);
cocos2d::CCSize::operator=((float *)this + 20, v11);
*((_BYTE *)this + 88) = byte_D31118;
*((_DWORD *)this + 14) = *(_DWORD *)(v6 + 200);
*((_BYTE *)this + 89) = *(_DWORD *)(v6 + 180) > 1u;
cocos2d::CCObject::release((_DWORD *)v6);
}
return v7;
}