// // AchievementNotifier::showNextAchievement from 0x14003d720 to 0x14003d876 (342 bytes) // // 3 xrefs: // > AchievementNotifier::notifyAchievement @ 0x14003d706 // > AchievementNotifier::achievementDisplayFinished @ 0x14003d8c3 // > @ 0x14090f0ec // // 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:25:28 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall AchievementNotifier::showNextAchievement(__int64 a1) { int v3; // r8d int v4; // r9d int v5; // ecx cocos2d::CCObject *v6; // rax __int64 v7; // rcx __int128 v8; // [rsp+30h] [rbp-28h] BYREF __int64 v9; // [rsp+40h] [rbp-18h] __int64 v10; // [rsp+48h] [rbp-10h] void *v11; // [rsp+68h] [rbp+10h] if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 328)) ) { v8 = 0; *(_QWORD *)&v8 = sub_14003D460(0x20u); v9 = 18; v10 = 31; strcpy((char *)v8, "achievement_01.ogg"); v5 = qword_14090BF60; if ( !qword_14090BF60 ) { v11 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine(v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v5 = qword_14090BF60; } FMODAudioEngine::playEffect(v5, (unsigned int)&v8, v3, v4, 1050253722); ++dword_14090BF48; v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 328), 0); *(_QWORD *)(a1 + 336) = v6; cocos2d::CCObject::retain(v6); cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(a1 + 328), 0, 1); v7 = *(_QWORD *)(a1 + 320); if ( v7 ) *(_QWORD *)(*(_QWORD *)(a1 + 336) + 360LL) = v7; return AchievementBar::show(*(_QWORD *)(a1 + 336)); } else { dword_14090BF48 = 0; return 0; } }