//
// ProfilePage::onComment from 0x10019b564 to 0x10019b670 (268 bytes)
//
// 1 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x100199758
//
// 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 __fastcall ProfilePage::onComment(ProfilePage *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v2; // x0
int TimeLeft; // w0
cocos2d::CCString *v4; // x0
char *CString; // x0
__int64 v6; // x19
void **v7; // x8
void *__p[2]; // [xsp+8h] [xbp-58h] BYREF
char v9; // [xsp+1Fh] [xbp-41h]
_QWORD v10[2]; // [xsp+20h] [xbp-40h] BYREF
char v11; // [xsp+37h] [xbp-29h]
_QWORD v12[2]; // [xsp+38h] [xbp-28h] BYREF
char v13; // [xsp+4Fh] [xbp-11h]
v2 = GameLevelManager::sharedState();
TimeLeft = GameLevelManager::getTimeLeft(v2, "acc_comment", 15.0);
if ( (unsigned int)(TimeLeft - 1) > 0xE )
{
sub_100009900(v10, "Post Update");
sub_100009900(__p, "");
v6 = ShareCommentLayer::create(v10, 140, 1, 0, __p);
if ( v9 < 0 )
operator delete(__p[0]);
if ( v11 < 0 )
{
v7 = (void **)v10;
goto LABEL_8;
}
}
else
{
v4 = (cocos2d::CCString *)sub_100268F4C("Please wait %i seconds before posting a new update!", TimeLeft);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_100009900(v12, CString);
v6 = FLAlertLayer::create_1(0, "Too fast", v12, "OK", 0, 300.0);
if ( v13 < 0 )
{
v7 = (void **)v12;
LABEL_8:
operator delete(*v7);
}
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1288LL))(v6);
}