{"type": "func", "start": 4296765864, "end": 4296765968, "name": "FRequestProfilePage::untoggleAll", "pseudocode": "// \n// FRequestProfilePage::untoggleAll from 0x1001b71a8 to 0x1001b7210 (104 bytes)\n// \n// 3 xrefs:\n// > FRequestProfilePage::onClose @ 0x1001b69d8\n// > FRequestProfilePage::onSentRequests @ 0x1001b6a98\n// > FRequestProfilePage::loadPage @ 0x1001b6dd0\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 FRequestProfilePage::untoggleAll(FRequestProfilePage *a1)\n{\n  GameLevelManager *v2; // x0\n  std::string *p_m_key; // x1\n  cocos2d::CCArray *StoredOnlineLevels; // x0\n  cocos2d::ccArray *data; // x8\n  __int64 num; // x9\n  unsigned __int64 arr; // x8\n  unsigned __int64 v8; // x9\n\n  v2 = GameLevelManager::sharedState();\n  p_m_key = &a1->m_key;\n  if ( a1->m_key.m_data.m_short.shortStorage.__elems_[22] < 0 )\n    p_m_key = (std::string *)p_m_key->m_data.m_long.capacitym1;\n  StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, (const char *)p_m_key);\n  if ( StoredOnlineLevels )\n  {\n    data = StoredOnlineLevels->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = (unsigned __int64)data->arr;\n      v8 = arr + 8 * num - 8;\n      do\n      {\n        if ( !*(_QWORD *)arr )\n          break;\n        *(_BYTE *)(*(_QWORD *)arr + 689LL) = 0;\n        arr += 8LL;\n      }\n      while ( arr <= v8 );\n    }\n  }\n}", "assembly": "; \n; FRequestProfilePage::untoggleAll from 0x1001b71a8 to 0x1001b7210 (104 bytes)\n; \n; 3 xrefs:\n; > FRequestProfilePage::onClose @ 0x1001b69d8\n; > FRequestProfilePage::onSentRequests @ 0x1001b6a98\n; > FRequestProfilePage::loadPage @ 0x1001b6dd0\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001b71a8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001b71ac\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001b71b0\nMOV             X19, X0                                                ; +0xc, 0x1001b71b4\nBL              GameLevelManager__sharedState                          ; +0x10, 0x1001b71b8\nADD             X1, X19, #0x2A0                                        ; +0x14, 0x1001b71bc\nLDRSB           W8, [X19,#0x2B7]                                       ; +0x18, 0x1001b71c0\nTBZ             W8, #0x1F, loc_1001B71CC                               ; +0x1c, 0x1001b71c4\nLDR             X1, [X1]                                               ; +0x20, 0x1001b71c8\nBL              GameLevelManager__getStoredOnlineLevels                ; +0x24, 0x1001b71cc\nCBZ             X0, loc_1001B7204                                      ; +0x28, 0x1001b71d0\nLDR             X8, [X0,#0x38]                                         ; +0x2c, 0x1001b71d4\nLDR             W9, [X8]                                               ; +0x30, 0x1001b71d8\nCBZ             W9, loc_1001B7204                                      ; +0x34, 0x1001b71dc\nLDR             X8, [X8,#0x10]                                         ; +0x38, 0x1001b71e0\nADD             X9, X8, X9,LSL#3                                       ; +0x3c, 0x1001b71e4\nSUB             X9, X9, #8                                             ; +0x40, 0x1001b71e8\nLDR             X10, [X8]                                              ; +0x44, 0x1001b71ec\nCBZ             X10, loc_1001B7204                                     ; +0x48, 0x1001b71f0\nSTRB            WZR, [X10,#0x2B1]                                      ; +0x4c, 0x1001b71f4\nADD             X8, X8, #8                                             ; +0x50, 0x1001b71f8\nCMP             X8, X9                                                 ; +0x54, 0x1001b71fc\nB.LS            loc_1001B71EC                                          ; +0x58, 0x1001b7200\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x1001b7204\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x1001b7208\nRET                                                                    ; +0x64, 0x1001b720c", "xrefs": ["FRequestProfilePage::onClose @ 0x1001b69d8", "FRequestProfilePage::onSentRequests @ 0x1001b6a98", "FRequestProfilePage::loadPage @ 0x1001b6dd0"], "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"}