//
// CustomizeObjectLayer::onClear from 0x57e998 to 0x57ea28 (144 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::textInputOpened @ 0x57f460
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:51 +0000
//
int __fastcall CustomizeObjectLayer::onClear(int this, cocos2d::CCObject *a2, int a3, int a4)
{
int v4; // r7
_BYTE *v5; // r8
int v6; // r8
int v7; // [sp+0h] [bp-10h] BYREF
cocos2d::CCObject *v8; // [sp+4h] [bp-Ch]
int v9; // [sp+8h] [bp-8h]
int v10; // [sp+Ch] [bp-4h]
v7 = this;
v8 = a2;
v9 = a3;
v10 = a4;
v4 = this;
v5 = *(_BYTE **)(this + 532);
if ( v5 )
{
*(_BYTE *)(this + 654) = 1;
v7 = 0;
v8 = nullptr;
v9 = 0;
std::string::__init(&v7, &unk_B6B226, 0);
TextGameObject::updateTextObject(v5, (unsigned __int8 *)&v7, 0);
std::string::~string((int)&v7);
v6 = *(_DWORD *)(v4 + 604);
v7 = 0;
v8 = nullptr;
v9 = 0;
std::string::__init(&v7, &unk_B6B226, 0);
CCTextInputNode::setString(v6, (int)&v7);
this = std::string::~string((int)&v7);
*(_BYTE *)(v4 + 654) = 0;
}
return this;
}