//
// SetupTriggerPopup::createToggleButton from 0x14060bfd0 to 0x14060c10a (314 bytes)
//
// 28 xrefs:
// > ColorSelectPopup::init @ 0x140127910
// > ColorSelectPopup::init @ 0x1401279a8
// > ColorSelectPopup::init @ 0x140127a4d
// > ColorSelectPopup::init @ 0x140127ae5
// > ColorSelectPopup::init @ 0x140127b84
// > ColorSelectPopup::init @ 0x140127c46
// > ColorSelectPopup::init @ 0x140127cd7
// > NotificationFilterPopup::init @ 0x1404796bf
// > NotificationFilterPopup::init @ 0x14047974a
// > NotificationFilterPopup::init @ 0x1404797c1
// > NotificationFilterPopup::init @ 0x140479837
// > NotificationFilterPopup::init @ 0x1404798b8
// > NotificationFilterPopup::init @ 0x140479930
// > NotificationFilterPopup::init @ 0x140479a01
// > SetupEndPopup::init @ 0x1405b2647
// > SetupEndPopup::init @ 0x1405b26d4
// > SetupEndPopup::init @ 0x1405b275c
// > SetupInstantCountPopup::init @ 0x1405b8309
// > SetupInstantCountPopup::init @ 0x1405b83bb
// > SetupInstantCountPopup::init @ 0x1405b8463
// > SetupInstantCountPopup::init @ 0x1405b8517
// > SetupTouchTogglePopup::init @ 0x1405fa493
// > SetupTouchTogglePopup::init @ 0x1405fa557
// > SetupTouchTogglePopup::init @ 0x1405fa607
// > SetupTouchTogglePopup::init @ 0x1405fa6dc
// > SetupTouchTogglePopup::init @ 0x1405fa781
// > SetupTouchTogglePopup::init @ 0x1405fa835
// > ??> @ 0x14092fc54
//
// This function is hookable on this platform (idp: pc, 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:35:14 +0000
//
// Hidden C++ exception states: #wind=2
cocos2d::CCMenuItem *__fastcall SetupTriggerPopup::createToggleButton(
__int64 a1,
__int64 a2,
__int64 a3,
unsigned __int8 a4,
const struct cocos2d::CCPoint *a5)
{
const char *v8; // r14
__int64 v9; // rsi
__int64 v10; // rbp
float *v11; // rax
float *v12; // rbx
__int64 v13; // rax
cocos2d::CCMenuItem *ToggleButton; // rbx
_BYTE v17[8]; // [rsp+90h] [rbp-88h] BYREF
_BYTE v18[8]; // [rsp+98h] [rbp-80h] BYREF
_QWORD v19[5]; // [rsp+A0h] [rbp-78h] BYREF
v19[4] = a2;
v8 = (const char *)sub_14003F4F0((__int64)v19, a2);
v9 = *(_QWORD *)(a1 + 584);
v10 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 8.0, 0.0);
v12 = v11;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, a5);
ToggleButton = GameToolbox::createToggleButton(
v8,
a3,
a4,
v10,
v13,
a1,
v9,
0.69999999,
0.34999999,
110.0,
v12,
(const char *)&qword_140704F78,
0,
0,
nullptr);
sub_14003D310(a2);
return ToggleButton;
}