//
// sub_1002722F8 from 0x1002722f8 to 0x1002723c4 (204 bytes)
//
// 1 xrefs:
// > FriendsProfilePage::init @ 0x100271c68
//
// 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:47 +0000
//
void __fastcall sub_1002722F8(__int64 a1)
{
__int64 v2; // x0
unsigned __int64 v3; // x9
void **v4; // x8
__int64 v5; // x10
__int64 v6; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
unsigned __int8 v8; // [xsp+1Fh] [xbp-11h]
v2 = *(_QWORD *)(a1 + 912);
if ( v2 )
CCTextInputNode::getString(v2, __p);
else
sub_100009900(__p, "");
v3 = v8;
v4 = __p;
if ( (v8 & 0x80u) != 0 )
{
v4 = (void **)__p[0];
v3 = (unsigned __int64)__p[1];
}
if ( v3 )
{
v5 = 0;
while ( *((_BYTE *)v4 + v5) == 32 )
{
if ( v3 == ++v5 )
goto LABEL_14;
}
if ( v5 != -1 )
{
v6 = GameLevelManager::sharedState();
if ( (sub_1000C9054(v6, (__int64)__p) & 1) != 0 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1368) = a1 + 808;
sub_10051B070(a1);
sub_10051B0F8(a1);
}
}
}
LABEL_14:
if ( (char)v8 < 0 )
operator delete(__p[0]);
}