{"type": "func", "start": 7086472, "end": 7086740, "name": "CCTextInputNode::holdTimerFired", "pseudocode": "// \n// CCTextInputNode::holdTimerFired from 0x6c2188 to 0x6c2294 (268 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x54970\n// > CCTextInputNode::armHold @ 0x6b86fc\n// > CCTextInputNode::armHold @ 0x6b8704\n// > CCTextInputNode::disarmHold @ 0x6b8744\n// > <???> @ 0x1541db8\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 12:51:19 +0000\n// \n\n__int64 __fastcall CCTextInputNode::holdTimerFired(CCTextInputNode *this, float a2)\n{\n  int v3; // w0\n  __int64 v4; // x0\n  float v6; // [xsp+40h] [xbp+40h] BYREF\n  _BYTE v7[16]; // [xsp+48h] [xbp+48h] BYREF\n\n  v3 = *((unsigned __int8 *)this + 460);\n  *((_BYTE *)this + 696) = 0;\n  *((_BYTE *)this + 697) = 1;\n  if ( v3 )\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, (CCTextInputNode *)((char *)this + 688));\n    CCTextInputNode::openEditMenu(this, (const cocos2d::CCPoint *)v7);\n  }\n  else\n  {\n    v4 = *((_QWORD *)this + 73);\n    if ( !v4\n      || (*(unsigned __int8 (__fastcall **)(__int64, CCTextInputNode *, float))(*(_QWORD *)v4 + 40LL))(v4, this, a2) )\n    {\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v6, (CCTextInputNode *)((char *)this + 688));\n      cocos2d::CCRect::CCRect((cocos2d::CCRect *)v7, (const cocos2d::CCRect *)&unk_155C0E8);\n      CCTextInputNode::updateCursorPosition((__int64)this, &v6);\n      (*(void (__fastcall **)(CCTextInputNode *, __int64))(*(_QWORD *)this + 1160LL))(this, 1);\n      cocos2d::CCNode::scheduleOnce(this, CCTextInputNode::showHoldMenu, 0, 0.35);\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CCTextInputNode::holdTimerFired from 0x6c2188 to 0x6c2294 (268 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x54970\n; > CCTextInputNode::armHold @ 0x6b86fc\n; > CCTextInputNode::armHold @ 0x6b8704\n; > CCTextInputNode::disarmHold @ 0x6b8744\n; > <???> @ 0x1541db8\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 12:51:19 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x6c2188\nMOV             X29, SP                                                ; +0x4, 0x6c218c\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x6c2190\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6c2194\nMOV             X19, X0                                                ; +0x10, 0x6c2198\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0x6c219c\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x6c21a0\nLDRB            W0, [X0,#0x1CC]                                        ; +0x1c, 0x6c21a4\nSTRB            WZR, [X19,#0x2B8]                                      ; +0x20, 0x6c21a8\nLDR             X1, [X1]                                               ; +0x24, 0x6c21ac\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x28, 0x6c21b0\nMOV             W1, #1                                                 ; +0x2c, 0x6c21b4\nSTRB            W1, [X19,#0x2B9]                                       ; +0x30, 0x6c21b8\nCBNZ            W0, loc_6C2270                                         ; +0x34, 0x6c21bc\nLDR             X0, [X19,#0x248]                                       ; +0x38, 0x6c21c0\nCBZ             X0, loc_6C2204                                         ; +0x3c, 0x6c21c4\nLDR             X2, [X0]                                               ; +0x40, 0x6c21c8\nMOV             X1, X19                                                ; +0x44, 0x6c21cc\nLDR             X2, [X2,#0x28]                                         ; +0x48, 0x6c21d0\nBLR             X2                                                     ; +0x4c, 0x6c21d4\nUXTB            W0, W0                                                 ; +0x50, 0x6c21d8\nCBNZ            W0, loc_6C2204                                         ; +0x54, 0x6c21dc\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x58, 0x6c21e0\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x5c, 0x6c21e4\nLDR             X0, [X20]                                              ; +0x60, 0x6c21e8\nCMP             X1, X0                                                 ; +0x64, 0x6c21ec\nB.NE            loc_6C2290                                             ; +0x68, 0x6c21f0\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x6c, 0x6c21f4\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x70, 0x6c21f8\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x74, 0x6c21fc\nRET                                                                    ; +0x78, 0x6c2200\nADD             X22, X29, #0x60+var_20                                 ; +0x7c, 0x6c2204\nADD             X1, X19, #0x2B0; cocos2d::CCPoint *                    ; +0x80, 0x6c2208\nMOV             X0, X22; this                                          ; +0x84, 0x6c220c\nADD             X21, X29, #0x60+var_18                                 ; +0x88, 0x6c2210\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x8c, 0x6c2214\nSTR             X21, [X29,#0x60+var_28]                                ; +0x90, 0x6c2218\nADRP            X1, #unk_155C0E0@PAGE                                  ; +0x94, 0x6c221c\nMOV             X0, X21; this                                          ; +0x98, 0x6c2220\nADD             X1, X1, #unk_155C0E0@PAGEOFF                           ; +0x9c, 0x6c2224\nADD             X1, X1, #8; cocos2d::CCRect *                          ; +0xa0, 0x6c2228\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0xa4, 0x6c222c\nLDR             X2, [X29,#0x60+var_28]                                 ; +0xa8, 0x6c2230\nMOV             X0, X19                                                ; +0xac, 0x6c2234\nMOV             X1, X22                                                ; +0xb0, 0x6c2238\nBL              _ZN15CCTextInputNode20updateCursorPositionEN7cocos2d7CCPointENS0_6CCRectE; CCTextInputNode::updateCursorPosition(cocos2d::CCPoint,cocos2d::CCRect) ; +0xb4, 0x6c223c\nLDR             X2, [X19]                                              ; +0xb8, 0x6c2240\nMOV             X0, X19                                                ; +0xbc, 0x6c2244\nMOV             W1, #1                                                 ; +0xc0, 0x6c2248\nLDR             X2, [X2,#0x488]                                        ; +0xc4, 0x6c224c\nBLR             X2                                                     ; +0xc8, 0x6c2250\nADRP            X1, #_ZN15CCTextInputNode12showHoldMenuEf_ptr@PAGE     ; +0xcc, 0x6c2254\nMOV             X0, X19                                                ; +0xd0, 0x6c2258\nLDR             S0, =0x3EB33333                                        ; +0xd4, 0x6c225c\nMOV             X2, #0                                                 ; +0xd8, 0x6c2260\nLDR             X1, [X1,#_ZN15CCTextInputNode12showHoldMenuEf_ptr@PAGEOFF]; CCTextInputNode::showHoldMenu(float) ... ; +0xdc, 0x6c2264\nBL              _ZN7cocos2d6CCNode12scheduleOnceEMNS_8CCObjectEFvfEf; cocos2d::CCNode::scheduleOnce(void (cocos2d::CCObject::*)(float),float) ; +0xe0, 0x6c2268\nB               loc_6C21E0                                             ; +0xe4, 0x6c226c\nADD             X21, X29, #0x60+var_18                                 ; +0xe8, 0x6c2270\nADD             X1, X19, #0x2B0; cocos2d::CCPoint *                    ; +0xec, 0x6c2274\nMOV             X0, X21; this                                          ; +0xf0, 0x6c2278\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xf4, 0x6c227c\nMOV             X0, X19                                                ; +0xf8, 0x6c2280\nMOV             X1, X21                                                ; +0xfc, 0x6c2284\nBL              _ZN15CCTextInputNode12openEditMenuEN7cocos2d7CCPointE; CCTextInputNode::openEditMenu(cocos2d::CCPoint) ; +0x100, 0x6c2288\nB               loc_6C21E0                                             ; +0x104, 0x6c228c\nBL              .__stack_chk_fail                                      ; +0x108, 0x6c2290", "xrefs": ["<???> @ 0x54970", "CCTextInputNode::armHold @ 0x6b86fc", "CCTextInputNode::armHold @ 0x6b8704", "CCTextInputNode::disarmHold @ 0x6b8744", "<???> @ 0x1541db8"], "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"}