//
// GameLevelManager::levelIDFromPostCommentKey from 0x3c1e84 to 0x3c1ee4 (96 bytes)
//
// 1 xrefs:
// > GameLevelManager::onUploadCommentCompleted @ 0x3c21a8
//
// 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 GameLevelManager::levelIDFromPostCommentKey(GameLevelManager *a1, const char *a2)
{
cocos2d::CCArray *v2; // r6
cocos2d::CCString *v3; // r0
const char *CString; // r0
char v6; // [sp+8h] [bp-8h] BYREF
sub_776584((int)&v6, (char *)a2);
v2 = sub_3BE530((cocos2d::CCArray *)&v6, "_");
sub_774008(&v6);
if ( cocos2d::CCArray::count(v2) <= 1u )
return 0;
v3 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v2, 1u);
CString = cocos2d::CCString::getCString(v3);
return atoi(CString);
}