{"type": "func", "start": 5372811008, "end": 5372811186, "name": "LevelBrowserLayer::onExportSelected", "pseudocode": "// \n// LevelBrowserLayer::onExportSelected from 0x1403e9700 to 0x1403e97b2 (178 bytes)\n// \n// 4 xrefs:\n// > LevelBrowserLayer::init @ 0x1403e2e24\n// > <???> @ 0x1408c4f2c\n// > <???> @ 0x1408c4f84\n// > <???> @ 0x14092507c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:44 +0000\n// \n\nvoid __fastcall LevelBrowserLayer::onExportSelected(__int64 a1)\n{\n  cocos2d::CCArray *v2; // rsi\n  __int64 v3; // rax\n  unsigned int *v4; // rbx\n  __int64 v5; // rax\n  struct cocos2d::CCObject **v6; // rbx\n  struct cocos2d::CCObject **i; // rdi\n  struct cocos2d::CCObject *v8; // rdx\n  __int64 v9; // rcx\n  __int64 v10; // rcx\n  unsigned int v11; // eax\n\n  if ( *(_QWORD *)(a1 + 656) )\n  {\n    v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);\n    v3 = *(_QWORD *)(a1 + 656);\n    if ( v3 )\n    {\n      v4 = *(unsigned int **)(v3 + 56);\n      v5 = *v4;\n      if ( (_DWORD)v5 )\n      {\n        v6 = *((struct cocos2d::CCObject ***)v4 + 2);\n        for ( i = &v6[v5 - 1]; v6 <= i; ++v6 )\n        {\n          v8 = *v6;\n          if ( !*v6 )\n            break;\n          if ( *((_BYTE *)v8 + 843) )\n            cocos2d::CCArray::addObject(v2, v8);\n        }\n      }\n    }\n    if ( cocos2d::CCArray::count(v2) )\n    {\n      LocalLevelManager::sharedState(v9);\n      v11 = LocalLevelManager::exportLevelsToFile(v10, v2);\n      LevelBrowserLayer::showExportResult(a1, v11);\n    }\n  }\n}", "assembly": "; \n; LevelBrowserLayer::onExportSelected from 0x1403e9700 to 0x1403e97b2 (178 bytes)\n; \n; 4 xrefs:\n; > LevelBrowserLayer::init @ 0x1403e2e24\n; > <???> @ 0x1408c4f2c\n; > <???> @ 0x1408c4f84\n; > <???> @ 0x14092507c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:44 +0000\n; \npush    rbp                                                            ; +0x0, 0x1403e9700\nsub     rsp, 20h                                                       ; +0x2, 0x1403e9702\ncmp     qword ptr [rcx+290h], 0                                        ; +0x6, 0x1403e9706\nmov     rbp, rcx                                                       ; +0xe, 0x1403e970e\njz      loc_1403E97AC                                                  ; +0x11, 0x1403e9711\nmov     [rsp+28h+arg_8], rsi                                           ; +0x17, 0x1403e9717\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x1c, 0x1403e971c\nmov     rsi, rax                                                       ; +0x22, 0x1403e9722\nmov     rax, [rbp+290h]                                                ; +0x25, 0x1403e9725\ntest    rax, rax                                                       ; +0x2c, 0x1403e972c\njz      short loc_1403E9783                                            ; +0x2f, 0x1403e972f\nmov     [rsp+28h+arg_0], rbx                                           ; +0x31, 0x1403e9731\nmov     rbx, [rax+38h]                                                 ; +0x36, 0x1403e9736\nmov     eax, [rbx]                                                     ; +0x3a, 0x1403e973a\ntest    eax, eax                                                       ; +0x3c, 0x1403e973c\njz      short loc_1403E977E                                            ; +0x3e, 0x1403e973e\nmov     rbx, [rbx+10h]                                                 ; +0x40, 0x1403e9740\nmov     [rsp+28h+arg_10], rdi                                          ; +0x44, 0x1403e9744\nlea     rdi, [rax-1]                                                   ; +0x49, 0x1403e9749\nlea     rdi, [rbx+rdi*8]                                               ; +0x4d, 0x1403e974d\ncmp     rbx, rdi                                                       ; +0x51, 0x1403e9751\nja      short loc_1403E9779                                            ; +0x54, 0x1403e9754\nmov     rdx, [rbx]                                                     ; +0x56, 0x1403e9756\ntest    rdx, rdx                                                       ; +0x59, 0x1403e9759\njz      short loc_1403E9779                                            ; +0x5c, 0x1403e975c\ncmp     byte ptr [rdx+34Bh], 0                                         ; +0x5e, 0x1403e975e\njz      short loc_1403E9770                                            ; +0x65, 0x1403e9765\nmov     rcx, rsi                                                       ; +0x67, 0x1403e9767\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x6a, 0x1403e976a\nadd     rbx, 8                                                         ; +0x70, 0x1403e9770\ncmp     rbx, rdi                                                       ; +0x74, 0x1403e9774\njbe     short loc_1403E9756                                            ; +0x77, 0x1403e9777\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x79, 0x1403e9779\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7e, 0x1403e977e\nmov     rcx, rsi                                                       ; +0x83, 0x1403e9783\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x86, 0x1403e9786\ntest    eax, eax                                                       ; +0x8c, 0x1403e978c\njz      short loc_1403E97A7                                            ; +0x8e, 0x1403e978e\ncall    LocalLevelManager__sharedState                                 ; +0x90, 0x1403e9790\nmov     rdx, rsi                                                       ; +0x95, 0x1403e9795\ncall    LocalLevelManager__exportLevelsToFile                          ; +0x98, 0x1403e9798\nmov     edx, eax                                                       ; +0x9d, 0x1403e979d\nmov     rcx, rbp                                                       ; +0x9f, 0x1403e979f\ncall    LevelBrowserLayer__showExportResult                            ; +0xa2, 0x1403e97a2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa7, 0x1403e97a7\nadd     rsp, 20h                                                       ; +0xac, 0x1403e97ac\npop     rbp                                                            ; +0xb0, 0x1403e97b0\nretn                                                                   ; +0xb1, 0x1403e97b1", "xrefs": ["LevelBrowserLayer::init @ 0x1403e2e24", "<???> @ 0x1408c4f2c", "<???> @ 0x1408c4f84", "<???> @ 0x14092507c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}