// // BrowseSmartKeyLayer::updateChanceValues from 0x1405f1f60 to 0x1405f20af (335 bytes) // // 4 xrefs: // > BrowseSmartKeyLayer::onButton @ 0x1405f1a78 // > BrowseSmartKeyLayer::deletedSelectedItems @ 0x1405f1d98 // > BrowseSmartKeyLayer::addChanceToSelected @ 0x1405f1f4c // > @ 0x14092f2dc // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:35:06 +0000 // // Hidden C++ exception states: #wind=1 unsigned int __fastcall BrowseSmartKeyLayer::updateChanceValues(__int64 a1) { __int64 v2; // rax int TotalChanceForPrefab; // r12d unsigned int v4; // r15d unsigned int result; // eax cocos2d::CCArray *v6; // rbp unsigned int v7; // ebx struct cocos2d::CCObject *v8; // rax cocos2d::CCLabelBMFont **v9; // r14 __int64 v10; // rsi __int64 v11; // rdi int v12; // eax struct cocos2d::CCObject *PrefabWithID; // rax _BYTE v14[88]; // [rsp+20h] [rbp-58h] BYREF unsigned int v15; // [rsp+80h] [rbp+8h] v2 = sub_14003F4F0((__int64)v14, a1 + 712); TotalChanceForPrefab = GJSmartTemplate::getTotalChanceForPrefab(*(_QWORD *)(a1 + 664), v2); v4 = 0; v15 = 0; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672)); if ( result ) { do { v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 672), v4); v7 = 0; if ( cocos2d::CCArray::count(v6) ) { do { v8 = cocos2d::CCArray::objectAtIndex(v6, v7); v9 = (cocos2d::CCLabelBMFont **)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v8 + 952LL))(v8); v10 = sub_14003F4F0((__int64)v14, a1 + 712); v11 = *(_QWORD *)(a1 + 664); v12 = (*((__int64 (__fastcall **)(cocos2d::CCLabelBMFont **))*v9 + 7))(v9); PrefabWithID = GJSmartTemplate::getPrefabWithID(v11, v10, v12); if ( PrefabWithID ) GJSmartBlockPreview::addChance(v9, *((_DWORD *)PrefabWithID + 31), TotalChanceForPrefab); ++v7; } while ( v7 < cocos2d::CCArray::count(v6) ); v4 = v15; } v15 = ++v4; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672)); } while ( v4 < result ); } return result; }