//
// SetTextPopup::onResetValue from 0x10029b800 to 0x10029b893 (147 bytes)
//
// 2 xrefs:
// > sub_10029AA90 @ 0x10029b322
// > sub_10029AA90 @ 0x10029b3d3
//
// 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:27:52 +0000
//
void __fastcall SetTextPopup::onResetValue(std::string *a1)
{
_QWORD *v1; // r14
__int128 v2; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
std::string::assign(a1 + 29, "");
a1[28].__r_.__value_.__s.__data_[7] = 1;
v1 = (_QWORD *)a1[28].__r_.__value_.__r.__words[0];
if ( (*(_BYTE *)&a1[29].__r_.__value_.__s.0 & 1) != 0 )
{
sub_10001AD30(&v2, a1[29].__r_.__value_.__l.__data_, a1[29].__r_.__value_.__l.__size_);
}
else
{
__p = a1[29].__r_.__value_.__l.__data_;
v2 = *(_OWORD *)&a1[29].__r_.__value_.__l.0;
}
CCTextInputNode::setString(v1, (__int64)&v2);
if ( (v2 & 1) != 0 )
operator delete(__p);
a1[28].__r_.__value_.__s.__data_[7] = 0;
}