//
// MenuLayer::onStats from 0x140474de0 to 0x140474ef5 (277 bytes)
//
// 2 xrefs:
// > MenuLayer::init @ 0x14047278c
// > ??> @ 0x1409282ec
//
// 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=1
struct cocos2d::CCAction *__fastcall MenuLayer::onStats(__int64 a1)
{
cocos2d::CCObject *v2; // rbx
struct cocos2d::CCAction *(__fastcall *v3)(cocos2d::CCNode *, char); // r8
v2 = (cocos2d::CCObject *)operator new(0x260u);
GJDropDownLayer::GJDropDownLayer((__int64)v2);
*(_QWORD *)v2 = &StatsLayer::`vftable';
*((_QWORD *)v2 + 40) = &StatsLayer::`vftable';
*((_QWORD *)v2 + 41) = &StatsLayer::`vftable';
*((_QWORD *)v2 + 42) = &StatsLayer::`vftable';
*((_QWORD *)v2 + 43) = &StatsLayer::`vftable';
*((_QWORD *)v2 + 44) = &StatsLayer::`vftable';
*((_QWORD *)v2 + 51) = &StatsLayer::`vftable';
*((_QWORD *)v2 + 54) = &StatsLayer::`vftable';
if ( GJDropDownLayer::init((__int64 *)v2, (int)"Stats", 220.0, 0) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
v2 = nullptr;
}
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v2, 100);
v3 = *(struct cocos2d::CCAction *(__fastcall **)(cocos2d::CCNode *, char))(*(_QWORD *)v2 + 1080LL);
if ( v3 == GJDropDownLayer::showLayer )
return GJDropDownLayer::showLayer(v2, 0);
else
return v3(v2, 0);
}