//
// IDNameInput::revertToLastID from 0xce4ba0 to 0xce4c84 (228 bytes)
//
// 2 xrefs:
// > IDNameInput::textInputClosed @ 0xcefa88
// > ??> @ 0x5a8e0
//
// 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 13:06:38 +0000
//
__int64 __fastcall IDNameInput::revertToLastID(IDNameInput *this)
{
__int64 v2; // x0
char v3; // w0
_QWORD *v4; // x22
__int64 v5; // x0
__int64 v6; // x1
__int64 v8; // [xsp+30h] [xbp+30h] BYREF
__int64 v9; // [xsp+38h] [xbp+38h]
void *v10; // [xsp+40h] [xbp+40h]
v2 = *((_QWORD *)this + 48);
if ( v2 )
{
*(_QWORD *)(v2 + 584) = 0;
v8 = 0;
v3 = *((_BYTE *)this + 464);
v9 = 0;
v10 = nullptr;
v4 = *((_QWORD **)this + 48);
if ( (v3 & 1) != 0 )
{
std::string::__init(&v8, *((void **)this + 60), *((_QWORD *)this + 59));
}
else
{
v5 = *((_QWORD *)this + 58);
v6 = *((_QWORD *)this + 59);
v10 = *((void **)this + 60);
v8 = v5;
v9 = v6;
}
CCTextInputNode::setString(v4, (char *)&v8);
if ( (v8 & 1) != 0 )
operator delete(v10);
*(_QWORD *)(*((_QWORD *)this + 48) + 584LL) = (char *)this + 320;
}
return _stack_chk_guard;
}