//
// EditorUI::showMaxBasicError from 0x140112b40 to 0x140112c71 (305 bytes)
//
// 4 xrefs:
// > EditorUI::onCreate @ 0x14010f479
// > EditorUI::onDuplicate @ 0x140112d31
// > EditorUI::doPasteObjects @ 0x140113400
// > ??> @ 0x1406c906c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void EditorUI::showMaxBasicError(EditorUI *a1)
{
cocos2d::CCString *v2; // rax
int v3; // edi
const char *CString; // rax
size_t v5; // r8
__int64 v6; // rax
FLAlertLayer *v7; // rbx
__int128 v8; // [rsp+50h] [rbp-48h] BYREF
__int64 v9; // [rsp+60h] [rbp-38h]
__int64 v10; // [rsp+68h] [rbp-30h]
_BYTE v11[32]; // [rsp+70h] [rbp-28h] BYREF
if ( !a1->m_alertShown )
{
a1->m_alertShown = 1;
v2 = cocos2d::CCString::createWithFormat(
"You have reached the max limit of %i objects. You can increase it to %i, but your level may b"
"ecome unstable on some devices, so it is recommended to stay below this limit. Levels with object count above"
" this limit will display a warning when played online.",
40000,
80000);
v3 = (_DWORD)a1 + 408;
if ( !a1 )
v3 = 0;
CString = cocos2d::CCString::getCString(v2);
v8 = 0;
v9 = 0;
v10 = 0;
v5 = -1;
do
++v5;
while ( CString[v5] );
sub_14003A930(&v8, CString, v5);
v6 = sub_14003BDB0((__int64)v11, (__int64)&v8);
v7 = FLAlertLayer::create(
v3,
(int)"Max Objects",
v6,
(__int64)"Cancel",
(__int64)"Increase",
1136525312,
0,
0,
1065353216);
sub_14003A830((__int64)&v8);
v7->setTag(v7, 125);
v7->show(v7);
}
}