//
// cocos2d::CCMenuItemToggle::createWithTarget from 0x7dde74 to 0x7ddf00 (140 bytes)
//
// 0 xrefs:
//
// 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::createWithTarget(int a1, int a2, int a3, cocos2d::CCArray *a4)
{
unsigned int v6; // r5
int v7; // r4
cocos2d::CCArray *v8; // r0
cocos2d::CCArray *v9; // r0
cocos2d::CCObject *v10; // r0
v6 = 0;
v7 = operator new(0x134u);
cocos2d::CCMenuItem::CCMenuItem((cocos2d::CCMenuItem *)v7);
*(_DWORD *)(v7 + 300) = 0;
*(_DWORD *)(v7 + 304) = 0;
*(_DWORD *)v7 = &off_D0D000;
*(_DWORD *)(v7 + 264) = &off_D0D230;
v8 = (cocos2d::CCArray *)cocos2d::CCMenuItem::initWithTarget(v7, a1, a2, a3);
v9 = cocos2d::CCArray::create(v8);
*(_DWORD *)(v7 + 304) = v9;
cocos2d::CCObject::retain((int)v9);
while ( v6 < cocos2d::CCArray::count(a4) )
{
v10 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a4, v6++);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v7 + 304), v10);
}
*(_DWORD *)(v7 + 300) = -1;
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v7 + 540))(v7, 0);
return v7;
}