//
// GJOptionsLayer::addGVToggle from 0x1002d34c8 to 0x1002d3578 (176 bytes)
//
// 23 xrefs:
// > EditorOptionsLayer::setupOptions @ 0x1002d40bc
// > EditorOptionsLayer::setupOptions @ 0x1002d40dc
// > EditorOptionsLayer::setupOptions @ 0x1002d40fc
// > EditorOptionsLayer::setupOptions @ 0x1002d411c
// > EditorOptionsLayer::setupOptions @ 0x1002d413c
// > EditorOptionsLayer::setupOptions @ 0x1002d415c
// > EditorOptionsLayer::setupOptions @ 0x1002d417c
// > EditorOptionsLayer::setupOptions @ 0x1002d419c
// > EditorOptionsLayer::setupOptions @ 0x1002d41bc
// > EditorOptionsLayer::setupOptions @ 0x1002d41dc
// > EditorOptionsLayer::setupOptions @ 0x1002d421c
// > EditorOptionsLayer::setupOptions @ 0x1002d423c
// > EditorOptionsLayer::setupOptions @ 0x1002d425c
// > EditorOptionsLayer::setupOptions @ 0x1002d427c
// > EditorOptionsLayer::setupOptions @ 0x1002d429c
// > EditorOptionsLayer::setupOptions @ 0x1002d42bc
// > EditorOptionsLayer::setupOptions @ 0x1002d42dc
// > EditorOptionsLayer::setupOptions @ 0x1002d42fc
// > EditorOptionsLayer::setupOptions @ 0x1002d431c
// > EditorOptionsLayer::setupOptions @ 0x1002d433c
// > EditorOptionsLayer::setupOptions @ 0x1002d435c
// > EditorOptionsLayer::setupOptions @ 0x1002d437c
// > EditorOptionsLayer::setupOptions @ 0x1002d439c
//
// 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
//
void __fastcall GJOptionsLayer::addGVToggle(GJOptionsLayer *a1, const char *a2, const char *a3, const char *a4)
{
int v8; // w20
GameManager *v9; // x0
bool GameVariable; // w0
cocos2d::CCDictionary *m_variables; // x21
cocos2d::CCObject *v12; // x0
void *__p[2]; // [xsp+8h] [xbp-48h] BYREF
char v14; // [xsp+1Fh] [xbp-31h]
v8 = atoi(a3);
v9 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v9, a3);
GJOptionsLayer::addToggleInternal(a1, a2, v8, GameVariable, a4);
m_variables = a1->m_variables;
sub_100009900(__p, (char *)a3);
v12 = sub_100268E48((__int128 *)__p);
cocos2d::CCDictionary::setObject(m_variables, v12, v8);
if ( v14 < 0 )
operator delete(__p[0]);
}