//
// cocos2d::CCLayerColor::initWithColor from 0x180051ec0 to 0x180051f0a (74 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800f3e80
// > ??> @ 0x1800f4408
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc1d8
//
// 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
//
char __fastcall cocos2d::CCLayerColor::initWithColor(cocos2d::CCLayerColor *this, const struct cocos2d::_ccColor4B *a2)
{
struct cocos2d::CCDirector *v4; // rax
int v6; // [rsp+30h] [rbp+8h] BYREF
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v4, &v6);
(*(void (__fastcall **)(cocos2d::CCLayerColor *, const struct cocos2d::_ccColor4B *))(*(_QWORD *)this + 1040LL))(
this,
a2);
return 1;
}