// // BrowseSmartKeyLayer::updateChanceValues from 0x14045c340 to 0x14045c46b (299 bytes) // // 4 xrefs: // > BrowseSmartKeyLayer::onButton @ 0x14045bf1f // > BrowseSmartKeyLayer::onButton @ 0x14045bfb1 // > BrowseSmartKeyLayer::onButton @ 0x14045c12a // > @ 0x1406dac10 // // 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 // // Hidden C++ exception states: #wind=1 void BrowseSmartKeyLayer::updateChanceValues(BrowseSmartKeyLayer *a1) { __int64 v2; // rax int TotalChanceForPrefab; // r15d unsigned int i; // ebp cocos2d::CCArray *v5; // rsi unsigned int j; // ebx struct cocos2d::CCObject *v7; // rax GJSmartBlockPreview *v8; // r14 __int64 v9; // rdi int v10; // eax struct cocos2d::CCObject *PrefabWithID; // rax _BYTE v12[32]; // [rsp+20h] [rbp-48h] BYREF v2 = sub_14003BDB0((__int64)v12, (__int64)&a1->m_prefabKey); TotalChanceForPrefab = GJSmartTemplate::getTotalChanceForPrefab((__int64)a1->m_template, v2); for ( i = 0; i < cocos2d::CCArray::count(a1->m_pages); ++i ) { v5 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_pages, i); for ( j = 0; j < cocos2d::CCArray::count(v5); ++j ) { v7 = cocos2d::CCArray::objectAtIndex(v5, j); v8 = (GJSmartBlockPreview *)((__int64 (__fastcall *)(struct cocos2d::CCObject *))v7->__vftable[13].copyWithZone)(v7); v9 = sub_14003BDB0((__int64)v12, (__int64)&a1->m_prefabKey); v10 = v8->getTag(v8); PrefabWithID = GJSmartTemplate::getPrefabWithID((__int64)a1->m_template, v9, v10); if ( PrefabWithID ) GJSmartBlockPreview::addChance(v8, PrefabWithID[2].m_nLuaID, TotalChanceForPrefab); } } }