//
// CCSpriteGrayscale::create from 0x6de188 to 0x6de268 (224 bytes)
//
// 1 xrefs:
// > ??> @ 0x99478
//
// 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 CCSpriteGrayscale::create(char *a1, const cocos2d::CCRect *a2)
{
cocos2d::CCSprite *v4; // x0
cocos2d::CCSprite *v5; // x19
const char *v6; // x1
char v7; // w2
v4 = (cocos2d::CCSprite *)operator new(0x298u, (const std::nothrow_t *)&std::nothrow);
v5 = v4;
if ( v4 )
{
memset(v4, 0, 0x298u);
cocos2d::CCSprite::CCSprite(v5);
v6 = a1 + 1;
v7 = *a1;
*(_QWORD *)v5 = &off_1423C80;
*((_QWORD *)v5 + 40) = &off_1424180;
*((_QWORD *)v5 + 43) = &off_1424200;
if ( (v7 & 1) != 0 )
v6 = *((const char **)a1 + 2);
if ( (unsigned __int8)cocos2d::CCSprite::initWithFile(v5, v6, a2) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v5 + 16LL))(v5);
}
return nullptr;
}