//
// SetupSmartTemplateLayer::onClick from 0x675780 to 0x675834 (180 bytes)
//
// 0 xrefs:
//
// 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:55 +0000
//
int __fastcall SetupSmartTemplateLayer::onClick(cocos2d::CCObject **this, cocos2d::CCObject *a2)
{
int result; // r0
FLAlertLayer *v4; // r0
int *v5; // r5
int v6[3]; // [sp+10h] [bp-10h] BYREF
result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( result )
{
if ( result == 5 )
{
memset(v6, 0, sizeof(v6));
std::string::__init(v6, "Are you sure you want to delete this template?", 0x36u);
v5 = FLAlertLayer::create(
(int)(this + 130),
(cocos2d::CCLabelBMFont *)"Delete Template",
(int)v6,
(ButtonSprite *)"NO",
(ButtonSprite *)"YES",
300.0);
std::string::~string((int)v6);
(*(void (__fastcall **)(int *, int))(*v5 + 36))(v5, 5);
return (*(int (__fastcall **)(int *))(*v5 + 656))(v5);
}
}
else
{
v4 = BrowseSmartTemplateLayer::create(*(this + 131));
(*(void (__fastcall **)(FLAlertLayer *))(*(_DWORD *)v4 + 656))(v4);
return SetupSmartTemplateLayer::onClose((SetupSmartTemplateLayer *)this, nullptr);
}
return result;
}