//
// cocos2d::CCLayerGradient::create_1 from 0x1004ac740 to 0x1004ac8f2 (434 bytes)
//
// 1 xrefs:
// > LevelAreaLayer::init @ 0x100264170
//
// 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:30:57 +0000
//
_QWORD *__fastcall cocos2d::CCLayerGradient::create_1(__int64 a1, __int64 a2)
{
__int64 v2; // rax
_QWORD *v3; // rbx
float v5[8]; // [rsp+0h] [rbp-20h] BYREF
*(_QWORD *)v5 = v2;
v3 = operator new(0x238u);
__bzero(v3, 568);
cocos2d::CCNode::CCNode((__int64)v3);
*v3 = off_100B53A90;
v3[40] = off_100B53F20;
v3[41] = &off_100B53F90;
v3[42] = off_100B53FA8;
v3[43] = off_100B53FC8;
v3[44] = off_100B53FF0;
*((_DWORD *)v3 + 90) = 0;
*((_BYTE *)v3 + 364) = 0;
*((_OWORD *)v3 + 23) = 0;
*((_OWORD *)v3 + 24) = 0;
*((_DWORD *)v3 + 100) = 0;
*((_BYTE *)v3 + 287) = 1;
sub_100278250(v5, 0.5, 0.5);
(*(void (__fastcall **)(_QWORD *, float *))(*v3 + 296LL))(v3, v5);
v3[52] = -1;
*((_WORD *)v3 + 212) = 0;
v3[67] = 0x30300000001LL;
*v3 = off_100B553F0;
v3[40] = off_100B55988;
v3[41] = &off_100B559F8;
v3[42] = off_100B55A10;
v3[43] = off_100B55A30;
v3[44] = off_100B55A58;
v3[51] = off_100B55A88;
v3[54] = off_100B55B08;
sub_1002782A0(v3 + 69);
if ( (*(unsigned __int8 (__fastcall **)(_QWORD *, __int64, __int64))(*v3 + 1304LL))(v3, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v3);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v3 + 16LL))(v3);
return nullptr;
}
return v3;
}