//
// cocos2d::CCLayerGradient::create from 0x1001c8720 to 0x1001c87fc (220 bytes)
//
// 1 xrefs:
// > LevelAreaLayer::init @ 0x1003e2570
//
// This function is hookable on this platform (idp: arm, 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 11:00:18 +0000
//
void *__fastcall cocos2d::CCLayerGradient::create(__int64 a1, __int64 a2)
{
void *v4; // x19
v4 = operator new(0x238u);
bzero(v4, 0x238u);
cocos2d::CCLayer::CCLayer((__int64)v4);
*((_WORD *)v4 + 212) = 0;
*((_QWORD *)v4 + 67) = 0x30300000001LL;
*(_QWORD *)v4 = &off_1008ED4C8;
*((_QWORD *)v4 + 40) = off_1008EDA60;
*((_QWORD *)v4 + 41) = &off_1008EDAD0;
*((_QWORD *)v4 + 42) = off_1008EDAE8;
*((_QWORD *)v4 + 43) = &off_1008EDB08;
*((_QWORD *)v4 + 44) = off_1008EDB30;
*((_QWORD *)v4 + 51) = off_1008EDB60;
*((_QWORD *)v4 + 52) = -1;
*((_QWORD *)v4 + 54) = off_1008EDBE0;
sub_1000262EC((_QWORD *)v4 + 69);
if ( (*(unsigned int (__fastcall **)(void *, __int64, __int64))(*(_QWORD *)v4 + 1304LL))(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}