//
// CCBlockLayer::init from 0x100518ee0 to 0x100518f9f (191 bytes)
//
// 7 xrefs:
// > EditorPauseLayer::init @ 0x10027caae
// > PauseLayer::create @ 0x1003bf77e
// > PauseLayer::init @ 0x1003bf7cc
// > CCBlockLayer::create @ 0x100518ea4
// > ??> @ 0x100afda38
// > ??> @ 0x100b38640
// > ??> @ 0x100b6c868
//
// 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:31:40 +0000
//
char __fastcall CCBlockLayer::init(_BYTE *a1)
{
char result; // al
char v2; // r14
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rsi
__int64 v6; // [rsp+4h] [rbp-1Ch] BYREF
int v7[5]; // [rsp+Ch] [rbp-14h] BYREF
v7[0] = 2097152000;
result = cocos2d::CCLayerColor::initWithColor((__int64)a1, (__int64)v7);
if ( result )
{
v2 = result;
if ( !a1[545] )
{
a1[545] = 1;
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::registerForcePrio(v4, (__int64)a1, 2, 0);
}
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1);
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1);
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v6, v5);
(*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1304LL))(a1);
a1[544] = 1;
return v2;
}
return result;
}