//
// AchievementNotifier::notifyAchievement from 0x14003d640 to 0x14003d71e (222 bytes)
//
// 3 xrefs:
// > AchievementManager::notifyAchievementWithID @ 0x14003cfbd
// > GameStatsManager::incrementChallenge @ 0x1402e616d
// > ??> @ 0x14090f0e0
//
// 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=1
void __fastcall AchievementNotifier::notifyAchievement(__int64 a1, int a2, int a3, int a4, char a5)
{
cocos2d::CCNodeRGBA *v9; // r14
v9 = (cocos2d::CCNodeRGBA *)operator new(0x1A0u);
cocos2d::CCNodeRGBA::CCNodeRGBA(v9);
*(_QWORD *)v9 = &AchievementBar::`vftable';
*((_QWORD *)v9 + 40) = &AchievementBar::`vftable';
*((_QWORD *)v9 + 43) = 0;
*((_DWORD *)v9 + 88) = 0;
*((_QWORD *)v9 + 45) = 0;
if ( (unsigned __int8)AchievementBar::init((_DWORD)v9, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease(v9);
}
else
{
(*(void (__fastcall **)(cocos2d::CCNodeRGBA *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);
v9 = nullptr;
}
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 328), v9);
if ( !*(_QWORD *)(a1 + 336) )
AchievementNotifier::showNextAchievement(a1);
}