//
// NewThreadPopup::shareIDPicked from 0x752074 to 0x7520e2 (110 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'NewThreadPopup::shareIDPicked @ 0x7520f4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:52 +0000
//
int __fastcall NewThreadPopup::shareIDPicked(NewThreadPopup *this, const char *a2, int a3)
{
int result; // r0
char *v5; // r0
cocos2d::CCString *v6; // r0
const char *CString; // r7
size_t v8; // r0
int v9[3]; // [sp+0h] [bp-14h] BYREF
result = _stack_chk_guard;
if ( (int)a2 > 0 )
{
if ( a3 )
v5 = "li_%i";
else
v5 = "l_%i";
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v5, a2);
memset(v9, 0, sizeof(v9));
CString = (const char *)cocos2d::CCString::getCString(v6);
v8 = strlen(CString);
std::string::__init(v9, CString, v8);
NewThreadPopup::insertShareToken((int)this, (unsigned __int8 *)v9);
return std::string::~string((int)v9);
}
return result;
}