{"type": "func", "start": 5722016, "end": 5722072, "name": "CCBlockLayer::registerWithTouchDispatcher", "pseudocode": "// \n// CCBlockLayer::registerWithTouchDispatcher from 0x574fa0 to 0x574fd8 (56 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0xc43b0\n// > <???> @ 0x11380d8\n// > <???> @ 0x11586a8\n// > <???> @ 0x1177a38\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\nvoid CCBlockLayer::registerWithTouchDispatcher(CCBlockLayer *a1)\n{\n  cocos2d::CCDirector *v2; // x0\n  cocos2d::CCTouchDispatcher *v3; // x0\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = v2->getTouchDispatcher(v2);\n  cocos2d::CCTouchDispatcher::addTargetedDelegate(v3, &a1->cocos2d::CCTouchDelegate, -500, 1);\n}", "assembly": "; \n; CCBlockLayer::registerWithTouchDispatcher from 0x574fa0 to 0x574fd8 (56 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0xc43b0\n; > <???> @ 0x11380d8\n; > <???> @ 0x11586a8\n; > <???> @ 0x1177a38\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x574fa0\nMOV             X29, SP                                                ; +0x4, 0x574fa4\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x574fa8\nMOV             X19, X0                                                ; +0xc, 0x574fac\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x10, 0x574fb0\nLDR             X1, [X0]                                               ; +0x14, 0x574fb4\nLDR             X1, [X1,#0xA0]                                         ; +0x18, 0x574fb8\nBLR             X1                                                     ; +0x1c, 0x574fbc\nADD             X1, X19, #0x140; cocos2d::CCTouchDelegate *            ; +0x20, 0x574fc0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x24, 0x574fc4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x28, 0x574fc8\nMOV             W2, #0xFFFFFE0C; int                                   ; +0x2c, 0x574fcc\nMOV             W3, #1; bool                                           ; +0x30, 0x574fd0\nB               _ZN7cocos2d17CCTouchDispatcher19addTargetedDelegateEPNS_15CCTouchDelegateEib; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x34, 0x574fd4", "xrefs": ["<???> @ 0xc43b0", "<???> @ 0x11380d8", "<???> @ 0x11586a8", "<???> @ 0x1177a38"], "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"}