// // CCSpriteGrayscale::create_1 from 0x1005f0ce0 to 0x1005f0d79 (153 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 CCSpriteGrayscale::create_1(__int64 a1) { cocos2d::CCSprite *v1; // rax cocos2d::CCSprite *v2; // rbx const char *v3; // r14 v1 = (cocos2d::CCSprite *)operator new(0x298u, &std::nothrow); if ( !v1 ) return nullptr; v2 = v1; __bzero(v1, 664); cocos2d::CCSprite::CCSprite((__int64)v2, 664); v2->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCSprite_vtbl *)off_10097A760; v2->cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_10097AC50; v2->cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_10097ACD0; if ( (*(_BYTE *)a1 & 1) != 0 ) v3 = *(const char **)(a1 + 16); else v3 = (const char *)(a1 + 1); if ( !cocos2d::CCSprite::initWithFile_1(v2, v3) ) { ((void (__fastcall *)(cocos2d::CCSprite *))v2->~CCSprite_0)(v2); return nullptr; } cocos2d::CCObject::autorelease(v2); return v2; }