//
// AccountBanPopup::onMessageUnban from 0xc92420 to 0xc925c8 (424 bytes)
//
// 3 xrefs:
// > ??> @ 0x45070
// > AccountBanPopup::init @ 0xc945d0
// > ??> @ 0x1541488
//
// 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:05:48 +0000
//
__int64 __fastcall AccountBanPopup::onMessageUnban(AccountBanPopup *this, cocos2d::CCObject *a2)
{
const char *v2; // x1
char *v3; // x19
cocos2d::CCString *v4; // x0
size_t v5; // x0
__int64 v6; // x0
char *CString; // [xsp+38h] [xbp+38h]
__int64 v9[2]; // [xsp+40h] [xbp+40h] BYREF
void *v10; // [xsp+50h] [xbp+50h]
void *v11; // [xsp+58h] [xbp+58h] BYREF
char *v12; // [xsp+60h] [xbp+60h]
__int64 v13; // [xsp+68h] [xbp+68h]
__int64 v14[2]; // [xsp+70h] [xbp+70h] BYREF
void *v15; // [xsp+80h] [xbp+80h]
v2 = (char *)this + 1057;
if ( (*((_BYTE *)this + 1056) & 1) != 0 )
v2 = *((const char **)this + 134);
v3 = (char *)this + 1040;
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Lift all message bans (permanent and temporary) for %s?",
v2);
v9[0] = 0;
CString = (char *)cocos2d::CCString::getCString(v4);
v9[1] = 0;
v10 = nullptr;
v5 = strlen(CString);
std::string::__init(v9, CString, v5);
v11 = nullptr;
v12 = nullptr;
v13 = 0;
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
std::string::__init(v14, &byte_11B8890, 0);
v6 = AdminActionConfirmPopup::create(
(__int64)v3,
6,
"Confirm Unban",
(char *)v9,
(ButtonSprite *)"Unban",
(__int64)&v11,
(__int64)v14,
1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
if ( (v14[0] & 1) != 0 )
operator delete(v15);
if ( v11 )
{
if ( v11 != v12 )
v12 += 4 * ~((unsigned __int64)(v12 - 4 - (_BYTE *)v11) >> 2);
operator delete(v11);
}
if ( (v9[0] & 1) != 0 )
operator delete(v10);
return _stack_chk_guard;
}