{"type": "func", "start": 4302900288, "end": 4302900459, "name": "FRequestProfilePage::onToggleAllObjects", "pseudocode": "// \n// FRequestProfilePage::onToggleAllObjects from 0x100790c40 to 0x100790ceb (171 bytes)\n// \n// 1 xrefs:\n// > FRequestProfilePage::init @ 0x1007903e4\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 *v2; // rax\n  cocos2d::CCArray *StoredOnlineLevels; // rax\n  cocos2d::CCArray *v4; // r14\n  cocos2d::ccArray *data; // rax\n  __int64 num; // rcx\n  unsigned __int64 arr; // rax\n  unsigned __int64 v8; // rcx\n\n  a1->m_toggledAll ^= 1u;\n  v2 = GameLevelManager::sharedState();\n  if ( (a1->m_key.m_data.m_short.sizex2 & 1) != 0 )\n  {\n    StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, a1->m_key.m_data.m_long.longStorage);\n    if ( !StoredOnlineLevels )\n      return;\n  }\n  else\n  {\n    StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, a1->m_key.m_data.m_short.shortStorage.__elems_);\n    if ( !StoredOnlineLevels )\n      return;\n  }\n  v4 = StoredOnlineLevels;\n  if ( (unsigned int)sub_100720070((__int64)StoredOnlineLevels) )\n  {\n    data = v4->data;\n    num = data->num;\n    if ( data->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) = a1->m_toggledAll;\n        arr += 8LL;\n      }\n      while ( arr <= v8 );\n    }\n    CustomListView::reloadAll((CustomListView *)a1->m_listLayer->m_list);\n  }\n}", "assembly": "; \n; FRequestProfilePage::onToggleAllObjects from 0x100790c40 to 0x100790ceb (171 bytes)\n; \n; 1 xrefs:\n; > FRequestProfilePage::init @ 0x1007903e4\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    rbp                                                            ; +0x0, 0x100790c40\nmov     rbp, rsp                                                       ; +0x1, 0x100790c41\npush    r14                                                            ; +0x4, 0x100790c44\npush    rbx                                                            ; +0x6, 0x100790c46\nmov     rbx, rdi                                                       ; +0x7, 0x100790c47\nxor     byte ptr [rdi+310h], 1                                         ; +0xa, 0x100790c4a\ncall    GameLevelManager__sharedState                                  ; +0x11, 0x100790c51\ntest    byte ptr [rbx+2A0h], 1                                         ; +0x16, 0x100790c56\njnz     short loc_100790C75                                            ; +0x1d, 0x100790c5d\nlea     rsi, [rbx+2A1h]                                                ; +0x1f, 0x100790c5f\nmov     rdi, rax                                                       ; +0x26, 0x100790c66\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x29, 0x100790c69\ntest    rax, rax                                                       ; +0x2e, 0x100790c6e\njnz     short loc_100790C89                                            ; +0x31, 0x100790c71\njmp     short loc_100790CE6                                            ; +0x33, 0x100790c73\nmov     rsi, [rbx+2B0h]                                                ; +0x35, 0x100790c75\nmov     rdi, rax                                                       ; +0x3c, 0x100790c7c\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x3f, 0x100790c7f\ntest    rax, rax                                                       ; +0x44, 0x100790c84\njz      short loc_100790CE6                                            ; +0x47, 0x100790c87\nmov     r14, rax                                                       ; +0x49, 0x100790c89\nmov     rdi, rax                                                       ; +0x4c, 0x100790c8c\ncall    sub_100720070                                                  ; +0x4f, 0x100790c8f\ntest    eax, eax                                                       ; +0x54, 0x100790c94\njz      short loc_100790CE6                                            ; +0x56, 0x100790c96\nmov     rax, [r14+38h]                                                 ; +0x58, 0x100790c98\nmov     ecx, [rax]                                                     ; +0x5c, 0x100790c9c\ntest    rcx, rcx                                                       ; +0x5e, 0x100790c9e\njz      short loc_100790CCF                                            ; +0x61, 0x100790ca1\nmov     rax, [rax+10h]                                                 ; +0x63, 0x100790ca3\nlea     rcx, [rax+rcx*8]                                               ; +0x67, 0x100790ca7\nadd     rcx, 0FFFFFFFFFFFFFFF8h                                        ; +0x6b, 0x100790cab\nnop                                                                    ; +0x6f, 0x100790caf\nmov     rdx, [rax]                                                     ; +0x70, 0x100790cb0\ntest    rdx, rdx                                                       ; +0x73, 0x100790cb3\njz      short loc_100790CCF                                            ; +0x76, 0x100790cb6\nmovzx   esi, byte ptr [rbx+310h]                                       ; +0x78, 0x100790cb8\nmov     [rdx+2B1h], sil                                                ; +0x7f, 0x100790cbf\nadd     rax, 8                                                         ; +0x86, 0x100790cc6\ncmp     rax, rcx                                                       ; +0x8a, 0x100790cca\njbe     short loc_100790CB0                                            ; +0x8d, 0x100790ccd\nmov     rax, [rbx+2C8h]                                                ; +0x8f, 0x100790ccf\nmov     rdi, [rax+220h]                                                ; +0x96, 0x100790cd6\npop     rbx                                                            ; +0x9d, 0x100790cdd\npop     r14                                                            ; +0x9e, 0x100790cde\npop     rbp                                                            ; +0xa0, 0x100790ce0\njmp     CustomListView__reloadAll                                      ; +0xa1, 0x100790ce1\npop     rbx                                                            ; +0xa6, 0x100790ce6\npop     r14                                                            ; +0xa7, 0x100790ce7\npop     rbp                                                            ; +0xa9, 0x100790ce9\nretn                                                                   ; +0xaa, 0x100790cea", "xrefs": ["FRequestProfilePage::init @ 0x1007903e4"], "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"}