//
// GameLevelManager::getTimeLeft from 0x3bfde0 to 0x3bfe7e (158 bytes)
//
// 10 xrefs:
// > InfoLayer::onComment @ 0x42f466
// > InfoLayer::onRefreshComments @ 0x42ff04
// > AccountLayer::onSync @ 0x46631a
// > AccountLayer::onBackup @ 0x466448
// > MessagesProfilePage::onUpdate @ 0x4c0ce4
// > FRequestProfilePage::onUpdate @ 0x4c21f8
// > FriendsProfilePage::onUpdate @ 0x4c34f0
// > ProfilePage::onComment @ 0x4c48f4
// > ProfilePage::onUpdate @ 0x4c722a
// > LevelLeaderboard::onUpdate @ 0x4e5162
//
// 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::getTimeLeft(GameLevelManager *a1, const char *a2, float a3)
{
double v3; // d0
cocos2d::CCDictionary *m_timerDict; // r6
cocos2d::CCString *v6; // r6
double v7; // d8
float v8; // r2
int v9; // r3
double v10; // d7
double v11; // d0
double v12; // d0
std::string v15; // [sp+10h] [bp-8h] BYREF
m_timerDict = a1->m_timerDict;
sub_776584((int)&v15, (char *)a2);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(m_timerDict, &v15);
sub_774008(&v15);
if ( !v6 )
return 0;
v7 = cocos2d::CCString::doubleValue(v6);
sub_3BE5E8(SLODWORD(v7), *((float *)&v7 + 1), v8, v9);
v10 = a3;
v11 = v3 - v7;
if ( v11 > a3 )
v12 = 0.0;
else
v12 = v10 - v11;
if ( v12 > v10 )
return (int)0.0;
return (int)v12;
}