//
// cocos2d::CCSpriteFrame::createWithTexture from 0x180092c10 to 0x180092c84 (116 bytes)
//
// 4 xrefs:
// > cocos2d::CCAnimation::addSpriteFrameWithFileName @ 0x18008ca31
// > cocos2d::CCAnimation::addSpriteFrameWithTexture @ 0x18008ca62
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c04d4
//
// This function is hookable on this platform (idp: pc, 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 11:22:08 +0000
//
struct cocos2d::CCSpriteFrame *__fastcall cocos2d::CCSpriteFrame::createWithTexture(
struct cocos2d::CCTexture2D *a1,
const struct cocos2d::CCRect *a2)
{
cocos2d::CCSpriteFrame *v4; // rax
cocos2d::CCSpriteFrame *v5; // rbx
cocos2d::CCSpriteFrame *v6; // rbx
v4 = (cocos2d::CCSpriteFrame *)sub_1800E4AC0(0xC8u);
v5 = v4;
if ( v4 )
{
memset(v4, 0, 0xC8u);
v6 = cocos2d::CCSpriteFrame::CCSpriteFrame(v5);
}
else
{
v6 = nullptr;
}
cocos2d::CCSpriteFrame::initWithTexture(v6, a1, a2);
cocos2d::CCObject::autorelease(v6);
return v6;
}