//
// CCMenuItemToggler::create from 0x1002240c4 to 0x100224180 (188 bytes)
//
// 45 xrefs:
// > sub_100048E80 @ 0x1000491a0
// > GameToolbox::createToggleButton @ 0x100049738
// > sub_10005EE2C @ 0x10005eed0
// > sub_100114950 @ 0x100114a00
// > ParentalOptionsLayer::init @ 0x100116b54
// > LevelCell::loadFromLevel @ 0x100127ecc
// > CommentCell::loadFromComment @ 0x10012c6fc
// > GJRequestCell::loadFromScore @ 0x10012f278
// > GJMessageCell::loadFromMessage @ 0x10012f9f0
// > GJThreadCell::loadFromThread @ 0x100130920
// > CharacterColorPage::init @ 0x100152eb8
// > EditorUI::setupCreateMenu @ 0x1001841b8
// > KeybindCapturePopup::init @ 0x1001a4984
// > sub_10020CE28 @ 0x10020cecc
// > sub_100225BC4 @ 0x100225c6c
// > ShareCommentLayer::init @ 0x10026cc5c
// > sub_100314E5C @ 0x100315268
// > sub_100314E5C @ 0x1003154ec
// > sub_10037490C @ 0x1003749b8
// > GJGarageLayer::setupIconSelect @ 0x1003a0820
// > GJGarageLayer::setupIconSelect @ 0x1003a089c
// > GJGarageLayer::setupIconSelect @ 0x1003a0910
// > GJGarageLayer::setupIconSelect @ 0x1003a0984
// > GJGarageLayer::setupIconSelect @ 0x1003a09f8
// > GJGarageLayer::setupIconSelect @ 0x1003a0a6c
// > GJGarageLayer::setupIconSelect @ 0x1003a0ae0
// > GJGarageLayer::setupIconSelect @ 0x1003a0b54
// > GJGarageLayer::setupIconSelect @ 0x1003a0bc8
// > GJGarageLayer::setupIconSelect @ 0x1003a0c3c
// > GJGarageLayer::setupIconSelect @ 0x1003a0cb0
// > sub_10045800C @ 0x1004580ac
// > sub_10045800C @ 0x100458158
// > sub_10045800C @ 0x1004581f4
// > sub_10045800C @ 0x100458290
// > sub_10049E474 @ 0x10049f2e8
// > DeathMarkerSettingsPopup::init @ 0x1004b7444
// > sub_1004B9328 @ 0x1004b94cc
// > sub_1005048D8 @ 0x100505084
// > PlatformerControlsPopup::init @ 0x10051b7d0
// > PlatformerControlsPopup::init @ 0x10051bc10
// > sub_10051FC14 @ 0x10051fcf8
// > TimeSpeedControl::init @ 0x10052ba08
// > sub_10053053C @ 0x100530860
// > sub_1005452FC @ 0x100545530
// > sub_1005467AC @ 0x100546a00
//
// This function is hookable on this platform (idp: arm, 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:01:09 +0000
//
char *__fastcall CCMenuItemToggler::create(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
char *v10; // x19
v10 = (char *)operator new(0x190u);
cocos2d::CCNodeRGBA::CCNodeRGBA();
*((_WORD *)v10 + 169) = 0;
*(_OWORD *)(v10 + 344) = 0u;
*(_OWORD *)(v10 + 360) = 0u;
*(_QWORD *)v10 = &off_1008FDD68;
*((_QWORD *)v10 + 40) = off_1008FE1A8;
*((_QWORD *)v10 + 47) = 0;
*((_QWORD *)v10 + 48) = 0;
*((_WORD *)v10 + 196) = 0;
if ( (unsigned int)CCMenuItemToggler::init(v10, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((__int64)v10);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v10 + 16LL))(v10);
return nullptr;
}
return v10;
}