//
// FriendsProfilePage::onUnblock from 0x5f5368 to 0x5f5490 (296 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:30 +0000
//
int __fastcall FriendsProfilePage::onUnblock(FriendsProfilePage *this, cocos2d::CCObject *a2)
{
int result; // r0
cocos2d::CCObject *v4; // r5
cocos2d::CCObject *v5; // r0
char *v6; // r1
cocos2d::CCString *v7; // r0
char *CString; // r5
size_t v9; // r0
char *v10; // r6
size_t v11; // r0
char **v12; // r5
int v13[2]; // [sp+Ch] [bp-1Ch] BYREF
char *v14; // [sp+14h] [bp-14h]
int v15[2]; // [sp+18h] [bp-10h] BYREF
char *v16; // [sp+20h] [bp-8h]
result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 320))(a2);
v4 = (cocos2d::CCObject *)result;
if ( result && *(int *)(result + 296) > 0 )
{
v5 = *((cocos2d::CCObject **)this + 157);
if ( v5 )
cocos2d::CCObject::release(v5);
*((_DWORD *)this + 157) = v4;
cocos2d::CCObject::retain(v4);
std::string::basic_string(v15, (int)v4 + 264);
if ( (v15[0] & 1) != 0 )
v6 = v16;
else
v6 = (char *)v15 + 1;
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Are you sure you want to unblock %s?",
v6,
LOBYTE(v15[0]) << 31);
CString = (char *)cocos2d::CCString::getCString(v7);
v13[0] = 0;
v13[1] = 0;
v14 = nullptr;
v9 = strlen(CString);
std::string::__init(v13, CString, v9);
v10 = (char *)this + 600;
std::string::~string((int)v15);
if ( (v13[0] & 1) == 0 )
CString = (char *)v13 + 1;
v15[0] = 0;
if ( (v13[0] & 1) != 0 )
CString = v14;
v15[1] = 0;
v16 = nullptr;
v11 = strlen(CString);
std::string::__init(v15, CString, v11);
v12 = (char **)FLAlertLayer::create(
(int)v10,
(cocos2d::CCLabelBMFont *)"Unblock user",
(int)v15,
(ButtonSprite *)"Back",
(ButtonSprite *)"Unblock",
300.0);
std::string::~string((int)v15);
(*((void (__fastcall **)(char **, int))*v12 + 9))(v12, 2);
ButtonSprite::updateBGImage(v12[121], "GJ_button_05.png");
(*((void (__fastcall **)(char **))*v12 + 164))(v12);
return std::string::~string((int)v13);
}
return result;
}