//
// ThreadMessageOptionsPopup::onCopy from 0xc6dd90 to 0xc6de48 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0x93910
// > ThreadMessageOptionsPopup::init @ 0xc79348
// > ??> @ 0x1543fa0
//
// This function is hookable on this platform (idp: arm, 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 13:05:28 +0000
//
__int64 __fastcall ThreadMessageOptionsPopup::onCopy(ThreadMessageOptionsPopup *this, cocos2d::CCObject *a2)
{
__int64 v2; // x0
__int64 v3; // x2
__int64 v4; // x0
__int64 v5; // x1
__int64 v7; // [xsp+20h] [xbp+20h] BYREF
__int64 v8; // [xsp+28h] [xbp+28h]
void *v9; // [xsp+30h] [xbp+30h]
v2 = *((_QWORD *)this + 128);
v7 = 0;
v3 = v2 + 72;
LOBYTE(v2) = *(_BYTE *)(v2 + 72);
v8 = 0;
v9 = nullptr;
if ( (v2 & 1) != 0 )
{
std::string::__init(&v7, *(void **)(v3 + 16), *(_QWORD *)(v3 + 8));
}
else
{
v4 = *(_QWORD *)v3;
v5 = *(_QWORD *)(v3 + 8);
v9 = *(void **)(v3 + 16);
v7 = v4;
v8 = v5;
}
PlatformToolbox::copyToClipboard((__int64)&v7);
if ( (v7 & 1) != 0 )
operator delete(v9);
return _stack_chk_guard;
}