{"type": "func", "start": 5372363136, "end": 5372363256, "name": "ParentalOptionsLayer::onToggle", "pseudocode": "// \n// ParentalOptionsLayer::onToggle from 0x14037c180 to 0x14037c1f8 (120 bytes)\n// \n// 3 xrefs:\n// > ParentalOptionsLayer::addToggle @ 0x14037bcda\n// > <???> @ 0x1406d5d14\n// > <???> @ 0x1406d5d20\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\n// Hidden C++ exception states: #wind=1\nvoid ParentalOptionsLayer::onToggle(ParentalOptionsLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // eax\n  cocos2d::CCString *v4; // rbx\n  const char *CString; // rax\n  GameManager *v6; // rcx\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  v3 = a2->getTag(a2);\n  v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a1->m_variables, v3);\n  if ( v4 )\n  {\n    if ( !qword_1406C2ED8 )\n    {\n      v7 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    }\n    CString = cocos2d::CCString::getCString(v4);\n    GameManager::toggleGameVariable(v6, CString);\n  }\n}", "assembly": "; \n; ParentalOptionsLayer::onToggle from 0x14037c180 to 0x14037c1f8 (120 bytes)\n; \n; 3 xrefs:\n; > ParentalOptionsLayer::addToggle @ 0x14037bcda\n; > <???> @ 0x1406d5d14\n; > <???> @ 0x1406d5d20\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\npush    rbx                                                            ; +0x0, 0x14037c180\nsub     rsp, 20h                                                       ; +0x2, 0x14037c182\nmov     rbx, rcx                                                       ; +0x6, 0x14037c186\nmov     rax, [rdx]                                                     ; +0x9, 0x14037c189\nmov     rcx, rdx                                                       ; +0xc, 0x14037c18c\ncall    qword ptr [rax+38h]                                            ; +0xf, 0x14037c18f\nmovsxd  rdx, eax                                                       ; +0x12, 0x14037c192\nmov     rcx, [rbx+290h]                                                ; +0x15, 0x14037c195\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x1c, 0x14037c19c\nmov     rbx, rax                                                       ; +0x22, 0x14037c1a2\ntest    rax, rax                                                       ; +0x25, 0x14037c1a5\njz      short loc_14037C1F2                                            ; +0x28, 0x14037c1a8\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x2a, 0x14037c1aa\njnz     short loc_14037C1DC                                            ; +0x32, 0x14037c1b2\nmov     ecx, 668h; Size                                                ; +0x34, 0x14037c1b4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x39, 0x14037c1b9\nmov     [rsp+28h+arg_0], rax                                           ; +0x3e, 0x14037c1be\nmov     rcx, rax                                                       ; +0x43, 0x14037c1c3\ncall    sub_14017AB00                                                  ; +0x46, 0x14037c1c6\nnop                                                                    ; +0x4b, 0x14037c1cb\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4c, 0x14037c1cc\nmov     rdx, [rax]                                                     ; +0x53, 0x14037c1d3\nmov     rcx, rax                                                       ; +0x56, 0x14037c1d6\ncall    qword ptr [rdx+48h]                                            ; +0x59, 0x14037c1d9\nmov     rcx, rbx                                                       ; +0x5c, 0x14037c1dc\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x5f, 0x14037c1df\nmov     rdx, rax                                                       ; +0x65, 0x14037c1e5\nadd     rsp, 20h                                                       ; +0x68, 0x14037c1e8\npop     rbx                                                            ; +0x6c, 0x14037c1ec\njmp     GameManager__toggleGameVariable                                ; +0x6d, 0x14037c1ed\nadd     rsp, 20h                                                       ; +0x72, 0x14037c1f2\npop     rbx                                                            ; +0x76, 0x14037c1f6\nretn                                                                   ; +0x77, 0x14037c1f7", "xrefs": ["ParentalOptionsLayer::addToggle @ 0x14037bcda", "<???> @ 0x1406d5d14", "<???> @ 0x1406d5d20"], "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"}