//
// AchievementBar::create from 0x537ec8 to 0x537f3e (118 bytes)
//
// 1 xrefs:
// > AchievementNotifier::notifyAchievement @ 0x395e62
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:09 +0000
//
cocos2d::CCNodeRGBA *__fastcall AchievementBar::create(
AchievementBar *this,
const char *a2,
cocos2d::CCSprite *a3,
const char *a4,
bool a5)
{
char v8; // r8
cocos2d::CCNodeRGBA *v9; // r4
int v10; // r3
cocos2d::CCNodeRGBA *v11; // r0
v8 = (char)a4;
v9 = (cocos2d::CCNodeRGBA *)operator new(0x13Cu);
cocos2d::CCNodeRGBA::CCNodeRGBA(v9);
*(_DWORD *)v9 = &off_CAB300;
*((_DWORD *)v9 + 66) = &off_CAB500;
*((_DWORD *)v9 + 71) = 0;
*((_DWORD *)v9 + 70) = 0;
*((_DWORD *)v9 + 72) = 0;
if ( AchievementBar::init(v9, this, a2, a3, v8) )
{
cocos2d::CCObject::autorelease(v9);
}
else
{
v10 = *(_DWORD *)v9;
v11 = v9;
v9 = nullptr;
(*(void (__fastcall **)(cocos2d::CCNodeRGBA *))(v10 + 8))(v11);
}
return v9;
}