//
// LevelListLayer::confirmOwnerDelete from 0xbaade8 to 0xbab008 (544 bytes)
//
// 3 xrefs:
// > ??> @ 0xd87a8
// > LevelListLayer::init @ 0xbaf75c
// > ??> @ 0x1546778
//
// 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:02:52 +0000
//
__int64 __fastcall LevelListLayer::confirmOwnerDelete(LevelListLayer *this, cocos2d::CCObject *a2)
{
GJAccountManager *v4; // x0
int v5; // w21
__int64 v6; // x0
__int64 v7; // x0
char *v8; // x20
size_t v9; // x1
__int64 v10; // x0
char *v11; // x20
__int64 v12; // x20
__int64 v13; // [xsp+38h] [xbp+38h] BYREF
size_t v14; // [xsp+40h] [xbp+40h]
void *v15; // [xsp+48h] [xbp+48h]
__int64 v16; // [xsp+50h] [xbp+50h] BYREF
size_t v17; // [xsp+58h] [xbp+58h]
void *v18; // [xsp+60h] [xbp+60h]
if ( !*((_BYTE *)this + 952) )
{
v4 = *((GJAccountManager **)this + 114);
v5 = *((_DWORD *)v4 + 91);
v6 = GJAccountManager::sharedState(v4);
if ( v5 == *(_DWORD *)(v6 + 352) - *(_DWORD *)(v6 + 356) )
{
v13 = 0;
v14 = 0;
v11 = (char *)this + 552;
v15 = nullptr;
std::string::__init(
&v13,
"Do you want to delete this list from the server? (Your list will no longer be available online)",
0x7Fu);
v16 = 0;
v17 = 0;
v18 = nullptr;
if ( (v13 & 1) != 0 )
{
std::string::__init(&v16, v15, v14);
}
else
{
v18 = v15;
v16 = v13;
v17 = v14;
}
v12 = FLAlertLayer::create(
(__int64)v11,
(cocos2d::CCLabelBMFont *)"Remove Server List",
(char *)&v16,
(ButtonSprite *)"NO",
(ButtonSprite *)"YES",
300.0);
if ( (v16 & 1) != 0 )
operator delete(v18);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 72LL))(v12, 1004);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 1312LL))(v12);
if ( (v13 & 1) != 0 )
operator delete(v15);
}
else
{
v7 = *((_QWORD *)this + 114);
v16 = 0;
v8 = (char *)this + 872;
v17 = 0;
v18 = nullptr;
if ( (*(_BYTE *)(v7 + 432) & 1) != 0 )
{
std::string::__init(&v16, *(void **)(v7 + 448), *(_QWORD *)(v7 + 440));
}
else
{
v9 = *(_QWORD *)(v7 + 440);
v16 = *(_QWORD *)(v7 + 432);
v17 = v9;
v18 = *(void **)(v7 + 448);
}
v10 = AdminActionConfirmPopup::createContentDelete(v8, 1004, "Remove Server List", &v16, 2);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 1312LL))(v10);
if ( (v16 & 1) != 0 )
operator delete(v18);
}
}
return _stack_chk_guard;
}