//
// cocos2d::CCSpriteFrame::createWithTexture from 0x18008fac0 to 0x18008fb64 (164 bytes)
//
// 3 xrefs:
// > cocos2d::CCSprite::displayFrame @ 0x18008b935
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6228
//
// 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
//
struct cocos2d::CCSpriteFrame *__fastcall cocos2d::CCSpriteFrame::createWithTexture(
struct cocos2d::CCTexture2D *a1,
const struct cocos2d::CCRect *a2,
bool a3,
const struct cocos2d::CCPoint *a4,
const struct cocos2d::CCSize *a5)
{
cocos2d::CCSpriteFrame *v9; // rax
cocos2d::CCSpriteFrame *v10; // rbx
cocos2d::CCSpriteFrame *v11; // rbx
v9 = (cocos2d::CCSpriteFrame *)operator new(0xC8u);
v10 = v9;
if ( v9 )
{
memset(v9, 0, sizeof(cocos2d::CCSpriteFrame));
v11 = cocos2d::CCSpriteFrame::CCSpriteFrame(v10);
}
else
{
v11 = nullptr;
}
cocos2d::CCSpriteFrame::initWithTexture(v11, a1, a2, a3, a4, a5);
cocos2d::CCObject::autorelease(v11);
return v11;
}