{"type": "func", "start": 12948032, "end": 12948308, "name": "AutoBackupPopup::onToggleRow", "pseudocode": "// \n// AutoBackupPopup::onToggleRow from 0xc59240 to 0xc59354 (276 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xf9880\n// > AutoBackupPopup::buildRows @ 0xc57e68\n// > <???> @ 0x1547958\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:13 +0000\n// \n\n__int64 __fastcall AutoBackupPopup::onToggleRow(AutoBackupPopup *this, cocos2d::CCObject *a2)\n{\n  __int64 result; // x0\n  __int64 v5; // x19\n  _QWORD *v6; // x19\n  _BOOL4 v7; // w22\n  __int64 *v8; // x0\n  __int64 *v9; // x19\n  _QWORD *v10; // x0\n  __int64 *v11; // x0\n\n  result = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( (result & 0x80000000) == 0 )\n  {\n    v5 = *((_QWORD *)this + 106);\n    if ( (int)result < (int)((*((_QWORD *)this + 107) - v5) >> 7) )\n    {\n      v6 = (_QWORD *)(v5 + ((__int64)(int)result << 7));\n      v7 = std::__tree<std::string>::__count_unique<std::string>((__int64)this + 944, (__int64)v6) == 0;\n      if ( v7 )\n      {\n        std::__tree<std::string>::__emplace_unique_key_args<std::string,std::string const&>(\n          (__int64)this + 944,\n          (__int64)v6,\n          v6);\n      }\n      else\n      {\n        v8 = std::__tree<std::string>::find<std::string>((__int64)this + 944, (__int64)v6);\n        v9 = v8;\n        if ( v8 != (__int64 *)((char *)this + 952) )\n        {\n          v10 = std::__tree_next<std::__tree_node_base<void *> *>(v8);\n          if ( v9 == *((__int64 **)this + 118) )\n            *((_QWORD *)this + 118) = v10;\n          v11 = *((__int64 **)this + 119);\n          --*((_QWORD *)this + 120);\n          std::__tree_remove<std::__tree_node_base<void *> *>(v11, v9);\n          std::string::~string((__int64)(v9 + 4));\n          operator delete(v9);\n        }\n      }\n      CCMenuItemToggler::toggle(a2, v7);\n      return (__int64)AutoBackupPopup::updateSelectUI((GJSelectionStrip **)this);\n    }\n  }\n  return result;\n}", "assembly": "; \n; AutoBackupPopup::onToggleRow from 0xc59240 to 0xc59354 (276 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xf9880\n; > AutoBackupPopup::buildRows @ 0xc57e68\n; > <???> @ 0x1547958\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:13 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xc59240\nMOV             X29, SP                                                ; +0x4, 0xc59244\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xc59248\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0xc, 0xc5924c\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0xc59250\nMOV             X21, X1                                                ; +0x14, 0xc59254\nMOV             X20, X0                                                ; +0x18, 0xc59258\nMOV             X0, X1                                                 ; +0x1c, 0xc5925c\nLDR             X1, [X1]                                               ; +0x20, 0xc59260\nLDR             X1, [X1,#0x40]                                         ; +0x24, 0xc59264\nBLR             X1                                                     ; +0x28, 0xc59268\nTBNZ            W0, #0x1F, loc_C59288                                  ; +0x2c, 0xc5926c\nLDR             X19, [X20,#0x350]                                      ; +0x30, 0xc59270\nLDR             X1, [X20,#0x358]                                       ; +0x34, 0xc59274\nSUB             X1, X1, X19                                            ; +0x38, 0xc59278\nASR             X1, X1, #7                                             ; +0x3c, 0xc5927c\nCMP             W0, W1                                                 ; +0x40, 0xc59280\nB.LT            loc_C5929C                                             ; +0x44, 0xc59284\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x48, 0xc59288\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x4c, 0xc5928c\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x50, 0xc59290\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x54, 0xc59294\nRET                                                                    ; +0x58, 0xc59298\nSBFIZ           X0, X0, #7, #0x20 ; ' '                                ; +0x5c, 0xc5929c\nADD             X23, X20, #0x3B0                                       ; +0x60, 0xc592a0\nADD             X19, X19, X0                                           ; +0x64, 0xc592a4\nMOV             X0, X23                                                ; +0x68, 0xc592a8\nMOV             X1, X19                                                ; +0x6c, 0xc592ac\nBL              _ZNKSt6__ndk16__treeINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIS6_EENS4_IS6_EEE14__count_uniqueIS6_EEmRKT_; std::__tree<std::string>::__count_unique<std::string>(std::string const&) ; +0x70, 0xc592b0\nCMP             X0, XZR                                                ; +0x74, 0xc592b4\nCSET            W22, EQ                                                ; +0x78, 0xc592b8\nCBNZ            W22, loc_C59338                                        ; +0x7c, 0xc592bc\nMOV             X1, X19                                                ; +0x80, 0xc592c0\nMOV             X0, X23                                                ; +0x84, 0xc592c4\nBL              _ZNSt6__ndk16__treeINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIS6_EENS4_IS6_EEE4findIS6_EENS_15__tree_iteratorIS6_PNS_11__tree_nodeIS6_PvEElEERKT_; std::__tree<std::string>::find<std::string>(std::string const&) ; +0x88, 0xc592c8\nMOV             X19, X0                                                ; +0x8c, 0xc592cc\nADD             X1, X20, #0x3B8                                        ; +0x90, 0xc592d0\nCMP             X0, X1                                                 ; +0x94, 0xc592d4\nB.EQ            loc_C59314                                             ; +0x98, 0xc592d8\nBL              _ZNSt6__ndk111__tree_nextIPNS_16__tree_node_baseIPvEEEET_S5_; std::__tree_next<std::__tree_node_base<void *> *>(std::__tree_node_base<void *> *) ; +0x9c, 0xc592dc\nLDR             X1, [X20,#0x3B0]                                       ; +0xa0, 0xc592e0\nCMP             X19, X1                                                ; +0xa4, 0xc592e4\nB.EQ            loc_C5934C                                             ; +0xa8, 0xc592e8\nLDR             X2, [X20,#0x3C0]                                       ; +0xac, 0xc592ec\nMOV             X1, X19                                                ; +0xb0, 0xc592f0\nLDR             X0, [X20,#0x3B8]                                       ; +0xb4, 0xc592f4\nSUB             X2, X2, #1                                             ; +0xb8, 0xc592f8\nSTR             X2, [X20,#0x3C0]                                       ; +0xbc, 0xc592fc\nBL              _ZNSt6__ndk113__tree_removeIPNS_16__tree_node_baseIPvEEEEvT_S5_; std::__tree_remove<std::__tree_node_base<void *> *>(std::__tree_node_base<void *> *,std::__tree_node_base<void *> *) ; +0xc0, 0xc59300\nADD             X0, X19, #0x20 ; ' '                                   ; +0xc4, 0xc59304\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xc8, 0xc59308\nMOV             X0, X19; void *                                        ; +0xcc, 0xc5930c\nBL              _ZdlPv; operator delete(void *)                        ; +0xd0, 0xc59310\nMOV             X0, X21; this                                          ; +0xd4, 0xc59314\nMOV             W1, W22; bool                                          ; +0xd8, 0xc59318\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0xdc, 0xc5931c\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xe0, 0xc59320\nMOV             X0, X20; this                                          ; +0xe4, 0xc59324\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xe8, 0xc59328\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xec, 0xc5932c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xf0, 0xc59330\nB               _ZN15AutoBackupPopup14updateSelectUIEv; AutoBackupPopup::updateSelectUI(void) ; +0xf4, 0xc59334\nMOV             X0, X23                                                ; +0xf8, 0xc59338\nMOV             X1, X19                                                ; +0xfc, 0xc5933c\nMOV             X2, X19                                                ; +0x100, 0xc59340\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&) ; +0x104, 0xc59344\nB               loc_C59314                                             ; +0x108, 0xc59348\nSTR             X0, [X20,#0x3B0]                                       ; +0x10c, 0xc5934c\nB               loc_C592EC                                             ; +0x110, 0xc59350", "xrefs": ["<???> @ 0xf9880", "AutoBackupPopup::buildRows @ 0xc57e68", "<???> @ 0x1547958"], "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"}