//
// MenuLayer::onAchievements from 0x1404749d0 to 0x140474b21 (337 bytes)
//
// 2 xrefs:
// > MenuLayer::init @ 0x1404726f3
// > ??> @ 0x1409282a4
//
// 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:32:40 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCAction *__fastcall MenuLayer::onAchievements(__int64 a1)
{
_QWORD *v2; // rbx
struct cocos2d::CCAction *(__fastcall *v3)(cocos2d::CCNode *, char); // r8
v2 = operator new(0x288u);
GJDropDownLayer::GJDropDownLayer((__int64)v2);
*v2 = &AchievementsLayer::`vftable';
v2[40] = &AchievementsLayer::`vftable';
v2[41] = &AchievementsLayer::`vftable';
v2[42] = &AchievementsLayer::`vftable';
v2[43] = &AchievementsLayer::`vftable';
v2[44] = &AchievementsLayer::`vftable';
v2[51] = &AchievementsLayer::`vftable';
v2[54] = &AchievementsLayer::`vftable';
*((_DWORD *)v2 + 152) = 0;
v2[77] = 0;
v2[78] = 0;
v2[79] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 80));
if ( GJDropDownLayer::init(v2, (int)"Achievements", 220.0, 0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);
v2 = nullptr;
}
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v2, 100);
v3 = *(struct cocos2d::CCAction *(__fastcall **)(cocos2d::CCNode *, char))(*v2 + 1080LL);
if ( v3 == GJDropDownLayer::showLayer )
return GJDropDownLayer::showLayer((cocos2d::CCNode *)v2, 0);
else
return v3((cocos2d::CCNode *)v2, 0);
}