//
// SetTextPopup::onResetValue from 0x1002af3f0 to 0x1002af483 (147 bytes)
//
// 1 xrefs:
// > SetTextPopup::init @ 0x1002af0da
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SetTextPopup::onResetValue(SetTextPopup *a1, cocos2d::CCObject *a2)
{
__m128 v2; // xmm0
std::string *p_m_value; // r15
CCTextInputNode *m_input; // r14
__int128 v5; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
p_m_value = &a1->m_value;
std::string::assign((std::string *)&a1->m_value, "");
a1->m_disableDelegate = 1;
m_input = a1->m_input;
if ( (a1->m_value.m_data.m_short.sizex2 & 1) != 0 )
{
sub_100006B70(&v5, a1->m_value.m_data.m_long.longStorage, a1->m_value.m_data.m_long.size, *(double *)v2.i64);
}
else
{
__p = a1->m_value.m_data.m_long.longStorage;
v2 = *(__m128 *)&p_m_value->m_data.m_short.sizex2;
v5 = *(_OWORD *)&p_m_value->m_data.m_short.sizex2;
}
CCTextInputNode::setString(m_input, (__int64)&v5, v2);
if ( (v5 & 1) != 0 )
operator delete(__p);
a1->m_disableDelegate = 0;
}