//
// GJGradientLayer::create from 0x9ad290 to 0x9ad440 (432 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerGradientCommand @ 0x9ad764
// > ??> @ 0xec008
//
// 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:13 +0000
//
__int64 __fastcall GJGradientLayer::create(GJGradientLayer *this)
{
__int64 v1; // x19
__int64 v2; // x1
v1 = operator new(0x260u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v1);
*(_QWORD *)v1 = &off_151A3E0;
*(_QWORD *)(v1 + 320) = off_151A978;
*(_QWORD *)(v1 + 328) = &off_151A9E8;
*(_QWORD *)(v1 + 336) = off_151AA00;
*(_QWORD *)(v1 + 344) = off_151AA20;
*(_QWORD *)(v1 + 352) = off_151AA48;
*(_QWORD *)(v1 + 408) = &off_151AA78;
*(_QWORD *)(v1 + 432) = &off_151AAF8;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 552));
*(_DWORD *)(v1 + 564) = 0;
*(_QWORD *)v1 = &off_1475D90;
*(_QWORD *)(v1 + 320) = off_1476328;
*(_QWORD *)(v1 + 328) = &off_1476398;
*(_QWORD *)(v1 + 336) = off_14763B0;
*(_QWORD *)(v1 + 344) = off_14763D0;
*(_QWORD *)(v1 + 352) = off_14763F8;
*(_QWORD *)(v1 + 408) = &off_1476428;
*(_QWORD *)(v1 + 432) = &off_14764A8;
*(_DWORD *)(v1 + 568) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 572));
v2 = *(_QWORD *)v1;
*(_QWORD *)(v1 + 584) = 0;
*(_BYTE *)(v1 + 592) = 0;
*(_DWORD *)(v1 + 596) = 0;
*(_DWORD *)(v1 + 600) = 0;
*(_DWORD *)(v1 + 604) = 0;
if ( (*(unsigned __int8 (__fastcall **)(__int64))(v2 + 80))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 16LL))(v1);
return 0;
}
}