//
// LevelPickerPopup::onUseID from 0x74cf9c to 0x74d094 (248 bytes)
//
// 0 xrefs:
//
// 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:48 +0000
//
int __fastcall LevelPickerPopup::onUseID(LevelPickerPopup *this, cocos2d::CCObject *a2)
{
char *v3; // r1
int v4; // r3
unsigned __int8 *v5; // r3
char *v6; // r0
char *v7; // r2
int v8; // r7
unsigned int v9; // r2
char *v10; // r1
int v11; // r3
char *v12; // r3
int v13; // t1
int v14; // r1
char *v15; // r0
__int64 v16; // r0
int v17; // r2
int v18; // r0
int v20; // [sp+0h] [bp-14h] BYREF
int v21; // [sp+4h] [bp-10h]
char *v22; // [sp+8h] [bp-Ch]
std::string::basic_string(&v20, (int)this + 648);
if ( (v20 & 1) != 0 )
{
v3 = v22;
v4 = v21;
}
else
{
v4 = (int)(unsigned __int8)v20 >> 1;
v3 = (char *)&v20 + 1;
}
if ( v4 )
{
v5 = (unsigned __int8 *)&v3[v4];
v6 = v3;
while ( 1 )
{
v7 = v6;
if ( v6 == (char *)v5 )
break;
v8 = (unsigned __int8)*v6++;
if ( v8 != 32 )
{
v9 = v7 - v3;
goto LABEL_9;
}
}
}
v9 = -1;
LABEL_9:
std::string::erase((unsigned __int8 *)&v20, 0, v9);
if ( (v20 & 1) != 0 )
{
v10 = v22;
v11 = v21;
}
else
{
v11 = (int)(unsigned __int8)v20 >> 1;
v10 = (char *)&v20 + 1;
}
v12 = &v10[v11];
while ( v12 != v10 )
{
v13 = (unsigned __int8)*--v12;
if ( v13 != 32 )
{
v14 = v12 - v10;
goto LABEL_16;
}
}
v14 = -1;
LABEL_16:
std::string::erase((unsigned __int8 *)&v20, v14 + 1, 0xFFFFFFFF);
if ( (v20 & 1) != 0 )
v15 = v22;
else
v15 = (char *)&v20 + 1;
v16 = atoll(v15);
v17 = v16;
if ( (unsigned __int64)(v16 - 1) <= 0x7FFFFFFE )
{
v18 = *((_DWORD *)this + 151);
if ( v18 )
{
(*(void (__fastcall **)(int, int, _DWORD))(*(_DWORD *)v18 + 8))(v18, v17, *((unsigned __int8 *)this + 613));
(*(void (__fastcall **)(LevelPickerPopup *, _DWORD))(*(_DWORD *)this + 680))(this, 0);
}
}
return std::string::~string((int)&v20);
}