//
// sub_1006C40B0 from 0x1006c40b0 to 0x1006c4165 (181 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
//
_DWORD *__fastcall sub_1006C40B0(__int64 a1, __int64 a2, unsigned __int8 a3)
{
_DWORD *v4; // rax
_DWORD *v5; // rbx
v4 = operator new(0x298u, &std::nothrow);
if ( !v4 )
return nullptr;
v5 = v4;
__bzero(v4, 664);
cocos2d::CCSprite::CCSprite((__int64)v5);
*(_QWORD *)v5 = off_100B8DBB8;
*((_QWORD *)v5 + 40) = off_100B8E0B8;
*((_QWORD *)v5 + 43) = off_100B8E138;
if ( !cocos2d::CCSprite::initWithTexture((__int64)v5, a1, a2, a3) )
{
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v5 + 16LL))(v5);
return nullptr;
}
*(_OWORD *)(v5 + 149) = xmmword_100A10930;
CCSpriteWithHue::initShader(v5);
cocos2d::CCObject::autorelease((__int64)v5);
return v5;
}