//
// CCBlockLayer::init from 0x690498 to 0x69057c (228 bytes)
//
// 7 xrefs:
// > CCBlockLayer::create @ 0x6905ec
// > PauseLayer::init @ 0x7d53cc
// > EditorPauseLayer::init @ 0x8b720c
// > ??> @ 0xbaa90
// > ??> @ 0x14154c0
// > ??> @ 0x1437bb0
// > ??> @ 0x1459750
//
// This function is hookable on this platform (idp: arm, 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:50:35 +0000
//
__int64 __fastcall CCBlockLayer::init(CCBlockLayer *this)
{
unsigned __int8 v2; // w0
unsigned int v3; // w21
cocos2d::CCDirector *v4; // x0
cocos2d::CCDirector *v5; // x0
__int64 v7; // [xsp+30h] [xbp+30h] BYREF
LODWORD(v7) = 2097152000;
v2 = cocos2d::CCLayerColor::initWithColor(this, &v7);
v3 = v2;
if ( v2 )
{
CCBlockLayer::incrementForcePrio(this);
(*(void (__fastcall **)(CCBlockLayer *, __int64))(*(_QWORD *)this + 1000LL))(this, 1);
(*(void (__fastcall **)(CCBlockLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1);
v4 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(CCBlockLayer *, __int64))(*(_QWORD *)this + 1088LL))(this, 1);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize(&v7, v5);
(*(void (__fastcall **)(CCBlockLayer *))(*(_QWORD *)this + 1304LL))(this);
*((_BYTE *)this + 544) = 1;
}
return v3;
}