{"type": "func", "start": 5920208, "end": 5920700, "name": "CCTextInputNode::ccTouchBegan", "pseudocode": "// \n// CCTextInputNode::ccTouchBegan from 0x5a55d0 to 0x5a57bc (492 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CCTextInputNode::ccTouchBegan @ 0x5a57c0\n// > <???> @ 0x7ba08\n// > <???> @ 0x1141220\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool CCTextInputNode::ccTouchBegan(CCTextInputNode *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCDirector *v4; // x0\n  const cocos2d::CCPoint *v5; // x0\n  float v6; // s0\n  cocos2d::CCNode *v7; // x0\n  const cocos2d::CCPoint *v8; // x0\n  float v9; // s0\n  float v10; // s1\n  char v11; // w24\n  TextInputDelegate *m_delegate; // x0\n  cocos2d::CCPoint v14; // [xsp+50h] [xbp+50h] BYREF\n  cocos2d::CCPoint v15; // [xsp+58h] [xbp+58h] BYREF\n  cocos2d::CCPoint v16; // [xsp+60h] [xbp+60h] BYREF\n  cocos2d::CCRect v17; // [xsp+68h] [xbp+68h] BYREF\n  cocos2d::CCRect v18; // [xsp+78h] [xbp+78h] BYREF\n  cocos2d::CCPoint v19; // 0:kr08_8.8\n  cocos2d::CCPoint v20; // 0:kr10_8.8\n  cocos2d::CCPoint v21; // 0:kr18_8.8\n  cocos2d::CCPoint v22; // 0:s0.4,4:s1.4\n  cocos2d::CCRect v23; // 0:s2.4,4:s3.4,8:s4.4,12:s5.4\n\n  cocos2d::CCTouch::getLocationInView(a2);\n  v4 = cocos2d::CCDirector::sharedDirector();\n  v19 = cocos2d::CCDirector::convertToGL(v4, &v14);\n  cocos2d::CCPoint::operator=(&v14, v19.x, v19.y);\n  v20 = cocos2d::CCNode::convertToWorldSpace(a1, &v14);\n  cocos2d::CCPoint::operator=(&v14, v20.x, v20.y);\n  v21 = cocos2d::CCNode::convertToNodeSpace(a1, &v14);\n  cocos2d::CCPoint::operator=(&v14, v21.x, v21.y);\n  v5 = a1->m_textField->getAnchorPoint(a1->m_textField);\n  cocos2d::CCPoint::CCPoint(&v18.origin, v5);\n  v6 = sub_5951D8((__int64)a1, (float *)&v18.origin, &v17);\n  if ( ((__int64 (__fastcall *)(CCTextInputNode *, float))a1->getParent)(a1, v6) )\n  {\n    v7 = a1->getParent(a1);\n    v8 = v7->getPosition(v7);\n    cocos2d::CCPoint::CCPoint(&v15, v8);\n  }\n  else\n  {\n    cocos2d::CCPoint::CCPoint(&v15, 0.0, 0.0);\n  }\n  cocos2d::CCPoint::operator+(&v18, &v17, &v15);\n  cocos2d::CCPoint::operator=(&v17, v9, v10);\n  v11 = cocos2d::CCRect::containsPoint(&v17, &v14);\n  if ( !v11 )\n    return 0;\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n  {\n    if ( !m_delegate->allowTextInput(m_delegate, a1) )\n      return 0;\n  }\n  a1->onClickTrackNode(a1, 1);\n  cocos2d::CCPoint::CCPoint(&v16, &v14);\n  cocos2d::CCRect::CCRect(&v18, &v17);\n  CCTextInputNode::updateCursorPosition(a1, v22, v23);\n  return v11;\n}", "assembly": "; \n; CCTextInputNode::ccTouchBegan from 0x5a55d0 to 0x5a57bc (492 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CCTextInputNode::ccTouchBegan @ 0x5a57c0\n; > <???> @ 0x7ba08\n; > <???> @ 0x1141220\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_90]!                                ; +0x0, 0x5a55d0\nMOV             X29, SP                                                ; +0x4, 0x5a55d4\nSTP             X23, X24, [SP,#0x90+var_60]                            ; +0x8, 0x5a55d8\nADRP            X23, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x5a55dc\nSTR             X25, [SP,#0x90+var_50]                                 ; +0x10, 0x5a55e0\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x14, 0x5a55e4\nMOV             X20, X0                                                ; +0x18, 0x5a55e8\nMOV             X0, X1; this                                           ; +0x1c, 0x5a55ec\nLDR             X1, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x5a55f0\nADD             X19, X29, #0x90+var_18                                 ; +0x24, 0x5a55f4\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0x28, 0x5a55f8\nADD             X21, X29, #0x90+var_40                                 ; +0x2c, 0x5a55fc\nADD             X22, X29, #0x90+var_28                                 ; +0x30, 0x5a5600\nLDR             X1, [X1]                                               ; +0x34, 0x5a5604\nMOV             X8, X21                                                ; +0x38, 0x5a5608\nSTR             X1, [X29,#0x90+var_8]                                  ; +0x3c, 0x5a560c\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x40, 0x5a5610\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x44, 0x5a5614\nMOV             X8, X19                                                ; +0x48, 0x5a5618\nMOV             X1, X21; cocos2d::CCPoint *                            ; +0x4c, 0x5a561c\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x50, 0x5a5620\nMOV             X1, X19                                                ; +0x54, 0x5a5624\nMOV             X0, X21                                                ; +0x58, 0x5a5628\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x5c, 0x5a562c\nMOV             X8, X19                                                ; +0x60, 0x5a5630\nMOV             X0, X20; this                                          ; +0x64, 0x5a5634\nMOV             X1, X21; cocos2d::CCPoint *                            ; +0x68, 0x5a5638\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x6c, 0x5a563c\nMOV             X1, X19                                                ; +0x70, 0x5a5640\nMOV             X0, X21                                                ; +0x74, 0x5a5644\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x78, 0x5a5648\nMOV             X8, X19                                                ; +0x7c, 0x5a564c\nMOV             X0, X20; this                                          ; +0x80, 0x5a5650\nMOV             X1, X21; cocos2d::CCPoint *                            ; +0x84, 0x5a5654\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x88, 0x5a5658\nMOV             X1, X19                                                ; +0x8c, 0x5a565c\nMOV             X0, X21                                                ; +0x90, 0x5a5660\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x94, 0x5a5664\nLDR             X1, [X20,#0x1F8]                                       ; +0x98, 0x5a5668\nMOV             X0, X1                                                 ; +0x9c, 0x5a566c\nLDR             X1, [X1]                                               ; +0xa0, 0x5a5670\nLDR             X1, [X1,#0x120]                                        ; +0xa4, 0x5a5674\nBLR             X1                                                     ; +0xa8, 0x5a5678\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0xac, 0x5a567c\nMOV             X0, X19; this                                          ; +0xb0, 0x5a5680\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xb4, 0x5a5684\nMOV             X0, X20                                                ; +0xb8, 0x5a5688\nMOV             X1, X19                                                ; +0xbc, 0x5a568c\nMOV             X8, X22                                                ; +0xc0, 0x5a5690\nBL              sub_5951D8                                             ; +0xc4, 0x5a5694\nLDR             X1, [X20]                                              ; +0xc8, 0x5a5698\nMOV             X0, X20                                                ; +0xcc, 0x5a569c\nLDR             X1, [X1,#0x1F0]                                        ; +0xd0, 0x5a56a0\nBLR             X1                                                     ; +0xd4, 0x5a56a4\nCBZ             X0, loc_5A57A0                                         ; +0xd8, 0x5a56a8\nLDR             X1, [X20]                                              ; +0xdc, 0x5a56ac\nMOV             X0, X20                                                ; +0xe0, 0x5a56b0\nADD             X24, X29, #0x90+var_38                                 ; +0xe4, 0x5a56b4\nLDR             X1, [X1,#0x1F0]                                        ; +0xe8, 0x5a56b8\nBLR             X1                                                     ; +0xec, 0x5a56bc\nLDR             X1, [X0]                                               ; +0xf0, 0x5a56c0\nLDR             X1, [X1,#0xC0]                                         ; +0xf4, 0x5a56c4\nBLR             X1                                                     ; +0xf8, 0x5a56c8\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0xfc, 0x5a56cc\nMOV             X0, X24; this                                          ; +0x100, 0x5a56d0\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x104, 0x5a56d4\nMOV             X8, X19                                                ; +0x108, 0x5a56d8\nMOV             X1, X24                                                ; +0x10c, 0x5a56dc\nMOV             X0, X22                                                ; +0x110, 0x5a56e0\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x114, 0x5a56e4\nMOV             X1, X19                                                ; +0x118, 0x5a56e8\nMOV             X0, X22                                                ; +0x11c, 0x5a56ec\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x120, 0x5a56f0\nMOV             X0, X22; this                                          ; +0x124, 0x5a56f4\nMOV             X1, X21; cocos2d::CCPoint *                            ; +0x128, 0x5a56f8\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x12c, 0x5a56fc\nUXTB            W24, W0                                                ; +0x130, 0x5a5700\nCBZ             W24, loc_5A5728                                        ; +0x134, 0x5a5704\nLDR             X0, [X20,#0x200]                                       ; +0x138, 0x5a5708\nCBZ             X0, loc_5A575C                                         ; +0x13c, 0x5a570c\nLDR             X2, [X0]                                               ; +0x140, 0x5a5710\nMOV             X1, X20                                                ; +0x144, 0x5a5714\nLDR             X2, [X2,#0x28]                                         ; +0x148, 0x5a5718\nBLR             X2                                                     ; +0x14c, 0x5a571c\nUXTB            W0, W0                                                 ; +0x150, 0x5a5720\nCBNZ            W0, loc_5A575C                                         ; +0x154, 0x5a5724\nMOV             W24, #0                                                ; +0x158, 0x5a5728\nLDR             X23, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x15c, 0x5a572c\nMOV             W0, W24                                                ; +0x160, 0x5a5730\nLDR             X19, [X29,#0x90+var_8]                                 ; +0x164, 0x5a5734\nLDR             X1, [X23]                                              ; +0x168, 0x5a5738\nCMP             X19, X1                                                ; +0x16c, 0x5a573c\nB.NE            loc_5A57B8                                             ; +0x170, 0x5a5740\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0x174, 0x5a5744\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0x178, 0x5a5748\nLDP             X23, X24, [SP,#0x90+var_60]                            ; +0x17c, 0x5a574c\nLDR             X25, [SP,#0x90+var_50]                                 ; +0x180, 0x5a5750\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0x184, 0x5a5754\nRET                                                                    ; +0x188, 0x5a5758\nLDR             X2, [X20]                                              ; +0x18c, 0x5a575c\nMOV             X0, X20                                                ; +0x190, 0x5a5760\nMOV             W1, #1                                                 ; +0x194, 0x5a5764\nADD             X25, X29, #0x90+var_30                                 ; +0x198, 0x5a5768\nLDR             X2, [X2,#0x478]                                        ; +0x19c, 0x5a576c\nBLR             X2                                                     ; +0x1a0, 0x5a5770\nMOV             X0, X25; this                                          ; +0x1a4, 0x5a5774\nMOV             X1, X21; cocos2d::CCPoint *                            ; +0x1a8, 0x5a5778\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1ac, 0x5a577c\nMOV             X0, X19; this                                          ; +0x1b0, 0x5a5780\nMOV             X1, X22; cocos2d::CCRect *                             ; +0x1b4, 0x5a5784\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x1b8, 0x5a5788\nMOV             X0, X20                                                ; +0x1bc, 0x5a578c\nMOV             X1, X25                                                ; +0x1c0, 0x5a5790\nMOV             X2, X19                                                ; +0x1c4, 0x5a5794\nBL              _ZN15CCTextInputNode20updateCursorPositionEN7cocos2d7CCPointENS0_6CCRectE; CCTextInputNode::updateCursorPosition(cocos2d::CCPoint,cocos2d::CCRect) ; +0x1c8, 0x5a5798\nB               loc_5A572C                                             ; +0x1cc, 0x5a579c\nFMOV            S0, WZR; float                                         ; +0x1d0, 0x5a57a0\nADD             X24, X29, #0x90+var_38                                 ; +0x1d4, 0x5a57a4\nMOV             X0, X24; this                                          ; +0x1d8, 0x5a57a8\nFMOV            S1, S0; float                                          ; +0x1dc, 0x5a57ac\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1e0, 0x5a57b0\nB               loc_5A56D8                                             ; +0x1e4, 0x5a57b4\nBL              .__stack_chk_fail                                      ; +0x1e8, 0x5a57b8", "xrefs": ["`non-virtual thunk to'CCTextInputNode::ccTouchBegan @ 0x5a57c0", "<???> @ 0x7ba08", "<???> @ 0x1141220"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}