{"type": "func", "start": 4300306880, "end": 4300307048, "name": "CCBlockLayer::dCCBlockLayer", "pseudocode": "// \n// CCBlockLayer::dCCBlockLayer from 0x1005179c0 to 0x100517a68 (168 bytes)\n// \n// 10 xrefs:\n// > sub_100291010 @ 0x100291015\n// > sub_100291020 @ 0x100291025\n// > sub_100291030 @ 0x10029103c\n// > sub_100291050 @ 0x100291059\n// > sub_100291070 @ 0x100291083\n// > sub_1003D5B90 @ 0x1003d5b95\n// > sub_1003D5BA0 @ 0x1003d5ba5\n// > sub_1003D5BB0 @ 0x1003d5bbc\n// > sub_1003D5BD0 @ 0x1003d5bd9\n// > sub_1003D5BF0 @ 0x1003d5c03\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\n__int64 __fastcall CCBlockLayer::dCCBlockLayer(__int64 a1)\n{\n  cocos2d::CCDirector *v1; // rax\n  cocos2d::CCTouchDispatcher *v2; // rax\n\n  *(_QWORD *)a1 = off_10095FCC0;\n  *(_QWORD *)(a1 + 320) = off_100960228;\n  *(_QWORD *)(a1 + 328) = &off_100960298;\n  *(_QWORD *)(a1 + 336) = off_1009602B0;\n  *(_QWORD *)(a1 + 344) = off_1009602D0;\n  *(_QWORD *)(a1 + 352) = off_1009602F0;\n  *(_QWORD *)(a1 + 408) = off_100960318;\n  *(_QWORD *)(a1 + 432) = off_100960398;\n  if ( *(_BYTE *)(a1 + 545) == 1 )\n  {\n    v1 = cocos2d::CCDirector::sharedDirector();\n    v2 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v1->getTouchDispatcher)(v1);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v2, (cocos2d::CCObject *)a1);\n  }\n  return cocos2d::CCLayerColor::dCCLayerColor((_QWORD *)a1);\n}", "assembly": "; \n; CCBlockLayer::dCCBlockLayer from 0x1005179c0 to 0x100517a68 (168 bytes)\n; \n; 10 xrefs:\n; > sub_100291010 @ 0x100291015\n; > sub_100291020 @ 0x100291025\n; > sub_100291030 @ 0x10029103c\n; > sub_100291050 @ 0x100291059\n; > sub_100291070 @ 0x100291083\n; > sub_1003D5B90 @ 0x1003d5b95\n; > sub_1003D5BA0 @ 0x1003d5ba5\n; > sub_1003D5BB0 @ 0x1003d5bbc\n; > sub_1003D5BD0 @ 0x1003d5bd9\n; > sub_1003D5BF0 @ 0x1003d5c03\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, 0x1005179c0\nmov     rbp, rsp                                                       ; +0x1, 0x1005179c1\npush    rbx                                                            ; +0x4, 0x1005179c4\npush    rax                                                            ; +0x5, 0x1005179c5\nmov     rbx, rdi                                                       ; +0x6, 0x1005179c6\nlea     rax, off_10095FCC0                                             ; +0x9, 0x1005179c9\nmov     [rdi], rax                                                     ; +0x10, 0x1005179d0\nlea     rax, off_100960228                                             ; +0x13, 0x1005179d3\nmov     [rdi+140h], rax                                                ; +0x1a, 0x1005179da\nlea     rax, off_100960298                                             ; +0x21, 0x1005179e1\nmov     [rdi+148h], rax                                                ; +0x28, 0x1005179e8\nlea     rax, off_1009602B0                                             ; +0x2f, 0x1005179ef\nmov     [rdi+150h], rax                                                ; +0x36, 0x1005179f6\nlea     rax, off_1009602D0                                             ; +0x3d, 0x1005179fd\nmov     [rdi+158h], rax                                                ; +0x44, 0x100517a04\nlea     rax, off_1009602F0                                             ; +0x4b, 0x100517a0b\nmov     [rdi+160h], rax                                                ; +0x52, 0x100517a12\nlea     rax, off_100960318                                             ; +0x59, 0x100517a19\nmov     [rdi+198h], rax                                                ; +0x60, 0x100517a20\nlea     rax, off_100960398                                             ; +0x67, 0x100517a27\nmov     [rdi+1B0h], rax                                                ; +0x6e, 0x100517a2e\ncmp     byte ptr [rdi+221h], 1                                         ; +0x75, 0x100517a35\njnz     short loc_100517A5A                                            ; +0x7c, 0x100517a3c\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x7e, 0x100517a3e\nmov     rcx, [rax]                                                     ; +0x83, 0x100517a43\nmov     rdi, rax                                                       ; +0x86, 0x100517a46\ncall    qword ptr [rcx+0A0h]                                           ; +0x89, 0x100517a49\nmov     rdi, rax                                                       ; +0x8f, 0x100517a4f\nmov     rsi, rbx                                                       ; +0x92, 0x100517a52\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x95, 0x100517a55\nmov     rdi, rbx                                                       ; +0x9a, 0x100517a5a\nadd     rsp, 8                                                         ; +0x9d, 0x100517a5d\npop     rbx                                                            ; +0xa1, 0x100517a61\npop     rbp                                                            ; +0xa2, 0x100517a62\njmp     cocos2d__CCLayerColor__dCCLayerColor                           ; +0xa3, 0x100517a63", "xrefs": ["sub_100291010 @ 0x100291015", "sub_100291020 @ 0x100291025", "sub_100291030 @ 0x10029103c", "sub_100291050 @ 0x100291059", "sub_100291070 @ 0x100291083", "sub_1003D5B90 @ 0x1003d5b95", "sub_1003D5BA0 @ 0x1003d5ba5", "sub_1003D5BB0 @ 0x1003d5bbc", "sub_1003D5BD0 @ 0x1003d5bd9", "sub_1003D5BF0 @ 0x1003d5c03"], "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"}