{"type": "func", "start": 5503988, "end": 5504186, "name": "BrowseSmartKeyLayer::deletedSelectedItems", "pseudocode": "// \n// BrowseSmartKeyLayer::deletedSelectedItems from 0x53fbf4 to 0x53fcba (198 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartKeyLayer::onButton @ 0x53fd92\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 BrowseSmartKeyLayer::deletedSelectedItems(BrowseSmartKeyLayer *a1)\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  GJSmartTemplate *m_template; // [sp+0h] [bp-14h]\n  int v9; // [sp+4h] [bp-10h]\n  std::string v10; // [sp+8h] [bp-Ch] BYREF\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_pages); ++i )\n  {\n    v3 = 0;\n    v4 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_pages, i);\n    while ( v3 < cocos2d::CCArray::count(v4) )\n    {\n      v5 = cocos2d::CCArray::objectAtIndex(v4, v3);\n      v6 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 528))(v5);\n      if ( *(_BYTE *)(v6 + 276) )\n      {\n        v9 = v6;\n        m_template = a1->m_template;\n        sub_775C20(&v10);\n        v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 32))(v9);\n        GJSmartTemplate::removePrefab((unsigned int)m_template, &v10, v7);\n        sub_774008(&v10);\n        (*(void (__fastcall **)(int))(*(_DWORD *)v5 + 260))(v5);\n        cocos2d::CCArray::removeObjectAtIndex(v4, v3, 1);\n      }\n      else\n      {\n        ++v3;\n      }\n    }\n  }\n  BrowseSmartKeyLayer::updateChanceValues(a1);\n}", "assembly": "; \n; BrowseSmartKeyLayer::deletedSelectedItems from 0x53fbf4 to 0x53fcba (198 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartKeyLayer::onButton @ 0x53fd92\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x53FBFE)                ; +0x0, 0x53fbf4\nPUSH.W          {R4-R11,LR}                                            ; +0x2, 0x53fbf6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x53fbfa\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x53fbfc\nSUB             SP, SP, #0x14                                          ; +0xa, 0x53fbfe\nMOV             R4, R0                                                 ; +0xc, 0x53fc00\nLDR             R2, [R3]                                               ; +0xe, 0x53fc02\nADD             R6, SP, #0x14+var_C                                    ; +0x10, 0x53fc04\nMOVS            R7, #0                                                 ; +0x12, 0x53fc06\nMOV             R11, R3                                                ; +0x14, 0x53fc08\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x16, 0x53fc0a\nLDR.W           R0, [R4,#0x1F4]; this                                  ; +0x18, 0x53fc0c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1c, 0x53fc10\nCMP             R7, R0                                                 ; +0x20, 0x53fc14\nBCS             loc_53FC96                                             ; +0x22, 0x53fc16\nLDR.W           R0, [R4,#0x1F4]; this                                  ; +0x24, 0x53fc18\nMOV             R1, R7; unsigned int                                   ; +0x28, 0x53fc1c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2a, 0x53fc1e\nADD.W           R10, R4, #0x208                                        ; +0x2e, 0x53fc22\nMOVS            R5, #0                                                 ; +0x32, 0x53fc26\nMOV             R8, R0                                                 ; +0x34, 0x53fc28\nMOV             R0, R8; this                                           ; +0x36, 0x53fc2a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x38, 0x53fc2c\nCMP             R5, R0                                                 ; +0x3c, 0x53fc30\nBCS             loc_53FC92                                             ; +0x3e, 0x53fc32\nMOV             R1, R5; unsigned int                                   ; +0x40, 0x53fc34\nMOV             R0, R8; this                                           ; +0x42, 0x53fc36\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x53fc38\nLDR             R3, [R0]                                               ; +0x48, 0x53fc3c\nMOV             R9, R0                                                 ; +0x4a, 0x53fc3e\nLDR.W           R3, [R3,#0x210]                                        ; +0x4c, 0x53fc40\nBLX             R3                                                     ; +0x50, 0x53fc44\nLDRB.W          R2, [R0,#0x114]                                        ; +0x52, 0x53fc46\nCBZ             R2, loc_53FC8E                                         ; +0x56, 0x53fc4a\nLDR.W           R3, [R4,#0x1F0]                                        ; +0x58, 0x53fc4c\nMOV             R1, R10                                                ; +0x5c, 0x53fc50\nSTR             R0, [SP,#0x14+var_10]                                  ; +0x5e, 0x53fc52\nMOV             R0, R6                                                 ; +0x60, 0x53fc54\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x62, 0x53fc56\nBL              sub_775C20                                             ; +0x64, 0x53fc58\nLDR             R3, [SP,#0x14+var_10]                                  ; +0x68, 0x53fc5c\nLDR             R2, [R3]                                               ; +0x6a, 0x53fc5e\nMOV             R0, R3                                                 ; +0x6c, 0x53fc60\nLDR             R2, [R2,#0x20]                                         ; +0x6e, 0x53fc62\nBLX             R2                                                     ; +0x70, 0x53fc64\nMOV             R2, R0                                                 ; +0x72, 0x53fc66\nMOV             R1, R6                                                 ; +0x74, 0x53fc68\nLDR             R0, [SP,#0x14+var_14]                                  ; +0x76, 0x53fc6a\nBL              _ZN15GJSmartTemplate12removePrefabESsi; GJSmartTemplate::removePrefab(std::string,int) ; +0x78, 0x53fc6c\nMOV             R0, R6                                                 ; +0x7c, 0x53fc70\nBL              sub_774008                                             ; +0x7e, 0x53fc72\nLDR.W           R3, [R9]                                               ; +0x82, 0x53fc76\nMOV             R0, R9                                                 ; +0x86, 0x53fc7a\nLDR.W           R3, [R3,#0x104]                                        ; +0x88, 0x53fc7c\nBLX             R3                                                     ; +0x8c, 0x53fc80\nMOV             R0, R8; this                                           ; +0x8e, 0x53fc82\nMOV             R1, R5; unsigned int                                   ; +0x90, 0x53fc84\nMOVS            R2, #1; bool                                           ; +0x92, 0x53fc86\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x94, 0x53fc88\nB               loc_53FC2A                                             ; +0x98, 0x53fc8c\nADDS            R5, #1                                                 ; +0x9a, 0x53fc8e\nB               loc_53FC2A                                             ; +0x9c, 0x53fc90\nADDS            R7, #1                                                 ; +0x9e, 0x53fc92\nB               loc_53FC0C                                             ; +0xa0, 0x53fc94\nMOV             R0, R4; this                                           ; +0xa2, 0x53fc96\nBL              _ZN19BrowseSmartKeyLayer18updateChanceValuesEv; BrowseSmartKeyLayer::updateChanceValues(void) ; +0xa4, 0x53fc98\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xa8, 0x53fc9c\nLDR.W           R3, [R11]                                              ; +0xaa, 0x53fc9e\nCMP             R2, R3                                                 ; +0xae, 0x53fca2\nBEQ             loc_53FCB4                                             ; +0xb0, 0x53fca4\nBLX             __stack_chk_fail                                       ; +0xb2, 0x53fca6\nMOV             R0, R6                                                 ; +0xb6, 0x53fcaa\nBL              sub_774008                                             ; +0xb8, 0x53fcac\nBL              __cxa_end_cleanup                                      ; +0xbc, 0x53fcb0\nADD             SP, SP, #0x14                                          ; +0xc0, 0x53fcb4\nPOP.W           {R4-R11,PC}                                            ; +0xc2, 0x53fcb6", "xrefs": ["BrowseSmartKeyLayer::onButton @ 0x53fd92"], "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"}