//
// GameLevelManager::levelIDFromPostCommentKey from 0x1000a6f30 to 0x1000a6fa8 (120 bytes)
//
// 1 xrefs:
// > GameLevelManager::onUploadCommentCompleted @ 0x10008c1ac
//
// 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
//
int __fastcall GameLevelManager::levelIDFromPostCommentKey(GameLevelManager *a1, const char *a2)
{
__int64 v2; // x19
cocos2d::CCString *v3; // x0
const char *CString; // x0
std::string __p; // [xsp+8h] [xbp-28h] BYREF
sub_100009900(&__p, (char *)a2);
v2 = sub_100093338(&__p, "_");
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( (unsigned int)sub_10024A36C(v2) < 2 )
return 0;
v3 = (cocos2d::CCString *)sub_10024A388(v2, 1);
CString = cocos2d::CCString::getCString(v3);
return atoi(CString);
}