//
// LevelListLayer::confirmOwnerDelete from 0x140430470 to 0x140430734 (708 bytes)
//
// 2 xrefs:
// > LevelListLayer::init @ 0x14042c630
// > ??> @ 0x140926c54
//
// This function is hookable on this platform (idp: pc, 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 11:32:15 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall LevelListLayer::confirmOwnerDelete(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rcx
int v4; // ebx
char *v5; // rax
char *v6; // rdi
int v7; // ebx
_OWORD *v8; // rax
__int64 v9; // rax
cocos2d::CCObject *v10; // rbx
__int128 v11; // [rsp+58h] [rbp-80h] BYREF
__int64 v12; // [rsp+68h] [rbp-70h]
__int64 v13; // [rsp+70h] [rbp-68h]
_BYTE v14[32]; // [rsp+80h] [rbp-58h] BYREF
__int128 v15; // [rsp+A0h] [rbp-38h] BYREF
__int64 v16; // [rsp+B0h] [rbp-28h]
__int64 v17; // [rsp+B8h] [rbp-20h]
if ( !*(_BYTE *)(a1 + 968) )
{
v2 = GJAccountManager::sharedState();
v3 = *(_QWORD *)(a1 + 920);
if ( *(_DWORD *)(v3 + 364) == *(_DWORD *)(v2 + 360) - *(_DWORD *)(v2 + 364) )
{
v15 = 0;
v6 = (char *)sub_14003D460(0x80u);
*(_QWORD *)&v15 = v6;
v16 = 127;
v17 = 127;
strcpy(
v6,
"Do you want to delete this list from the server? (Your list will no longer be available online)");
v7 = a1 + 552;
if ( !a1 )
v7 = 0;
v11 = 0;
v8 = sub_14003D460(0x80u);
*(_QWORD *)&v11 = v8;
v12 = 127;
v13 = 127;
*v8 = *(_OWORD *)v6;
v8[1] = *((_OWORD *)v6 + 1);
v8[2] = *((_OWORD *)v6 + 2);
v8[3] = *((_OWORD *)v6 + 3);
v8[4] = *((_OWORD *)v6 + 4);
v8[5] = *((_OWORD *)v6 + 5);
v8[6] = *((_OWORD *)v6 + 6);
v8[7] = *((_OWORD *)v6 + 7);
v9 = sub_14003F4F0((__int64)v14, (__int64)&v11);
v10 = FLAlertLayer::create(
v7,
(int)"Remove Server List",
v9,
(__int64)&unk_14073A058,
(__int64)"YES",
1133903872,
0,
0,
1065353216);
sub_14003D310((__int64)&v11);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v10 + 64LL))(v10, 1004);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v10 + 1064LL))(v10);
j_j_free(v6);
}
else
{
v4 = a1 + 872;
if ( !a1 )
v4 = 0;
sub_14003F4F0((__int64)&v15, v3 + 440);
v5 = AdminActionConfirmPopup::createContentDelete(v4, 1004, (int)"Remove Server List", (size_t *)&v15, 2u);
(*(void (__fastcall **)(char *))(*(_QWORD *)v5 + 1064LL))(v5);
sub_14003D310((__int64)&v15);
}
}
}