//
// cocos2d::CCLayerGradient::initWithColor from 0x180052050 to 0x1800520ae (94 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800f4428
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc208
//
// 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:21:45 +0000
//
bool __fastcall cocos2d::CCLayerGradient::initWithColor(
cocos2d::CCLayerGradient *this,
const struct cocos2d::_ccColor4B *a2,
const struct cocos2d::_ccColor4B *a3)
{
__int64 v3; // rbx
float *v7; // rax
float v9; // [rsp+30h] [rbp+8h] BYREF
v3 = *(_QWORD *)this;
v7 = kmVec2Fill(&v9, 0.0, -1.0);
return (*(bool (__fastcall **)(cocos2d::CCLayerGradient *, const struct cocos2d::_ccColor4B *, const struct cocos2d::_ccColor4B *, float *))(v3 + 1056))(
this,
a2,
a3,
v7);
}