{"type": "func", "start": 5503456, "end": 5503550, "name": "BrowseSmartKeyLayer::getAllSelectedBlocks", "pseudocode": "// \n// BrowseSmartKeyLayer::getAllSelectedBlocks from 0x53f9e0 to 0x53fa3e (94 bytes)\n// \n// 2 xrefs:\n// > BrowseSmartKeyLayer::createTemplateObjects @ 0x53fa52\n// > BrowseSmartKeyLayer::addChanceToSelected @ 0x53fce0\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\ncocos2d::CCArray *BrowseSmartKeyLayer::getAllSelectedBlocks(BrowseSmartKeyLayer *a1)\n{\n  unsigned int v2; // r4\n  cocos2d::CCArray *v3; // r6\n  unsigned int v4; // r5\n  cocos2d::CCArray *v5; // r8\n  int v6; // r0\n  int v7; // r1\n\n  v2 = 0;\n  v3 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);\n  while ( v2 < cocos2d::CCArray::count(a1->m_pages) )\n  {\n    v4 = 0;\n    v5 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_pages, v2);\n    while ( v4 < cocos2d::CCArray::count(v5) )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(v5, v4);\n      v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 528))(v6);\n      if ( *(_BYTE *)(v7 + 276) )\n        cocos2d::CCArray::addObject(v3, (cocos2d::CCObject *)v7);\n      ++v4;\n    }\n    ++v2;\n  }\n  return v3;\n}", "assembly": "; \n; BrowseSmartKeyLayer::getAllSelectedBlocks from 0x53f9e0 to 0x53fa3e (94 bytes)\n; \n; 2 xrefs:\n; > BrowseSmartKeyLayer::createTemplateObjects @ 0x53fa52\n; > BrowseSmartKeyLayer::addChanceToSelected @ 0x53fce0\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\nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x53f9e0\nMOV             R7, R0                                                 ; +0x4, 0x53f9e4\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x6, 0x53f9e6\nMOVS            R4, #0                                                 ; +0xa, 0x53f9ea\nMOV             R6, R0                                                 ; +0xc, 0x53f9ec\nLDR.W           R0, [R7,#0x1F4]; this                                  ; +0xe, 0x53f9ee\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x12, 0x53f9f2\nCMP             R4, R0                                                 ; +0x16, 0x53f9f6\nBCS             loc_53FA38                                             ; +0x18, 0x53f9f8\nLDR.W           R0, [R7,#0x1F4]; this                                  ; +0x1a, 0x53f9fa\nMOV             R1, R4; unsigned int                                   ; +0x1e, 0x53f9fe\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x20, 0x53fa00\nMOVS            R5, #0                                                 ; +0x24, 0x53fa04\nMOV             R8, R0                                                 ; +0x26, 0x53fa06\nMOV             R0, R8; this                                           ; +0x28, 0x53fa08\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2a, 0x53fa0a\nCMP             R5, R0                                                 ; +0x2e, 0x53fa0e\nBCS             loc_53FA34                                             ; +0x30, 0x53fa10\nMOV             R1, R5; unsigned int                                   ; +0x32, 0x53fa12\nMOV             R0, R8; this                                           ; +0x34, 0x53fa14\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x36, 0x53fa16\nLDR             R3, [R0]                                               ; +0x3a, 0x53fa1a\nLDR.W           R3, [R3,#0x210]                                        ; +0x3c, 0x53fa1c\nBLX             R3                                                     ; +0x40, 0x53fa20\nLDRB.W          R3, [R0,#0x114]                                        ; +0x42, 0x53fa22\nMOV             R1, R0; cocos2d::CCObject *                            ; +0x46, 0x53fa26\nCBZ             R3, loc_53FA30                                         ; +0x48, 0x53fa28\nMOV             R0, R6; this                                           ; +0x4a, 0x53fa2a\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x4c, 0x53fa2c\nADDS            R5, #1                                                 ; +0x50, 0x53fa30\nB               loc_53FA08                                             ; +0x52, 0x53fa32\nADDS            R4, #1                                                 ; +0x54, 0x53fa34\nB               loc_53F9EE                                             ; +0x56, 0x53fa36\nMOV             R0, R6                                                 ; +0x58, 0x53fa38\nPOP.W           {R4-R8,PC}                                             ; +0x5a, 0x53fa3a", "xrefs": ["BrowseSmartKeyLayer::createTemplateObjects @ 0x53fa52", "BrowseSmartKeyLayer::addChanceToSelected @ 0x53fce0"], "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"}