//
// CCSpriteWithHue::createWithSpriteFrame from 0x6dd6f4 to 0x6dd7dc (232 bytes)
//
// 2 xrefs:
// > CCSpriteWithHue::createWithSpriteFrameName @ 0x6dd80c
// > ??> @ 0x9d138
//
// 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 12:51:35 +0000
//
cocos2d::CCSprite *__fastcall CCSpriteWithHue::createWithSpriteFrame(CCSpriteWithHue *this, cocos2d::CCSpriteFrame *a2)
{
cocos2d::CCSprite *v3; // x0
cocos2d::CCSprite *v4; // x19
__int64 (__fastcall **v5)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *); // x1
v3 = (cocos2d::CCSprite *)operator new(0x298u, (const std::nothrow_t *)&std::nothrow);
v4 = v3;
if ( !v3 )
return nullptr;
memset(v3, 0, 0x298u);
cocos2d::CCSprite::CCSprite(v4);
v5 = &off_14236D0;
*(_QWORD *)v4 = &off_14236D0;
*((_QWORD *)v4 + 40) = &off_1423BD0;
*((_QWORD *)v4 + 43) = &off_1423C50;
if ( !this )
{
LABEL_3:
((void (__fastcall *)(cocos2d::CCSprite *))v5[2])(v4);
return nullptr;
}
if ( !(unsigned __int8)CCSpriteWithHue::initWithSpriteFrame(v4, this) )
{
v5 = *(__int64 (__fastcall ***)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *))v4;
goto LABEL_3;
}
cocos2d::CCObject::autorelease(v4);
return v4;
}