//
// cocos2d::CCLayerColor::init from 0x180051cd0 to 0x180051d16 (70 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800f3ac0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc16c
// > ??> @ 0x1801bc178
//
// 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::CCLayerColor::init(cocos2d::CCLayerColor *this)
{
struct cocos2d::CCDirector *v2; // rax
__int64 v3; // rax
int v5; // [rsp+30h] [rbp+8h] BYREF
int v6; // [rsp+38h] [rbp+10h] BYREF
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v2, &v6);
v3 = *(_QWORD *)this;
v5 = 0;
return (*(bool (__fastcall **)(cocos2d::CCLayerColor *, int *))(v3 + 1040))(this, &v5);
}