{"type": "func", "start": 6766256, "end": 6766454, "name": "BrowseSmartKeyLayer::deletedSelectedItems", "pseudocode": "// \n// BrowseSmartKeyLayer::deletedSelectedItems from 0x673eb0 to 0x673f76 (198 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartKeyLayer::onButton @ 0x674236\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:55:54 +0000\n// \n\nunsigned int __fastcall BrowseSmartKeyLayer::deletedSelectedItems(cocos2d::CCArray **this)\n{\n  unsigned int i; // r7\n  unsigned int v3; // r5\n  cocos2d::CCArray *v4; // r8\n  int v5; // r9\n  int v6; // r0\n  int v7; // r0\n  cocos2d::CCArray *v9; // [sp+0h] [bp-1Ch]\n  int v10; // [sp+4h] [bp-18h]\n  int v11[3]; // [sp+8h] [bp-14h] BYREF\n\n  for ( i = 0; i < cocos2d::CCArray::count(*(this + 131)); ++i )\n  {\n    v3 = 0;\n    v4 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(*(this + 131), i);\n    while ( v3 < cocos2d::CCArray::count(v4) )\n    {\n      v5 = cocos2d::CCArray::objectAtIndex(v4, v3);\n      v6 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 536))(v5);\n      if ( *(_BYTE *)(v6 + 284) )\n      {\n        v10 = v6;\n        v9 = *(this + 130);\n        std::string::basic_string(v11, (int)(this + 136));\n        v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v10 + 32))(v10);\n        GJSmartTemplate::removePrefab(v9, (int)v11, v7);\n        std::string::~string((int)v11);\n        (*(void (__fastcall **)(int))(*(_DWORD *)v5 + 268))(v5);\n        cocos2d::CCArray::removeObjectAtIndex(v4, v3, 1);\n      }\n      else\n      {\n        ++v3;\n      }\n    }\n  }\n  return BrowseSmartKeyLayer::updateChanceValues((BrowseSmartKeyLayer *)this);\n}", "assembly": "; \n; BrowseSmartKeyLayer::deletedSelectedItems from 0x673eb0 to 0x673f76 (198 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartKeyLayer::onButton @ 0x674236\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:55:54 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x673EBA)                ; +0x0, 0x673eb0\nPUSH.W          {R4-R11,LR}                                            ; +0x2, 0x673eb2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x673eb6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x673eb8\nSUB             SP, SP, #0x1C                                          ; +0xa, 0x673eba\nMOV             R4, R0                                                 ; +0xc, 0x673ebc\nLDR             R2, [R3]                                               ; +0xe, 0x673ebe\nADD             R6, SP, #0x1C+var_14                                   ; +0x10, 0x673ec0\nMOVS            R7, #0                                                 ; +0x12, 0x673ec2\nMOV             R11, R3                                                ; +0x14, 0x673ec4\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x16, 0x673ec6\nLDR.W           R0, [R4,#0x20C]; this                                  ; +0x18, 0x673ec8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1c, 0x673ecc\nCMP             R7, R0                                                 ; +0x20, 0x673ed0\nBCS             loc_673F52                                             ; +0x22, 0x673ed2\nLDR.W           R0, [R4,#0x20C]; this                                  ; +0x24, 0x673ed4\nMOV             R1, R7; unsigned int                                   ; +0x28, 0x673ed8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2a, 0x673eda\nADD.W           R10, R4, #0x220                                        ; +0x2e, 0x673ede\nMOVS            R5, #0                                                 ; +0x32, 0x673ee2\nMOV             R8, R0                                                 ; +0x34, 0x673ee4\nMOV             R0, R8; this                                           ; +0x36, 0x673ee6\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x38, 0x673ee8\nCMP             R5, R0                                                 ; +0x3c, 0x673eec\nBCS             loc_673F4E                                             ; +0x3e, 0x673eee\nMOV             R1, R5; unsigned int                                   ; +0x40, 0x673ef0\nMOV             R0, R8; this                                           ; +0x42, 0x673ef2\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x673ef4\nLDR             R3, [R0]                                               ; +0x48, 0x673ef8\nMOV             R9, R0                                                 ; +0x4a, 0x673efa\nLDR.W           R3, [R3,#0x218]                                        ; +0x4c, 0x673efc\nBLX             R3                                                     ; +0x50, 0x673f00\nLDRB.W          R2, [R0,#0x11C]                                        ; +0x52, 0x673f02\nCBZ             R2, loc_673F4A                                         ; +0x56, 0x673f06\nLDR.W           R3, [R4,#0x208]                                        ; +0x58, 0x673f08\nMOV             R1, R10                                                ; +0x5c, 0x673f0c\nSTR             R0, [SP,#0x1C+var_18]                                  ; +0x5e, 0x673f0e\nMOV             R0, R6                                                 ; +0x60, 0x673f10\nSTR             R3, [SP,#0x1C+var_1C]                                  ; +0x62, 0x673f12\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x64, 0x673f14\nLDR             R3, [SP,#0x1C+var_18]                                  ; +0x68, 0x673f18\nLDR             R2, [R3]                                               ; +0x6a, 0x673f1a\nMOV             R0, R3                                                 ; +0x6c, 0x673f1c\nLDR             R2, [R2,#0x20]                                         ; +0x6e, 0x673f1e\nBLX             R2                                                     ; +0x70, 0x673f20\nMOV             R2, R0                                                 ; +0x72, 0x673f22\nMOV             R1, R6                                                 ; +0x74, 0x673f24\nLDR             R0, [SP,#0x1C+var_1C]                                  ; +0x76, 0x673f26\nBL              _ZN15GJSmartTemplate12removePrefabENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEi; GJSmartTemplate::removePrefab(std::string,int) ; +0x78, 0x673f28\nMOV             R0, R6                                                 ; +0x7c, 0x673f2c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x7e, 0x673f2e\nLDR.W           R3, [R9]                                               ; +0x82, 0x673f32\nMOV             R0, R9                                                 ; +0x86, 0x673f36\nLDR.W           R3, [R3,#0x10C]                                        ; +0x88, 0x673f38\nBLX             R3                                                     ; +0x8c, 0x673f3c\nMOV             R0, R8; this                                           ; +0x8e, 0x673f3e\nMOV             R1, R5; unsigned int                                   ; +0x90, 0x673f40\nMOVS            R2, #1; bool                                           ; +0x92, 0x673f42\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x94, 0x673f44\nB               loc_673EE6                                             ; +0x98, 0x673f48\nADDS            R5, #1                                                 ; +0x9a, 0x673f4a\nB               loc_673EE6                                             ; +0x9c, 0x673f4c\nADDS            R7, #1                                                 ; +0x9e, 0x673f4e\nB               loc_673EC8                                             ; +0xa0, 0x673f50\nMOV             R0, R4; this                                           ; +0xa2, 0x673f52\nBL              _ZN19BrowseSmartKeyLayer18updateChanceValuesEv; BrowseSmartKeyLayer::updateChanceValues(void) ; +0xa4, 0x673f54\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0xa8, 0x673f58\nLDR.W           R3, [R11]                                              ; +0xaa, 0x673f5a\nCMP             R2, R3                                                 ; +0xae, 0x673f5e\nBEQ             loc_673F70                                             ; +0xb0, 0x673f60\nBLX             __stack_chk_fail                                       ; +0xb2, 0x673f62\nMOV             R0, R6                                                 ; +0xb6, 0x673f66\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb8, 0x673f68\nBL              __cxa_end_cleanup                                      ; +0xbc, 0x673f6c\nADD             SP, SP, #0x1C                                          ; +0xc0, 0x673f70\nPOP.W           {R4-R11,PC}                                            ; +0xc2, 0x673f72", "xrefs": ["BrowseSmartKeyLayer::onButton @ 0x674236"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}