{"type": "func", "start": 5373280880, "end": 5373281085, "name": "BrowseSmartKeyLayer::getAllSelectedBlocks", "pseudocode": "// \n// BrowseSmartKeyLayer::getAllSelectedBlocks from 0x14045c270 to 0x14045c33d (205 bytes)\n// \n// 6 xrefs:\n// > BrowseSmartKeyLayer::onButton @ 0x14045be9b\n// > BrowseSmartKeyLayer::onButton @ 0x14045bf2c\n// > BrowseSmartKeyLayer::onButton @ 0x14045c137\n// > <???> @ 0x1406a3d70\n// > <???> @ 0x1406a3d80\n// > <???> @ 0x1406dabec\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; // ebp\n  cocos2d::CCArray *i; // rsi\n  cocos2d::CCArray *v4; // rdi\n  unsigned int j; // ebx\n  struct cocos2d::CCObject *v6; // rax\n  __int64 v7; // rax\n\n  v2 = 0;\n  for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v2 < cocos2d::CCArray::count(a1->m_pages); ++v2 )\n  {\n    v4 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_pages, v2);\n    for ( j = 0; j < cocos2d::CCArray::count(v4); ++j )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(v4, j);\n      v7 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v6->__vftable[13].copyWithZone)(v6);\n      if ( *(_BYTE *)(v7 + 368) )\n        cocos2d::CCArray::addObject(i, (struct cocos2d::CCObject *)v7);\n    }\n  }\n  return i;\n}", "assembly": "; \n; BrowseSmartKeyLayer::getAllSelectedBlocks from 0x14045c270 to 0x14045c33d (205 bytes)\n; \n; 6 xrefs:\n; > BrowseSmartKeyLayer::onButton @ 0x14045be9b\n; > BrowseSmartKeyLayer::onButton @ 0x14045bf2c\n; > BrowseSmartKeyLayer::onButton @ 0x14045c137\n; > <???> @ 0x1406a3d70\n; > <???> @ 0x1406a3d80\n; > <???> @ 0x1406dabec\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\nmov     [rsp+arg_10], rbp                                              ; +0x0, 0x14045c270\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x14045c275\npush    r14                                                            ; +0xa, 0x14045c27a\nsub     rsp, 20h                                                       ; +0xc, 0x14045c27c\nmov     r14, rcx                                                       ; +0x10, 0x14045c280\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x13, 0x14045c283\nmov     rcx, [r14+280h]                                                ; +0x19, 0x14045c289\nxor     ebp, ebp                                                       ; +0x20, 0x14045c290\nmov     rsi, rax                                                       ; +0x22, 0x14045c292\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x25, 0x14045c295\ntest    eax, eax                                                       ; +0x2b, 0x14045c29b\njz      loc_14045C329                                                  ; +0x2d, 0x14045c29d\nmov     [rsp+28h+arg_0], rbx                                           ; +0x33, 0x14045c2a3\nmov     [rsp+28h+arg_8], rdi                                           ; +0x38, 0x14045c2a8\nnop     dword ptr [rax]                                                ; +0x3d, 0x14045c2ad\nmov     rcx, [r14+280h]                                                ; +0x40, 0x14045c2b0\nmov     edx, ebp                                                       ; +0x47, 0x14045c2b7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x14045c2b9\nmov     rcx, rax                                                       ; +0x4f, 0x14045c2bf\nmov     rdi, rax                                                       ; +0x52, 0x14045c2c2\nxor     ebx, ebx                                                       ; +0x55, 0x14045c2c5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x57, 0x14045c2c7\ntest    eax, eax                                                       ; +0x5d, 0x14045c2cd\njz      short loc_14045C30C                                            ; +0x5f, 0x14045c2cf\nmov     edx, ebx                                                       ; +0x61, 0x14045c2d1\nmov     rcx, rdi                                                       ; +0x63, 0x14045c2d3\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x66, 0x14045c2d6\nmov     rcx, rax                                                       ; +0x6c, 0x14045c2dc\nmov     rdx, [rax]                                                     ; +0x6f, 0x14045c2df\ncall    qword ptr [rdx+3A8h]                                           ; +0x72, 0x14045c2e2\ncmp     byte ptr [rax+170h], 0                                         ; +0x78, 0x14045c2e8\njz      short loc_14045C2FD                                            ; +0x7f, 0x14045c2ef\nmov     rdx, rax                                                       ; +0x81, 0x14045c2f1\nmov     rcx, rsi                                                       ; +0x84, 0x14045c2f4\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x87, 0x14045c2f7\nmov     rcx, rdi                                                       ; +0x8d, 0x14045c2fd\ninc     ebx                                                            ; +0x90, 0x14045c300\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x92, 0x14045c302\ncmp     ebx, eax                                                       ; +0x98, 0x14045c308\njb      short loc_14045C2D1                                            ; +0x9a, 0x14045c30a\nmov     rcx, [r14+280h]                                                ; +0x9c, 0x14045c30c\ninc     ebp                                                            ; +0xa3, 0x14045c313\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa5, 0x14045c315\ncmp     ebp, eax                                                       ; +0xab, 0x14045c31b\njb      short loc_14045C2B0                                            ; +0xad, 0x14045c31d\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xaf, 0x14045c31f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb4, 0x14045c324\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xb9, 0x14045c329\nmov     rax, rsi                                                       ; +0xbe, 0x14045c32e\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xc1, 0x14045c331\nadd     rsp, 20h                                                       ; +0xc6, 0x14045c336\npop     r14                                                            ; +0xca, 0x14045c33a\nretn                                                                   ; +0xcc, 0x14045c33c", "xrefs": ["BrowseSmartKeyLayer::onButton @ 0x14045be9b", "BrowseSmartKeyLayer::onButton @ 0x14045bf2c", "BrowseSmartKeyLayer::onButton @ 0x14045c137", "<???> @ 0x1406a3d70", "<???> @ 0x1406a3d80", "<???> @ 0x1406dabec"], "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"}