// // CCSpriteGrayscale::create from 0x3f2d14 to 0x3f2d94 (128 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:47:15 +0000 // CCSpriteWithHue *__fastcall CCSpriteGrayscale::create(char *a1, const cocos2d::CCRect *a2) { CCSpriteWithHue *v4; // r0 CCSpriteWithHue *v5; // r4 char v6; // r3 const char *v7; // r1 v4 = (CCSpriteWithHue *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow); v5 = v4; if ( !v4 ) return v5; memset(v4, 0, 0x23Cu); CCSpriteWithHue::CCSpriteWithHue(v5); *(_DWORD *)v5 = &off_C8B898; *((_DWORD *)v5 + 70) = &off_C8BB58; v6 = *a1; *((_DWORD *)v5 + 66) = &off_C8BB18; if ( (v6 & 1) != 0 ) v7 = *((const char **)a1 + 2); else v7 = a1 + 1; if ( cocos2d::CCSprite::initWithFile(v5, v7, a2) ) { cocos2d::CCObject::autorelease(v5); return v5; } (*(void (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)v5 + 8))(v5); return nullptr; }