//
// GJMessagePopup::onBlock from 0x5da518 to 0x5da62a (274 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:11 +0000
//
int __fastcall GJMessagePopup::onBlock(GJMessagePopup *this, cocos2d::CCObject *a2)
{
const char *v3; // r1
cocos2d::CCString *v4; // r0
char *CString; // r4
size_t v6; // r0
char *v7; // r8
size_t v8; // r0
char **v9; // r4
int v11[3]; // [sp+18h] [bp+0h] BYREF
int v12[2]; // [sp+24h] [bp+Ch] BYREF
char *v13; // [sp+2Ch] [bp+14h]
int v14[3]; // [sp+30h] [bp+18h] BYREF
std::string::basic_string(v11, *((_DWORD *)this + 136) + 300);
if ( (v11[0] & 1) != 0 )
v3 = (const char *)v11[2];
else
v3 = (char *)v11 + 1;
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",
v3,
v3);
CString = (char *)cocos2d::CCString::getCString(v4);
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
v6 = strlen(CString);
std::string::__init(v12, CString, v6);
v14[0] = 0;
v7 = (char *)this + 528;
v14[1] = 0;
if ( (v12[0] & 1) == 0 )
CString = (char *)v12 + 1;
v14[2] = 0;
if ( (v12[0] & 1) != 0 )
CString = v13;
v8 = strlen(CString);
std::string::__init(v14, CString, v8);
v9 = (char **)FLAlertLayer::create(
(int)v7,
(cocos2d::CCLabelBMFont *)"Confirm Block",
(int)v14,
(ButtonSprite *)"Back",
(ButtonSprite *)"Block",
380.0,
0,
0,
1.0);
std::string::~string((int)v14);
ButtonSprite::updateBGImage(v9[121], "GJ_button_06.png");
(*((void (__fastcall **)(char **, int))*v9 + 9))(v9, 1);
(*((void (__fastcall **)(char **))*v9 + 164))(v9);
std::string::~string((int)v12);
return std::string::~string((int)v11);
}