//
// GJGradientLayer::init from 0x10020915c to 0x1002091cc (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007c1410
//
// 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
//
bool __fastcall GJGradientLayer::init(GJGradientLayer *a1)
{
_BOOL4 v2; // w20
__n128 v3; // q0
__n128 v4; // q1
int v6; // [xsp+4h] [xbp-1Ch] BYREF
int v7; // [xsp+Ch] [xbp-14h] BYREF
v6 = -1;
v7 = -16777216;
v2 = cocos2d::CCLayerGradient::initWithColor_1(a1, (const cocos2d::ccColor4B *)&v6, (const cocos2d::ccColor4B *)&v7);
if ( v2 )
{
v3.n128_u32[0] = 0;
v4.n128_u32[0] = 0;
sub_100022980(v3, v4, &v6);
((void (__fastcall *)(GJGradientLayer *, int *))a1->setAnchorPoint)(a1, &v6);
}
return v2;
}