//
// SetupSmartTemplateLayer::textInputClosed from 0x53d634 to 0x53d6c2 (142 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SetupSmartTemplateLayer::textInputClosed @ 0x53d6cc
//
// 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 SetupSmartTemplateLayer::textInputClosed(SetupSmartTemplateLayer *a1, CCTextInputNode *a2)
{
int v4; // r4
GJSmartTemplate *m_smartTemplate; // r8
SetupSmartTemplateLayer *v6; // [sp+0h] [bp+0h] BYREF
CCTextInputNode *v7; // [sp+4h] [bp+4h] BYREF
_BYTE v8[4]; // [sp+8h] [bp+8h] BYREF
v6 = a1;
v7 = a2;
v4 = a2->getTag(a2);
CCTextInputNode::getString((CCTextInputNode *)&v6, (int)a2);
if ( !v4 )
{
CCTextInputNode::getString((CCTextInputNode *)&v7, (int)a2);
m_smartTemplate = a1->m_smartTemplate;
if ( m_smartTemplate )
{
sub_775C20(v8);
sub_775D40(&m_smartTemplate->m_templateName, v8);
sub_774008(v8);
}
sub_774008(&v7);
}
sub_774008(&v6);
}