// // SecretRewardsLayer::onShop from 0x100385190 to 0x10038528c (252 bytes) // // 1 xrefs: // > SecretRewardsLayer::init @ 0x100384594 // // 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 11:03:32 +0000 // __int64 __fastcall SecretRewardsLayer::onShop(__int64 a1, __int64 a2) { __int64 result; // x0 __int64 v4; // x20 __int64 v5; // x0 __int64 v6; // x0 __int64 v7; // x0 __int64 v8; // x0 result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); v4 = result; if ( (int)result > 2 ) { if ( (_DWORD)result == 3 ) { v8 = GameManager::sharedState(result); if ( (GameManager::getUGV(v8, "35") & 1) != 0 ) return SecretRewardsLayer::showShop(a1, v4); return sub_10038866C(a1); } else if ( (_DWORD)result == 4 ) { v6 = GameManager::sharedState(result); if ( (GameManager::getUGV(v6, "34") & 1) == 0 ) return sub_1003892C0(a1); return SecretRewardsLayer::showShop(a1, v4); } } else { if ( (_DWORD)result == 1 ) { v7 = GameManager::sharedState(result); if ( (GameManager::getUGV(v7, "11") & 1) == 0 ) return sub_100386874(a1); return SecretRewardsLayer::showShop(a1, v4); } if ( (_DWORD)result == 2 ) { v5 = GameManager::sharedState(result); if ( (GameManager::getUGV(v5, "20") & 1) == 0 ) return sub_100387984(a1); return SecretRewardsLayer::showShop(a1, v4); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source