{"type": "func", "start": 5369027280, "end": 5369027411, "name": "CCTextInputMenu::registerWithTouchDispatcher", "pseudocode": "// \n// CCTextInputMenu::registerWithTouchDispatcher from 0x14004dad0 to 0x14004db53 (131 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14070c708\n// > <???> @ 0x140910190\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:25:33 +0000\n// \n\nvoid __fastcall CCTextInputMenu::registerWithTouchDispatcher(__int64 a1)\n{\n  __int64 v2; // rbx\n  __int64 v3; // rsi\n  __int64 v4; // rax\n  struct cocos2d::CCTouchDelegate *v5; // rbx\n  int v6; // edi\n  cocos2d::CCTouchDispatcher *v7; // rax\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = cocos2d::CCDirector::sharedDirector();\n  v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);\n  v5 = (struct cocos2d::CCTouchDelegate *)(a1 + 320);\n  v6 = *(_DWORD *)(v4 + 128);\n  if ( !a1 )\n    v5 = nullptr;\n  v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n  cocos2d::CCTouchDispatcher::addTargetedDelegate(v7, v5, v6 - 2, 1);\n}", "assembly": "; \n; CCTextInputMenu::registerWithTouchDispatcher from 0x14004dad0 to 0x14004db53 (131 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14070c708\n; > <???> @ 0x140910190\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:25:33 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14004dad0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14004dad5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14004dada\npush    rdi                                                            ; +0xf, 0x14004dadf\nsub     rsp, 20h                                                       ; +0x10, 0x14004dae0\nmov     rbp, rcx                                                       ; +0x14, 0x14004dae4\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x17, 0x14004dae7\nmov     rbx, rax                                                       ; +0x1d, 0x14004daed\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x20, 0x14004daf0\nmov     rdx, [rbx]                                                     ; +0x26, 0x14004daf6\nmov     rcx, rbx                                                       ; +0x29, 0x14004daf9\nmov     rsi, rax                                                       ; +0x2c, 0x14004dafc\ncall    qword ptr [rdx+90h]                                            ; +0x2f, 0x14004daff\nmov     rcx, [rsi]                                                     ; +0x35, 0x14004db05\nlea     rbx, [rbp+140h]                                                ; +0x38, 0x14004db08\nmov     edi, [rax+80h]                                                 ; +0x3f, 0x14004db0f\nxor     eax, eax                                                       ; +0x45, 0x14004db15\nmov     r9, [rcx+90h]                                                  ; +0x47, 0x14004db17\ntest    rbp, rbp                                                       ; +0x4e, 0x14004db1e\nmov     rcx, rsi                                                       ; +0x51, 0x14004db21\ncmovz   rbx, rax                                                       ; +0x54, 0x14004db24\ncall    r9                                                             ; +0x58, 0x14004db28\nmov     rcx, rax                                                       ; +0x5b, 0x14004db2b\nlea     r8d, [rdi-2]                                                   ; +0x5e, 0x14004db2e\nmov     r9b, 1                                                         ; +0x62, 0x14004db32\nmov     rdx, rbx                                                       ; +0x65, 0x14004db35\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x68, 0x14004db38\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x6d, 0x14004db3d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x72, 0x14004db42\nadd     rsp, 20h                                                       ; +0x77, 0x14004db47\npop     rdi                                                            ; +0x7b, 0x14004db4b\njmp     cs:?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x7c, 0x14004db4c", "xrefs": ["<???> @ 0x14070c708", "<???> @ 0x140910190"], "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"}