// // CCSpriteGrayscale::create from 0x3f2c90 to 0x3f2d0c (124 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) { CCSpriteWithHue *v2; // r0 CCSpriteWithHue *v3; // r4 char v4; // r3 const char *v5; // r1 v2 = (CCSpriteWithHue *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow); v3 = v2; if ( !v2 ) return v3; memset(v2, 0, 0x23Cu); CCSpriteWithHue::CCSpriteWithHue(v3); *(_DWORD *)v3 = &off_C8B898; *((_DWORD *)v3 + 70) = &off_C8BB58; v4 = *a1; *((_DWORD *)v3 + 66) = &off_C8BB18; if ( (v4 & 1) != 0 ) v5 = *((const char **)a1 + 2); else v5 = a1 + 1; if ( cocos2d::CCSprite::initWithFile(v3, v5) ) { cocos2d::CCObject::autorelease(v3); return v3; } (*(void (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)v3 + 8))(v3); return nullptr; }