//
// BrowseSmartKeyLayer::deletedSelectedItems from 0x673eb0 to 0x673f76 (198 bytes)
//
// 1 xrefs:
// > BrowseSmartKeyLayer::onButton @ 0x674236
//
// 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
//
unsigned int __fastcall BrowseSmartKeyLayer::deletedSelectedItems(cocos2d::CCArray **this)
{
unsigned int i; // r7
unsigned int v3; // r5
cocos2d::CCArray *v4; // r8
int v5; // r9
int v6; // r0
int v7; // r0
cocos2d::CCArray *v9; // [sp+0h] [bp-1Ch]
int v10; // [sp+4h] [bp-18h]
int v11[3]; // [sp+8h] [bp-14h] BYREF
for ( i = 0; i < cocos2d::CCArray::count(*(this + 131)); ++i )
{
v3 = 0;
v4 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(*(this + 131), i);
while ( v3 < cocos2d::CCArray::count(v4) )
{
v5 = cocos2d::CCArray::objectAtIndex(v4, v3);
v6 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 536))(v5);
if ( *(_BYTE *)(v6 + 284) )
{
v10 = v6;
v9 = *(this + 130);
std::string::basic_string(v11, (int)(this + 136));
v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v10 + 32))(v10);
GJSmartTemplate::removePrefab(v9, (int)v11, v7);
std::string::~string((int)v11);
(*(void (__fastcall **)(int))(*(_DWORD *)v5 + 268))(v5);
cocos2d::CCArray::removeObjectAtIndex(v4, v3, 1);
}
else
{
++v3;
}
}
}
return BrowseSmartKeyLayer::updateChanceValues((BrowseSmartKeyLayer *)this);
}