//
// cocos2d::CCSpriteFrame::createWithTexture from 0x10024df84 to 0x10024e064 (224 bytes)
//
// 1 xrefs:
// > cocos2d::CCSprite::displayFrame @ 0x100239774
//
// 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::CCSpriteFrame *__fastcall cocos2d::CCSpriteFrame::createWithTexture(
cocos2d::CCTexture2D *a1,
const cocos2d::CCRect *a2,
bool a3,
const cocos2d::CCPoint *a4,
const cocos2d::CCSize *a5)
{
_OWORD *v10; // x19
v10 = operator new(0xB8u);
*v10 = 0u;
v10[1] = 0u;
v10[2] = 0u;
v10[3] = 0u;
v10[4] = 0u;
v10[5] = 0u;
v10[6] = 0u;
v10[7] = 0u;
v10[8] = 0u;
v10[9] = 0u;
v10[10] = 0u;
*((_QWORD *)v10 + 22) = 0;
cocos2d::CCObject::CCObject((__int64)v10);
*(_QWORD *)v10 = off_1007CE950;
sub_1000229B0((_QWORD *)v10 + 7);
sub_100022AF4((_QWORD *)v10 + 8);
sub_100022B90((_QWORD *)v10 + 9);
sub_100022B90((_OWORD *)((char *)v10 + 92));
sub_1000229B0((_OWORD *)((char *)v10 + 108));
sub_100022AF4((_OWORD *)((char *)v10 + 116));
*(_OWORD *)((char *)v10 + 168) = 0u;
*(_OWORD *)((char *)v10 + 152) = 0u;
*(_OWORD *)((char *)v10 + 136) = 0u;
cocos2d::CCSpriteFrame::initWithTexture((cocos2d::CCSpriteFrame *)v10, a1, a2, a3, a4, a5);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v10);
return (cocos2d::CCSpriteFrame *)v10;
}