//
// cocos2d::CCLayerRGBA::init from 0x1004aacd0 to 0x1004aad4a (122 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b54070
//
// 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 12:30:56 +0000
//
bool __fastcall cocos2d::CCLayerRGBA::init(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rax
__int64 v3; // rbx
_QWORD v5[4]; // [rsp+0h] [rbp-20h] BYREF
v5[0] = v1;
v2 = cocos2d::CCDirector::sharedDirector();
v3 = v2;
if ( v2 )
{
cocos2d::CCDirector::getWinSize(v5, v2);
(*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 320LL))(a1, v5);
*(_WORD *)(a1 + 360) = 0;
*(_QWORD *)(a1 + 416) = -1;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1192LL))(a1, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1240LL))(a1, 0);
}
return v3 != 0;
}