//
// CustomizeObjectLayer::onClear from 0x982d78 to 0x982e54 (220 bytes)
//
// 4 xrefs:
// > CustomizeObjectLayer::textInputOpened @ 0x984be8
// > ??> @ 0x916a8
// > CustomizeObjectLayer::init @ 0x986c60
// > ??> @ 0x1543e68
//
// 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:57:52 +0000
//
__int64 __fastcall CustomizeObjectLayer::onClear(CustomizeObjectLayer *this, cocos2d::CCObject *a2)
{
_BYTE *v3; // x0
_QWORD *v4; // x0
__int64 v6; // [xsp+30h] [xbp+30h] BYREF
__int64 v7; // [xsp+38h] [xbp+38h]
void *v8; // [xsp+40h] [xbp+40h]
v3 = *((_BYTE **)this + 86);
if ( v3 )
{
*((_BYTE *)this + 922) = 1;
v6 = 0;
v7 = 0;
v8 = nullptr;
TextGameObject::updateTextObject(v3, (unsigned __int8 *)&v6, 0);
if ( (v6 & 1) != 0 )
operator delete(v8);
v4 = *((_QWORD **)this + 103);
v6 = 0;
v7 = 0;
v8 = nullptr;
CCTextInputNode::setString(v4, (char *)&v6);
if ( (v6 & 1) != 0 )
operator delete(v8);
*((_BYTE *)this + 922) = 0;
}
return _stack_chk_guard;
}