//
// AchievementBar::create from 0x8ff328 to 0x8ff404 (220 bytes)
//
// 2 xrefs:
// > AchievementNotifier::notifyAchievement @ 0x642e68
// > ??> @ 0xdda28
//
// This function is hookable on this platform (idp: arm, 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:57:06 +0000
//
__int64 __fastcall AchievementBar::create(AchievementBar *this, char *a2, cocos2d::CCSprite *a3, const char *a4)
{
unsigned __int8 v5; // w20
__int64 v8; // x19
v5 = (unsigned __int8)a4;
v8 = operator new(0x1A0u);
cocos2d::CCNodeRGBA::CCNodeRGBA((cocos2d::CCNodeRGBA *)v8);
*(_QWORD *)(v8 + 344) = 0;
*(_QWORD *)(v8 + 360) = 0;
*(_QWORD *)v8 = &off_1462DF0;
*(_QWORD *)(v8 + 320) = &off_14631F0;
*(_DWORD *)(v8 + 352) = 0;
if ( (unsigned __int8)AchievementBar::init((AchievementBar *)v8, this, a2, a3, v5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
return v8;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 16LL))(v8);
return 0;
}
}