//
// cocos2d::CCMenuItemToggle::initWithItem from 0x7ddfdc to 0x7de040 (100 bytes)
//
// 2 xrefs:
// > cocos2d::CCMenuItemToggle::create @ 0x7de070
// > cocos2d::CCMenuItemToggle::create @ 0x7de0b8
//
// 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 12:00:47 +0000
//
int __fastcall cocos2d::CCMenuItemToggle::initWithItem(cocos2d::CCArray **this, cocos2d::CCMenuItem *a2)
{
cocos2d::CCArray *v4; // r0
void (__fastcall *v5)(cocos2d::CCArray **, cocos2d::CCArray *); // r6
cocos2d::CCArray *v6; // r0
v4 = (cocos2d::CCArray *)cocos2d::CCMenuItem::initWithTarget((int)this, 0, 0, 0);
v5 = *((void (__fastcall **)(cocos2d::CCArray **, cocos2d::CCArray *))*this + 137);
v6 = cocos2d::CCArray::create(v4);
v5(this, v6);
if ( a2 )
cocos2d::CCArray::addObject(*(this + 76), a2);
*(this + 75) = (cocos2d::CCArray *)-1;
(*((void (__fastcall **)(cocos2d::CCArray **, _DWORD))*this + 135))(this, 0);
(*((void (__fastcall **)(cocos2d::CCArray **, int))*this + 123))(this, 1);
(*((void (__fastcall **)(cocos2d::CCArray **, int))*this + 117))(this, 1);
return 1;
}