//
// SetupTriggerPopup::createToggleButton from 0x541af8 to 0x541ba0 (168 bytes)
//
// 27 xrefs:
// > ColorSelectPopup::init @ 0x3db172
// > ColorSelectPopup::init @ 0x3db23a
// > ColorSelectPopup::init @ 0x3db28e
// > ColorSelectPopup::init @ 0x3db2f2
// > ColorSelectPopup::init @ 0x3db354
// > ColorSelectPopup::init @ 0x3db3bc
// > ColorSelectPopup::init @ 0x3db408
// > SetupCollisionTriggerPopup::init @ 0x4f4e70
// > SetupCollisionTriggerPopup::init @ 0x4f4ec8
// > SetupCollisionTriggerPopup::init @ 0x4f4f34
// > SetupCollisionTriggerPopup::init @ 0x4f4f98
// > SetupCollisionTriggerPopup::init @ 0x4f4fec
// > SetupCountTriggerPopup::init @ 0x4f6822
// > SetupCountTriggerPopup::init @ 0x4f6876
// > SetupInstantCountPopup::init @ 0x4f7f28
// > SetupInstantCountPopup::init @ 0x4f7faa
// > SetupInstantCountPopup::init @ 0x4f8016
// > SetupInstantCountPopup::init @ 0x4f8078
// > SetupTouchTogglePopup::init @ 0x4faa3e
// > SetupTouchTogglePopup::init @ 0x4faac2
// > SetupTouchTogglePopup::init @ 0x4fab26
// > SetupTouchTogglePopup::init @ 0x4fabaa
// > SetupTouchTogglePopup::init @ 0x4fac18
// > SetupTouchTogglePopup::init @ 0x4faccc
// > SetupEndPopup::init @ 0x506292
// > SetupEndPopup::init @ 0x5062f0
// > SetupEndPopup::init @ 0x506340
//
// 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 *__fastcall SetupTriggerPopup::createToggleButton(
int a1,
int a2,
unsigned int a3,
unsigned int a4,
bool a5,
const cocos2d::CCPoint *a6)
{
cocos2d::CCNode *v7; // r10
cocos2d::CCObject *v8; // r11
CCMenuItemToggler *v9; // r5
_BYTE v13[4]; // [sp+38h] [bp-1Ch] BYREF
cocos2d::CCPoint v14; // [sp+3Ch] [bp-18h] BYREF
cocos2d::CCPoint v15; // [sp+44h] [bp-10h] BYREF
sub_775C20(v13);
v7 = *(cocos2d::CCNode **)(a1 + 440);
cocos2d::CCPoint::CCPoint(&v15, a6);
v8 = *(cocos2d::CCObject **)(a1 + 456);
cocos2d::CCPoint::CCPoint(&v14, 8.0, 0.0);
v9 = GameToolbox::createToggleButton(
(int)v13,
a3,
a4,
a5,
v7,
&v15,
(cocos2d::CCObject *)a1,
v8,
0.7,
0.35,
110.0,
(int)&v14,
(int)"bigFont.fnt",
0,
0,
nullptr);
sub_774008(v13);
return v9;
}