//
// cocos2d::CCTexturePVR::create from 0x1002857d0 to 0x100285836 (102 bytes)
//
// 0 xrefs:
//
// 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::CCTexturePVR *__fastcall cocos2d::CCTexturePVR::create(const char *a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x158u);
cocos2d::CCObject::CCObject(v1);
*(_QWORD *)v1 = off_1008F2D30;
*(_OWORD *)(v1 + 312) = 0;
*(_OWORD *)(v1 + 328) = 0;
if ( cocos2d::CCTexturePVR::initWithContentsOfFile((cocos2d::CCTexturePVR *)v1, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (cocos2d::CCTexturePVR *)v1;
}