//
// BrowseSmartKeyLayer::onButton from 0x1000733b0 to 0x10007344c (156 bytes)
//
// 1 xrefs:
// > BrowseSmartKeyLayer::init @ 0x100072ff8
//
// 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 __fastcall BrowseSmartKeyLayer::onButton(BrowseSmartKeyLayer *a1, cocos2d::CCObject *a2)
{
int v3; // w0
BrowseSmartKeyLayer *v4; // x0
int v5; // w1
bool v6; // w2
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( v3 > 2 )
{
if ( v3 == 3 )
{
v4 = a1;
v5 = 0;
v6 = 1;
}
else
{
if ( v3 != 4 )
return;
v4 = a1;
v5 = 10;
v6 = 0;
}
BrowseSmartKeyLayer::addChanceToSelected(v4, v5, v6);
return;
}
if ( v3 == 1 )
{
BrowseSmartKeyLayer::createTemplateObjects(a1);
}
else if ( v3 == 2 )
{
BrowseSmartKeyLayer::deletedSelectedItems(a1);
}
}