// // CCSpriteWithHue::create from 0x1005efba0 to 0x1005efc48 (168 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::CCSprite *__fastcall CCSpriteWithHue::create(__int64 a1, const cocos2d::CCRect *a2) { cocos2d::CCSprite *v2; // rax cocos2d::CCSprite *v3; // rbx const char *v4; // r15 v2 = (cocos2d::CCSprite *)operator new(0x298u, &std::nothrow); if ( !v2 ) return nullptr; v3 = v2; __bzero(v2, 664); cocos2d::CCSprite::CCSprite((__int64)v3, 664); v3->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCSprite_vtbl *)off_10097A1A8; v3->cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_10097A698; v3->cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_10097A718; if ( (*(_BYTE *)a1 & 1) != 0 ) v4 = *(const char **)(a1 + 16); else v4 = (const char *)(a1 + 1); if ( !cocos2d::CCSprite::initWithFile(v3, v4, a2) ) { ((void (__fastcall *)(cocos2d::CCSprite *))v3->~CCSprite_0)(v3); return nullptr; } cocos2d::CCObject::autorelease(v3); return v3; }