//
// GJGradientLayer::init from 0x998be0 to 0x998c9c (188 bytes)
//
// 2 xrefs:
// > ??> @ 0xa4bc0
// > ??> @ 0x1475de0
//
// This function is hookable on this platform (idp: arm, 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:58:03 +0000
//
__int64 __fastcall GJGradientLayer::init(GJGradientLayer *this)
{
unsigned __int8 v2; // w0
unsigned int v3; // w20
void (__fastcall *v4)(GJGradientLayer *, _BYTE *); // x23
_BYTE v6[8]; // [xsp+48h] [xbp+48h] BYREF
_BYTE v7[8]; // [xsp+50h] [xbp+50h] BYREF
v6[0] = -1;
v6[1] = -1;
v6[2] = -1;
v6[3] = -1;
v7[0] = 0;
v7[1] = 0;
v7[2] = 0;
v7[3] = -1;
v2 = cocos2d::CCLayerGradient::initWithColor(this, v6, v7);
v3 = v2;
if ( v2 )
{
v4 = *(void (__fastcall **)(GJGradientLayer *, _BYTE *))(*(_QWORD *)this + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 0.0, 0.0);
v4(this, v7);
}
return v3;
}