//
// EditorUI::showMaxCoinError from 0x100476fd0 to 0x100477080 (176 bytes)
//
// 1 xrefs:
// > EditorUI::onCreate @ 0x100474574
//
// 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 11:05:41 +0000
//
__int64 __fastcall EditorUI::showMaxCoinError(__int64 result)
{
__int64 v1; // x19
void *v2; // x0
char *CString; // x0
void *v4; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
if ( (*(_BYTE *)(result + 632) & 1) == 0 )
{
v1 = result;
*(_BYTE *)(result + 632) = 1;
v2 = sub_1003065B0("You cannot add more than 3 coins in a single level.");
CString = (char *)cocos2d::CCString::getCString((__int64)v2);
sub_100009900(__p, CString);
v4 = FLAlertLayer::create_1(v1 + 408, (__int64)"Max Coins", (__int64)__p, (__int64)"OK", 0, 300.0);
if ( v6 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 72LL))(v4, 122);
return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v4 + 1312LL))(v4);
}
return result;
}