{"type": "func", "start": 5369027824, "end": 5369027919, "name": "CCTextInputMenu::onPaste", "pseudocode": "// \n// CCTextInputMenu::onPaste from 0x14004dcf0 to 0x14004dd4f (95 bytes)\n// \n// 2 xrefs:\n// > CCTextInputMenu::init @ 0x14004d3e6\n// > <???> @ 0x1409101c0\n// \n// This function is hookable on this platform (idp: pc, 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 11:25:33 +0000\n// \n\nvoid __fastcall CCTextInputMenu::onPaste(__int64 a1)\n{\n  __int64 v1; // rdi\n  __int64 ClipboardString; // rax\n  __int64 v3; // rdx\n  cocos2d::CCObject *v4; // rbx\n  _BYTE v5[40]; // [rsp+20h] [rbp-28h] BYREF\n\n  v1 = *(_QWORD *)(a1 + 408);\n  ClipboardString = PlatformToolbox::getClipboardString(v5);\n  CCTextInputNode::insertAtCursor(v1, ClipboardString);\n  v4 = *(cocos2d::CCObject **)(v1 + 696);\n  if ( v4 )\n  {\n    *(_QWORD *)(v1 + 696) = 0;\n    LOBYTE(v3) = 1;\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v4 + 520LL))(v4, v3);\n    cocos2d::CCObject::release(v4);\n  }\n}", "assembly": "; \n; CCTextInputMenu::onPaste from 0x14004dcf0 to 0x14004dd4f (95 bytes)\n; \n; 2 xrefs:\n; > CCTextInputMenu::init @ 0x14004d3e6\n; > <???> @ 0x1409101c0\n; \n; This function is hookable on this platform (idp: pc, 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 11:25:33 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14004dcf0\npush    rdi                                                            ; +0x5, 0x14004dcf5\nsub     rsp, 40h                                                       ; +0x6, 0x14004dcf6\nmov     rdi, [rcx+198h]                                                ; +0xa, 0x14004dcfa\nlea     rcx, [rsp+48h+var_28]                                          ; +0x11, 0x14004dd01\ncall    PlatformToolbox__getClipboardString                            ; +0x16, 0x14004dd06\nmov     rdx, rax                                                       ; +0x1b, 0x14004dd0b\nmov     rcx, rdi                                                       ; +0x1e, 0x14004dd0e\ncall    CCTextInputNode__insertAtCursor                                ; +0x21, 0x14004dd11\nmov     rbx, [rdi+2B8h]                                                ; +0x26, 0x14004dd16\ntest    rbx, rbx                                                       ; +0x2d, 0x14004dd1d\njz      short loc_14004DD44                                            ; +0x30, 0x14004dd20\nmov     qword ptr [rdi+2B8h], 0                                        ; +0x32, 0x14004dd22\nmov     dl, 1                                                          ; +0x3d, 0x14004dd2d\nmov     rax, [rbx]                                                     ; +0x3f, 0x14004dd2f\nmov     rcx, rbx                                                       ; +0x42, 0x14004dd32\ncall    qword ptr [rax+208h]                                           ; +0x45, 0x14004dd35\nmov     rcx, rbx                                                       ; +0x4b, 0x14004dd3b\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x4e, 0x14004dd3e\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x54, 0x14004dd44\nadd     rsp, 40h                                                       ; +0x59, 0x14004dd49\npop     rdi                                                            ; +0x5d, 0x14004dd4d\nretn                                                                   ; +0x5e, 0x14004dd4e", "xrefs": ["CCTextInputMenu::init @ 0x14004d3e6", "<???> @ 0x1409101c0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}