//
// EditorUI::setIDPopupClosed from 0x100476720 to 0x100476868 (328 bytes)
//
// 2 xrefs:
// > sub_100476888 @ 0x10047688c
// > ??> @ 0x10096d2f8
//
// 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
//
void __fastcall EditorUI::setIDPopupClosed(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // x0
__int64 v7; // x19
void *v8; // x0
const std::string::value_type *CString; // x0
__int64 v10; // x0
const char *v11; // x0
std::string *v12; // x1
std::string v13; // [xsp+8h] [xbp-58h] BYREF
std::string v14; // [xsp+20h] [xbp-40h] BYREF
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
v6 = GameManager::sharedState();
GameManager::setIntGameVariable(v6, "0133", a3);
v7 = *(_QWORD *)(a1 + 1312);
v8 = sub_1003065B0("%i", a3);
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v8);
ButtonSprite::setString(v7, CString);
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 2 )
{
v10 = GameManager::sharedState();
GameManager::setIntGameVariable(v10, "0139", a3);
sub_100009900(&v14, "");
if ( (int)a3 < 1000 )
{
GameToolbox::intToString(a3, &v13);
if ( SHIBYTE(v14.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v14.__r_.__value_.__l.__data_);
v14 = v13;
}
else
{
v11 = GJSpecialColorSelect::textForColorIdx(a3);
std::string::assign(&v14, v11);
}
if ( (v14.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v12 = &v14;
else
v12 = (std::string *)v14.__r_.__value_.__r.__words[0];
ButtonSprite::setString(*(_QWORD *)(a1 + 1320), (const std::string::value_type *)v12);
if ( SHIBYTE(v14.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v14.__r_.__value_.__l.__data_);
}
}