//
// BrowseSmartTemplateLayer::onClose from 0x672e14 to 0x672e44 (48 bytes)
//
// 3 xrefs:
// > BrowseSmartTemplateLayer::onBack @ 0x674946
// > BrowseSmartTemplateLayer::onTemplateObject @ 0x675308
// > BrowseSmartKeyLayer::onBack @ 0x675850
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:54 +0000
//
int __fastcall BrowseSmartTemplateLayer::onClose(BrowseSmartTemplateLayer *this, cocos2d::CCObject *a2)
{
int v3; // r0
cocos2d::CCTouchDispatcher *v4; // r0
v3 = cocos2d::CCDirector::sharedDirector(this);
v4 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 80))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, this);
(*(void (__fastcall **)(BrowseSmartTemplateLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(BrowseSmartTemplateLayer *, int))(*(_DWORD *)this + 264))(this, 1);
}