//
// BrowseSmartTemplateLayer::onBack from 0x1405f0f20 to 0x1405f0f81 (97 bytes)
//
// 2 xrefs:
// > ??> @ 0x140805a30
// > ??> @ 0x14092f27c
//
// This function is hookable on this platform (idp: pc, 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 11:35:05 +0000
//
__int64 __fastcall BrowseSmartTemplateLayer::onBack(__int64 *a1)
{
cocos2d::CCObject *v2; // rax
__int64 v3; // rcx
__int64 v4; // rax
cocos2d::CCTouchDispatcher *v5; // rax
__int64 v6; // rdx
v2 = SetupSmartTemplateLayer::create(a1[83]);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v2 + 1064LL))(v2);
v4 = cocos2d::CCDirector::sharedDirector(v3);
v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, (struct cocos2d::CCObject *)a1);
(*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 992))(a1, 0);
LOBYTE(v6) = 1;
return (*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 520))(a1, v6);
}