// // BrowseSmartKeyLayer::deletedSelectedItems from 0x9e1d4c to 0x9e1f30 (484 bytes) // // 2 xrefs: // > BrowseSmartKeyLayer::onButton @ 0x9e2148 // > @ 0x73e48 // // 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 BrowseSmartKeyLayer::deletedSelectedItems(BrowseSmartKeyLayer *a1) { unsigned int i; // w27 unsigned int v3; // w19 cocos2d::CCArray *j; // x21 __int64 v5; // x20 _BYTE *v6; // x28 GJSmartTemplate *m_template; // x23 long double v8; // q0 int v9; // w0 char *v10; // x0 unsigned int *v11; // x1 int v12; // w2 std::string v13; // [xsp+80h] [xbp+80h] BYREF for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(a1->m_pages); ++i ) { v3 = 0; for ( j = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_pages, i); v3 < (unsigned int)cocos2d::CCArray::count(j); cocos2d::CCArray::removeObjectAtIndex(j, v3, 1) ) { while ( 1 ) { v5 = cocos2d::CCArray::objectAtIndex(j, v3); v6 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1056LL))(v5); if ( v6[344] ) break; if ( ++v3 >= (unsigned int)cocos2d::CCArray::count(j) ) goto LABEL_6; } m_template = a1->m_template; *(__n128 *)&v8 = sub_D18D28(&v13); v9 = (*(__int64 (__fastcall **)(_BYTE *, long double))(*(_QWORD *)v6 + 64LL))(v6, v8); GJSmartTemplate::removePrefab((__int64)m_template, &v13, v9); v10 = (char *)v13.m_data.m_data - 24; if ( (__int64 *)v13.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)((char *)v13.m_data.m_data - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v13.m_data.m_data - 2); *((_DWORD *)v13.m_data.m_data - 2) = v12 - 1; } if ( v12 <= 0 ) operator delete(v10); } (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 520LL))(v5); } LABEL_6: ; } BrowseSmartKeyLayer::updateChanceValues(a1); }