//
// CCBlockLayer::init from 0x1400461a0 to 0x140046259 (185 bytes)
//
// 6 xrefs:
// > EditorPauseLayer::init @ 0x140180ec3
// > PlayLayer::pauseGame @ 0x14051a6cf
// > ??> @ 0x140707800
// > ??> @ 0x14074a7f8
// > ??> @ 0x1407d2370
// > ??> @ 0x14090f8f0
//
// 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:25:31 +0000
//
bool __fastcall CCBlockLayer::init(cocos2d::CCLayerColor *a1)
{
bool result; // al
__int64 v3; // rdx
__int64 v4; // rax
cocos2d::CCTouchDispatcher *v5; // rax
__int64 v6; // rdx
__int64 v7; // rdx
__int64 v8; // rax
int v9; // [rsp+38h] [rbp+10h] BYREF
char v10; // [rsp+40h] [rbp+18h] BYREF
v9 = 2097152000;
result = cocos2d::CCLayerColor::initWithColor(a1, (const struct cocos2d::_ccColor4B *)&v9);
if ( result )
{
if ( !*((_BYTE *)a1 + 545) )
{
*((_BYTE *)a1 + 545) = 1;
v4 = cocos2d::CCDirector::sharedDirector();
v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);
cocos2d::CCTouchDispatcher::registerForcePrio(v5, a1, 2, 0);
}
LOBYTE(v3) = 1;
(*(void (__fastcall **)(cocos2d::CCLayerColor *, __int64))(*(_QWORD *)a1 + 920LL))(a1, v3);
LOBYTE(v6) = 1;
(*(void (__fastcall **)(cocos2d::CCLayerColor *, __int64))(*(_QWORD *)a1 + 992LL))(a1, v6);
LOBYTE(v7) = 1;
(*(void (__fastcall **)(cocos2d::CCLayerColor *, __int64))(*(_QWORD *)a1 + 1008LL))(a1, v7);
v8 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v8, &v10);
(*(void (__fastcall **)(cocos2d::CCLayerColor *))(*(_QWORD *)a1 + 1056LL))(a1);
*((_BYTE *)a1 + 544) = 1;
return 1;
}
return result;
}