//
// SetTextPopup::onCancel from 0x14029d9d0 to 0x14029da5d (141 bytes)
//
// 2 xrefs:
// > SetTextPopup::init @ 0x14029d746
// > ??> @ 0x1406d1e98
//
// 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::onCancel(SetTextPopup *a1, cocos2d::CCObject *a2)
{
CCTextInputNode *m_input; // rax
std::string *v4; // rax
_BOOL8 v5; // rdx
_BYTE v6[40]; // [rsp+20h] [rbp-28h] BYREF
m_input = a1->m_input;
a1->m_cancelled = 1;
m_input->m_delegate = nullptr;
a1->m_input->onClickTrackNode(a1->m_input, 0);
if ( a1->m_delegate && !a1->m_cancelled )
{
v4 = (std::string *)sub_14003BDB0((__int64)v6, (__int64)&a1->m_value);
a1->m_delegate->setTextPopupClosed(a1->m_delegate, a1, v4);
}
a1->setKeypadEnabled(a1, 0);
LOBYTE(v5) = 1;
a1->removeFromParentAndCleanup(a1, v5);
}