// // SecretRewardsLayer::onShop from 0xb9e0d0 to 0xb9e1d8 (264 bytes) // // 3 xrefs: // > @ 0xc0ad8 // > SecretRewardsLayer::init @ 0xba01a4 // > @ 0x15459e8 // // This function is hookable on this platform (idp: arm, 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 13:02:44 +0000 // __int64 __fastcall SecretRewardsLayer::onShop(SecretRewardsLayer *this, cocos2d::CCObject *a2) { unsigned int v3; // w19 __int64 result; // x0 GameManager *v5; // x0 GameManager *v6; // x0 GameManager *v7; // x0 GameManager *v8; // x0 v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); result = v3 - 1; switch ( v3 ) { case 1u: v7 = (GameManager *)GameManager::sharedState((GameManager *)result); if ( (unsigned __int8)GameManager::getUGV(v7, "11") ) goto LABEL_3; result = SecretRewardsLayer::showDialog01(this); break; case 2u: v6 = (GameManager *)GameManager::sharedState((GameManager *)result); if ( (unsigned __int8)GameManager::getUGV(v6, "20") ) goto LABEL_3; result = SecretRewardsLayer::showDialog03(this); break; case 3u: v5 = (GameManager *)GameManager::sharedState((GameManager *)result); if ( (unsigned __int8)GameManager::getUGV(v5, "35") ) goto LABEL_3; result = SecretRewardsLayer::showDialogMechanic(this); break; case 4u: v8 = (GameManager *)GameManager::sharedState((GameManager *)result); if ( (unsigned __int8)GameManager::getUGV(v8, "34") ) LABEL_3: result = SecretRewardsLayer::showShop(this, v3); else result = SecretRewardsLayer::showDialogDiamond(this); break; default: return result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source