// // AchievementNotifier::showNextAchievement from 0x395d44 to 0x395e38 (244 bytes) // // 2 xrefs: // > AchievementNotifier::notifyAchievement @ 0x395e7c // > AchievementNotifier::achievementDisplayFinished @ 0x395eaa // // 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:46:19 +0000 // FMODAudioEngine *__fastcall AchievementNotifier::showNextAchievement(cocos2d::CCArray **this) { FMODAudioEngine *result; // r0 int v3; // r7 _BYTE *v4; // r0 const char *v5; // r3 _DWORD *v6; // r2 int v7; // t1 char v8; // r6 cocos2d::CCArray *v9; // r0 cocos2d::CCObject *v10; // r0 int v11; // r3 _DWORD v12[2]; // [sp+8h] [bp-14h] BYREF void *v13; // [sp+10h] [bp-Ch] result = (FMODAudioEngine *)cocos2d::CCArray::count(*(this + 67)); if ( result ) { v3 = FMODAudioEngine::sharedEngine(result); v4 = (_BYTE *)operator new(0x20u); v12[0] = 33; v12[1] = 18; v5 = "achievement_01.ogg"; v6 = v4; v13 = v4; do { v7 = *(_DWORD *)v5; v5 += 4; *v6++ = v7; } while ( v5 != "gg" ); *(_WORD *)v6 = *(_WORD *)v5; v4[18] = 0; v8 = v12[0]; FMODAudioEngine::playEffect(v3, (int)v12, COERCE_INT((float)((float)dword_D2A1D4 * 0.05) + 1.0), 0, 0.3); if ( (v8 & 1) != 0 ) operator delete(v13); v9 = *(this + 67); ++dword_D2A1D4; v10 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v9, 0); *(this + 68) = v10; cocos2d::CCObject::retain(v10); cocos2d::CCArray::removeObjectAtIndex(*(this + 67), 0, 1); v11 = (int)*(this + 66); if ( v11 ) *((_DWORD *)*(this + 68) + 72) = v11; return (FMODAudioEngine *)AchievementBar::show(*(this + 68)); } else { dword_D2A1D4 = 0; } return result; }