//
// ThreadViewPopup::levelPicked from 0x751c64 to 0x751cd6 (114 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ThreadViewPopup::levelPicked @ 0x751ce4
//
// 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:51 +0000
//
int __fastcall ThreadViewPopup::levelPicked(int this, GJGameLevel *a2)
{
int v2; // r6
const char *v3; // r1
cocos2d::CCString *v4; // r0
const char *CString; // r7
size_t v6; // r0
int v7[3]; // [sp+0h] [bp-14h] BYREF
v2 = this;
if ( a2 )
{
v3 = (const char *)(*((_DWORD *)a2 + 67) - *((_DWORD *)a2 + 68));
if ( (int)v3 > 0 )
{
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"l_%i", v3);
memset(v7, 0, sizeof(v7));
CString = (const char *)cocos2d::CCString::getCString(v4);
v6 = strlen(CString);
std::string::__init(v7, CString, v6);
ThreadViewPopup::insertShareToken(v2, (unsigned __int8 *)v7);
return std::string::~string((int)v7);
}
}
return this;
}