//
// BrowseSmartTemplateLayer::onBack from 0x14045b400 to 0x14045b461 (97 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405f65b8
// > ??> @ 0x1406dabc8
//
// 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 BrowseSmartTemplateLayer::onBack(BrowseSmartTemplateLayer *a1, cocos2d::CCObject *a2)
{
SetupSmartTemplateLayer *v3; // rax
__int64 v4; // rcx
__int64 v5; // rax
cocos2d::CCTouchDispatcher *v6; // rax
_BOOL8 v7; // rdx
v3 = SetupSmartTemplateLayer::create(a1->m_template);
v3->show(v3);
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);
a1->setKeypadEnabled(a1, 0);
LOBYTE(v7) = 1;
a1->removeFromParentAndCleanup(a1, v7);
}