//
// cocos2d::CCTexture2D::initWithPVRFile from 0xda2778 to 0xda2870 (248 bytes)
//
// 3 xrefs:
// > cocos2d::CCTextureCache::addPVRImage @ 0xda683c
// > cocos2d::VolatileTexture::reloadAllTextures @ 0xda6c48
// > ??> @ 0x68710
//
// 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:30 +0000
//
__int64 __fastcall cocos2d::CCTexture2D::initWithPVRFile(cocos2d::CCTexture2D *this, const char *a2)
{
__int64 v3; // x20
unsigned __int8 v4; // w0
unsigned int v5; // w22
int v6; // w0
unsigned int v7; // w3
unsigned int v8; // w2
float v11; // [xsp+40h] [xbp+40h] BYREF
v3 = operator new(0x158u);
cocos2d::CCTexturePVR::CCTexturePVR((cocos2d::CCTexturePVR *)v3);
v4 = cocos2d::CCTexturePVR::initWithContentsOfFile((cocos2d::CCTexturePVR *)v3, a2);
v5 = v4;
if ( v4 )
{
v6 = *(_DWORD *)(v3 + 324);
*(_BYTE *)(v3 + 331) = 1;
*((_DWORD *)this + 18) = v6;
*((float *)this + 19) = 1.0;
*((float *)this + 20) = 1.0;
v7 = *(_DWORD *)(v3 + 316);
*((_DWORD *)this + 16) = v7;
v8 = *(_DWORD *)(v3 + 320);
*((_DWORD *)this + 17) = v8;
cocos2d::CCSize::CCSize(&v11, (float)v7, (float)v8);
cocos2d::CCSize::operator=((float *)this + 21, &v11);
*((_BYTE *)this + 92) = byte_15621D0;
*((_DWORD *)this + 15) = *(_DWORD *)(v3 + 332);
*((_BYTE *)this + 93) = *(_DWORD *)(v3 + 312) > 1u;
cocos2d::CCObject::release((_DWORD *)v3);
}
return v5;
}