{"type": "func", "start": 4295410880, "end": 4295411086, "name": "CCTextInputNode::ccTouchEnded", "pseudocode": "// \n// CCTextInputNode::ccTouchEnded from 0x10006c4c0 to 0x10006c58e (206 bytes)\n// \n// 2 xrefs:\n// > sub_10006C590 @ 0x10006c59c\n// > <???> @ 0x100aba1c0\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 12:19:45 +0000\n// \n\n__int64 __fastcall CCTextInputNode::ccTouchEnded(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  char v4; // r15\n  __int64 v5; // rdi\n  char v6; // r12\n  __int64 v7; // rdi\n  _BYTE v8[16]; // [rsp+8h] [rbp-38h] BYREF\n  float v9[10]; // [rsp+18h] [rbp-28h] BYREF\n\n  result = *(unsigned __int8 *)(a1 + 696);\n  v4 = *(_BYTE *)(a1 + 697);\n  *(_BYTE *)(a1 + 697) = 0;\n  if ( (_BYTE)result == 1 )\n  {\n    *(_BYTE *)(a1 + 696) = 0;\n    result = cocos2d::CCNode::unschedule(a1, CCTextInputNode::holdTimerFired, 0);\n  }\n  v5 = *(_QWORD *)(a1 + 640);\n  if ( v5 )\n  {\n    v6 = *(_BYTE *)(v5 + 480);\n    result = sub_10096C5E0(v5, a2);\n    if ( !v6 && !v4 )\n    {\n      v7 = *(_QWORD *)(a1 + 584);\n      if ( !v7 || (result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 40LL))(v7, a1), (_BYTE)result) )\n      {\n        cocos2d::CCTouch::getLocation((__int64)v9, a2);\n        sub_1002787F0(v8, &unk_100BE1030);\n        CCTextInputNode::updateCursorPosition(a1, v9);\n        return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1160LL))(a1, 1);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCTextInputNode::ccTouchEnded from 0x10006c4c0 to 0x10006c58e (206 bytes)\n; \n; 2 xrefs:\n; > sub_10006C590 @ 0x10006c59c\n; > <???> @ 0x100aba1c0\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 12:19:45 +0000\n; \npush    rbp                                                            ; +0x0, 0x10006c4c0\nmov     rbp, rsp                                                       ; +0x1, 0x10006c4c1\npush    r15                                                            ; +0x4, 0x10006c4c4\npush    r14                                                            ; +0x6, 0x10006c4c6\npush    r12                                                            ; +0x8, 0x10006c4c8\npush    rbx                                                            ; +0xa, 0x10006c4ca\nsub     rsp, 20h                                                       ; +0xb, 0x10006c4cb\nmov     r14, rsi                                                       ; +0xf, 0x10006c4cf\nmov     rbx, rdi                                                       ; +0x12, 0x10006c4d2\nmovzx   eax, byte ptr [rdi+2B8h]                                       ; +0x15, 0x10006c4d5\nmovzx   r15d, byte ptr [rdi+2B9h]                                      ; +0x1c, 0x10006c4dc\nmov     byte ptr [rdi+2B9h], 0                                         ; +0x24, 0x10006c4e4\ncmp     al, 1                                                          ; +0x2b, 0x10006c4eb\njnz     short loc_10006C507                                            ; +0x2d, 0x10006c4ed\nmov     byte ptr [rbx+2B8h], 0                                         ; +0x2f, 0x10006c4ef\nlea     rsi, CCTextInputNode__holdTimerFired                           ; +0x36, 0x10006c4f6\nmov     rdi, rbx                                                       ; +0x3d, 0x10006c4fd\nxor     edx, edx                                                       ; +0x40, 0x10006c500\ncall    cocos2d__CCNode__unschedule                                    ; +0x42, 0x10006c502\nmov     rdi, [rbx+280h]                                                ; +0x47, 0x10006c507\ntest    rdi, rdi                                                       ; +0x4e, 0x10006c50e\njz      short loc_10006C581                                            ; +0x51, 0x10006c511\nmovzx   r12d, byte ptr [rdi+1E0h]                                      ; +0x53, 0x10006c513\nmov     rsi, r14                                                       ; +0x5b, 0x10006c51b\ncall    sub_10096C5E0                                                  ; +0x5e, 0x10006c51e\ntest    r12b, r12b                                                     ; +0x63, 0x10006c523\njnz     short loc_10006C581                                            ; +0x66, 0x10006c526\ntest    r15b, r15b                                                     ; +0x68, 0x10006c528\njnz     short loc_10006C581                                            ; +0x6b, 0x10006c52b\nmov     rdi, [rbx+248h]                                                ; +0x6d, 0x10006c52d\ntest    rdi, rdi                                                       ; +0x74, 0x10006c534\njz      short loc_10006C546                                            ; +0x77, 0x10006c537\nmov     rax, [rdi]                                                     ; +0x79, 0x10006c539\nmov     rsi, rbx                                                       ; +0x7c, 0x10006c53c\ncall    qword ptr [rax+28h]                                            ; +0x7f, 0x10006c53f\ntest    al, al                                                         ; +0x82, 0x10006c542\njz      short loc_10006C581                                            ; +0x84, 0x10006c544\nlea     r15, [rbp+var_28]                                              ; +0x86, 0x10006c546\nmov     rdi, r15                                                       ; +0x8a, 0x10006c54a\nmov     rsi, r14                                                       ; +0x8d, 0x10006c54d\ncall    cocos2d__CCTouch__getLocation                                  ; +0x90, 0x10006c550\nlea     rsi, unk_100BE1030                                             ; +0x95, 0x10006c555\nlea     rdi, [rbp+var_38]                                              ; +0x9c, 0x10006c55c\ncall    sub_1002787F0                                                  ; +0xa0, 0x10006c560\nmov     rdi, rbx                                                       ; +0xa5, 0x10006c565\nmov     rsi, r15                                                       ; +0xa8, 0x10006c568\ncall    CCTextInputNode__updateCursorPosition                          ; +0xab, 0x10006c56b\nmov     rax, [rbx]                                                     ; +0xb0, 0x10006c570\nmov     rdi, rbx                                                       ; +0xb3, 0x10006c573\nmov     esi, 1                                                         ; +0xb6, 0x10006c576\ncall    qword ptr [rax+488h]                                           ; +0xbb, 0x10006c57b\nadd     rsp, 20h                                                       ; +0xc1, 0x10006c581\npop     rbx                                                            ; +0xc5, 0x10006c585\npop     r12                                                            ; +0xc6, 0x10006c586\npop     r14                                                            ; +0xc8, 0x10006c588\npop     r15                                                            ; +0xca, 0x10006c58a\npop     rbp                                                            ; +0xcc, 0x10006c58c\nretn                                                                   ; +0xcd, 0x10006c58d", "xrefs": ["sub_10006C590 @ 0x10006c59c", "<???> @ 0x100aba1c0"], "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"}