{"type": "func", "start": 4988722, "end": 4988818, "name": "FRequestProfilePage::onToggleAllObjects", "pseudocode": "// \n// FRequestProfilePage::onToggleAllObjects from 0x4c1f32 to 0x4c1f92 (96 bytes)\n// \n// 0 xrefs:\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 FRequestProfilePage::onToggleAllObjects(FRequestProfilePage *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // r0\n  cocos2d::CCArray *StoredOnlineLevels; // r0\n  cocos2d::CCArray *v5; // r5\n  cocos2d::ccArray *data; // r2\n  int v7; // r3\n  cocos2d::CCObject **arr; // r2\n  cocos2d::CCObject **v9; // r3\n  int v10; // r1\n  int v11; // t1\n\n  a1->m_toggledAll ^= 1u;\n  v3 = GameLevelManager::sharedState();\n  StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v3, (const char *)a1->m_key.m_data.m_data);\n  v5 = StoredOnlineLevels;\n  if ( StoredOnlineLevels && cocos2d::CCArray::count(StoredOnlineLevels) )\n  {\n    data = v5->data;\n    if ( data->num )\n    {\n      v7 = data->num + 0x40000000;\n      arr = data->arr;\n      v9 = &arr[v7 - 1];\n      while ( arr <= v9 )\n      {\n        v11 = (int)*arr++;\n        v10 = v11;\n        if ( !v11 )\n          break;\n        *(_BYTE *)(v10 + 453) = a1->m_toggledAll;\n      }\n    }\n    CustomListView::reloadAll((CustomListView *)a1->m_listLayer->m_list);\n  }\n}", "assembly": "; \n; FRequestProfilePage::onToggleAllObjects from 0x4c1f32 to 0x4c1f92 (96 bytes)\n; \n; 0 xrefs:\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            {R3-R5,LR}                                             ; +0x0, 0x4c1f32\nMOV             R4, R0                                                 ; +0x2, 0x4c1f34\nLDRB.W          R3, [R0,#0x23C]                                        ; +0x4, 0x4c1f36\nEOR.W           R3, R3, #1                                             ; +0x8, 0x4c1f3a\nSTRB.W          R3, [R0,#0x23C]                                        ; +0xc, 0x4c1f3e\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x10, 0x4c1f42\nLDR.W           R1, [R4,#0x204]; char *                                ; +0x14, 0x4c1f46\nBL              _ZN16GameLevelManager21getStoredOnlineLevelsEPKc; GameLevelManager::getStoredOnlineLevels(char const*) ; +0x18, 0x4c1f4a\nMOV             R5, R0                                                 ; +0x1c, 0x4c1f4e\nCBZ             R0, locret_4C1F90                                      ; +0x1e, 0x4c1f50\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x20, 0x4c1f52\nCBZ             R0, locret_4C1F90                                      ; +0x24, 0x4c1f56\nLDR             R2, [R5,#0x34]                                         ; +0x26, 0x4c1f58\nLDR             R3, [R2]                                               ; +0x28, 0x4c1f5a\nCBNZ            R3, loc_4C1F6E                                         ; +0x2a, 0x4c1f5c\nLDR.W           R3, [R4,#0x210]                                        ; +0x2c, 0x4c1f5e\nLDR.W           R0, [R3,#0x1B8]; this                                  ; +0x30, 0x4c1f62\nPOP.W           {R3-R5,LR}                                             ; +0x34, 0x4c1f66\nB.W             _ZN14CustomListView9reloadAllEv; CustomListView::reloadAll(void) ; +0x38, 0x4c1f6a\nADD.W           R3, R3, #0x40000000                                    ; +0x3c, 0x4c1f6e\nLDR             R2, [R2,#0xC]                                          ; +0x40, 0x4c1f72\nSUBS            R3, #1                                                 ; +0x42, 0x4c1f74\nADD.W           R3, R2, R3,LSL#2                                       ; +0x44, 0x4c1f76\nCMP             R2, R3                                                 ; +0x48, 0x4c1f7a\nBHI             loc_4C1F5E                                             ; +0x4a, 0x4c1f7c\nLDR.W           R1, [R2],#4                                            ; +0x4c, 0x4c1f7e\nCMP             R1, #0                                                 ; +0x50, 0x4c1f82\nBEQ             loc_4C1F5E                                             ; +0x52, 0x4c1f84\nLDRB.W          R0, [R4,#0x23C]                                        ; +0x54, 0x4c1f86\nSTRB.W          R0, [R1,#0x1C5]                                        ; +0x58, 0x4c1f8a\nB               loc_4C1F7A                                             ; +0x5c, 0x4c1f8e\nPOP             {R3-R5,PC}                                             ; +0x5e, 0x4c1f90", "xrefs": [], "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"}