//
// EditLevelLayer::setIDPopupClosed from 0x7ed234 to 0x7ed2b4 (128 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditLevelLayer::setIDPopupClosed @ 0x7ed2bc
// > ??> @ 0x100060
// > ??> @ 0x143c940
//
// 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:33 +0000
//
__int64 __fastcall EditLevelLayer::setIDPopupClosed(EditLevelLayer *this, SetIDPopup *a2, int a3)
{
__int64 v4; // x20
void (__fastcall *v5)(__int64, __int64); // x21
cocos2d::CCString *v6; // x0
__int64 CString; // x0
if ( a3 < 0 )
{
a3 = 0;
}
else if ( a3 >= 1000 )
{
a3 = 999;
}
*(_DWORD *)(*((_QWORD *)this + 59) + 916LL) = a3;
v4 = *((_QWORD *)this + 61);
v5 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 928LL);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)a3);
CString = cocos2d::CCString::getCString(v6);
v5(v4, CString);
return cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 61), 24.0, 0.55, 0.0);
}