//
// PlatformToolbox::copyToClipboard from 0x10016bcf4 to 0x10016bd50 (92 bytes)
//
// 2 xrefs:
// > ProfilePage::onCopyName @ 0x10019acac
// > InfoLayer::onCopyLevelID @ 0x10035294c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall PlatformToolbox::copyToClipboard(__int64 *a1)
{
id v2; // x0
__int64 v3; // x3
__int64 *v4; // t2
v2 = objc_alloc((Class)&OBJC_CLASS___NSString);
v3 = *((char *)a1 + 23);
if ( v3 < 0 )
{
v4 = a1;
a1 = (__int64 *)*a1;
v3 = v4[1];
}
-[UIPasteboard setString:](
+[UIPasteboard generalPasteboard](&OBJC_CLASS___UIPasteboard, "generalPasteboard"),
"setString:",
objc_msgSend(v2, "initWithBytes:length:encoding:", a1, v3, 4));
return 1;
}