//
// CCTextInputMenu::onPaste from 0x14004dcf0 to 0x14004dd4f (95 bytes)
//
// 2 xrefs:
// > CCTextInputMenu::init @ 0x14004d3e6
// > ??> @ 0x1409101c0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:25:33 +0000
//
void __fastcall CCTextInputMenu::onPaste(__int64 a1)
{
__int64 v1; // rdi
__int64 ClipboardString; // rax
__int64 v3; // rdx
cocos2d::CCObject *v4; // rbx
_BYTE v5[40]; // [rsp+20h] [rbp-28h] BYREF
v1 = *(_QWORD *)(a1 + 408);
ClipboardString = PlatformToolbox::getClipboardString(v5);
CCTextInputNode::insertAtCursor(v1, ClipboardString);
v4 = *(cocos2d::CCObject **)(v1 + 696);
if ( v4 )
{
*(_QWORD *)(v1 + 696) = 0;
LOBYTE(v3) = 1;
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v4 + 520LL))(v4, v3);
cocos2d::CCObject::release(v4);
}
}