//
// LevelListLayer::confirmOwnerDelete from 0x1003491d0 to 0x100349372 (418 bytes)
//
// 1 xrefs:
// > LevelListLayer::init @ 0x1003488bb
//
// 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 12:28:46 +0000
//
void __fastcall LevelListLayer::confirmOwnerDelete(__int64 a1, __int64 a2)
{
int v2; // ebx
__int64 v3; // rax
char *v4; // rbx
__int64 v5; // r14
void *v6; // rdi
__int64 v7; // rax
__int128 *v8; // rax
__int64 v9; // rax
void *v10[3]; // [rsp+8h] [rbp-48h] BYREF
__int128 v11; // [rsp+20h] [rbp-30h] BYREF
void *v12; // [rsp+30h] [rbp-20h]
if ( !*(_BYTE *)(a1 + 952) )
{
v2 = *(_DWORD *)(*(_QWORD *)(a1 + 912) + 364LL);
v3 = GJAccountManager::sharedState(a1, a2);
if ( v2 == *(_DWORD *)(v3 + 352) - *(_DWORD *)(v3 + 356) )
{
v4 = (char *)operator new(0x80u);
strcpy(
v4,
"Do you want to delete this list from the server? (Your list will no longer be available online)");
sub_10001AD30(v10, v4, 0x7Fu);
v5 = FLAlertLayer::create_1(a1 + 552, "Remove Server List", v10, "NO", "YES", 300.0);
if ( ((__int64)v10[0] & 1) != 0 )
operator delete(v10[2]);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 72LL))(v5, 1004);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
v6 = v4;
goto LABEL_11;
}
v7 = *(_QWORD *)(a1 + 912);
if ( (*(_BYTE *)(v7 + 432) & 1) != 0 )
{
sub_10001AD30(&v11, *(const void **)(v7 + 448), *(_QWORD *)(v7 + 440));
}
else
{
v8 = (__int128 *)(v7 + 432);
v12 = *((void **)v8 + 2);
v11 = *v8;
}
v9 = sub_1009A5740((int)a1 + 872, 1004, (int)"Remove Server List");
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);
if ( (v11 & 1) != 0 )
{
v6 = v12;
LABEL_11:
operator delete(v6);
}
}
}