{"type": "func", "start": 5373273296, "end": 5373273427, "name": "LevelSettingsLayer::registerWithTouchDispatcher", "pseudocode": "// \n// LevelSettingsLayer::registerWithTouchDispatcher from 0x14045a4d0 to 0x14045a553 (131 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140797d60\n// > <???> @ 0x140927c20\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 11:32:31 +0000\n// \n\nvoid __fastcall LevelSettingsLayer::registerWithTouchDispatcher(__int64 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 = (struct cocos2d::CCTouchDelegate *)(a1 + 320);\n  v7 = *(_DWORD *)(v5 + 128);\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 0x14045a4d0 to 0x14045a553 (131 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140797d60\n; > <???> @ 0x140927c20\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 11:32:31 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14045a4d0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14045a4d5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14045a4da\npush    rdi                                                            ; +0xf, 0x14045a4df\nsub     rsp, 20h                                                       ; +0x10, 0x14045a4e0\nmov     rbp, rcx                                                       ; +0x14, 0x14045a4e4\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x17, 0x14045a4e7\nmov     rbx, rax                                                       ; +0x1d, 0x14045a4ed\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x20, 0x14045a4f0\nmov     rdx, [rbx]                                                     ; +0x26, 0x14045a4f6\nmov     rcx, rbx                                                       ; +0x29, 0x14045a4f9\nmov     rsi, rax                                                       ; +0x2c, 0x14045a4fc\ncall    qword ptr [rdx+90h]                                            ; +0x2f, 0x14045a4ff\nmov     rcx, [rsi]                                                     ; +0x35, 0x14045a505\nlea     rbx, [rbp+140h]                                                ; +0x38, 0x14045a508\nmov     edi, [rax+80h]                                                 ; +0x3f, 0x14045a50f\nxor     eax, eax                                                       ; +0x45, 0x14045a515\nmov     r9, [rcx+90h]                                                  ; +0x47, 0x14045a517\ntest    rbp, rbp                                                       ; +0x4e, 0x14045a51e\nmov     rcx, rsi                                                       ; +0x51, 0x14045a521\ncmovz   rbx, rax                                                       ; +0x54, 0x14045a524\ncall    r9                                                             ; +0x58, 0x14045a528\nmov     rcx, rax                                                       ; +0x5b, 0x14045a52b\nlea     r8d, [rdi-1]                                                   ; +0x5e, 0x14045a52e\nmov     r9b, 1                                                         ; +0x62, 0x14045a532\nmov     rdx, rbx                                                       ; +0x65, 0x14045a535\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x68, 0x14045a538\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x6d, 0x14045a53d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x72, 0x14045a542\nadd     rsp, 20h                                                       ; +0x77, 0x14045a547\npop     rdi                                                            ; +0x7b, 0x14045a54b\njmp     cs:?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x7c, 0x14045a54c", "xrefs": ["<???> @ 0x140797d60", "<???> @ 0x140927c20"], "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"}