//
// cocos2d::CCLayerGradient::create from 0x7d8110 to 0x7d8158 (72 bytes)
//
// 1 xrefs:
// > LevelAreaLayer::init @ 0x6a4c20
//
// 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 12:00:41 +0000
//
void *__fastcall cocos2d::CCLayerGradient::create(int a1, int a2)
{
void *v4; // r4
float v5; // r1
float v6; // r2
float v7; // r3
v4 = (void *)operator new(0x1CCu);
memset(v4, 0, 0x1CCu);
cocos2d::CCLayerGradient::CCLayerGradient((cocos2d::CCLayerGradient *)v4, v5, v6, v7);
if ( (*(int (__fastcall **)(void *, int, int))(*(_DWORD *)v4 + 652))(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(void *))(*(_DWORD *)v4 + 8))(v4);
return nullptr;
}
}