//
// GJGradientLayer::init from 0x100144840 to 0x1001448a1 (97 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ac5990
//
// 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:57 +0000
//
__int64 __fastcall GJGradientLayer::init(__int64 a1)
{
__int64 result; // rax
unsigned int v2; // r15d
int v3; // [rsp+Ch] [rbp-24h] BYREF
int v4[7]; // [rsp+14h] [rbp-1Ch] BYREF
v3 = -1;
v4[0] = -16777216;
result = cocos2d::CCLayerGradient::initWithColor_1(a1, &v3, v4);
if ( (_BYTE)result )
{
v2 = result;
sub_100278250(&v3, 0.0, 0.0);
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)a1 + 296LL))(a1, &v3);
return v2;
}
return result;
}