//
// AchievementNotifier::notifyAchievement from 0x14003abe0 to 0x14003acbe (222 bytes)
//
// 3 xrefs:
// > AchievementManager::notifyAchievementWithID @ 0x14003a731
// > GameStatsManager::incrementChallenge @ 0x1401e2750
// > ??> @ 0x1406c3d50
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void AchievementNotifier::notifyAchievement(
AchievementNotifier *a1,
const char *a2,
const char *a3,
const char *a4,
bool a5)
{
AchievementBar *v9; // r14
v9 = (AchievementBar *)operator new(0x1A0u);
cocos2d::CCNodeRGBA::CCNodeRGBA(v9);
v9->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (AchievementBar_vtbl *)&AchievementBar::`vftable';
v9->cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&AchievementBar::`vftable';
v9->m_layerColor = nullptr;
v9->m_unkUnused = 0;
v9->m_nextScene = nullptr;
if ( AchievementBar::init(v9, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease(v9);
}
else
{
((void (__fastcall *)(AchievementBar *, __int64))v9->~AchievementBar)(v9, 1);
v9 = nullptr;
}
cocos2d::CCArray::addObject(a1->m_achievementBarArray, v9);
if ( !a1->m_activeAchievementBar )
AchievementNotifier::showNextAchievement(a1);
}