//
// ProfilePage::onComment from 0x4c48d8 to 0x4c49a2 (202 bytes)
//
// 0 xrefs:
//
// 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
//
void ProfilePage::onComment(ProfilePage *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v2; // r0
const char *TimeLeft; // r0
cocos2d::CCString *v4; // r0
char *CString; // r0
FLAlertLayer *v6; // r5
unsigned int v7; // r7
char v8; // [sp+14h] [bp-10h] BYREF
_BYTE v9[4]; // [sp+18h] [bp-Ch] BYREF
v2 = GameLevelManager::sharedState();
TimeLeft = (const char *)GameLevelManager::getTimeLeft(v2, "acc_comment", 15.0);
if ( (unsigned int)(TimeLeft - 1) > 0xE )
{
sub_776584((int)&v8, "Post Update");
sub_776584((int)v9, (char *)&unk_939830);
v7 = ShareCommentLayer::create((ShareCommentLayer *)&v8, (std::string)140, 1, 0, (int)v9);
sub_774008(v9);
sub_774008(&v8);
(*(void (__fastcall **)(unsigned int))(*(_DWORD *)v7 + 644))(v7);
}
else
{
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Please wait %i seconds before posting a new update!",
TimeLeft);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_776584((int)v9, CString);
v6 = FLAlertLayer::create(0, (int)"Too fast", (int)v9, (int)"OK", 0, 300.0);
sub_774008(v9);
v6->show(v6);
}
}