//
// sub_10022F330 from 0x10022f330 to 0x10022f43c (268 bytes)
//
// 1 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x10022d248
//
// 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 11:01:16 +0000
//
__int64 sub_10022F330()
{
__int64 v0; // x0
int v1; // w0
__int64 v2; // x0
char *CString; // x0
__int64 v4; // x19
void **v5; // x8
void *__p[2]; // [xsp+8h] [xbp-58h] BYREF
char v8; // [xsp+1Fh] [xbp-41h]
_QWORD v9[2]; // [xsp+20h] [xbp-40h] BYREF
char v10; // [xsp+37h] [xbp-29h]
_QWORD v11[2]; // [xsp+38h] [xbp-28h] BYREF
char v12; // [xsp+4Fh] [xbp-11h]
v0 = GameLevelManager::sharedState();
v1 = sub_1000ADD00(v0, "acc_comment", 15.0);
if ( (unsigned int)(v1 - 1) > 0xE )
{
sub_100009900(v9, "Post Update");
sub_100009900(__p, "");
v4 = ShareCommentLayer::create(v9, 140, 1, 0, __p);
if ( v8 < 0 )
operator delete(__p[0]);
if ( v10 < 0 )
{
v5 = (void **)v9;
goto LABEL_8;
}
}
else
{
v2 = sub_1003065B0("Please wait %i seconds before posting a new update!", v1);
CString = (char *)cocos2d::CCString::getCString(v2);
sub_100009900(v11, CString);
v4 = FLAlertLayer::create_1(0, "Too fast", v11, "OK", 0, 300.0);
if ( v12 < 0 )
{
v5 = (void **)v11;
LABEL_8:
operator delete(*v5);
}
}
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}