//
// sub_1004AF030 from 0x1004af030 to 0x1004af0ca (154 bytes)
//
// 1 xrefs:
// > ??> @ 0x100948a78
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1004AF030(_QWORD *a1)
{
cocos2d::CCObject *v2; // rdi
cocos2d::CCObject *v3; // rdi
*(a1 - 40) = off_100948560;
*a1 = off_100948A78;
a1[1] = &off_100948AE8;
a1[2] = off_100948B00;
a1[3] = off_100948B20;
a1[4] = off_100948B40;
a1[11] = off_100948B68;
a1[14] = off_100948BE8;
v2 = (cocos2d::CCObject *)a1[29];
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = (cocos2d::CCObject *)a1[30];
if ( v3 )
cocos2d::CCObject::release(v3);
return cocos2d::CCLayerColor::dCCLayerColor(a1 - 40);
}