//
// GJGradientLayer::init from 0x1403530a0 to 0x140353105 (101 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::triggerGradientCommand @ 0x1403275e2
// > GJBaseGameLayer::triggerGradientCommand @ 0x1403275d3
// > ??> @ 0x14076ba40
// > ??> @ 0x140920420
//
// This function is hookable on this platform (idp: pc, 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 11:30:48 +0000
//
bool __fastcall GJGradientLayer::init(cocos2d::CCLayerGradient *a1)
{
bool result; // al
__int64 v3; // rbx
__int64 v4; // rax
int v5; // [rsp+38h] [rbp+10h] BYREF
int v6; // [rsp+40h] [rbp+18h] BYREF
v5 = -16777216;
v6 = -1;
result = cocos2d::CCLayerGradient::initWithColor(
a1,
(const struct cocos2d::_ccColor4B *)&v6,
(const struct cocos2d::_ccColor4B *)&v5);
if ( result )
{
v3 = *(_QWORD *)a1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v5, 0.0, 0.0);
(*(void (__fastcall **)(cocos2d::CCLayerGradient *, __int64))(v3 + 288))(a1, v4);
return 1;
}
return result;
}