//
// CustomizeObjectLayer::onClear from 0x100058674 to 0x10005870c (152 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::textInputOpened @ 0x10005929c
// > CustomizeObjectLayer::init @ 0x1000576d4
//
// 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:46 +0000
//
void __fastcall CustomizeObjectLayer::onClear(__int64 a1)
{
__int64 v1; // x20
__int64 v3; // x20
void *v4[2]; // [xsp+0h] [xbp-40h] BYREF
char v5; // [xsp+17h] [xbp-29h]
std::string __p; // [xsp+18h] [xbp-28h] BYREF
v1 = *(_QWORD *)(a1 + 688);
if ( v1 )
{
*(_BYTE *)(a1 + 922) = 1;
sub_100009900(&__p, "");
TextGameObject::updateTextObject(v1, &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
v3 = *(_QWORD *)(a1 + 824);
sub_100009900(v4, "");
CCTextInputNode::setString(v3, v4);
if ( v5 < 0 )
operator delete(v4[0]);
*(_BYTE *)(a1 + 922) = 0;
}
}