//
// GJGradientLayer::init from 0x58b720 to 0x58b78c (108 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:02 +0000
//
int __fastcall GJGradientLayer::init(GJGradientLayer *this, int a2, int a3, int a4)
{
int v5; // r6
void (__fastcall *v6)(GJGradientLayer *, _BYTE *); // r8
_BYTE v8[4]; // [sp+0h] [bp-10h] BYREF
_BYTE v9[4]; // [sp+4h] [bp-Ch] BYREF
int v10; // [sp+8h] [bp-8h]
int v11; // [sp+Ch] [bp-4h]
v10 = a3;
v11 = a4;
v9[0] = 0;
v9[1] = 0;
v9[2] = 0;
v8[0] = -1;
v8[1] = -1;
v8[2] = -1;
v8[3] = -1;
v9[3] = -1;
v5 = ((int (__fastcall *)(GJGradientLayer *, _BYTE *, _BYTE *))cocos2d::CCLayerGradient::initWithColor)(this, v8, v9);
if ( v5 )
{
v6 = *(void (__fastcall **)(GJGradientLayer *, _BYTE *))(*(_DWORD *)this + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 0.0, 0.0);
v6(this, v9);
}
return v5;
}