{"type": "func", "start": 4073176, "end": 4073308, "name": "CCTextInputNode::ccTouchEnded", "pseudocode": "// \n// CCTextInputNode::ccTouchEnded from 0x3e26d8 to 0x3e275c (132 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CCTextInputNode::ccTouchEnded @ 0x3e2768\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:47:02 +0000\n// \n\nunsigned __int8 *__fastcall CCTextInputNode::ccTouchEnded(int a1, cocos2d::CCTouch *a2)\n{\n  int v3; // r7\n  unsigned __int8 *result; // r0\n  int v6; // r8\n  int v7; // r0\n  float v8[2]; // [sp+4h] [bp-1Ch] BYREF\n  _BYTE v9[16]; // [sp+Ch] [bp-14h] BYREF\n\n  v3 = *(unsigned __int8 *)(a1 + 501);\n  CCTextInputNode::disarmHold(a1);\n  result = *(unsigned __int8 **)(a1 + 452);\n  if ( result )\n  {\n    v6 = result[376];\n    result = (unsigned __int8 *)ScrollableContentLayer::handleTouchEnded((ScrollableContentLayer *)result, a2);\n    if ( !v6 && !v3 )\n    {\n      v7 = *(_DWORD *)(a1 + 420);\n      if ( !v7\n        || (result = (unsigned __int8 *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v7 + 20))(v7, a1)) != nullptr )\n      {\n        cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v8);\n        cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, (const cocos2d::CCRect *)&unk_D2B360);\n        CCTextInputNode::updateCursorPosition(a1, v8);\n        return (unsigned __int8 *)(*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 580))(a1, 1);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCTextInputNode::ccTouchEnded from 0x3e26d8 to 0x3e275c (132 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CCTextInputNode::ccTouchEnded @ 0x3e2768\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:47:02 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x3e26d8\nSUB             SP, SP, #0x20                                          ; +0x4, 0x3e26dc\nLDR             R5, =(__stack_chk_guard_ptr - 0x3E26EC)                ; +0x6, 0x3e26de\nMOV             R4, R0                                                 ; +0x8, 0x3e26e0\nLDRB.W          R7, [R0,#0x1F5]                                        ; +0xa, 0x3e26e2\nMOV             R6, R1                                                 ; +0xe, 0x3e26e6\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3e26e8\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x3e26ea\nLDR             R3, [R5]                                               ; +0x14, 0x3e26ec\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x16, 0x3e26ee\nBL              _ZN15CCTextInputNode10disarmHoldEv; CCTextInputNode::disarmHold(void) ; +0x18, 0x3e26f0\nLDR.W           R0, [R4,#0x1C4]; this                                  ; +0x1c, 0x3e26f4\nCBZ             R0, loc_3E274A                                         ; +0x20, 0x3e26f8\nLDRB.W          R8, [R0,#0x178]                                        ; +0x22, 0x3e26fa\nMOV             R1, R6; cocos2d::CCTouch *                             ; +0x26, 0x3e26fe\nBL              _ZN22ScrollableContentLayer16handleTouchEndedEPN7cocos2d7CCTouchE; ScrollableContentLayer::handleTouchEnded(cocos2d::CCTouch *) ; +0x28, 0x3e2700\nCMP.W           R8, #0                                                 ; +0x2c, 0x3e2704\nBNE             loc_3E274A                                             ; +0x30, 0x3e2708\nCBNZ            R7, loc_3E274A                                         ; +0x32, 0x3e270a\nLDR.W           R0, [R4,#0x1A4]                                        ; +0x34, 0x3e270c\nCBZ             R0, loc_3E271C                                         ; +0x38, 0x3e2710\nLDR             R3, [R0]                                               ; +0x3a, 0x3e2712\nMOV             R1, R4                                                 ; +0x3c, 0x3e2714\nLDR             R3, [R3,#0x14]                                         ; +0x3e, 0x3e2716\nBLX             R3                                                     ; +0x40, 0x3e2718\nCBZ             R0, loc_3E274A                                         ; +0x42, 0x3e271a\nADD             R7, SP, #0x20+var_1C                                   ; +0x44, 0x3e271c\nMOV             R1, R6                                                 ; +0x46, 0x3e271e\nADD             R6, SP, #0x20+var_14                                   ; +0x48, 0x3e2720\nMOV             R0, R7; this                                           ; +0x4a, 0x3e2722\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x4c, 0x3e2724\nLDR             R1, =(unk_D2B358 - 0x3E2730)                           ; +0x50, 0x3e2728\nMOV             R0, R6; this                                           ; +0x52, 0x3e272a\nADD             R1, PC; unk_D2B358                                     ; +0x54, 0x3e272c\nADDS            R1, #(unk_D2B360 - 0xD2B358); cocos2d::CCRect *        ; +0x56, 0x3e272e\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x58, 0x3e2730\nMOV             R0, R4                                                 ; +0x5c, 0x3e2734\nMOV             R1, R7                                                 ; +0x5e, 0x3e2736\nMOV             R2, R6                                                 ; +0x60, 0x3e2738\nBL              _ZN15CCTextInputNode20updateCursorPositionEN7cocos2d7CCPointENS0_6CCRectE; CCTextInputNode::updateCursorPosition(cocos2d::CCPoint,cocos2d::CCRect) ; +0x62, 0x3e273a\nLDR             R3, [R4]                                               ; +0x66, 0x3e273e\nMOV             R0, R4                                                 ; +0x68, 0x3e2740\nMOVS            R1, #1                                                 ; +0x6a, 0x3e2742\nLDR.W           R3, [R3,#0x244]                                        ; +0x6c, 0x3e2744\nBLX             R3                                                     ; +0x70, 0x3e2748\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x72, 0x3e274a\nLDR             R3, [R5]                                               ; +0x74, 0x3e274c\nCMP             R2, R3                                                 ; +0x76, 0x3e274e\nBEQ             loc_3E2756                                             ; +0x78, 0x3e2750\nBLX             __stack_chk_fail                                       ; +0x7a, 0x3e2752\nADD             SP, SP, #0x20 ; ' '                                    ; +0x7e, 0x3e2756\nPOP.W           {R4-R8,PC}                                             ; +0x80, 0x3e2758", "xrefs": ["`non-virtual thunk to'CCTextInputNode::ccTouchEnded @ 0x3e2768"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}