{"type": "func", "start": 4072932, "end": 4073160, "name": "CCTextInputNode::ccTouchBegan", "pseudocode": "// \n// CCTextInputNode::ccTouchBegan from 0x3e25e4 to 0x3e26c8 (228 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CCTextInputNode::ccTouchBegan @ 0x3e26d4\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\nint __fastcall CCTextInputNode::ccTouchBegan(int a1, cocos2d::CCTouch *a2)\n{\n  int isVisibleInTree; // r7\n  ScrollableContentLayer *v5; // r0\n  int v6; // r0\n  _BYTE v8[8]; // [sp+4h] [bp-28h] BYREF\n  float v9[2]; // [sp+Ch] [bp-20h] BYREF\n  _BYTE v10[16]; // [sp+14h] [bp-18h] BYREF\n\n  isVisibleInTree = CCTextInputNode::isVisibleInTree((CCTextInputNode *)a1);\n  if ( isVisibleInTree )\n  {\n    cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v8);\n    if ( cocos2d::ccTouchClippedByAncestor((void *)a1, (int)v8) )\n      return 0;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (const cocos2d::CCPoint *)v8);\n    isVisibleInTree = CCTextInputNode::containsTouchPoint(a1);\n    if ( !isVisibleInTree )\n    {\n      if ( *(_BYTE *)(a1 + 344) && *(_BYTE *)(a1 + 442) )\n      {\n        (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a1 + 580))(a1, 0);\n        return isVisibleInTree;\n      }\n      return 0;\n    }\n    v5 = *(ScrollableContentLayer **)(a1 + 452);\n    if ( v5 )\n    {\n      ScrollableContentLayer::handleTouchBegan(v5, a2);\n    }\n    else\n    {\n      v6 = *(_DWORD *)(a1 + 420);\n      if ( v6 && !(*(int (__fastcall **)(int, int))(*(_DWORD *)v6 + 20))(v6, a1) )\n        return 0;\n      (*(void (__fastcall **)(int, int))(*(_DWORD *)a1 + 580))(a1, 1);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, (const cocos2d::CCPoint *)v8);\n      cocos2d::CCRect::CCRect((cocos2d::CCRect *)v10, (const cocos2d::CCRect *)&unk_D2B360);\n      CCTextInputNode::updateCursorPosition(a1, v9);\n    }\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (const cocos2d::CCPoint *)v8);\n    CCTextInputNode::armHold(a1, (int)v10);\n  }\n  return isVisibleInTree;\n}", "assembly": "; \n; CCTextInputNode::ccTouchBegan from 0x3e25e4 to 0x3e26c8 (228 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CCTextInputNode::ccTouchBegan @ 0x3e26d4\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-R9,LR}                                             ; +0x0, 0x3e25e4\nSUB             SP, SP, #0x2C                                          ; +0x4, 0x3e25e8\nLDR.W           R8, =(__stack_chk_guard_ptr - 0x3E25F6)                ; +0x6, 0x3e25ea\nMOV             R4, R0                                                 ; +0xa, 0x3e25ee\nMOV             R9, R1                                                 ; +0xc, 0x3e25f0\nADD             R8, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3e25f2\nLDR.W           R8, [R8]; __stack_chk_guard                            ; +0x10, 0x3e25f4\nLDR.W           R3, [R8]                                               ; +0x14, 0x3e25f8\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x18, 0x3e25fc\nBL              _ZN15CCTextInputNode15isVisibleInTreeEv; CCTextInputNode::isVisibleInTree(void) ; +0x1a, 0x3e25fe\nMOV             R7, R0                                                 ; +0x1e, 0x3e2602\nCMP             R0, #0                                                 ; +0x20, 0x3e2604\nBEQ             loc_3E26B2                                             ; +0x22, 0x3e2606\nADD             R6, SP, #0x2C+var_28                                   ; +0x24, 0x3e2608\nMOV             R1, R9                                                 ; +0x26, 0x3e260a\nMOV             R0, R6; this                                           ; +0x28, 0x3e260c\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x2a, 0x3e260e\nMOV             R0, R4; lpsrc                                          ; +0x2e, 0x3e2612\nMOV             R1, R6                                                 ; +0x30, 0x3e2614\nBL              _ZN7cocos2d24ccTouchClippedByAncestorEPNS_6CCNodeERKNS_7CCPointE; cocos2d::ccTouchClippedByAncestor(cocos2d::CCNode *,cocos2d::CCPoint const&) ; +0x32, 0x3e2616\nCBZ             R0, loc_3E2620                                         ; +0x36, 0x3e261a\nMOVS            R7, #0                                                 ; +0x38, 0x3e261c\nB               loc_3E26B2                                             ; +0x3a, 0x3e261e\nADD             R5, SP, #0x2C+var_18                                   ; +0x3c, 0x3e2620\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0x3e, 0x3e2622\nMOV             R0, R5; this                                           ; +0x40, 0x3e2624\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x42, 0x3e2626\nMOV             R0, R4                                                 ; +0x46, 0x3e262a\nMOV             R1, R5                                                 ; +0x48, 0x3e262c\nBL              _ZN15CCTextInputNode18containsTouchPointEN7cocos2d7CCPointE; CCTextInputNode::containsTouchPoint(cocos2d::CCPoint) ; +0x4a, 0x3e262e\nMOV             R7, R0                                                 ; +0x4e, 0x3e2632\nCBNZ            R0, loc_3E2654                                         ; +0x50, 0x3e2634\nLDRB.W          R3, [R4,#0x158]                                        ; +0x52, 0x3e2636\nCMP             R3, #0                                                 ; +0x56, 0x3e263a\nBEQ             loc_3E261C                                             ; +0x58, 0x3e263c\nLDRB.W          R3, [R4,#0x1BA]                                        ; +0x5a, 0x3e263e\nCMP             R3, #0                                                 ; +0x5e, 0x3e2642\nBEQ             loc_3E261C                                             ; +0x60, 0x3e2644\nLDR             R3, [R4]                                               ; +0x62, 0x3e2646\nMOV             R0, R4                                                 ; +0x64, 0x3e2648\nMOV             R1, R7                                                 ; +0x66, 0x3e264a\nLDR.W           R3, [R3,#0x244]                                        ; +0x68, 0x3e264c\nBLX             R3                                                     ; +0x6c, 0x3e2650\nB               loc_3E26B2                                             ; +0x6e, 0x3e2652\nLDR.W           R0, [R4,#0x1C4]; this                                  ; +0x70, 0x3e2654\nCBZ             R0, loc_3E2662                                         ; +0x74, 0x3e2658\nMOV             R1, R9; cocos2d::CCTouch *                             ; +0x76, 0x3e265a\nBL              _ZN22ScrollableContentLayer16handleTouchBeganEPN7cocos2d7CCTouchE; ScrollableContentLayer::handleTouchBegan(cocos2d::CCTouch *) ; +0x78, 0x3e265c\nB               loc_3E26A2                                             ; +0x7c, 0x3e2660\nLDR.W           R0, [R4,#0x1A4]                                        ; +0x7e, 0x3e2662\nCBZ             R0, loc_3E2674                                         ; +0x82, 0x3e2666\nLDR             R3, [R0]                                               ; +0x84, 0x3e2668\nMOV             R1, R4                                                 ; +0x86, 0x3e266a\nLDR             R3, [R3,#0x14]                                         ; +0x88, 0x3e266c\nBLX             R3                                                     ; +0x8a, 0x3e266e\nCMP             R0, #0                                                 ; +0x8c, 0x3e2670\nBEQ             loc_3E261C                                             ; +0x8e, 0x3e2672\nLDR             R3, [R4]                                               ; +0x90, 0x3e2674\nADD.W           R9, SP, #0x2C+var_20                                   ; +0x92, 0x3e2676\nMOV             R0, R4                                                 ; +0x96, 0x3e267a\nMOVS            R1, #1                                                 ; +0x98, 0x3e267c\nLDR.W           R3, [R3,#0x244]                                        ; +0x9a, 0x3e267e\nBLX             R3                                                     ; +0x9e, 0x3e2682\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0xa0, 0x3e2684\nMOV             R0, R9; this                                           ; +0xa2, 0x3e2686\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xa4, 0x3e2688\nLDR             R1, =(unk_D2B358 - 0x3E2694)                           ; +0xa8, 0x3e268c\nMOV             R0, R5; this                                           ; +0xaa, 0x3e268e\nADD             R1, PC; unk_D2B358                                     ; +0xac, 0x3e2690\nADDS            R1, #(unk_D2B360 - 0xD2B358); cocos2d::CCRect *        ; +0xae, 0x3e2692\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0xb0, 0x3e2694\nMOV             R0, R4                                                 ; +0xb4, 0x3e2698\nMOV             R1, R9                                                 ; +0xb6, 0x3e269a\nMOV             R2, R5                                                 ; +0xb8, 0x3e269c\nBL              _ZN15CCTextInputNode20updateCursorPositionEN7cocos2d7CCPointENS0_6CCRectE; CCTextInputNode::updateCursorPosition(cocos2d::CCPoint,cocos2d::CCRect) ; +0xba, 0x3e269e\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0xbe, 0x3e26a2\nMOV             R0, R5; this                                           ; +0xc0, 0x3e26a4\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xc2, 0x3e26a6\nMOV             R0, R4                                                 ; +0xc6, 0x3e26aa\nMOV             R1, R5                                                 ; +0xc8, 0x3e26ac\nBL              _ZN15CCTextInputNode7armHoldEN7cocos2d7CCPointE; CCTextInputNode::armHold(cocos2d::CCPoint) ; +0xca, 0x3e26ae\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0xce, 0x3e26b2\nMOV             R0, R7                                                 ; +0xd0, 0x3e26b4\nLDR.W           R3, [R8]                                               ; +0xd2, 0x3e26b6\nCMP             R2, R3                                                 ; +0xd6, 0x3e26ba\nBEQ             loc_3E26C2                                             ; +0xd8, 0x3e26bc\nBLX             __stack_chk_fail                                       ; +0xda, 0x3e26be\nADD             SP, SP, #0x2C ; ','                                    ; +0xde, 0x3e26c2\nPOP.W           {R4-R9,PC}                                             ; +0xe0, 0x3e26c4", "xrefs": ["`non-virtual thunk to'CCTextInputNode::ccTouchBegan @ 0x3e26d4"], "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"}