{"type": "func", "start": 4300307984, "end": 4300308173, "name": "CCBlockLayer::init", "pseudocode": "// \n// CCBlockLayer::init from 0x100517e10 to 0x100517ecd (189 bytes)\n// \n// 7 xrefs:\n// > EditorPauseLayer::init @ 0x1002911be\n// > PauseLayer::create @ 0x1003d5cd3\n// > PauseLayer::init @ 0x1003d5d1c\n// > CCBlockLayer::create @ 0x100517dd4\n// > <???> @ 0x1008f70a8\n// > <???> @ 0x10092fcd0\n// > <???> @ 0x10095fd10\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 __fastcall CCBlockLayer::init(CCBlockLayer *a1)\n{\n  bool result; // al\n  bool v2; // r14\n  cocos2d::CCDirector *v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  cocos2d::CCDirector *v5; // rsi\n  char v6; // [rsp+4h] [rbp-1Ch] BYREF\n  int v7; // [rsp+Ch] [rbp-14h] BYREF\n  double v8; // 0:xmm0_8.8\n\n  v7 = 2097152000;\n  result = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)&v7);\n  if ( result )\n  {\n    v2 = result;\n    if ( !a1->m_forcePrioRegistered )\n    {\n      a1->m_forcePrioRegistered = 1;\n      v3 = cocos2d::CCDirector::sharedDirector();\n      v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);\n      cocos2d::CCTouchDispatcher::registerForcePrio(v4, a1, 2);\n    }\n    ((void (__fastcall *)(CCBlockLayer *, __int64))a1->setTouchEnabled)(a1, 1);\n    ((void (__fastcall *)(CCBlockLayer *, __int64))a1->setKeypadEnabled)(a1, 1);\n    ((void (__fastcall *)(CCBlockLayer *, __int64))a1->setKeyboardEnabled)(a1, 1);\n    v5 = cocos2d::CCDirector::sharedDirector();\n    *(cocos2d::CCSize *)&v8 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v6);\n    ((void (__fastcall *)(CCBlockLayer *, cocos2d::CCDirector *, double))a1->customSetup)(a1, v5, v8);\n    a1->m_closeOnHide = 1;\n    return v2;\n  }\n  return result;\n}", "assembly": "; \n; CCBlockLayer::init from 0x100517e10 to 0x100517ecd (189 bytes)\n; \n; 7 xrefs:\n; > EditorPauseLayer::init @ 0x1002911be\n; > PauseLayer::create @ 0x1003d5cd3\n; > PauseLayer::init @ 0x1003d5d1c\n; > CCBlockLayer::create @ 0x100517dd4\n; > <???> @ 0x1008f70a8\n; > <???> @ 0x10092fcd0\n; > <???> @ 0x10095fd10\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    rbp                                                            ; +0x0, 0x100517e10\nmov     rbp, rsp                                                       ; +0x1, 0x100517e11\npush    r14                                                            ; +0x4, 0x100517e14\npush    rbx                                                            ; +0x6, 0x100517e16\nsub     rsp, 10h                                                       ; +0x7, 0x100517e17\nmov     rbx, rdi                                                       ; +0xb, 0x100517e1b\nmov     [rbp+var_14], 7D000000h                                        ; +0xe, 0x100517e1e\nlea     rsi, [rbp+var_14]                                              ; +0x15, 0x100517e25\ncall    cocos2d__CCLayerColor__initWithColor                           ; +0x19, 0x100517e29\ntest    al, al                                                         ; +0x1e, 0x100517e2e\njz      loc_100517EC4                                                  ; +0x20, 0x100517e30\nmov     r14d, eax                                                      ; +0x26, 0x100517e36\ncmp     byte ptr [rbx+221h], 0                                         ; +0x29, 0x100517e39\njnz     short loc_100517E6A                                            ; +0x30, 0x100517e40\nmov     byte ptr [rbx+221h], 1                                         ; +0x32, 0x100517e42\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x39, 0x100517e49\nmov     rcx, [rax]                                                     ; +0x3e, 0x100517e4e\nmov     rdi, rax                                                       ; +0x41, 0x100517e51\ncall    qword ptr [rcx+0A0h]                                           ; +0x44, 0x100517e54\nmov     rdi, rax                                                       ; +0x4a, 0x100517e5a\nmov     rsi, rbx                                                       ; +0x4d, 0x100517e5d\nmov     edx, 2                                                         ; +0x50, 0x100517e60\ncall    cocos2d__CCTouchDispatcher__registerForcePrio                  ; +0x55, 0x100517e65\nmov     rax, [rbx]                                                     ; +0x5a, 0x100517e6a\nmov     rdi, rbx                                                       ; +0x5d, 0x100517e6d\nmov     esi, 1                                                         ; +0x60, 0x100517e70\ncall    qword ptr [rax+3D8h]                                           ; +0x65, 0x100517e75\nmov     rax, [rbx]                                                     ; +0x6b, 0x100517e7b\nmov     rdi, rbx                                                       ; +0x6e, 0x100517e7e\nmov     esi, 1                                                         ; +0x71, 0x100517e81\ncall    qword ptr [rax+420h]                                           ; +0x76, 0x100517e86\nmov     rax, [rbx]                                                     ; +0x7c, 0x100517e8c\nmov     rdi, rbx                                                       ; +0x7f, 0x100517e8f\nmov     esi, 1                                                         ; +0x82, 0x100517e92\ncall    qword ptr [rax+430h]                                           ; +0x87, 0x100517e97\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x8d, 0x100517e9d\nlea     rdi, [rbp+var_1C]                                              ; +0x92, 0x100517ea2\nmov     rsi, rax                                                       ; +0x96, 0x100517ea6\ncall    cocos2d__CCDirector__getWinSize                                ; +0x99, 0x100517ea9\nmov     rax, [rbx]                                                     ; +0x9e, 0x100517eae\nmov     rdi, rbx                                                       ; +0xa1, 0x100517eb1\ncall    qword ptr [rax+508h]                                           ; +0xa4, 0x100517eb4\nmov     byte ptr [rbx+220h], 1                                         ; +0xaa, 0x100517eba\nmov     eax, r14d                                                      ; +0xb1, 0x100517ec1\nadd     rsp, 10h                                                       ; +0xb4, 0x100517ec4\npop     rbx                                                            ; +0xb8, 0x100517ec8\npop     r14                                                            ; +0xb9, 0x100517ec9\npop     rbp                                                            ; +0xbb, 0x100517ecb\nretn                                                                   ; +0xbc, 0x100517ecc", "xrefs": ["EditorPauseLayer::init @ 0x1002911be", "PauseLayer::create @ 0x1003d5cd3", "PauseLayer::init @ 0x1003d5d1c", "CCBlockLayer::create @ 0x100517dd4", "<???> @ 0x1008f70a8", "<???> @ 0x10092fcd0", "<???> @ 0x10095fd10"], "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"}