{"type": "func", "start": 5368980816, "end": 5368981003, "name": "CCBlockLayer::init", "pseudocode": "// \n// CCBlockLayer::init from 0x140042550 to 0x14004260b (187 bytes)\n// \n// 6 xrefs:\n// > EditorPauseLayer::init @ 0x1400d9f03\n// > PlayLayer::pauseGame @ 0x1403ba35d\n// > <???> @ 0x14052cc78\n// > <???> @ 0x1405521d0\n// > <???> @ 0x1405c6680\n// > <???> @ 0x1406c43e0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool CCBlockLayer::init(CCBlockLayer *a1)\n{\n  bool result; // al\n  _BOOL8 v3; // rdx\n  __int64 v4; // rax\n  cocos2d::CCTouchDispatcher *v5; // rax\n  _BOOL8 v6; // rdx\n  _BOOL8 v7; // rdx\n  cocos2d::CCDirector *v8; // rax\n  int v9; // [rsp+38h] [rbp+10h] BYREF\n\n  v9 = 2097152000;\n  result = cocos2d::CCLayerColor::initWithColor(a1, (const struct cocos2d::_ccColor4B *)&v9);\n  if ( result )\n  {\n    if ( !a1->m_forcePrioRegistered )\n    {\n      a1->m_forcePrioRegistered = 1;\n      v4 = cocos2d::CCDirector::sharedDirector();\n      v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);\n      cocos2d::CCTouchDispatcher::registerForcePrio(v5, a1, 2);\n    }\n    LOBYTE(v3) = 1;\n    a1->setTouchEnabled(a1, v3);\n    LOBYTE(v6) = 1;\n    a1->setKeypadEnabled(a1, v6);\n    LOBYTE(v7) = 1;\n    a1->setKeyboardEnabled(a1, v7);\n    v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(v8);\n    a1->customSetup(a1);\n    a1->m_closeOnHide = 1;\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; CCBlockLayer::init from 0x140042550 to 0x14004260b (187 bytes)\n; \n; 6 xrefs:\n; > EditorPauseLayer::init @ 0x1400d9f03\n; > PlayLayer::pauseGame @ 0x1403ba35d\n; > <???> @ 0x14052cc78\n; > <???> @ 0x1405521d0\n; > <???> @ 0x1405c6680\n; > <???> @ 0x1406c43e0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x140042550\nsub     rsp, 20h                                                       ; +0x2, 0x140042552\nmov     [rsp+28h+arg_8], 7D000000h                                     ; +0x6, 0x140042556\nlea     rdx, [rsp+28h+arg_8]                                           ; +0xe, 0x14004255e\nmov     eax, [rsp+28h+arg_8]                                           ; +0x13, 0x140042563\nmov     rbx, rcx                                                       ; +0x17, 0x140042567\nmov     [rsp+28h+arg_8], eax                                           ; +0x1a, 0x14004256a\ncall    cs:__imp_?initWithColor@CCLayerColor@cocos2d@@UEAA_NAEBU_ccColor4B@2@@Z; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const &) ; +0x1e, 0x14004256e\ntest    al, al                                                         ; +0x24, 0x140042574\njnz     short loc_14004257E                                            ; +0x26, 0x140042576\nadd     rsp, 20h                                                       ; +0x28, 0x140042578\npop     rbx                                                            ; +0x2c, 0x14004257c\nretn                                                                   ; +0x2d, 0x14004257d\ncmp     byte ptr [rbx+221h], 0                                         ; +0x2e, 0x14004257e\njnz     short loc_1400425B2                                            ; +0x35, 0x140042585\nmov     byte ptr [rbx+221h], 1                                         ; +0x37, 0x140042587\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x3e, 0x14004258e\nmov     rcx, rax                                                       ; +0x44, 0x140042594\nmov     rdx, [rax]                                                     ; +0x47, 0x140042597\ncall    qword ptr [rdx+90h]                                            ; +0x4a, 0x14004259a\nmov     r8d, 2                                                         ; +0x50, 0x1400425a0\nmov     rdx, rbx                                                       ; +0x56, 0x1400425a6\nmov     rcx, rax                                                       ; +0x59, 0x1400425a9\ncall    cs:?registerForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@H@Z; cocos2d::CCTouchDispatcher::registerForcePrio(cocos2d::CCObject *,int) ; +0x5c, 0x1400425ac\nmov     rax, [rbx]                                                     ; +0x62, 0x1400425b2\nmov     dl, 1                                                          ; +0x65, 0x1400425b5\nmov     rcx, rbx                                                       ; +0x67, 0x1400425b7\ncall    qword ptr [rax+388h]                                           ; +0x6a, 0x1400425ba\nmov     rax, [rbx]                                                     ; +0x70, 0x1400425c0\nmov     dl, 1                                                          ; +0x73, 0x1400425c3\nmov     rcx, rbx                                                       ; +0x75, 0x1400425c5\ncall    qword ptr [rax+3D0h]                                           ; +0x78, 0x1400425c8\nmov     rax, [rbx]                                                     ; +0x7e, 0x1400425ce\nmov     dl, 1                                                          ; +0x81, 0x1400425d1\nmov     rcx, rbx                                                       ; +0x83, 0x1400425d3\ncall    qword ptr [rax+3E0h]                                           ; +0x86, 0x1400425d6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8c, 0x1400425dc\nmov     rcx, rax                                                       ; +0x92, 0x1400425e2\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x95, 0x1400425e5\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x9a, 0x1400425ea\nmov     rax, [rbx]                                                     ; +0xa0, 0x1400425f0\nmov     rcx, rbx                                                       ; +0xa3, 0x1400425f3\ncall    qword ptr [rax+410h]                                           ; +0xa6, 0x1400425f6\nmov     al, 1                                                          ; +0xac, 0x1400425fc\nmov     byte ptr [rbx+220h], 1                                         ; +0xae, 0x1400425fe\nadd     rsp, 20h                                                       ; +0xb5, 0x140042605\npop     rbx                                                            ; +0xb9, 0x140042609\nretn                                                                   ; +0xba, 0x14004260a", "xrefs": ["EditorPauseLayer::init @ 0x1400d9f03", "PlayLayer::pauseGame @ 0x1403ba35d", "<???> @ 0x14052cc78", "<???> @ 0x1405521d0", "<???> @ 0x1405c6680", "<???> @ 0x1406c43e0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}