//
// GJGradientLayer::init from 0x140248da0 to 0x140248e15 (117 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::triggerGradientCommand @ 0x14021f882
// > GJBaseGameLayer::triggerGradientCommand @ 0x14021f873
// > ??> @ 0x140567240
// > ??> @ 0x1406ce7cc
//
// 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 GJGradientLayer::init(GJGradientLayer *a1)
{
float v1; // xmm0_4
bool result; // al
GJGradientLayer_vtbl *v4; // rbx
const cocos2d::CCPoint *v5; // rax
int v6; // [rsp+38h] [rbp+10h] BYREF
int v7; // [rsp+40h] [rbp+18h] BYREF
v7 = -16777216;
v6 = -1;
result = cocos2d::CCLayerGradient::initWithColor(
a1,
(const struct cocos2d::_ccColor4B *)&v6,
(const struct cocos2d::_ccColor4B *)&v7);
if ( result )
{
v4 = a1->cocos2d::CCLayerGradient::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v1, 0.0);
v4->setAnchorPoint(a1, v5);
return 1;
}
return result;
}