//
// CCSpriteGrayscale::create_1 from 0x1006c3e20 to 0x1006c3eb9 (153 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:35:33 +0000
//
_QWORD *__fastcall CCSpriteGrayscale::create_1(__int64 a1)
{
_QWORD *v1; // rax
_QWORD *v2; // rbx
__int64 v3; // r14
v1 = operator new(0x298u, &std::nothrow);
if ( !v1 )
return nullptr;
v2 = v1;
__bzero(v1, 664);
cocos2d::CCSprite::CCSprite((__int64)v2);
*v2 = off_100B8DBB8;
v2[40] = off_100B8E0B8;
v2[43] = off_100B8E138;
if ( (*(_BYTE *)a1 & 1) != 0 )
v3 = *(_QWORD *)(a1 + 16);
else
v3 = a1 + 1;
if ( !(unsigned __int8)cocos2d::CCSprite::initWithFile_1((__int64)v2, v3) )
{
(*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);
return nullptr;
}
cocos2d::CCObject::autorelease((__int64)v2);
return v2;
}