//
// cocos2d::CCLayer::init from 0x180051c80 to 0x180051cd0 (80 bytes)
//
// 7 xrefs:
// > cocos2d::CCMenu::initWithArray @ 0x18005b47d
// > ??> @ 0x1800f3088
// > ??> @ 0x1800f4640
// > ??> @ 0x1801411cc
// > ??> @ 0x1801411dc
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc154
//
// 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::CCLayer::init(cocos2d::CCLayer *this)
{
struct cocos2d::CCDirector *v2; // rax
__int64 v3; // rbx
__int64 WinSize; // rax
char v6; // [rsp+38h] [rbp+10h] BYREF
v2 = cocos2d::CCDirector::sharedDirector();
if ( v2 )
{
v3 = *(_QWORD *)this;
WinSize = cocos2d::CCDirector::getWinSize(v2, &v6);
(*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(v3 + 312))(this, WinSize);
*((_WORD *)this + 180) = 0;
LOBYTE(v2) = 1;
}
return (char)v2;
}