//
// GJGradientLayer::init from 0x100165190 to 0x1001651f1 (97 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008c2130
//
// 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)
{
bool result; // al
bool v2; // r15
int v3; // [rsp+Ch] [rbp-24h] BYREF
int v4; // [rsp+14h] [rbp-1Ch] BYREF
v3 = -1;
v4 = -16777216;
result = cocos2d::CCLayerGradient::initWithColor_1(
a1,
(const cocos2d::ccColor4B *)&v3,
(const cocos2d::ccColor4B *)&v4);
if ( result )
{
v2 = result;
sub_10028CBE0(&v3, 0.0, 0.0);
((void (__fastcall *)(GJGradientLayer *, int *))a1->setAnchorPoint)(a1, &v3);
return v2;
}
return result;
}