//
// GameLevelManager::typeFromLikeKey from 0x4c3390 to 0x4c3402 (114 bytes)
//
// 1 xrefs:
// > GameLevelManager::onLikeItemCompleted @ 0x4c352c
//
// 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:50:25 +0000
//
int __fastcall GameLevelManager::typeFromLikeKey(GameLevelManager *this, const char *a2, int a3, int a4)
{
size_t v5; // r0
cocos2d::CCArray *v6; // r6
cocos2d::CCString *v7; // r0
const char *CString; // r0
int v10[4]; // [sp+0h] [bp-10h] BYREF
v10[3] = a4;
memset(v10, 0, 12);
v5 = strlen(a2);
std::string::__init(v10, a2, v5);
v6 = sub_4C1A88(v10, "_");
std::string::~string((int)v10);
if ( cocos2d::CCArray::count(v6) <= 4u )
return 0;
v7 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, 1u);
CString = (const char *)cocos2d::CCString::getCString(v7);
return atoi(CString);
}