{"type": "func", "start": 4300127408, "end": 4300127615, "name": "BrowseSmartKeyLayer::getAllSelectedBlocks", "pseudocode": "// \n// BrowseSmartKeyLayer::getAllSelectedBlocks from 0x1004ebcb0 to 0x1004ebd7f (207 bytes)\n// \n// 2 xrefs:\n// > BrowseSmartKeyLayer::createTemplateObjects @ 0x1004eb7b4\n// > BrowseSmartKeyLayer::addChanceToSelected @ 0x1004ebaea\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  __int64 v1; // rsi\n  cocos2d::CCArray *v2; // r14\n  unsigned int v3; // r15d\n  __int64 v4; // r12\n  unsigned int v5; // r13d\n  __int64 v6; // rax\n  __int64 v7; // rax\n\n  v2 = (cocos2d::CCArray *)sub_10071F9E0(a1, v1);\n  if ( (unsigned int)sub_100720070(a1->m_pages) )\n  {\n    v3 = 0;\n    do\n    {\n      v4 = sub_1007200C0(a1->m_pages, v3);\n      if ( (unsigned int)sub_100720070(v4) )\n      {\n        v5 = 0;\n        do\n        {\n          v6 = sub_1007200C0(v4, v5);\n          v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1056LL))(v6);\n          if ( *(_BYTE *)(v7 + 360) == 1 )\n            sub_10071FCD0(v2, v7);\n          ++v5;\n        }\n        while ( v5 < (unsigned int)sub_100720070(v4) );\n      }\n      ++v3;\n    }\n    while ( v3 < (unsigned int)sub_100720070(a1->m_pages) );\n  }\n  return v2;\n}", "assembly": "; \n; BrowseSmartKeyLayer::getAllSelectedBlocks from 0x1004ebcb0 to 0x1004ebd7f (207 bytes)\n; \n; 2 xrefs:\n; > BrowseSmartKeyLayer::createTemplateObjects @ 0x1004eb7b4\n; > BrowseSmartKeyLayer::addChanceToSelected @ 0x1004ebaea\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    rbp                                                            ; +0x0, 0x1004ebcb0\nmov     rbp, rsp                                                       ; +0x1, 0x1004ebcb1\npush    r15                                                            ; +0x4, 0x1004ebcb4\npush    r14                                                            ; +0x6, 0x1004ebcb6\npush    r13                                                            ; +0x8, 0x1004ebcb8\npush    r12                                                            ; +0xa, 0x1004ebcba\npush    rbx                                                            ; +0xc, 0x1004ebcbc\npush    rax                                                            ; +0xd, 0x1004ebcbd\nmov     rbx, rdi                                                       ; +0xe, 0x1004ebcbe\ncall    sub_10071F9E0                                                  ; +0x11, 0x1004ebcc1\nmov     r14, rax                                                       ; +0x16, 0x1004ebcc6\nmov     rdi, [rbx+280h]                                                ; +0x19, 0x1004ebcc9\ncall    sub_100720070                                                  ; +0x20, 0x1004ebcd0\ntest    eax, eax                                                       ; +0x25, 0x1004ebcd5\njz      loc_1004EBD6D                                                  ; +0x27, 0x1004ebcd7\nxor     r15d, r15d                                                     ; +0x2d, 0x1004ebcdd\njmp     short loc_1004EBD04                                            ; +0x30, 0x1004ebce0\nalign 10h                                                              ; +0x32, 0x1004ebce2\ninc     r15d                                                           ; +0x40, 0x1004ebcf0\nmov     rdi, [rbx+280h]                                                ; +0x43, 0x1004ebcf3\ncall    sub_100720070                                                  ; +0x4a, 0x1004ebcfa\ncmp     r15d, eax                                                      ; +0x4f, 0x1004ebcff\njnb     short loc_1004EBD6D                                            ; +0x52, 0x1004ebd02\nmov     rdi, [rbx+280h]                                                ; +0x54, 0x1004ebd04\nmov     esi, r15d                                                      ; +0x5b, 0x1004ebd0b\ncall    sub_1007200C0                                                  ; +0x5e, 0x1004ebd0e\nmov     r12, rax                                                       ; +0x63, 0x1004ebd13\nmov     rdi, rax                                                       ; +0x66, 0x1004ebd16\ncall    sub_100720070                                                  ; +0x69, 0x1004ebd19\ntest    eax, eax                                                       ; +0x6e, 0x1004ebd1e\njz      short loc_1004EBCF0                                            ; +0x70, 0x1004ebd20\nxor     r13d, r13d                                                     ; +0x72, 0x1004ebd22\njmp     short loc_1004EBD40                                            ; +0x75, 0x1004ebd25\nalign 10h                                                              ; +0x77, 0x1004ebd27\ninc     r13d                                                           ; +0x80, 0x1004ebd30\nmov     rdi, r12                                                       ; +0x83, 0x1004ebd33\ncall    sub_100720070                                                  ; +0x86, 0x1004ebd36\ncmp     r13d, eax                                                      ; +0x8b, 0x1004ebd3b\njnb     short loc_1004EBCF0                                            ; +0x8e, 0x1004ebd3e\nmov     rdi, r12                                                       ; +0x90, 0x1004ebd40\nmov     esi, r13d                                                      ; +0x93, 0x1004ebd43\ncall    sub_1007200C0                                                  ; +0x96, 0x1004ebd46\nmov     rcx, [rax]                                                     ; +0x9b, 0x1004ebd4b\nmov     rdi, rax                                                       ; +0x9e, 0x1004ebd4e\ncall    qword ptr [rcx+420h]                                           ; +0xa1, 0x1004ebd51\ncmp     byte ptr [rax+168h], 1                                         ; +0xa7, 0x1004ebd57\njnz     short loc_1004EBD30                                            ; +0xae, 0x1004ebd5e\nmov     rdi, r14                                                       ; +0xb0, 0x1004ebd60\nmov     rsi, rax                                                       ; +0xb3, 0x1004ebd63\ncall    sub_10071FCD0                                                  ; +0xb6, 0x1004ebd66\njmp     short loc_1004EBD30                                            ; +0xbb, 0x1004ebd6b\nmov     rax, r14                                                       ; +0xbd, 0x1004ebd6d\nadd     rsp, 8                                                         ; +0xc0, 0x1004ebd70\npop     rbx                                                            ; +0xc4, 0x1004ebd74\npop     r12                                                            ; +0xc5, 0x1004ebd75\npop     r13                                                            ; +0xc7, 0x1004ebd77\npop     r14                                                            ; +0xc9, 0x1004ebd79\npop     r15                                                            ; +0xcb, 0x1004ebd7b\npop     rbp                                                            ; +0xcd, 0x1004ebd7d\nretn                                                                   ; +0xce, 0x1004ebd7e", "xrefs": ["BrowseSmartKeyLayer::createTemplateObjects @ 0x1004eb7b4", "BrowseSmartKeyLayer::addChanceToSelected @ 0x1004ebaea"], "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"}