{"type": "func", "start": 4299798588, "end": 4299798672, "name": "LevelBrowserLayer::registerWithTouchDispatcher", "pseudocode": "// \n// LevelBrowserLayer::registerWithTouchDispatcher from 0x10049b83c to 0x10049b890 (84 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x100923888\n// > <???> @ 0x10097ba80\n// \n// This function is hookable on this platform (idp: arm, 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:05:59 +0000\n// \n\nvoid __fastcall LevelBrowserLayer::registerWithTouchDispatcher(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x0\n\n  if ( *(_BYTE *)(a1 + 748) == 1 )\n  {\n    v2 = cocos2d::CCDirector::sharedDirector();\n    v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);\n    cocos2d::CCTouchDispatcher::addTargetedDelegate(v3, (void *)(a1 + 320), 4294966796LL, 1);\n  }\n  else\n  {\n    cocos2d::CCLayer::registerWithTouchDispatcher(a1);\n  }\n}", "assembly": "; \n; LevelBrowserLayer::registerWithTouchDispatcher from 0x10049b83c to 0x10049b890 (84 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x100923888\n; > <???> @ 0x10097ba80\n; \n; This function is hookable on this platform (idp: arm, 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:05:59 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10049b83c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10049b840\nADD             X29, SP, #0x10                                         ; +0x8, 0x10049b844\nMOV             X19, X0                                                ; +0xc, 0x10049b848\nLDRB            W8, [X0,#0x2EC]                                        ; +0x10, 0x10049b84c\nCMP             W8, #1                                                 ; +0x14, 0x10049b850\nB.NE            loc_10049B880                                          ; +0x18, 0x10049b854\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x1c, 0x10049b858\nLDR             X8, [X0]                                               ; +0x20, 0x10049b85c\nLDR             X8, [X8,#0xA0]                                         ; +0x24, 0x10049b860\nBLR             X8                                                     ; +0x28, 0x10049b864\nADD             X1, X19, #0x140                                        ; +0x2c, 0x10049b868\nMOV             W2, #0xFFFFFE0C                                        ; +0x30, 0x10049b86c\nMOV             W3, #1                                                 ; +0x34, 0x10049b870\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x38, 0x10049b874\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x3c, 0x10049b878\nB               cocos2d__CCTouchDispatcher__addTargetedDelegate        ; +0x40, 0x10049b87c\nMOV             X0, X19                                                ; +0x44, 0x10049b880\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x48, 0x10049b884\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x4c, 0x10049b888\nB               cocos2d__CCLayer__registerWithTouchDispatcher          ; +0x50, 0x10049b88c", "xrefs": ["<???> @ 0x100923888", "<???> @ 0x10097ba80"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}