//
// GJGradientLayer::create from 0x100116d20 to 0x100116e8e (366 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::triggerGradientCommand @ 0x1001168b5
//
// 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:24:34 +0000
//
_QWORD *GJGradientLayer::create()
{
_QWORD *v0; // rbx
v0 = operator new(0x260u);
cocos2d::CCLayerColor::CCLayerColor(v0);
*v0 = off_100B553F0;
v0[40] = off_100B55988;
v0[41] = &off_100B559F8;
v0[42] = off_100B55A10;
v0[43] = off_100B55A30;
v0[44] = off_100B55A58;
v0[51] = off_100B55A88;
v0[54] = off_100B55B08;
sub_1002782A0(v0 + 69);
*v0 = off_100AC5940;
v0[40] = off_100AC5ED8;
v0[41] = &off_100AC5F48;
v0[42] = off_100AC5F60;
v0[43] = off_100AC5F80;
v0[44] = off_100AC5FA8;
v0[51] = off_100AC5FD8;
v0[54] = off_100AC6058;
*(_QWORD *)((char *)v0 + 564) = 0;
sub_1002782A0((char *)v0 + 572);
v0[73] = 0;
*((_BYTE *)v0 + 592) = 0;
*(_QWORD *)((char *)v0 + 596) = 0;
*((_DWORD *)v0 + 151) = 0;
if ( (*(unsigned __int8 (__fastcall **)(_QWORD *))(*v0 + 80LL))(v0) )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v0 + 16LL))(v0);
return nullptr;
}
return v0;
}