{"type": "func", "start": 4050800, "end": 4050870, "name": "CCTextInputNode::copyText", "pseudocode": "// \n// CCTextInputNode::copyText from 0x3dcf70 to 0x3dcfb6 (70 bytes)\n// \n// 1 xrefs:\n// > CCTextInputMenu::onCopy @ 0x3dbadc\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:46:48 +0000\n// \n\nint __fastcall CCTextInputNode::copyText(CCTextInputNode *this, int a2, int a3, int a4)\n{\n  int result; // r0\n  _DWORD v6[4]; // [sp+0h] [bp-10h] BYREF\n\n  v6[0] = this;\n  v6[1] = a2;\n  v6[2] = a3;\n  v6[3] = a4;\n  result = CCTextInputNode::canCopyText(this, a2, a3, _stack_chk_guard);\n  if ( result )\n  {\n    CCTextInputNode::getString((CCTextInputNode *)v6, (int)this);\n    PlatformToolbox::copyToClipboard((int)v6);\n    return std::string::~string((int)v6);\n  }\n  return result;\n}", "assembly": "; \n; CCTextInputNode::copyText from 0x3dcf70 to 0x3dcfb6 (70 bytes)\n; \n; 1 xrefs:\n; > CCTextInputMenu::onCopy @ 0x3dbadc\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:46:48 +0000\n; \nPUSH            {R0-R6,LR}                                             ; +0x0, 0x3dcf70\nMOV             R6, R0                                                 ; +0x2, 0x3dcf72\nLDR             R4, =(__stack_chk_guard_ptr - 0x3DCF7A)                ; +0x4, 0x3dcf74\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3dcf76\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x8, 0x3dcf78\nLDR             R3, [R4]                                               ; +0xa, 0x3dcf7a\nSTR             R3, [SP,#0x10+var_4]                                   ; +0xc, 0x3dcf7c\nBL              _ZN15CCTextInputNode11canCopyTextEv; CCTextInputNode::canCopyText(void) ; +0xe, 0x3dcf7e\nCBZ             R0, loc_3DCFA6                                         ; +0x12, 0x3dcf82\nMOV             R0, SP; this                                           ; +0x14, 0x3dcf84\nMOV             R1, R6                                                 ; +0x16, 0x3dcf86\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x18, 0x3dcf88\nMOV             R0, SP                                                 ; +0x1c, 0x3dcf8c\nMOV             R5, SP                                                 ; +0x1e, 0x3dcf8e\nBL              _ZN15PlatformToolbox15copyToClipboardENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; PlatformToolbox::copyToClipboard(std::string) ; +0x20, 0x3dcf90\nMOV             R0, SP                                                 ; +0x24, 0x3dcf94\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x26, 0x3dcf96\nB               loc_3DCFA6                                             ; +0x2a, 0x3dcf9a\nMOV             R0, R5                                                 ; +0x2c, 0x3dcf9c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x2e, 0x3dcf9e\nBL              __cxa_end_cleanup                                      ; +0x32, 0x3dcfa2\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x36, 0x3dcfa6\nLDR             R3, [R4]                                               ; +0x38, 0x3dcfa8\nCMP             R2, R3                                                 ; +0x3a, 0x3dcfaa\nBEQ             loc_3DCFB2                                             ; +0x3c, 0x3dcfac\nBLX             __stack_chk_fail                                       ; +0x3e, 0x3dcfae\nADD             SP, SP, #0x10                                          ; +0x42, 0x3dcfb2\nPOP             {R4-R6,PC}                                             ; +0x44, 0x3dcfb4", "xrefs": ["CCTextInputMenu::onCopy @ 0x3dbadc"], "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"}