{"type": "func", "start": 4296764508, "end": 4296764660, "name": "FRequestProfilePage::onToggleAllObjects", "pseudocode": "// \n// FRequestProfilePage::onToggleAllObjects from 0x1001b6c5c to 0x1001b6cf4 (152 bytes)\n// \n// 1 xrefs:\n// > FRequestProfilePage::init @ 0x1001b655c\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::onToggleAllObjects(FRequestProfilePage *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // x0\n  std::string *p_m_key; // x1\n  cocos2d::CCArray *StoredOnlineLevels; // x0\n  cocos2d::CCArray *v6; // x20\n  cocos2d::ccArray *data; // x8\n  __int64 num; // x9\n  unsigned __int64 arr; // x8\n  unsigned __int64 v10; // x9\n\n  a1->m_toggledAll ^= 1u;\n  v3 = 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(v3, (const char *)p_m_key);\n  if ( StoredOnlineLevels )\n  {\n    v6 = StoredOnlineLevels;\n    if ( (unsigned int)sub_10024A36C(StoredOnlineLevels) )\n    {\n      data = v6->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = (unsigned __int64)data->arr;\n        v10 = arr + 8 * num - 8;\n        do\n        {\n          if ( !*(_QWORD *)arr )\n            break;\n          *(_BYTE *)(*(_QWORD *)arr + 689LL) = a1->m_toggledAll;\n          arr += 8LL;\n        }\n        while ( arr <= v10 );\n      }\n      CustomListView::reloadAll((CustomListView *)a1->m_listLayer->m_list);\n    }\n  }\n}", "assembly": "; \n; FRequestProfilePage::onToggleAllObjects from 0x1001b6c5c to 0x1001b6cf4 (152 bytes)\n; \n; 1 xrefs:\n; > FRequestProfilePage::init @ 0x1001b655c\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, 0x1001b6c5c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001b6c60\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001b6c64\nMOV             X19, X0                                                ; +0xc, 0x1001b6c68\nLDRB            W8, [X0,#0x310]                                        ; +0x10, 0x1001b6c6c\nEOR             W8, W8, #1                                             ; +0x14, 0x1001b6c70\nSTRB            W8, [X0,#0x310]                                        ; +0x18, 0x1001b6c74\nBL              GameLevelManager__sharedState                          ; +0x1c, 0x1001b6c78\nADD             X1, X19, #0x2A0                                        ; +0x20, 0x1001b6c7c\nLDRSB           W8, [X19,#0x2B7]                                       ; +0x24, 0x1001b6c80\nTBZ             W8, #0x1F, loc_1001B6C8C                               ; +0x28, 0x1001b6c84\nLDR             X1, [X1]                                               ; +0x2c, 0x1001b6c88\nBL              GameLevelManager__getStoredOnlineLevels                ; +0x30, 0x1001b6c8c\nCBZ             X0, loc_1001B6CE8                                      ; +0x34, 0x1001b6c90\nMOV             X20, X0                                                ; +0x38, 0x1001b6c94\nBL              sub_10024A36C                                          ; +0x3c, 0x1001b6c98\nCBZ             W0, loc_1001B6CE8                                      ; +0x40, 0x1001b6c9c\nLDR             X8, [X20,#0x38]                                        ; +0x44, 0x1001b6ca0\nLDR             W9, [X8]                                               ; +0x48, 0x1001b6ca4\nCBZ             W9, loc_1001B6CD4                                      ; +0x4c, 0x1001b6ca8\nLDR             X8, [X8,#0x10]                                         ; +0x50, 0x1001b6cac\nADD             X9, X8, X9,LSL#3                                       ; +0x54, 0x1001b6cb0\nSUB             X9, X9, #8                                             ; +0x58, 0x1001b6cb4\nLDR             X10, [X8]                                              ; +0x5c, 0x1001b6cb8\nCBZ             X10, loc_1001B6CD4                                     ; +0x60, 0x1001b6cbc\nLDRB            W11, [X19,#0x310]                                      ; +0x64, 0x1001b6cc0\nSTRB            W11, [X10,#0x2B1]                                      ; +0x68, 0x1001b6cc4\nADD             X8, X8, #8                                             ; +0x6c, 0x1001b6cc8\nCMP             X8, X9                                                 ; +0x70, 0x1001b6ccc\nB.LS            loc_1001B6CB8                                          ; +0x74, 0x1001b6cd0\nLDR             X8, [X19,#0x2C8]                                       ; +0x78, 0x1001b6cd4\nLDR             X0, [X8,#0x220]                                        ; +0x7c, 0x1001b6cd8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x80, 0x1001b6cdc\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x84, 0x1001b6ce0\nB               CustomListView__reloadAll                              ; +0x88, 0x1001b6ce4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x8c, 0x1001b6ce8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x90, 0x1001b6cec\nRET                                                                    ; +0x94, 0x1001b6cf0", "xrefs": ["FRequestProfilePage::init @ 0x1001b655c"], "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"}