//
// SetTextPopup::onClose from 0x14029da60 to 0x14029dae6 (134 bytes)
//
// 3 xrefs:
// > SetTextPopup::keyBackClicked @ 0x14029daf9
// > SetTextPopup::init @ 0x14029d2e1
// > ??> @ 0x1406d1ea4
//
// 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 SetTextPopup::onClose(SetTextPopup *a1, cocos2d::CCObject *a2)
{
std::string *v3; // rax
_BOOL8 v4; // rdx
_BYTE v5[40]; // [rsp+20h] [rbp-28h] BYREF
a1->m_input->m_delegate = nullptr;
a1->m_input->onClickTrackNode(a1->m_input, 0);
if ( a1->m_delegate && !a1->m_cancelled )
{
v3 = (std::string *)sub_14003BDB0((__int64)v5, (__int64)&a1->m_value);
a1->m_delegate->setTextPopupClosed(a1->m_delegate, a1, v3);
}
a1->setKeypadEnabled(a1, 0);
LOBYTE(v4) = 1;
a1->removeFromParentAndCleanup(a1, v4);
}