//
// CCSpriteGrayscale::createWithTexture from 0x3f2d9c to 0x3f2e10 (116 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)
{
CCSpriteWithHue *v3; // r0
CCSpriteWithHue *v4; // r4
v3 = (CCSpriteWithHue *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow);
v4 = v3;
if ( !v3 )
return v4;
memset(v3, 0, 0x23Cu);
CCSpriteWithHue::CCSpriteWithHue(v4);
*(_DWORD *)v4 = &off_C8B898;
*((_DWORD *)v4 + 66) = &off_C8BB18;
*((_DWORD *)v4 + 70) = &off_C8BB58;
if ( CCSpriteWithHue::initWithTexture(v4, this) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
(*(void (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)v4 + 8))(v4);
return nullptr;
}