//
// GJMessagePopup::onBlock from 0x4a86a4 to 0x4a877c (216 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 GJMessagePopup::onBlock(GJMessagePopup *a1, cocos2d::CCObject *a2)
{
cocos2d::CCString *v3; // r0
char *CString; // r0
FLAlertLayer *v5; // r5
char *v6; // [sp+20h] [bp+0h] BYREF
char *v7; // [sp+24h] [bp+4h] BYREF
_BYTE v8[4]; // [sp+28h] [bp+8h] BYREF
sub_775C20(&v6);
v3 = (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",
v6,
v6);
CString = (char *)cocos2d::CCString::getCString(v3);
sub_776584((int)&v7, CString);
sub_776584((int)v8, v7);
v5 = FLAlertLayer::create(
(int)&a1->FLAlertLayerProtocol,
(int)"Confirm Block",
(int)v8,
(int)"Back",
(int)"Block",
380.0,
0,
0,
1.0);
sub_774008(v8);
ButtonSprite::updateBGImage(v5->m_button2, "GJ_button_06.png");
v5->setTag(v5, 1);
v5->show(v5);
sub_774008(&v7);
sub_774008(&v6);
}