//
// BrowseSmartTemplateLayer::onClose from 0xb14d20 to 0xb14d7c (92 bytes)
//
// 4 xrefs:
// > BrowseSmartTemplateLayer::onBack @ 0xb17414
// > BrowseSmartTemplateLayer::onTemplateObject @ 0xb18bc4
// > BrowseSmartKeyLayer::onBack @ 0xb19834
// > ??> @ 0x649c0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:01:31 +0000
//
__int64 __fastcall BrowseSmartTemplateLayer::onClose(BrowseSmartTemplateLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
cocos2d::CCTouchDispatcher *v4; // x0
v3 = cocos2d::CCDirector::sharedDirector(this);
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, this);
(*(void (__fastcall **)(BrowseSmartTemplateLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(BrowseSmartTemplateLayer *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}