// // BrowseSmartKeyLayer::updateChanceValues from 0x673ddc to 0x673eac (208 bytes) // // 2 xrefs: // > BrowseSmartKeyLayer::deletedSelectedItems @ 0x673f54 // > BrowseSmartKeyLayer::addChanceToSelected @ 0x673ffe // // 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::updateChanceValues(BrowseSmartKeyLayer *this) { char *v1; // r9 int v2; // r7 int v4; // r2 int v5; // r3 unsigned int i; // r6 unsigned int result; // r0 unsigned int v8; // r7 cocos2d::CCArray *v9; // r10 int v10; // r0 int v11; // r0 int v12; // r11 GJSmartBlockPreview *v13; // r8 int v14; // r0 int PrefabWithID; // r11 const char *TotalChanceForPrefab; // [sp+0h] [bp-1Ch] int v17[3]; // [sp+8h] [bp-14h] BYREF v1 = (char *)this + 544; v2 = *((_DWORD *)this + 130); std::string::basic_string(v17, (int)this + 544); TotalChanceForPrefab = (const char *)GJSmartTemplate::getTotalChanceForPrefab(v2, (int)v17, v4, v5); std::string::~string((int)v17); for ( i = 0; ; ++i ) { result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 131)); if ( i >= result ) break; v8 = 0; v9 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 131), i); while ( v8 < cocos2d::CCArray::count(v9) ) { v10 = cocos2d::CCArray::objectAtIndex(v9, v8); v11 = (*(int (__fastcall **)(int))(*(_DWORD *)v10 + 536))(v10); v12 = *((_DWORD *)this + 130); v13 = (GJSmartBlockPreview *)v11; std::string::basic_string(v17, (int)v1); v14 = (*(int (__fastcall **)(GJSmartBlockPreview *))(*(_DWORD *)v13 + 32))(v13); PrefabWithID = GJSmartTemplate::getPrefabWithID(v12, (int)v17, v14); std::string::~string((int)v17); if ( PrefabWithID ) GJSmartBlockPreview::addChance(v13, *(const char **)(PrefabWithID + 80), TotalChanceForPrefab); ++v8; } } return result; }