//
// ProfilePage::onComment from 0x5f6d10 to 0x5f6dea (218 bytes)
//
// 0 xrefs:
//
// 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:54:31 +0000
//
int __fastcall ProfilePage::onComment(ProfilePage *this, cocos2d::CCObject *a2)
{
GameLevelManager *v2; // r0
const char *TimeLeft; // r0
cocos2d::CCString *v4; // r0
const char *CString; // r6
size_t v6; // r0
int *v7; // r5
int *v8; // r0
int v10[3]; // [sp+Ch] [bp-20h] BYREF
int v11; // [sp+18h] [bp-14h] BYREF
int v12; // [sp+1Ch] [bp-10h]
int v13; // [sp+20h] [bp-Ch]
v2 = (GameLevelManager *)GameLevelManager::sharedState(this);
TimeLeft = (const char *)GameLevelManager::getTimeLeft(v2, "acc_comment", 15.0);
if ( (unsigned int)(TimeLeft - 1) > 0xE )
{
memset(v10, 0, sizeof(v10));
std::string::__init(v10, "Post Update", 0xBu);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, &unk_B6B226, 0);
v7 = (int *)ShareCommentLayer::create((int)v10, 140, 1u, 0, (int)&v11);
std::string::~string((int)&v11);
v8 = v10;
}
else
{
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Please wait %i seconds before posting a new update!",
TimeLeft);
v11 = 0;
v12 = 0;
v13 = 0;
CString = (const char *)cocos2d::CCString::getCString(v4);
v6 = strlen(CString);
std::string::__init(&v11, CString, v6);
v7 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Too fast", (int)&v11, (ButtonSprite *)"OK", nullptr, 300.0);
v8 = &v11;
}
std::string::~string((int)v8);
return (*(int (__fastcall **)(int *))(*v7 + 656))(v7);
}