//
// GJOptionsLayer::getToggleButton from 0x4aaeee to 0x4aaf1a (44 bytes)
//
// 2 xrefs:
// > GameLevelOptionsLayer::didToggle @ 0x4aaf76
// > GameLevelOptionsLayer::didToggle @ 0x4aaf8a
//
// 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
//
CCMenuItemToggler *GJOptionsLayer::getToggleButton(GJOptionsLayer *a1, int a2)
{
CCMenuItemToggler *result; // r0
int v3; // [sp+4h] [bp-8h] BYREF
v3 = a2;
result = (CCMenuItemToggler *)sub_4A9C94(
&a1->m_toggleButtons._M_h._M_buckets,
a2 % a1->m_toggleButtons._M_h._M_bucket_count,
&v3);
if ( result )
{
result = (CCMenuItemToggler *)result->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( result )
return (CCMenuItemToggler *)result->m_nLuaID;
}
return result;
}