//
// CustomizeObjectLayer::onClear from 0x1001da570 to 0x1001da5ee (126 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::textInputOpened @ 0x1001db794
// > CustomizeObjectLayer::init @ 0x1001d91a9
//
// This function is hookable on this platform (idp: pc, 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:26:25 +0000
//
void __fastcall CustomizeObjectLayer::onClear(__int64 a1)
{
__int64 v2; // rdi
_QWORD *v3; // rdi
_WORD v4[8]; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
_WORD v6[8]; // [rsp+18h] [rbp-28h] BYREF
void *v7; // [rsp+28h] [rbp-18h]
v2 = *(_QWORD *)(a1 + 688);
if ( v2 )
{
*(_BYTE *)(a1 + 922) = 1;
v4[0] = 0;
TextGameObject::updateTextObject(v2, v4, 0);
if ( (v4[0] & 1) != 0 )
operator delete(__p);
v3 = *(_QWORD **)(a1 + 824);
v6[0] = 0;
CCTextInputNode::setString(v3, (__int64)v6);
if ( (v6[0] & 1) != 0 )
operator delete(v7);
*(_BYTE *)(a1 + 922) = 0;
}
}