//
// IDNameInput::revertToLastID from 0x793cac to 0x793d0e (98 bytes)
//
// 1 xrefs:
// > IDNameInput::textInputClosed @ 0x796dc6
//
// 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:59:43 +0000
//
int __fastcall IDNameInput::revertToLastID(int this)
{
int v1; // r4
int v2; // r2
int v3; // r7
int v4[3]; // [sp+0h] [bp-14h] BYREF
v1 = this;
v2 = *(_DWORD *)(this + 300);
if ( v2 )
{
*(_DWORD *)(v2 + 420) = 0;
v3 = *(_DWORD *)(this + 300);
std::string::basic_string(v4, this + 348);
CCTextInputNode::setString(v3, (int)v4);
this = std::string::~string((int)v4);
*(_DWORD *)(*(_DWORD *)(v1 + 300) + 420) = v1 + 264;
}
return this;
}