//
// sub_10022F9F0 from 0x10022f9f0 to 0x10022fac8 (216 bytes)
//
// 1 xrefs:
// > ProfilePage::onFriend @ 0x10022dbe4
//
// 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 __fastcall sub_10022F9F0(__int64 a1, const char *a2)
{
__int64 v3; // x0
char *CString; // x0
char *v5; // x1
__int64 v6; // x19
void *__p[2]; // [xsp+10h] [xbp-40h] BYREF
char v9; // [xsp+27h] [xbp-29h]
void *v10[2]; // [xsp+28h] [xbp-28h] BYREF
char v11; // [xsp+3Fh] [xbp-11h]
if ( a2[23] < 0 )
a2 = *(const char **)a2;
v3 = sub_1003065B0(
"Are you sure you want to remove %s from your friends list?\n"
"Your direct messages with them will close.",
a2);
CString = (char *)cocos2d::CCString::getCString(v3);
sub_100009900(v10, CString);
if ( v11 >= 0 )
v5 = (char *)v10;
else
v5 = (char *)v10[0];
sub_100009900(__p, v5);
v6 = FLAlertLayer::create(a1, "Unfriend", __p, "Back", "Unfriend", 0, 380.0, 0.0, 1.0);
if ( v9 < 0 )
operator delete(__p[0]);
ButtonSprite::updateBGImage(*(_QWORD *)(v6 + 616), (__int64)"GJ_button_06.png");
if ( v11 < 0 )
operator delete(v10[0]);
return v6;
}