//
// AdminActionConfirmPopup::createContentDelete from 0x731d54 to 0x731e86 (306 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::confirmOwnerDelete @ 0x49b006
// > LevelListLayer::confirmOwnerDelete @ 0x6d5f82
// > EditorSoundConfigInfoLayer::onDeleteServer @ 0x785ab4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:20 +0000
//
int __fastcall AdminActionConfirmPopup::createContentDelete(
int a1,
int a2,
const char *a3,
unsigned __int8 *a4,
int a5)
{
int v7; // r6
size_t v10; // r6
char *v11; // r3
const void *v12; // r1
_DWORD *v13; // r0
int v14; // r1
int v15; // r2
int v16; // r5
char *v18; // [sp+14h] [bp-30h]
_DWORD v19[3]; // [sp+18h] [bp-2Ch] BYREF
char *v20[3]; // [sp+24h] [bp-20h] BYREF
unsigned int v21; // [sp+30h] [bp-14h] BYREF
int v22; // [sp+34h] [bp-10h]
char *v23; // [sp+38h] [bp-Ch]
v7 = *a4;
if ( (v7 & 1) != 0 )
v10 = *((_DWORD *)a4 + 1);
else
v10 = v7 >> 1;
v21 = 0;
v22 = 0;
v23 = nullptr;
if ( v10 + 11 > 0xFFFFFFEF )
sub_38A690();
if ( v10 + 11 > 0xA )
{
v11 = (char *)operator new((v10 + 27) & 0xFFFFFFF0);
v23 = v11;
v21 = (v10 + 27) & 0xFFFFFFF0 | 1;
v22 = 11;
}
else
{
LOBYTE(v21) = 22;
v11 = (char *)&v21 + 1;
}
v18 = v11;
std::char_traits::copy(v11, "Delete ", 0xBu);
v18[11] = 0;
if ( (*a4 & 1) != 0 )
v12 = *((const void **)a4 + 2);
else
v12 = a4 + 1;
std::string::append(&v21, v12, v10);
v13 = std::string::append(&v21, " from the server?\n(It will no longer be available online)", 0x45u);
v14 = v13[1];
v15 = v13[2];
v19[0] = *v13;
v19[1] = v14;
v19[2] = v15;
*v13 = 0;
v13[1] = 0;
v13[2] = 0;
std::string::~string((int)&v21);
ReportPopup::reasonIndicesForType((ReportPopup *)v20, a5);
v21 = 0;
v22 = 0;
v23 = nullptr;
std::string::__init((int *)&v21, &unk_B6B226, 0);
v16 = AdminActionConfirmPopup::create(a1, a2, a3, (int)v19, (ButtonSprite *)"Delete", v20, (unsigned __int8 *)&v21, 1);
std::string::~string((int)&v21);
std::__vector_base::~__vector_base(v20);
std::string::~string((int)v19);
return v16;
}