{"type": "func", "start": 7098072, "end": 7098212, "name": "CCTextInputNode::pasteText", "pseudocode": "// \n// CCTextInputNode::pasteText from 0x6c4ed8 to 0x6c4f64 (140 bytes)\n// \n// 2 xrefs:\n// > CCTextInputMenu::onPaste @ 0x6b6cbc\n// > <???> @ 0xc85c0\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:20 +0000\n// \n\n__int64 __fastcall CCTextInputNode::pasteText(CCTextInputNode *this)\n{\n  _BYTE v3[16]; // [xsp+30h] [xbp+30h] BYREF\n  void *v4; // [xsp+40h] [xbp+40h]\n\n  PlatformToolbox::getClipboardString((__int64)v3);\n  CCTextInputNode::insertAtCursor((__int64)this, (__int64)v3);\n  if ( (v3[0] & 1) != 0 )\n    operator delete(v4);\n  return _stack_chk_guard;\n}", "assembly": "; \n; CCTextInputNode::pasteText from 0x6c4ed8 to 0x6c4f64 (140 bytes)\n; \n; 2 xrefs:\n; > CCTextInputMenu::onPaste @ 0x6b6cbc\n; > <???> @ 0xc85c0\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:20 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x6c4ed8\nMOV             X29, SP                                                ; +0x4, 0x6c4edc\nSTR             X19, [SP,#0x50+var_40]                                 ; +0x8, 0x6c4ee0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6c4ee4\nADD             X1, X29, #0x50+var_20                                  ; +0x10, 0x6c4ee8\nMOV             X8, X1                                                 ; +0x14, 0x6c4eec\nSTR             X0, [X29,#0x50+var_30]                                 ; +0x18, 0x6c4ef0\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6c4ef4\nSTR             X1, [X29,#0x50+var_28]                                 ; +0x20, 0x6c4ef8\nLDR             X2, [X2]                                               ; +0x24, 0x6c4efc\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x28, 0x6c4f00\nBL              _ZN15PlatformToolbox18getClipboardStringEv; PlatformToolbox::getClipboardString(void) ; +0x2c, 0x6c4f04\nLDR             X0, [X29,#0x50+var_30]                                 ; +0x30, 0x6c4f08\nLDR             X1, [X29,#0x50+var_28]                                 ; +0x34, 0x6c4f0c\nBL              _ZN15CCTextInputNode14insertAtCursorENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::insertAtCursor(std::string) ; +0x38, 0x6c4f10\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0x3c, 0x6c4f14\nTBZ             W0, #0, loc_6C4F24                                     ; +0x40, 0x6c4f18\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0x44, 0x6c4f1c\nBL              _ZdlPv; operator delete(void *)                        ; +0x48, 0x6c4f20\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x4c, 0x6c4f24\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x50, 0x6c4f28\nLDR             X0, [X19]                                              ; +0x54, 0x6c4f2c\nCMP             X1, X0                                                 ; +0x58, 0x6c4f30\nB.NE            loc_6C4F44                                             ; +0x5c, 0x6c4f34\nLDR             X19, [SP,#0x50+var_40]                                 ; +0x60, 0x6c4f38\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x64, 0x6c4f3c\nRET                                                                    ; +0x68, 0x6c4f40\nBL              .__stack_chk_fail                                      ; +0x6c, 0x6c4f44\nLDRB            W1, [X29,#0x50+var_20]                                 ; +0x70, 0x6c4f48\nMOV             X19, X0                                                ; +0x74, 0x6c4f4c\nTBZ             W1, #0, loc_6C4F5C                                     ; +0x78, 0x6c4f50\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0x7c, 0x6c4f54\nBL              _ZdlPv; operator delete(void *)                        ; +0x80, 0x6c4f58\nMOV             X0, X19                                                ; +0x84, 0x6c4f5c\nBL              _Unwind_Resume                                         ; +0x88, 0x6c4f60", "xrefs": ["CCTextInputMenu::onPaste @ 0x6b6cbc", "<???> @ 0xc85c0"], "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"}