{"type": "func", "start": 5368996256, "end": 5368996441, "name": "CCBlockLayer::init", "pseudocode": "// \n// CCBlockLayer::init from 0x1400461a0 to 0x140046259 (185 bytes)\n// \n// 6 xrefs:\n// > EditorPauseLayer::init @ 0x140180ec3\n// > PlayLayer::pauseGame @ 0x14051a6cf\n// > <???> @ 0x140707800\n// > <???> @ 0x14074a7f8\n// > <???> @ 0x1407d2370\n// > <???> @ 0x14090f8f0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:31 +0000\n// \n\nbool __fastcall CCBlockLayer::init(cocos2d::CCLayerColor *a1)\n{\n  bool result; // al\n  __int64 v3; // rdx\n  __int64 v4; // rax\n  cocos2d::CCTouchDispatcher *v5; // rax\n  __int64 v6; // rdx\n  __int64 v7; // rdx\n  __int64 v8; // rax\n  int v9; // [rsp+38h] [rbp+10h] BYREF\n  char v10; // [rsp+40h] [rbp+18h] BYREF\n\n  v9 = 2097152000;\n  result = cocos2d::CCLayerColor::initWithColor(a1, (const struct cocos2d::_ccColor4B *)&v9);\n  if ( result )\n  {\n    if ( !*((_BYTE *)a1 + 545) )\n    {\n      *((_BYTE *)a1 + 545) = 1;\n      v4 = cocos2d::CCDirector::sharedDirector();\n      v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);\n      cocos2d::CCTouchDispatcher::registerForcePrio(v5, a1, 2, 0);\n    }\n    LOBYTE(v3) = 1;\n    (*(void (__fastcall **)(cocos2d::CCLayerColor *, __int64))(*(_QWORD *)a1 + 920LL))(a1, v3);\n    LOBYTE(v6) = 1;\n    (*(void (__fastcall **)(cocos2d::CCLayerColor *, __int64))(*(_QWORD *)a1 + 992LL))(a1, v6);\n    LOBYTE(v7) = 1;\n    (*(void (__fastcall **)(cocos2d::CCLayerColor *, __int64))(*(_QWORD *)a1 + 1008LL))(a1, v7);\n    v8 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(v8, &v10);\n    (*(void (__fastcall **)(cocos2d::CCLayerColor *))(*(_QWORD *)a1 + 1056LL))(a1);\n    *((_BYTE *)a1 + 544) = 1;\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; CCBlockLayer::init from 0x1400461a0 to 0x140046259 (185 bytes)\n; \n; 6 xrefs:\n; > EditorPauseLayer::init @ 0x140180ec3\n; > PlayLayer::pauseGame @ 0x14051a6cf\n; > <???> @ 0x140707800\n; > <???> @ 0x14074a7f8\n; > <???> @ 0x1407d2370\n; > <???> @ 0x14090f8f0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:31 +0000\n; \npush    rbx                                                            ; +0x0, 0x1400461a0\nsub     rsp, 20h                                                       ; +0x2, 0x1400461a2\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x6, 0x1400461a6\nmov     [rsp+28h+arg_8], 7D000000h                                     ; +0xb, 0x1400461ab\nmov     rbx, rcx                                                       ; +0x13, 0x1400461b3\ncall    cs:__imp_?initWithColor@CCLayerColor@cocos2d@@UEAA_NAEBU_ccColor4B@2@@Z; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const &) ; +0x16, 0x1400461b6\ntest    al, al                                                         ; +0x1c, 0x1400461bc\njnz     short loc_1400461C6                                            ; +0x1e, 0x1400461be\nadd     rsp, 20h                                                       ; +0x20, 0x1400461c0\npop     rbx                                                            ; +0x24, 0x1400461c4\nretn                                                                   ; +0x25, 0x1400461c5\ncmp     byte ptr [rbx+221h], 0                                         ; +0x26, 0x1400461c6\njnz     short loc_140046200                                            ; +0x2d, 0x1400461cd\nmov     byte ptr [rbx+221h], 1                                         ; +0x2f, 0x1400461cf\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x36, 0x1400461d6\nmov     rcx, [rax]                                                     ; +0x3c, 0x1400461dc\nmov     rdx, [rcx+90h]                                                 ; +0x3f, 0x1400461df\nmov     rcx, rax                                                       ; +0x46, 0x1400461e6\ncall    rdx                                                            ; +0x49, 0x1400461e9\nmov     rcx, rax                                                       ; +0x4b, 0x1400461eb\nxor     r9d, r9d                                                       ; +0x4e, 0x1400461ee\nmov     r8d, 2                                                         ; +0x51, 0x1400461f1\nmov     rdx, rbx                                                       ; +0x57, 0x1400461f7\ncall    cs:?registerForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@HH@Z; cocos2d::CCTouchDispatcher::registerForcePrio(cocos2d::CCObject *,int,int) ; +0x5a, 0x1400461fa\nmov     rax, [rbx]                                                     ; +0x60, 0x140046200\nmov     dl, 1                                                          ; +0x63, 0x140046203\nmov     rcx, rbx                                                       ; +0x65, 0x140046205\ncall    qword ptr [rax+398h]                                           ; +0x68, 0x140046208\nmov     rax, [rbx]                                                     ; +0x6e, 0x14004620e\nmov     dl, 1                                                          ; +0x71, 0x140046211\nmov     rcx, rbx                                                       ; +0x73, 0x140046213\ncall    qword ptr [rax+3E0h]                                           ; +0x76, 0x140046216\nmov     rax, [rbx]                                                     ; +0x7c, 0x14004621c\nmov     dl, 1                                                          ; +0x7f, 0x14004621f\nmov     rcx, rbx                                                       ; +0x81, 0x140046221\ncall    qword ptr [rax+3F0h]                                           ; +0x84, 0x140046224\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8a, 0x14004622a\nmov     rcx, rax                                                       ; +0x90, 0x140046230\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x93, 0x140046233\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x98, 0x140046238\nmov     rax, [rbx]                                                     ; +0x9e, 0x14004623e\nmov     rcx, rbx                                                       ; +0xa1, 0x140046241\ncall    qword ptr [rax+420h]                                           ; +0xa4, 0x140046244\nmov     al, 1                                                          ; +0xaa, 0x14004624a\nmov     byte ptr [rbx+220h], 1                                         ; +0xac, 0x14004624c\nadd     rsp, 20h                                                       ; +0xb3, 0x140046253\npop     rbx                                                            ; +0xb7, 0x140046257\nretn                                                                   ; +0xb8, 0x140046258", "xrefs": ["EditorPauseLayer::init @ 0x140180ec3", "PlayLayer::pauseGame @ 0x14051a6cf", "<???> @ 0x140707800", "<???> @ 0x14074a7f8", "<???> @ 0x1407d2370", "<???> @ 0x14090f8f0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}