//
// CustomizeObjectLayer::textChanged from 0x10005933c to 0x100059470 (308 bytes)
//
// 2 xrefs:
// > sub_1000594A4 @ 0x1000594a8
// > ??> @ 0x1008bdd20
//
// 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 10:57:47 +0000
//
void __fastcall CustomizeObjectLayer::textChanged(__int64 a1, __int64 a2)
{
int v3; // w0
int v4; // w0
__int64 v5; // x19
char *v6; // x1
char *v7; // x20
__int64 v8; // x0
__int64 CString; // x0
std::string __p; // [xsp+10h] [xbp-50h] BYREF
char *v11[2]; // [xsp+28h] [xbp-38h] BYREF
char v12; // [xsp+3Fh] [xbp-21h]
if ( (*(_BYTE *)(a1 + 922) & 1) == 0 )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v3 == 1 )
{
v5 = *(_QWORD *)(a1 + 688);
CCTextInputNode::getString(v11);
if ( v12 >= 0 )
v6 = (char *)v11;
else
v6 = v11[0];
sub_100009900(&__p, v6);
TextGameObject::updateTextObject(v5, &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( v12 < 0 )
operator delete(v11[0]);
}
else if ( !v3 )
{
CCTextInputNode::getString(v11);
if ( v12 < 0 )
{
v7 = v11[0];
*(_DWORD *)(a1 + 748) = atoi(v11[0]);
operator delete(v7);
v4 = *(_DWORD *)(a1 + 748);
}
else
{
v4 = atoi((const char *)v11);
*(_DWORD *)(a1 + 748) = v4;
}
v8 = sub_1003065B0("%i", v4);
CString = cocos2d::CCString::getCString(v8);
ButtonSprite::setString(*(_QWORD *)(a1 + 856), CString);
CustomizeObjectLayer::updateSelected(a1, *(_DWORD *)(a1 + 748));
CustomizeObjectLayer::updateColorSprite(a1);
CustomizeObjectLayer::updateChannelLabel(a1, *(unsigned int *)(a1 + 748));
}
}
}