//
// GJOptionsLayer::addGVToggle from 0x5e1894 to 0x5e1922 (142 bytes)
//
// 26 xrefs:
// > EditorOptionsLayer::setupOptions @ 0x5e197c
// > EditorOptionsLayer::setupOptions @ 0x5e198e
// > EditorOptionsLayer::setupOptions @ 0x5e19a0
// > EditorOptionsLayer::setupOptions @ 0x5e19b2
// > EditorOptionsLayer::setupOptions @ 0x5e19c4
// > EditorOptionsLayer::setupOptions @ 0x5e19d6
// > EditorOptionsLayer::setupOptions @ 0x5e19e8
// > EditorOptionsLayer::setupOptions @ 0x5e19fa
// > EditorOptionsLayer::setupOptions @ 0x5e1a0c
// > EditorOptionsLayer::setupOptions @ 0x5e1a1e
// > EditorOptionsLayer::setupOptions @ 0x5e1a36
// > EditorOptionsLayer::setupOptions @ 0x5e1a48
// > EditorOptionsLayer::setupOptions @ 0x5e1a5a
// > EditorOptionsLayer::setupOptions @ 0x5e1a6c
// > EditorOptionsLayer::setupOptions @ 0x5e1a7e
// > EditorOptionsLayer::setupOptions @ 0x5e1a90
// > EditorOptionsLayer::setupOptions @ 0x5e1aa2
// > EditorOptionsLayer::setupOptions @ 0x5e1ab4
// > EditorOptionsLayer::setupOptions @ 0x5e1ac6
// > EditorOptionsLayer::setupOptions @ 0x5e1ad8
// > EditorOptionsLayer::setupOptions @ 0x5e1aea
// > EditorOptionsLayer::setupOptions @ 0x5e1afc
// > EditorOptionsLayer::setupOptions @ 0x5e1b0e
// > EditorOptionsLayer::setupOptions @ 0x5e1b20
// > SFXSettingsPopup::setupOptions @ 0x6c3788
// > FindObjectOptionsLayer::setupOptions @ 0x77afd0
//
// 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 11:54:16 +0000
//
cocos2d::CCNodeRGBA *__fastcall GJOptionsLayer::addGVToggle(
cocos2d::CCDictionary **this,
const char *a2,
char *a3,
const char *a4)
{
GameManager *v8; // r7
GameManager *v9; // r0
int GameVariable; // r0
cocos2d::CCNodeRGBA *v11; // r0
cocos2d::CCDictionary *v12; // r9
cocos2d::CCNodeRGBA *v13; // r8
size_t v14; // r0
cocos2d::CCObject *v15; // r0
int v17[3]; // [sp+8h] [bp-14h] BYREF
v8 = (GameManager *)atoi(a3);
v9 = (GameManager *)GameManager::sharedState(v8);
GameVariable = GameManager::getGameVariable(v9, a3);
v11 = GJOptionsLayer::addToggleInternal((GJOptionsLayer *)this, a2, (int)v8, GameVariable, a4);
memset(v17, 0, sizeof(v17));
v12 = *(this + 186);
v13 = v11;
v14 = strlen(a3);
std::string::__init(v17, a3, v14);
v15 = (cocos2d::CCObject *)cocos2d::CCString::create(v17);
cocos2d::CCDictionary::setObject(v12, v15, (int)v8);
std::string::~string((int)v17);
return v13;
}