//
// EditorUI::showMaxBasicError from 0x7c7c2c to 0x7c7d50 (292 bytes)
//
// 4 xrefs:
// > EditorUI::onCreate @ 0x7ca8ac
// > EditorUI::doPasteObjects @ 0xbda044
// > EditorUI::onDuplicate @ 0xbdab50
// > ??> @ 0x1016e0
//
// 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 12:54:09 +0000
//
__int64 __fastcall EditorUI::showMaxBasicError(EditorUI *this)
{
cocos2d::CCString *v3; // x0
const char *CString; // x0
size_t v5; // x0
__int64 v6; // x20
char *v7; // [xsp+38h] [xbp+38h]
__int64 v8[2]; // [xsp+40h] [xbp+40h] BYREF
void *v9; // [xsp+50h] [xbp+50h]
if ( !*((_BYTE *)this + 632) )
{
*((_BYTE *)this + 632) = 1;
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"You have reached the max limit of %i objects. You can incre"
"ase it to %i, but your level may become unstable on some de"
"vices, so it is recommended to stay below this limit. Levels with o"
"bject count above this limit will display a warning when played online.",
(const char *)&elf_hash_bucket[9874],
80000);
CString = (const char *)cocos2d::CCString::getCString(v3);
v8[0] = 0;
v7 = (char *)CString;
v8[1] = 0;
v9 = nullptr;
v5 = strlen(CString);
std::string::__init(v8, v7, v5);
v6 = FLAlertLayer::create(
(__int64)this + 408,
(cocos2d::CCLabelBMFont *)"Max Objects",
(char *)v8,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Increase",
380.0);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 72LL))(v6, 125);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
}
return _stack_chk_guard;
}