{"type": "func", "start": 4297929928, "end": 4297930104, "name": "GJOptionsLayer::addGVToggle", "pseudocode": "// \n// GJOptionsLayer::addGVToggle from 0x1002d34c8 to 0x1002d3578 (176 bytes)\n// \n// 23 xrefs:\n// > EditorOptionsLayer::setupOptions @ 0x1002d40bc\n// > EditorOptionsLayer::setupOptions @ 0x1002d40dc\n// > EditorOptionsLayer::setupOptions @ 0x1002d40fc\n// > EditorOptionsLayer::setupOptions @ 0x1002d411c\n// > EditorOptionsLayer::setupOptions @ 0x1002d413c\n// > EditorOptionsLayer::setupOptions @ 0x1002d415c\n// > EditorOptionsLayer::setupOptions @ 0x1002d417c\n// > EditorOptionsLayer::setupOptions @ 0x1002d419c\n// > EditorOptionsLayer::setupOptions @ 0x1002d41bc\n// > EditorOptionsLayer::setupOptions @ 0x1002d41dc\n// > EditorOptionsLayer::setupOptions @ 0x1002d421c\n// > EditorOptionsLayer::setupOptions @ 0x1002d423c\n// > EditorOptionsLayer::setupOptions @ 0x1002d425c\n// > EditorOptionsLayer::setupOptions @ 0x1002d427c\n// > EditorOptionsLayer::setupOptions @ 0x1002d429c\n// > EditorOptionsLayer::setupOptions @ 0x1002d42bc\n// > EditorOptionsLayer::setupOptions @ 0x1002d42dc\n// > EditorOptionsLayer::setupOptions @ 0x1002d42fc\n// > EditorOptionsLayer::setupOptions @ 0x1002d431c\n// > EditorOptionsLayer::setupOptions @ 0x1002d433c\n// > EditorOptionsLayer::setupOptions @ 0x1002d435c\n// > EditorOptionsLayer::setupOptions @ 0x1002d437c\n// > EditorOptionsLayer::setupOptions @ 0x1002d439c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJOptionsLayer::addGVToggle(GJOptionsLayer *a1, const char *a2, const char *a3, const char *a4)\n{\n  int v8; // w20\n  GameManager *v9; // x0\n  bool GameVariable; // w0\n  cocos2d::CCDictionary *m_variables; // x21\n  cocos2d::CCObject *v12; // x0\n  void *__p[2]; // [xsp+8h] [xbp-48h] BYREF\n  char v14; // [xsp+1Fh] [xbp-31h]\n\n  v8 = atoi(a3);\n  v9 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v9, a3);\n  GJOptionsLayer::addToggleInternal(a1, a2, v8, GameVariable, a4);\n  m_variables = a1->m_variables;\n  sub_100009900(__p, (char *)a3);\n  v12 = sub_100268E48((__int128 *)__p);\n  cocos2d::CCDictionary::setObject(m_variables, v12, v8);\n  if ( v14 < 0 )\n    operator delete(__p[0]);\n}", "assembly": "; \n; GJOptionsLayer::addGVToggle from 0x1002d34c8 to 0x1002d3578 (176 bytes)\n; \n; 23 xrefs:\n; > EditorOptionsLayer::setupOptions @ 0x1002d40bc\n; > EditorOptionsLayer::setupOptions @ 0x1002d40dc\n; > EditorOptionsLayer::setupOptions @ 0x1002d40fc\n; > EditorOptionsLayer::setupOptions @ 0x1002d411c\n; > EditorOptionsLayer::setupOptions @ 0x1002d413c\n; > EditorOptionsLayer::setupOptions @ 0x1002d415c\n; > EditorOptionsLayer::setupOptions @ 0x1002d417c\n; > EditorOptionsLayer::setupOptions @ 0x1002d419c\n; > EditorOptionsLayer::setupOptions @ 0x1002d41bc\n; > EditorOptionsLayer::setupOptions @ 0x1002d41dc\n; > EditorOptionsLayer::setupOptions @ 0x1002d421c\n; > EditorOptionsLayer::setupOptions @ 0x1002d423c\n; > EditorOptionsLayer::setupOptions @ 0x1002d425c\n; > EditorOptionsLayer::setupOptions @ 0x1002d427c\n; > EditorOptionsLayer::setupOptions @ 0x1002d429c\n; > EditorOptionsLayer::setupOptions @ 0x1002d42bc\n; > EditorOptionsLayer::setupOptions @ 0x1002d42dc\n; > EditorOptionsLayer::setupOptions @ 0x1002d42fc\n; > EditorOptionsLayer::setupOptions @ 0x1002d431c\n; > EditorOptionsLayer::setupOptions @ 0x1002d433c\n; > EditorOptionsLayer::setupOptions @ 0x1002d435c\n; > EditorOptionsLayer::setupOptions @ 0x1002d437c\n; > EditorOptionsLayer::setupOptions @ 0x1002d439c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x60                                          ; +0x0, 0x1002d34c8\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x4, 0x1002d34cc\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x1002d34d0\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x1002d34d4\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x1002d34d8\nADD             X29, SP, #0x50                                         ; +0x14, 0x1002d34dc\nMOV             X19, X3                                                ; +0x18, 0x1002d34e0\nMOV             X22, X2                                                ; +0x1c, 0x1002d34e4\nMOV             X21, X1                                                ; +0x20, 0x1002d34e8\nMOV             X23, X0                                                ; +0x24, 0x1002d34ec\nMOV             X0, X2; char *                                         ; +0x28, 0x1002d34f0\nBL              _atoi                                                  ; +0x2c, 0x1002d34f4\nMOV             X20, X0                                                ; +0x30, 0x1002d34f8\nBL              GameManager__sharedState                               ; +0x34, 0x1002d34fc\nMOV             X1, X22                                                ; +0x38, 0x1002d3500\nBL              GameManager__getGameVariable                           ; +0x3c, 0x1002d3504\nMOV             X3, X0                                                 ; +0x40, 0x1002d3508\nMOV             X0, X23                                                ; +0x44, 0x1002d350c\nMOV             X1, X21                                                ; +0x48, 0x1002d3510\nMOV             X2, X20                                                ; +0x4c, 0x1002d3514\nMOV             X4, X19                                                ; +0x50, 0x1002d3518\nBL              GJOptionsLayer__addToggleInternal                      ; +0x54, 0x1002d351c\nMOV             X19, X0                                                ; +0x58, 0x1002d3520\nLDR             X21, [X23,#0x3D0]                                      ; +0x5c, 0x1002d3524\nADD             X0, SP, #0x50+__p; int                                 ; +0x60, 0x1002d3528\nMOV             X1, X22; __s                                           ; +0x64, 0x1002d352c\nBL              sub_100009900                                          ; +0x68, 0x1002d3530\nADD             X0, SP, #0x50+__p                                      ; +0x6c, 0x1002d3534\nBL              sub_100268E48                                          ; +0x70, 0x1002d3538\nMOV             X1, X0                                                 ; +0x74, 0x1002d353c\nSXTW            X2, W20                                                ; +0x78, 0x1002d3540\nMOV             X0, X21                                                ; +0x7c, 0x1002d3544\nBL              cocos2d__CCDictionary__setObject                       ; +0x80, 0x1002d3548\nLDRSB           W8, [SP,#0x50+var_31]                                  ; +0x84, 0x1002d354c\nTBZ             W8, #0x1F, loc_1002D355C                               ; +0x88, 0x1002d3550\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x8c, 0x1002d3554\nBL              __ZdlPv; operator delete(void *)                       ; +0x90, 0x1002d3558\nMOV             X0, X19                                                ; +0x94, 0x1002d355c\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x98, 0x1002d3560\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x9c, 0x1002d3564\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0xa0, 0x1002d3568\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0xa4, 0x1002d356c\nADD             SP, SP, #0x60 ; '`'                                    ; +0xa8, 0x1002d3570\nRET                                                                    ; +0xac, 0x1002d3574", "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"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}