{"type": "func", "start": 4297060796, "end": 4297061004, "name": "CCTextInputNode::ccTouchEnded", "pseudocode": "// \n// CCTextInputNode::ccTouchEnded from 0x1001ff1bc to 0x1001ff28c (208 bytes)\n// \n// 2 xrefs:\n// > sub_1001FF28C @ 0x1001ff290\n// > <???> @ 0x1008f5488\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:00:44 +0000\n// \n\n__int64 __fastcall CCTextInputNode::ccTouchEnded(__int64 a1, __int64 a2)\n{\n  char v4; // w21\n  __int64 result; // x0\n  char v6; // w22\n  __int64 v7; // x0\n  __int64 v8; // [xsp+8h] [xbp-38h] BYREF\n  __int64 v9; // [xsp+18h] [xbp-28h] BYREF\n\n  v4 = *(_BYTE *)(a1 + 697);\n  *(_BYTE *)(a1 + 697) = 0;\n  if ( *(_BYTE *)(a1 + 696) == 1 )\n  {\n    *(_BYTE *)(a1 + 696) = 0;\n    cocos2d::CCNode::unschedule(a1, sub_1001FF490, 0);\n  }\n  result = *(_QWORD *)(a1 + 640);\n  if ( result )\n  {\n    v6 = *(_BYTE *)(result + 480);\n    result = sub_100525820();\n    if ( (v6 & 1) == 0 && (v4 & 1) == 0 )\n    {\n      v7 = *(_QWORD *)(a1 + 584);\n      if ( !v7\n        || (result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 40LL))(v7, a1), (_DWORD)result) )\n      {\n        cocos2d::CCTouch::getLocation(&v9, a2);\n        sub_1000264D4(&v8, (__int64)&unk_1009F48A0);\n        CCTextInputNode::updateCursorPosition(a1, (float *)&v9);\n        return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1160LL))(a1, 1);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCTextInputNode::ccTouchEnded from 0x1001ff1bc to 0x1001ff28c (208 bytes)\n; \n; 2 xrefs:\n; > sub_1001FF28C @ 0x1001ff290\n; > <???> @ 0x1008f5488\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:00:44 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1001ff1bc\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1001ff1c0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1001ff1c4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1001ff1c8\nADD             X29, SP, #0x40                                         ; +0x10, 0x1001ff1cc\nMOV             X20, X1                                                ; +0x14, 0x1001ff1d0\nMOV             X19, X0                                                ; +0x18, 0x1001ff1d4\nLDRB            W21, [X0,#0x2B9]                                       ; +0x1c, 0x1001ff1d8\nSTRB            WZR, [X0,#0x2B9]                                       ; +0x20, 0x1001ff1dc\nLDRB            W8, [X0,#0x2B8]                                        ; +0x24, 0x1001ff1e0\nCMP             W8, #1                                                 ; +0x28, 0x1001ff1e4\nB.NE            loc_1001FF204                                          ; +0x2c, 0x1001ff1e8\nSTRB            WZR, [X19,#0x2B8]                                      ; +0x30, 0x1001ff1ec\nADRL            X1, sub_1001FF490                                      ; +0x34, 0x1001ff1f0\nMOV             X0, X19                                                ; +0x3c, 0x1001ff1f8\nMOV             X2, #0                                                 ; +0x40, 0x1001ff1fc\nBL              cocos2d__CCNode__unschedule                            ; +0x44, 0x1001ff200\nLDR             X0, [X19,#0x280]                                       ; +0x48, 0x1001ff204\nCBZ             X0, loc_1001FF278                                      ; +0x4c, 0x1001ff208\nLDRB            W22, [X0,#0x1E0]                                       ; +0x50, 0x1001ff20c\nMOV             X1, X20                                                ; +0x54, 0x1001ff210\nBL              sub_100525820                                          ; +0x58, 0x1001ff214\nTBNZ            W22, #0, loc_1001FF278                                 ; +0x5c, 0x1001ff218\nTBNZ            W21, #0, loc_1001FF278                                 ; +0x60, 0x1001ff21c\nLDR             X0, [X19,#0x248]                                       ; +0x64, 0x1001ff220\nCBZ             X0, loc_1001FF23C                                      ; +0x68, 0x1001ff224\nLDR             X8, [X0]                                               ; +0x6c, 0x1001ff228\nLDR             X8, [X8,#0x28]                                         ; +0x70, 0x1001ff22c\nMOV             X1, X19                                                ; +0x74, 0x1001ff230\nBLR             X8                                                     ; +0x78, 0x1001ff234\nCBZ             W0, loc_1001FF278                                      ; +0x7c, 0x1001ff238\nADD             X8, SP, #0x40+var_28                                   ; +0x80, 0x1001ff23c\nMOV             X0, X20                                                ; +0x84, 0x1001ff240\nBL              cocos2d__CCTouch__getLocation                          ; +0x88, 0x1001ff244\nADRL            X1, unk_1009F48A0                                      ; +0x8c, 0x1001ff248\nADD             X0, SP, #0x40+var_38                                   ; +0x94, 0x1001ff250\nBL              sub_1000264D4                                          ; +0x98, 0x1001ff254\nADD             X1, SP, #0x40+var_28                                   ; +0x9c, 0x1001ff258\nMOV             X0, X19                                                ; +0xa0, 0x1001ff25c\nBL              CCTextInputNode__updateCursorPosition                  ; +0xa4, 0x1001ff260\nLDR             X8, [X19]                                              ; +0xa8, 0x1001ff264\nLDR             X8, [X8,#0x488]                                        ; +0xac, 0x1001ff268\nMOV             X0, X19                                                ; +0xb0, 0x1001ff26c\nMOV             W1, #1                                                 ; +0xb4, 0x1001ff270\nBLR             X8                                                     ; +0xb8, 0x1001ff274\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xbc, 0x1001ff278\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xc0, 0x1001ff27c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xc4, 0x1001ff280\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xc8, 0x1001ff284\nRET                                                                    ; +0xcc, 0x1001ff288", "xrefs": ["sub_1001FF28C @ 0x1001ff290", "<???> @ 0x1008f5488"], "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"}