//
// ProfilePage::onUnblockUser from 0xa56678 to 0xa56860 (488 bytes)
//
// 3 xrefs:
// > ??> @ 0x53c68
// > ProfilePage::setupAccountButtons @ 0xa53ed4
// > ??> @ 0x1541d38
//
// 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 13:00:08 +0000
//
__int64 __fastcall ProfilePage::onUnblockUser(ProfilePage *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
__int64 v4; // x1
char *v5; // x1
cocos2d::CCString *v6; // x0
size_t v7; // x0
char *v8; // x21
const char *v9; // x1
size_t v10; // x0
__int64 v11; // x19
char *CString; // [xsp+38h] [xbp+38h]
char *v14; // [xsp+38h] [xbp+38h]
__int64 v15[2]; // [xsp+48h] [xbp+48h] BYREF
void *v16; // [xsp+58h] [xbp+58h]
__int64 v17; // [xsp+60h] [xbp+60h] BYREF
__int64 v18; // [xsp+68h] [xbp+68h]
char *v19; // [xsp+70h] [xbp+70h]
v17 = 0;
v3 = *((_QWORD *)this + 91);
v18 = 0;
v19 = nullptr;
if ( (*(_BYTE *)(v3 + 320) & 1) != 0 )
{
std::string::__init(&v17, *(void **)(v3 + 336), *(_QWORD *)(v3 + 328));
}
else
{
v4 = *(_QWORD *)(v3 + 328);
v17 = *(_QWORD *)(v3 + 320);
v18 = v4;
v19 = *(char **)(v3 + 336);
}
v5 = (char *)&v17 + 1;
if ( (v17 & 1) != 0 )
v5 = v19;
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Are you sure you want to unblock %s?",
v5);
CString = (char *)cocos2d::CCString::getCString(v6);
v15[0] = 0;
v15[1] = 0;
v16 = nullptr;
v7 = strlen(CString);
std::string::__init(v15, CString, v7);
if ( (v17 & 1) != 0 )
operator delete(v19);
v8 = (char *)this + 664;
v9 = (char *)v15 + 1;
if ( (v15[0] & 1) != 0 )
v9 = (const char *)v16;
v14 = (char *)v9;
v17 = 0;
v18 = 0;
v19 = nullptr;
v10 = strlen(v9);
std::string::__init(&v17, v14, v10);
v11 = FLAlertLayer::create(
(__int64)v8,
(cocos2d::CCLabelBMFont *)"Unblock user",
(char *)&v17,
(ButtonSprite *)"Back",
(ButtonSprite *)"Unblock",
300.0);
if ( (v17 & 1) != 0 )
operator delete(v19);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 72LL))(v11, 4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 1312LL))(v11);
if ( (v15[0] & 1) != 0 )
operator delete(v16);
return _stack_chk_guard;
}