//
// CCSpriteGrayscale::createWithTexture from 0x3f2e18 to 0x3f2e9a (130 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::createWithTexture(
CCSpriteGrayscale *this,
cocos2d::CCTexture2D *a2,
const cocos2d::CCRect *a3,
bool a4)
{
char v6; // r6
CCSpriteWithHue *v7; // r0
CCSpriteWithHue *v8; // r4
v6 = (char)a3;
v7 = (CCSpriteWithHue *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow);
v8 = v7;
if ( !v7 )
return v8;
memset(v7, 0, 0x23Cu);
CCSpriteWithHue::CCSpriteWithHue(v8);
*(_DWORD *)v8 = &off_C8B898;
*((_DWORD *)v8 + 66) = &off_C8BB18;
*((_DWORD *)v8 + 70) = &off_C8BB58;
if ( CCSpriteWithHue::initWithTexture(v8, this, a2, v6) )
{
cocos2d::CCObject::autorelease(v8);
return v8;
}
(*(void (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)v8 + 8))(v8);
return nullptr;
}