{"type": "func", "start": 4300312288, "end": 4300312479, "name": "CCBlockLayer::init", "pseudocode": "// \n// CCBlockLayer::init from 0x100518ee0 to 0x100518f9f (191 bytes)\n// \n// 7 xrefs:\n// > EditorPauseLayer::init @ 0x10027caae\n// > PauseLayer::create @ 0x1003bf77e\n// > PauseLayer::init @ 0x1003bf7cc\n// > CCBlockLayer::create @ 0x100518ea4\n// > <???> @ 0x100afda38\n// > <???> @ 0x100b38640\n// > <???> @ 0x100b6c868\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 12:31:40 +0000\n// \n\nchar __fastcall CCBlockLayer::init(_BYTE *a1)\n{\n  char result; // al\n  char v2; // r14\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // rsi\n  __int64 v6; // [rsp+4h] [rbp-1Ch] BYREF\n  int v7[5]; // [rsp+Ch] [rbp-14h] BYREF\n\n  v7[0] = 2097152000;\n  result = cocos2d::CCLayerColor::initWithColor((__int64)a1, (__int64)v7);\n  if ( result )\n  {\n    v2 = result;\n    if ( !a1[545] )\n    {\n      a1[545] = 1;\n      v3 = cocos2d::CCDirector::sharedDirector();\n      v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);\n      cocos2d::CCTouchDispatcher::registerForcePrio(v4, (__int64)a1, 2, 0);\n    }\n    (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1);\n    (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1);\n    (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1);\n    v5 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(&v6, v5);\n    (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1304LL))(a1);\n    a1[544] = 1;\n    return v2;\n  }\n  return result;\n}", "assembly": "; \n; CCBlockLayer::init from 0x100518ee0 to 0x100518f9f (191 bytes)\n; \n; 7 xrefs:\n; > EditorPauseLayer::init @ 0x10027caae\n; > PauseLayer::create @ 0x1003bf77e\n; > PauseLayer::init @ 0x1003bf7cc\n; > CCBlockLayer::create @ 0x100518ea4\n; > <???> @ 0x100afda38\n; > <???> @ 0x100b38640\n; > <???> @ 0x100b6c868\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 12:31:40 +0000\n; \npush    rbp                                                            ; +0x0, 0x100518ee0\nmov     rbp, rsp                                                       ; +0x1, 0x100518ee1\npush    r14                                                            ; +0x4, 0x100518ee4\npush    rbx                                                            ; +0x6, 0x100518ee6\nsub     rsp, 10h                                                       ; +0x7, 0x100518ee7\nmov     rbx, rdi                                                       ; +0xb, 0x100518eeb\nmov     [rbp+var_14], 7D000000h                                        ; +0xe, 0x100518eee\nlea     rsi, [rbp+var_14]                                              ; +0x15, 0x100518ef5\ncall    cocos2d__CCLayerColor__initWithColor                           ; +0x19, 0x100518ef9\ntest    al, al                                                         ; +0x1e, 0x100518efe\njz      loc_100518F96                                                  ; +0x20, 0x100518f00\nmov     r14d, eax                                                      ; +0x26, 0x100518f06\ncmp     byte ptr [rbx+221h], 0                                         ; +0x29, 0x100518f09\njnz     short loc_100518F3C                                            ; +0x30, 0x100518f10\nmov     byte ptr [rbx+221h], 1                                         ; +0x32, 0x100518f12\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x39, 0x100518f19\nmov     rcx, [rax]                                                     ; +0x3e, 0x100518f1e\nmov     rdi, rax                                                       ; +0x41, 0x100518f21\ncall    qword ptr [rcx+0A0h]                                           ; +0x44, 0x100518f24\nmov     rdi, rax                                                       ; +0x4a, 0x100518f2a\nmov     rsi, rbx                                                       ; +0x4d, 0x100518f2d\nmov     edx, 2                                                         ; +0x50, 0x100518f30\nxor     ecx, ecx                                                       ; +0x55, 0x100518f35\ncall    cocos2d__CCTouchDispatcher__registerForcePrio                  ; +0x57, 0x100518f37\nmov     rax, [rbx]                                                     ; +0x5c, 0x100518f3c\nmov     rdi, rbx                                                       ; +0x5f, 0x100518f3f\nmov     esi, 1                                                         ; +0x62, 0x100518f42\ncall    qword ptr [rax+3E8h]                                           ; +0x67, 0x100518f47\nmov     rax, [rbx]                                                     ; +0x6d, 0x100518f4d\nmov     rdi, rbx                                                       ; +0x70, 0x100518f50\nmov     esi, 1                                                         ; +0x73, 0x100518f53\ncall    qword ptr [rax+430h]                                           ; +0x78, 0x100518f58\nmov     rax, [rbx]                                                     ; +0x7e, 0x100518f5e\nmov     rdi, rbx                                                       ; +0x81, 0x100518f61\nmov     esi, 1                                                         ; +0x84, 0x100518f64\ncall    qword ptr [rax+440h]                                           ; +0x89, 0x100518f69\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x8f, 0x100518f6f\nlea     rdi, [rbp+var_1C]                                              ; +0x94, 0x100518f74\nmov     rsi, rax                                                       ; +0x98, 0x100518f78\ncall    cocos2d__CCDirector__getWinSize                                ; +0x9b, 0x100518f7b\nmov     rax, [rbx]                                                     ; +0xa0, 0x100518f80\nmov     rdi, rbx                                                       ; +0xa3, 0x100518f83\ncall    qword ptr [rax+518h]                                           ; +0xa6, 0x100518f86\nmov     byte ptr [rbx+220h], 1                                         ; +0xac, 0x100518f8c\nmov     eax, r14d                                                      ; +0xb3, 0x100518f93\nadd     rsp, 10h                                                       ; +0xb6, 0x100518f96\npop     rbx                                                            ; +0xba, 0x100518f9a\npop     r14                                                            ; +0xbb, 0x100518f9b\npop     rbp                                                            ; +0xbd, 0x100518f9d\nretn                                                                   ; +0xbe, 0x100518f9e", "xrefs": ["EditorPauseLayer::init @ 0x10027caae", "PauseLayer::create @ 0x1003bf77e", "PauseLayer::init @ 0x1003bf7cc", "CCBlockLayer::create @ 0x100518ea4", "<???> @ 0x100afda38", "<???> @ 0x100b38640", "<???> @ 0x100b6c868"], "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"}