{"type": "func", "start": 4295439844, "end": 4295440176, "name": "BrowseSmartKeyLayer::deletedSelectedItems", "pseudocode": "// \n// BrowseSmartKeyLayer::deletedSelectedItems from 0x1000735e4 to 0x100073730 (332 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartKeyLayer::onButton @ 0x1000733f4\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 BrowseSmartKeyLayer::deletedSelectedItems(BrowseSmartKeyLayer *a1)\n{\n  __int64 v2; // x20\n  __int64 v3; // x21\n  __int64 v4; // x22\n  __int64 v5; // x23\n  __int64 v6; // x0\n  __int64 v7; // x25\n  GJSmartTemplate *m_template; // x24\n  int v9; // w0\n  void *__p[2]; // [xsp+0h] [xbp-60h] BYREF\n  char *longStorage; // [xsp+10h] [xbp-50h]\n\n  if ( (unsigned int)sub_10024A36C(a1->m_pages) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = sub_10024A388(a1->m_pages, v2);\n      if ( (unsigned int)sub_10024A36C(v3) )\n      {\n        v4 = 0;\n        do\n        {\n          v5 = sub_10024A388(v3, v4);\n          v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1056LL))(v5);\n          if ( *(_BYTE *)(v6 + 360) == 1 )\n          {\n            v7 = v6;\n            m_template = a1->m_template;\n            if ( a1->m_prefabKey.m_data.m_short.shortStorage.__elems_[22] < 0 )\n            {\n              sub_1000097D0(__p, (void *)a1->m_prefabKey.m_data.m_long.capacitym1, a1->m_prefabKey.m_data.m_long.size);\n            }\n            else\n            {\n              *(_OWORD *)__p = *(_OWORD *)&a1->m_prefabKey.m_data.m_short.sizex2;\n              longStorage = a1->m_prefabKey.m_data.m_long.longStorage;\n            }\n            v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 64LL))(v7);\n            GJSmartTemplate::removePrefab((__int64)m_template, (__int64)__p, v9);\n            if ( SHIBYTE(longStorage) < 0 )\n              operator delete(__p[0]);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 520LL))(v5);\n            sub_10024A44C(v3, v4, 1);\n          }\n          else\n          {\n            v4 = (unsigned int)(v4 + 1);\n          }\n        }\n        while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(v3) );\n      }\n      v2 = (unsigned int)(v2 + 1);\n    }\n    while ( (unsigned int)v2 < (unsigned int)sub_10024A36C(a1->m_pages) );\n  }\n  BrowseSmartKeyLayer::updateChanceValues(a1);\n}", "assembly": "; \n; BrowseSmartKeyLayer::deletedSelectedItems from 0x1000735e4 to 0x100073730 (332 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartKeyLayer::onButton @ 0x1000733f4\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\nSUB             SP, SP, #0x70                                          ; +0x0, 0x1000735e4\nSTP             X26, X25, [SP,#0x60+var_40]                            ; +0x4, 0x1000735e8\nSTP             X24, X23, [SP,#0x60+var_30]                            ; +0x8, 0x1000735ec\nSTP             X22, X21, [SP,#0x60+var_20]                            ; +0xc, 0x1000735f0\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0x10, 0x1000735f4\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x14, 0x1000735f8\nADD             X29, SP, #0x60                                         ; +0x18, 0x1000735fc\nMOV             X19, X0                                                ; +0x1c, 0x100073600\nLDR             X0, [X0,#0x280]                                        ; +0x20, 0x100073604\nBL              sub_10024A36C                                          ; +0x24, 0x100073608\nCBZ             W0, loc_10007370C                                      ; +0x28, 0x10007360c\nMOV             W20, #0                                                ; +0x2c, 0x100073610\nADD             X26, X19, #0x2A8                                       ; +0x30, 0x100073614\nLDR             X0, [X19,#0x280]                                       ; +0x34, 0x100073618\nMOV             X1, X20                                                ; +0x38, 0x10007361c\nBL              sub_10024A388                                          ; +0x3c, 0x100073620\nMOV             X21, X0                                                ; +0x40, 0x100073624\nBL              sub_10024A36C                                          ; +0x44, 0x100073628\nCBZ             W0, loc_1000736F8                                      ; +0x48, 0x10007362c\nMOV             W22, #0                                                ; +0x4c, 0x100073630\nMOV             X0, X21                                                ; +0x50, 0x100073634\nMOV             X1, X22                                                ; +0x54, 0x100073638\nBL              sub_10024A388                                          ; +0x58, 0x10007363c\nMOV             X23, X0                                                ; +0x5c, 0x100073640\nLDR             X8, [X0]                                               ; +0x60, 0x100073644\nLDR             X8, [X8,#0x420]                                        ; +0x64, 0x100073648\nBLR             X8                                                     ; +0x68, 0x10007364c\nLDRB            W8, [X0,#0x168]                                        ; +0x6c, 0x100073650\nCMP             W8, #1                                                 ; +0x70, 0x100073654\nB.NE            loc_100073680                                          ; +0x74, 0x100073658\nMOV             X25, X0                                                ; +0x78, 0x10007365c\nLDR             X24, [X19,#0x278]                                      ; +0x7c, 0x100073660\nLDRSB           W8, [X19,#0x2BF]                                       ; +0x80, 0x100073664\nTBNZ            W8, #0x1F, loc_100073688                               ; +0x84, 0x100073668\nLDR             Q0, [X26]                                              ; +0x88, 0x10007366c\nSTR             Q0, [SP,#0x60+__p]                                     ; +0x8c, 0x100073670\nLDR             X8, [X26,#0x10]                                        ; +0x90, 0x100073674\nSTR             X8, [SP,#0x60+var_50]                                  ; +0x94, 0x100073678\nB               loc_100073698                                          ; +0x98, 0x10007367c\nADD             W22, W22, #1                                           ; +0x9c, 0x100073680\nB               loc_1000736E8                                          ; +0xa0, 0x100073684\nLDR             X1, [X19,#0x2A8]; __src                                ; +0xa4, 0x100073688\nLDR             X2, [X19,#0x2B0]                                       ; +0xa8, 0x10007368c\nMOV             X0, SP; __dst                                          ; +0xac, 0x100073690\nBL              sub_1000097D0                                          ; +0xb0, 0x100073694\nLDR             X8, [X25]                                              ; +0xb4, 0x100073698\nLDR             X8, [X8,#0x40]                                         ; +0xb8, 0x10007369c\nMOV             X0, X25                                                ; +0xbc, 0x1000736a0\nBLR             X8                                                     ; +0xc0, 0x1000736a4\nMOV             X2, X0                                                 ; +0xc4, 0x1000736a8\nMOV             X1, SP                                                 ; +0xc8, 0x1000736ac\nMOV             X0, X24                                                ; +0xcc, 0x1000736b0\nBL              GJSmartTemplate__removePrefab                          ; +0xd0, 0x1000736b4\nLDRSB           W8, [SP,#0x60+var_50+7]                                ; +0xd4, 0x1000736b8\nTBZ             W8, #0x1F, loc_1000736C8                               ; +0xd8, 0x1000736bc\nLDR             X0, [SP,#0x60+__p]; __p                                ; +0xdc, 0x1000736c0\nBL              __ZdlPv; operator delete(void *)                       ; +0xe0, 0x1000736c4\nLDR             X8, [X23]                                              ; +0xe4, 0x1000736c8\nLDR             X8, [X8,#0x208]                                        ; +0xe8, 0x1000736cc\nMOV             X0, X23                                                ; +0xec, 0x1000736d0\nBLR             X8                                                     ; +0xf0, 0x1000736d4\nMOV             X0, X21                                                ; +0xf4, 0x1000736d8\nMOV             X1, X22                                                ; +0xf8, 0x1000736dc\nMOV             W2, #1                                                 ; +0xfc, 0x1000736e0\nBL              sub_10024A44C                                          ; +0x100, 0x1000736e4\nMOV             X0, X21                                                ; +0x104, 0x1000736e8\nBL              sub_10024A36C                                          ; +0x108, 0x1000736ec\nCMP             W22, W0                                                ; +0x10c, 0x1000736f0\nB.CC            loc_100073634                                          ; +0x110, 0x1000736f4\nADD             W20, W20, #1                                           ; +0x114, 0x1000736f8\nLDR             X0, [X19,#0x280]                                       ; +0x118, 0x1000736fc\nBL              sub_10024A36C                                          ; +0x11c, 0x100073700\nCMP             W20, W0                                                ; +0x120, 0x100073704\nB.CC            loc_100073618                                          ; +0x124, 0x100073708\nMOV             X0, X19                                                ; +0x128, 0x10007370c\nBL              BrowseSmartKeyLayer__updateChanceValues                ; +0x12c, 0x100073710\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0x130, 0x100073714\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0x134, 0x100073718\nLDP             X22, X21, [SP,#0x60+var_20]                            ; +0x138, 0x10007371c\nLDP             X24, X23, [SP,#0x60+var_30]                            ; +0x13c, 0x100073720\nLDP             X26, X25, [SP,#0x60+var_40]                            ; +0x140, 0x100073724\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x144, 0x100073728\nRET                                                                    ; +0x148, 0x10007372c", "xrefs": ["BrowseSmartKeyLayer::onButton @ 0x1000733f4"], "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"}