//
// sub_1006C2EB0 from 0x1006c2eb0 to 0x1006c2f65 (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:32 +0000
//
__int64 __fastcall sub_1006C2EB0(__int64 a1, __int64 a2, unsigned __int8 a3)
{
void *v4; // rax
__int64 v5; // rbx
v4 = operator new(0x298u, &std::nothrow);
if ( !v4 )
return 0;
v5 = (__int64)v4;
__bzero(v4, 664);
cocos2d::CCSprite::CCSprite(v5);
*(_QWORD *)v5 = off_100B8D5F0;
*(_QWORD *)(v5 + 320) = off_100B8DAF0;
*(_QWORD *)(v5 + 344) = off_100B8DB70;
if ( !cocos2d::CCSprite::initWithTexture(v5, a1, a2, a3) )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 16LL))(v5);
return 0;
}
*(_OWORD *)(v5 + 596) = xmmword_100A10930;
CCSpriteWithHue::initShader(v5);
cocos2d::CCObject::autorelease(v5);
return v5;
}