//
// ProfilePage::onBlockUser from 0x4c6f30 to 0x4c7024 (244 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void ProfilePage::onBlockUser(ProfilePage *a1, cocos2d::CCObject *a2)
{
GJAccountManager *v3; // r0
cocos2d::CCString *v4; // r0
char *CString; // r0
FLAlertLayer *v6; // r5
char *v7; // [sp+20h] [bp-10h] BYREF
char *v8; // [sp+24h] [bp-Ch] BYREF
_BYTE v9[4]; // [sp+28h] [bp-8h] BYREF
v3 = GJAccountManager::sharedState();
if ( v3->m_accountID - v3->m_unkInt1 > 0 )
{
sub_775C20(&v7);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Are you sure you want to block %s?\n"
"%s will no longer be able to:\n"
"- View your profile\n"
"- Send messages\n"
"- Send friend requests\n"
"- Messages from this user will be removed",
v7,
v7);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_776584((int)&v8, CString);
sub_776584((int)v9, v8);
v6 = FLAlertLayer::create(
(int)&a1->FLAlertLayerProtocol,
(int)"Confirm Block",
(int)v9,
(int)"Back",
(int)"Block",
380.0,
0,
0,
1.0);
sub_774008(v9);
ButtonSprite::updateBGImage(v6->m_button2, "GJ_button_06.png");
v6->setTag(v6, 3);
v6->show(v6);
sub_774008(&v8);
sub_774008(&v7);
}
else
{
ProfilePage::showNoAccountError(a1);
}
}