{"type": "func", "start": 4295440504, "end": 4295440692, "name": "BrowseSmartKeyLayer::getAllSelectedBlocks", "pseudocode": "// \n// BrowseSmartKeyLayer::getAllSelectedBlocks from 0x100073878 to 0x100073934 (188 bytes)\n// \n// 2 xrefs:\n// > BrowseSmartKeyLayer::createTemplateObjects @ 0x100073468\n// > BrowseSmartKeyLayer::addChanceToSelected @ 0x100073774\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 *__fastcall BrowseSmartKeyLayer::getAllSelectedBlocks(BrowseSmartKeyLayer *a1)\n{\n  cocos2d::CCArray *v2; // x20\n  __int64 v3; // x21\n  __int64 v4; // x22\n  __int64 v5; // x23\n  __int64 v6; // x0\n  __int64 v7; // x0\n\n  v2 = (cocos2d::CCArray *)sub_10024A15C(a1);\n  if ( (unsigned int)sub_10024A36C(a1->m_pages) )\n  {\n    v3 = 0;\n    do\n    {\n      v4 = sub_10024A388(a1->m_pages, v3);\n      if ( (unsigned int)sub_10024A36C(v4) )\n      {\n        v5 = 0;\n        do\n        {\n          v6 = sub_10024A388(v4, v5);\n          v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1056LL))(v6);\n          if ( *(_BYTE *)(v7 + 360) == 1 )\n            sub_10024A2D0(v2, v7);\n          v5 = (unsigned int)(v5 + 1);\n        }\n        while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(v4) );\n      }\n      v3 = (unsigned int)(v3 + 1);\n    }\n    while ( (unsigned int)v3 < (unsigned int)sub_10024A36C(a1->m_pages) );\n  }\n  return v2;\n}", "assembly": "; \n; BrowseSmartKeyLayer::getAllSelectedBlocks from 0x100073878 to 0x100073934 (188 bytes)\n; \n; 2 xrefs:\n; > BrowseSmartKeyLayer::createTemplateObjects @ 0x100073468\n; > BrowseSmartKeyLayer::addChanceToSelected @ 0x100073774\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\nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x100073878\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10007387c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100073880\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100073884\nADD             X29, SP, #0x30                                         ; +0x10, 0x100073888\nMOV             X19, X0                                                ; +0x14, 0x10007388c\nBL              sub_10024A15C                                          ; +0x18, 0x100073890\nMOV             X20, X0                                                ; +0x1c, 0x100073894\nLDR             X0, [X19,#0x280]                                       ; +0x20, 0x100073898\nBL              sub_10024A36C                                          ; +0x24, 0x10007389c\nCBZ             W0, loc_10007391C                                      ; +0x28, 0x1000738a0\nMOV             W21, #0                                                ; +0x2c, 0x1000738a4\nLDR             X0, [X19,#0x280]                                       ; +0x30, 0x1000738a8\nMOV             X1, X21                                                ; +0x34, 0x1000738ac\nBL              sub_10024A388                                          ; +0x38, 0x1000738b0\nMOV             X22, X0                                                ; +0x3c, 0x1000738b4\nBL              sub_10024A36C                                          ; +0x40, 0x1000738b8\nCBZ             W0, loc_100073908                                      ; +0x44, 0x1000738bc\nMOV             W23, #0                                                ; +0x48, 0x1000738c0\nMOV             X0, X22                                                ; +0x4c, 0x1000738c4\nMOV             X1, X23                                                ; +0x50, 0x1000738c8\nBL              sub_10024A388                                          ; +0x54, 0x1000738cc\nLDR             X8, [X0]                                               ; +0x58, 0x1000738d0\nLDR             X8, [X8,#0x420]                                        ; +0x5c, 0x1000738d4\nBLR             X8                                                     ; +0x60, 0x1000738d8\nLDRB            W8, [X0,#0x168]                                        ; +0x64, 0x1000738dc\nCMP             W8, #1                                                 ; +0x68, 0x1000738e0\nB.NE            loc_1000738F4                                          ; +0x6c, 0x1000738e4\nMOV             X1, X0                                                 ; +0x70, 0x1000738e8\nMOV             X0, X20                                                ; +0x74, 0x1000738ec\nBL              sub_10024A2D0                                          ; +0x78, 0x1000738f0\nADD             W23, W23, #1                                           ; +0x7c, 0x1000738f4\nMOV             X0, X22                                                ; +0x80, 0x1000738f8\nBL              sub_10024A36C                                          ; +0x84, 0x1000738fc\nCMP             W23, W0                                                ; +0x88, 0x100073900\nB.CC            loc_1000738C4                                          ; +0x8c, 0x100073904\nADD             W21, W21, #1                                           ; +0x90, 0x100073908\nLDR             X0, [X19,#0x280]                                       ; +0x94, 0x10007390c\nBL              sub_10024A36C                                          ; +0x98, 0x100073910\nCMP             W21, W0                                                ; +0x9c, 0x100073914\nB.CC            loc_1000738A8                                          ; +0xa0, 0x100073918\nMOV             X0, X20                                                ; +0xa4, 0x10007391c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa8, 0x100073920\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xac, 0x100073924\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xb0, 0x100073928\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xb4, 0x10007392c\nRET                                                                    ; +0xb8, 0x100073930", "xrefs": ["BrowseSmartKeyLayer::createTemplateObjects @ 0x100073468", "BrowseSmartKeyLayer::addChanceToSelected @ 0x100073774"], "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"}