{"type": "func", "start": 5371990752, "end": 5371990877, "name": "LevelSettingsLayer::registerWithTouchDispatcher", "pseudocode": "// \n// LevelSettingsLayer::registerWithTouchDispatcher from 0x1403212e0 to 0x14032135d (125 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14058eaa8\n// > <???> @ 0x1406d4c1c\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 LevelSettingsLayer::registerWithTouchDispatcher(LevelSettingsLayer *a1)\n{\n  __int64 v2; // rbx\n  __int64 v3; // rcx\n  __int64 v4; // rsi\n  __int64 v5; // rax\n  struct cocos2d::CCTouchDelegate *v6; // rbx\n  int v7; // edi\n  cocos2d::CCTouchDispatcher *v8; // rax\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1);\n  v4 = cocos2d::CCDirector::sharedDirector(v3);\n  v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);\n  v6 = &a1->cocos2d::CCTouchDelegate;\n  v7 = *(_DWORD *)(v5 + 124);\n  if ( !a1 )\n    v6 = nullptr;\n  v8 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);\n  cocos2d::CCTouchDispatcher::addTargetedDelegate(v8, v6, v7 - 1, 1);\n}", "assembly": "; \n; LevelSettingsLayer::registerWithTouchDispatcher from 0x1403212e0 to 0x14032135d (125 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14058eaa8\n; > <???> @ 0x1406d4c1c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403212e0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1403212e5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1403212ea\npush    rdi                                                            ; +0xf, 0x1403212ef\nsub     rsp, 20h                                                       ; +0x10, 0x1403212f0\nmov     rbp, rcx                                                       ; +0x14, 0x1403212f4\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x17, 0x1403212f7\nmov     rbx, rax                                                       ; +0x1d, 0x1403212fd\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x20, 0x140321300\nmov     rdx, [rbx]                                                     ; +0x26, 0x140321306\nmov     rcx, rbx                                                       ; +0x29, 0x140321309\nmov     rsi, rax                                                       ; +0x2c, 0x14032130c\ncall    qword ptr [rdx+90h]                                            ; +0x2f, 0x14032130f\nmov     r9, [rsi]                                                      ; +0x35, 0x140321315\nlea     rbx, [rbp+140h]                                                ; +0x38, 0x140321318\nmov     rcx, rsi                                                       ; +0x3f, 0x14032131f\nmov     edi, [rax+7Ch]                                                 ; +0x42, 0x140321322\nxor     eax, eax                                                       ; +0x45, 0x140321325\ntest    rbp, rbp                                                       ; +0x47, 0x140321327\ncmovz   rbx, rax                                                       ; +0x4a, 0x14032132a\ncall    qword ptr [r9+90h]                                             ; +0x4e, 0x14032132e\nmov     r9b, 1                                                         ; +0x55, 0x140321335\nlea     r8d, [rdi-1]                                                   ; +0x58, 0x140321338\nmov     rcx, rax                                                       ; +0x5c, 0x14032133c\nmov     rdx, rbx                                                       ; +0x5f, 0x14032133f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x62, 0x140321342\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x67, 0x140321347\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x6c, 0x14032134c\nadd     rsp, 20h                                                       ; +0x71, 0x140321351\npop     rdi                                                            ; +0x75, 0x140321355\njmp     cs:?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x76, 0x140321356", "xrefs": ["<???> @ 0x14058eaa8", "<???> @ 0x1406d4c1c"], "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"}