//
// ProfilePage::onComment from 0xa5517c to 0xa5534c (464 bytes)
//
// 3 xrefs:
// > ??> @ 0xc74c8
// > ProfilePage::loadPageFromUserInfo @ 0xa5b07c
// > ??> @ 0x1545d30
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:00:07 +0000
//
__int64 __fastcall ProfilePage::onComment(ProfilePage *this, cocos2d::CCObject *a2)
{
GameLevelManager *v2; // x0
unsigned int TimeLeft; // w0
cocos2d::CCString *v4; // x0
size_t v5; // x0
__int64 v6; // x20
char *CString; // [xsp+38h] [xbp+38h]
__int64 v9[2]; // [xsp+48h] [xbp+48h] BYREF
void *v10; // [xsp+58h] [xbp+58h]
__int64 v11; // [xsp+60h] [xbp+60h] BYREF
__int64 v12; // [xsp+68h] [xbp+68h]
void *v13; // [xsp+70h] [xbp+70h]
v2 = (GameLevelManager *)GameLevelManager::sharedState(_stack_chk_guard);
TimeLeft = GameLevelManager::getTimeLeft(v2, "acc_comment", 15.0);
if ( TimeLeft - 1 > 0xE )
{
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
std::string::__init(v9, "Post Update", 0xBu);
v11 = 0;
v12 = 0;
v13 = nullptr;
std::string::__init(&v11, &byte_11B8890, 0);
v6 = ShareCommentLayer::create((char *)v9, 140, 1u, 0, (char *)&v11);
if ( (v11 & 1) != 0 )
{
operator delete(v13);
if ( (v9[0] & 1) == 0 )
goto LABEL_4;
}
else if ( (v9[0] & 1) == 0 )
{
goto LABEL_4;
}
operator delete(v10);
goto LABEL_4;
}
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Please wait %i seconds before posting a new update!",
(const char *)TimeLeft);
v11 = 0;
CString = (char *)cocos2d::CCString::getCString(v4);
v12 = 0;
v13 = nullptr;
v5 = strlen(CString);
std::string::__init(&v11, CString, v5);
v6 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Too fast", (char *)&v11, (ButtonSprite *)"OK", nullptr, 300.0);
if ( (v11 & 1) != 0 )
operator delete(v13);
LABEL_4:
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
return _stack_chk_guard;
}