//
// AchievementNotifier::notifyAchievement from 0x1008aa4b0 to 0x1008aa4f8 (72 bytes)
//
// 2 xrefs:
// > AchievementManager::notifyAchievementWithID @ 0x100864c75
// > AchievementManager::notifyAchievement @ 0x100864cee
//
// 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 12:37:18 +0000
//
__int64 __fastcall AchievementNotifier::notifyAchievement(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
unsigned __int8 a5)
{
_QWORD *v5; // rsi
__int64 result; // rax
v5 = AchievementBar::create(a2, a3, a4, a5);
result = sub_1007FEBF0(*(_QWORD *)(a1 + 328), (__int64)v5);
if ( !*(_QWORD *)(a1 + 336) )
return AchievementNotifier::showNextAchievement(a1);
return result;
}