{"type": "func", "start": 12941388, "end": 12941624, "name": "AutoBackupPopup::onSelectAll", "pseudocode": "// \n// AutoBackupPopup::onSelectAll from 0xc5784c to 0xc57938 (236 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x99400\n// > AutoBackupPopup::init @ 0xc5d6b4\n// > <???> @ 0x15442e0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:05:12 +0000\n// \n\nGJSelectionStrip **__fastcall AutoBackupPopup::onSelectAll(GJSelectionStrip **this, cocos2d::CCObject *a2)\n{\n  __int64 v2; // x19\n  unsigned __int64 v3; // x20\n  _BOOL4 v4; // w21\n  __int64 v5; // x1\n  __int64 v6; // x1\n\n  v2 = (__int64)this;\n  if ( *(this + 106) != *(this + 107) )\n  {\n    v3 = 0;\n    v4 = AutoBackupPopup::selectedCount((AutoBackupPopup *)this) == (*(this + 107) - *(this + 106)) >> 7;\n    std::__tree<std::string>::clear((_QWORD *)(v2 + 944));\n    v5 = *(_QWORD *)(v2 + 848);\n    if ( (*(_QWORD *)(v2 + 856) - v5) >> 7 )\n    {\n      do\n      {\n        if ( !v4 )\n          std::__tree<std::string>::__emplace_unique_key_args<std::string,std::string const&>(\n            v2 + 944,\n            v5 + (v3 << 7),\n            (_QWORD *)(v5 + (v3 << 7)));\n        v6 = *(_QWORD *)(v2 + 968);\n        if ( v3 < (*(_QWORD *)(v2 + 976) - v6) >> 3 )\n          CCMenuItemToggler::toggle(*(CCMenuItemToggler **)(v6 + 8 * v3), !v4);\n        v5 = *(_QWORD *)(v2 + 848);\n        ++v3;\n      }\n      while ( v3 < (*(_QWORD *)(v2 + 856) - v5) >> 7 );\n    }\n    return AutoBackupPopup::updateSelectUI((GJSelectionStrip **)v2);\n  }\n  return this;\n}", "assembly": "; \n; AutoBackupPopup::onSelectAll from 0xc5784c to 0xc57938 (236 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x99400\n; > AutoBackupPopup::init @ 0xc5d6b4\n; > <???> @ 0x15442e0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:05:12 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xc5784c\nMOV             X29, SP                                                ; +0x4, 0xc57850\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xc57854\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0xc, 0xc57858\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0xc5785c\nMOV             X19, X0                                                ; +0x14, 0xc57860\nLDR             X2, [X0,#0x350]                                        ; +0x18, 0xc57864\nLDR             X1, [X0,#0x358]                                        ; +0x1c, 0xc57868\nCMP             X2, X1                                                 ; +0x20, 0xc5786c\nB.EQ            loc_C57924                                             ; +0x24, 0xc57870\nBL              _ZN15AutoBackupPopup13selectedCountEv; AutoBackupPopup::selectedCount(void) ; +0x28, 0xc57874\nADD             X22, X19, #0x3B0                                       ; +0x2c, 0xc57878\nLDR             X1, [X19,#0x358]                                       ; +0x30, 0xc5787c\nMOV             X20, #0                                                ; +0x34, 0xc57880\nLDR             X2, [X19,#0x350]                                       ; +0x38, 0xc57884\nSUB             X1, X1, X2                                             ; +0x3c, 0xc57888\nASR             X1, X1, #7                                             ; +0x40, 0xc5788c\nCMP             W0, W1                                                 ; +0x44, 0xc57890\nMOV             X0, X22                                                ; +0x48, 0xc57894\nCSET            W21, EQ                                                ; +0x4c, 0xc57898\nBL              _ZNSt6__ndk16__treeINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIS6_EENS4_IS6_EEE5clearEv; std::__tree<std::string>::clear(void) ; +0x50, 0xc5789c\nEOR             W23, W21, #1                                           ; +0x54, 0xc578a0\nLDR             X1, [X19,#0x350]                                       ; +0x58, 0xc578a4\nLDR             X0, [X19,#0x358]                                       ; +0x5c, 0xc578a8\nSUB             X0, X0, X1                                             ; +0x60, 0xc578ac\nASR             X0, X0, #7                                             ; +0x64, 0xc578b0\nCBZ             X0, loc_C578E8                                         ; +0x68, 0xc578b4\nCBZ             W21, loc_C57910                                        ; +0x6c, 0xc578b8\nLDR             X1, [X19,#0x3C8]                                       ; +0x70, 0xc578bc\nLDR             X0, [X19,#0x3D0]                                       ; +0x74, 0xc578c0\nSUB             X0, X0, X1                                             ; +0x78, 0xc578c4\nCMP             X20, X0,ASR#3                                          ; +0x7c, 0xc578c8\nB.CC            loc_C57900                                             ; +0x80, 0xc578cc\nLDR             X1, [X19,#0x350]                                       ; +0x84, 0xc578d0\nADD             X20, X20, #1                                           ; +0x88, 0xc578d4\nLDR             X0, [X19,#0x358]                                       ; +0x8c, 0xc578d8\nSUB             X0, X0, X1                                             ; +0x90, 0xc578dc\nCMP             X20, X0,ASR#7                                          ; +0x94, 0xc578e0\nB.CC            loc_C578B8                                             ; +0x98, 0xc578e4\nMOV             X0, X19; this                                          ; +0x9c, 0xc578e8\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xa0, 0xc578ec\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xa4, 0xc578f0\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xa8, 0xc578f4\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xac, 0xc578f8\nB               _ZN15AutoBackupPopup14updateSelectUIEv; AutoBackupPopup::updateSelectUI(void) ; +0xb0, 0xc578fc\nLDR             X0, [X1,X20,LSL#3]; this                               ; +0xb4, 0xc57900\nMOV             W1, W23; bool                                          ; +0xb8, 0xc57904\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0xbc, 0xc57908\nB               loc_C578D0                                             ; +0xc0, 0xc5790c\nADD             X1, X1, X20,LSL#7                                      ; +0xc4, 0xc57910\nMOV             X0, X22                                                ; +0xc8, 0xc57914\nMOV             X2, X1                                                 ; +0xcc, 0xc57918\nBL              _ZNSt6__ndk16__treeINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIS6_EENS4_IS6_EEE25__emplace_unique_key_argsIS6_JRKS6_EEENS_4pairINS_15__tree_iteratorIS6_PNS_11__tree_nodeIS6_PvEElEEbEERKT_DpOT0_; std::__tree<std::string>::__emplace_unique_key_args<std::string,std::string const&>(std::string const&,std::string const&) ; +0xd0, 0xc5791c\nB               loc_C578BC                                             ; +0xd4, 0xc57920\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xd8, 0xc57924\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xdc, 0xc57928\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xe0, 0xc5792c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xe4, 0xc57930\nRET                                                                    ; +0xe8, 0xc57934", "xrefs": ["<???> @ 0x99400", "AutoBackupPopup::init @ 0xc5d6b4", "<???> @ 0x15442e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}