{"type": "func", "start": 5374942192, "end": 5374942621, "name": "BrowseSmartKeyLayer::deletedSelectedItems", "pseudocode": "// \n// BrowseSmartKeyLayer::deletedSelectedItems from 0x1405f1bf0 to 0x1405f1d9d (429 bytes)\n// \n// 2 xrefs:\n// > BrowseSmartKeyLayer::onButton @ 0x1405f1a85\n// > <???> @ 0x14092f2a0\n// \n// This function is hookable on this platform (idp: pc, 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 11:35:06 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall BrowseSmartKeyLayer::deletedSelectedItems(__int64 a1)\n{\n  unsigned int v2; // ebx\n  cocos2d::CCArray *v3; // r15\n  unsigned int v4; // esi\n  struct cocos2d::CCObject *v5; // r14\n  _BYTE *v6; // rbx\n  __int64 v7; // r12\n  int v8; // ebp\n  cocos2d::CCArray *v9; // rax\n  cocos2d::CCArray *v10; // rdi\n  unsigned int v11; // ebx\n  _BYTE v13[88]; // [rsp+20h] [rbp-58h] BYREF\n  unsigned int i; // [rsp+80h] [rbp+8h]\n\n  v2 = 0;\n  for ( i = 0; v2 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672)); i = v2 )\n  {\n    v3 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 672), v2);\n    v4 = 0;\n    if ( cocos2d::CCArray::count(v3) )\n    {\n      do\n      {\n        v5 = cocos2d::CCArray::objectAtIndex(v3, v4);\n        v6 = (_BYTE *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v5 + 952LL))(v5);\n        if ( v6[368] )\n        {\n          v7 = sub_14003F4F0((__int64)v13, a1 + 712);\n          v8 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)v6 + 56LL))(v6);\n          if ( v8 > 0 )\n          {\n            v9 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(_QWORD *)(*(_QWORD *)(a1 + 664) + 56LL), v7);\n            v10 = v9;\n            if ( v9 )\n            {\n              if ( cocos2d::CCArray::count(v9) )\n              {\n                v11 = 0;\n                if ( cocos2d::CCArray::count(v10) )\n                {\n                  while ( *((_DWORD *)cocos2d::CCArray::objectAtIndex(v10, v11) + 30) != v8 )\n                  {\n                    if ( ++v11 >= cocos2d::CCArray::count(v10) )\n                      goto LABEL_12;\n                  }\n                  cocos2d::CCArray::removeObjectAtIndex(v10, v11, 1);\n                }\n              }\n            }\n          }\nLABEL_12:\n          sub_14003D310(v7);\n          (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v5 + 528LL))(v5);\n          cocos2d::CCArray::removeObjectAtIndex(v3, v4, 1);\n        }\n        else\n        {\n          ++v4;\n        }\n      }\n      while ( v4 < cocos2d::CCArray::count(v3) );\n      v2 = i;\n    }\n    ++v2;\n  }\n  return BrowseSmartKeyLayer::updateChanceValues(a1);\n}", "assembly": "; \n; BrowseSmartKeyLayer::deletedSelectedItems from 0x1405f1bf0 to 0x1405f1d9d (429 bytes)\n; \n; 2 xrefs:\n; > BrowseSmartKeyLayer::onButton @ 0x1405f1a85\n; > <???> @ 0x14092f2a0\n; \n; This function is hookable on this platform (idp: pc, 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 11:35:06 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x1405f1bf0\npush    rbp                                                            ; +0x5, 0x1405f1bf5\npush    rsi                                                            ; +0x6, 0x1405f1bf6\npush    rdi                                                            ; +0x7, 0x1405f1bf7\npush    r12                                                            ; +0x8, 0x1405f1bf8\npush    r13                                                            ; +0xa, 0x1405f1bfa\npush    r14                                                            ; +0xc, 0x1405f1bfc\npush    r15                                                            ; +0xe, 0x1405f1bfe\nsub     rsp, 40h                                                       ; +0x10, 0x1405f1c00\nmov     r13, rcx                                                       ; +0x14, 0x1405f1c04\nxor     ebx, ebx                                                       ; +0x17, 0x1405f1c07\nmov     [rsp+78h+arg_0], ebx                                           ; +0x19, 0x1405f1c09\nmov     rcx, [rcx+2A0h]                                                ; +0x20, 0x1405f1c10\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x27, 0x1405f1c17\ntest    eax, eax                                                       ; +0x2d, 0x1405f1c1d\njz      loc_1405F1D7E                                                  ; +0x2f, 0x1405f1c1f\nnop     word ptr [rax+rax+00000000h]                                   ; +0x35, 0x1405f1c25\nmov     edx, ebx                                                       ; +0x40, 0x1405f1c30\nmov     rcx, [r13+2A0h]                                                ; +0x42, 0x1405f1c32\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x1405f1c39\nmov     r15, rax                                                       ; +0x4f, 0x1405f1c3f\nxor     esi, esi                                                       ; +0x52, 0x1405f1c42\nmov     rcx, rax                                                       ; +0x54, 0x1405f1c44\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x57, 0x1405f1c47\ntest    eax, eax                                                       ; +0x5d, 0x1405f1c4d\njz      loc_1405F1D60                                                  ; +0x5f, 0x1405f1c4f\nmov     edx, esi                                                       ; +0x65, 0x1405f1c55\nmov     rcx, r15                                                       ; +0x67, 0x1405f1c57\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x6a, 0x1405f1c5a\nmov     r14, rax                                                       ; +0x70, 0x1405f1c60\nmov     rcx, [rax]                                                     ; +0x73, 0x1405f1c63\nmov     rdx, [rcx+3B8h]                                                ; +0x76, 0x1405f1c66\nmov     rcx, rax                                                       ; +0x7d, 0x1405f1c6d\ncall    rdx                                                            ; +0x80, 0x1405f1c70\nmov     rbx, rax                                                       ; +0x82, 0x1405f1c72\ncmp     byte ptr [rax+170h], 0                                         ; +0x85, 0x1405f1c75\njz      loc_1405F1D46                                                  ; +0x8c, 0x1405f1c7c\nlea     rax, [rsp+78h+var_58]                                          ; +0x92, 0x1405f1c82\nmov     [rsp+78h+arg_8], rax                                           ; +0x97, 0x1405f1c87\nlea     rdx, [r13+2C8h]                                                ; +0x9f, 0x1405f1c8f\nlea     rcx, [rsp+78h+var_58]                                          ; +0xa6, 0x1405f1c96\ncall    sub_14003F4F0                                                  ; +0xab, 0x1405f1c9b\nmov     r12, rax                                                       ; +0xb0, 0x1405f1ca0\nmov     [rsp+78h+arg_10], rax                                          ; +0xb3, 0x1405f1ca3\nmov     rcx, [rbx]                                                     ; +0xbb, 0x1405f1cab\nmov     rdx, [rcx+38h]                                                 ; +0xbe, 0x1405f1cae\nmov     rcx, rbx                                                       ; +0xc2, 0x1405f1cb2\ncall    rdx                                                            ; +0xc5, 0x1405f1cb5\nmov     ebp, eax                                                       ; +0xc7, 0x1405f1cb7\nmov     rcx, [r13+298h]                                                ; +0xc9, 0x1405f1cb9\ntest    eax, eax                                                       ; +0xd0, 0x1405f1cc0\njle     short loc_1405F1D22                                            ; +0xd2, 0x1405f1cc2\nmov     rdx, r12                                                       ; +0xd4, 0x1405f1cc4\nmov     rcx, [rcx+38h]                                                 ; +0xd7, 0x1405f1cc7\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0xdb, 0x1405f1ccb\nmov     rdi, rax                                                       ; +0xe1, 0x1405f1cd1\ntest    rax, rax                                                       ; +0xe4, 0x1405f1cd4\njz      short loc_1405F1D22                                            ; +0xe7, 0x1405f1cd7\nmov     rcx, rax                                                       ; +0xe9, 0x1405f1cd9\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xec, 0x1405f1cdc\ntest    eax, eax                                                       ; +0xf2, 0x1405f1ce2\njz      short loc_1405F1D22                                            ; +0xf4, 0x1405f1ce4\nxor     ebx, ebx                                                       ; +0xf6, 0x1405f1ce6\nmov     rcx, rdi                                                       ; +0xf8, 0x1405f1ce8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xfb, 0x1405f1ceb\ntest    eax, eax                                                       ; +0x101, 0x1405f1cf1\njz      short loc_1405F1D22                                            ; +0x103, 0x1405f1cf3\nmov     edx, ebx                                                       ; +0x105, 0x1405f1cf5\nmov     rcx, rdi                                                       ; +0x107, 0x1405f1cf7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x10a, 0x1405f1cfa\nmov     rcx, rdi                                                       ; +0x110, 0x1405f1d00\ncmp     [rax+78h], ebp                                                 ; +0x113, 0x1405f1d03\njz      short loc_1405F1D16                                            ; +0x116, 0x1405f1d06\ninc     ebx                                                            ; +0x118, 0x1405f1d08\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x11a, 0x1405f1d0a\ncmp     ebx, eax                                                       ; +0x120, 0x1405f1d10\njb      short loc_1405F1CF5                                            ; +0x122, 0x1405f1d12\njmp     short loc_1405F1D22                                            ; +0x124, 0x1405f1d14\nmov     r8b, 1                                                         ; +0x126, 0x1405f1d16\nmov     edx, ebx                                                       ; +0x129, 0x1405f1d19\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x12b, 0x1405f1d1b\nnop                                                                    ; +0x131, 0x1405f1d21\nmov     rcx, r12                                                       ; +0x132, 0x1405f1d22\ncall    sub_14003D310                                                  ; +0x135, 0x1405f1d25\nmov     rax, [r14]                                                     ; +0x13a, 0x1405f1d2a\nmov     rcx, r14                                                       ; +0x13d, 0x1405f1d2d\ncall    qword ptr [rax+210h]                                           ; +0x140, 0x1405f1d30\nmov     r8b, 1                                                         ; +0x146, 0x1405f1d36\nmov     edx, esi                                                       ; +0x149, 0x1405f1d39\nmov     rcx, r15                                                       ; +0x14b, 0x1405f1d3b\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x14e, 0x1405f1d3e\njmp     short loc_1405F1D48                                            ; +0x154, 0x1405f1d44\ninc     esi                                                            ; +0x156, 0x1405f1d46\nmov     rcx, r15                                                       ; +0x158, 0x1405f1d48\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x15b, 0x1405f1d4b\ncmp     esi, eax                                                       ; +0x161, 0x1405f1d51\njb      loc_1405F1C55                                                  ; +0x163, 0x1405f1d53\nmov     ebx, [rsp+78h+arg_0]                                           ; +0x169, 0x1405f1d59\ninc     ebx                                                            ; +0x170, 0x1405f1d60\nmov     [rsp+78h+arg_0], ebx                                           ; +0x172, 0x1405f1d62\nmov     rcx, [r13+2A0h]                                                ; +0x179, 0x1405f1d69\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x180, 0x1405f1d70\ncmp     ebx, eax                                                       ; +0x186, 0x1405f1d76\njb      loc_1405F1C30                                                  ; +0x188, 0x1405f1d78\nmov     rcx, r13                                                       ; +0x18e, 0x1405f1d7e\nmov     rbx, [rsp+78h+arg_18]                                          ; +0x191, 0x1405f1d81\nadd     rsp, 40h                                                       ; +0x199, 0x1405f1d89\npop     r15                                                            ; +0x19d, 0x1405f1d8d\npop     r14                                                            ; +0x19f, 0x1405f1d8f\npop     r13                                                            ; +0x1a1, 0x1405f1d91\npop     r12                                                            ; +0x1a3, 0x1405f1d93\npop     rdi                                                            ; +0x1a5, 0x1405f1d95\npop     rsi                                                            ; +0x1a6, 0x1405f1d96\npop     rbp                                                            ; +0x1a7, 0x1405f1d97\njmp     BrowseSmartKeyLayer__updateChanceValues                        ; +0x1a8, 0x1405f1d98", "xrefs": ["BrowseSmartKeyLayer::onButton @ 0x1405f1a85", "<???> @ 0x14092f2a0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}