{"type": "func", "start": 5370348720, "end": 5370348889, "name": "EditorSoundBrowserLayer::loadEditorSoundsFailed", "pseudocode": "// \n// EditorSoundBrowserLayer::loadEditorSoundsFailed from 0x1401904b0 to 0x140190559 (169 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14074c230\n// > <???> @ 0x14089f540\n// > <???> @ 0x14089f550\n// > <???> @ 0x1409192a4\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:27:42 +0000\n// \n\nvoid __fastcall EditorSoundBrowserLayer::loadEditorSoundsFailed(_QWORD *a1, _BYTE *a2)\n{\n  __int64 v3; // rax\n  const void *v4; // rcx\n  size_t v5; // r8\n  __int64 v6; // rcx\n  cocos2d::CCObject *v7; // rax\n\n  if ( a2 )\n  {\n    v3 = -1;\n    do\n      ++v3;\n    while ( a2[v3] );\n    v4 = a1 + 17;\n    if ( a1[20] > 0xFu )\n      v4 = (const void *)a1[17];\n    v5 = a1[19];\n    if ( v5 == v3 && (!v5 || !memcmp(v4, a2, v5)) )\n    {\n      v6 = a1[10];\n      if ( v6 )\n      {\n        LoadingCircle::fadeAndRemove(v6);\n        a1[10] = 0;\n      }\n      v7 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6);\n      EditorSoundBrowserLayer::layoutCells(\n        (__int64)(a1 - 125),\n        v7,\n        \"Could not load sound packs.\\nPress refresh to retry.\");\n      EditorSoundBrowserLayer::updatePageLabel((__int64)(a1 - 125));\n    }\n  }\n}", "assembly": "; \n; EditorSoundBrowserLayer::loadEditorSoundsFailed from 0x1401904b0 to 0x140190559 (169 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14074c230\n; > <???> @ 0x14089f540\n; > <???> @ 0x14089f550\n; > <???> @ 0x1409192a4\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:27:42 +0000\n; \ntest    rdx, rdx                                                       ; +0x0, 0x1401904b0\njz      locret_140190558                                               ; +0x3, 0x1401904b3\npush    rdi                                                            ; +0x9, 0x1401904b9\nsub     rsp, 20h                                                       ; +0xa, 0x1401904ba\nmov     rdi, rcx                                                       ; +0xe, 0x1401904be\nmov     rax, 0FFFFFFFFFFFFFFFFh                                        ; +0x11, 0x1401904c1\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x18, 0x1401904c8\ninc     rax                                                            ; +0x20, 0x1401904d0\ncmp     byte ptr [rdx+rax], 0                                          ; +0x23, 0x1401904d3\njnz     short loc_1401904D0                                            ; +0x27, 0x1401904d7\nadd     rcx, 88h                                                       ; +0x29, 0x1401904d9\ncmp     qword ptr [rdi+0A0h], 0Fh                                      ; +0x30, 0x1401904e0\njbe     short loc_1401904F1                                            ; +0x38, 0x1401904e8\nmov     rcx, [rdi+88h]; Buf1                                           ; +0x3a, 0x1401904ea\nmov     r8, [rdi+98h]; Size                                            ; +0x41, 0x1401904f1\ncmp     r8, rax                                                        ; +0x48, 0x1401904f8\njnz     short loc_140190553                                            ; +0x4b, 0x1401904fb\ntest    r8, r8                                                         ; +0x4d, 0x1401904fd\njz      short loc_14019050B                                            ; +0x50, 0x140190500\ncall    memcmp                                                         ; +0x52, 0x140190502\ntest    eax, eax                                                       ; +0x57, 0x140190507\njnz     short loc_140190553                                            ; +0x59, 0x140190509\nmov     rcx, [rdi+50h]                                                 ; +0x5b, 0x14019050b\nmov     [rsp+28h+arg_0], rbx                                           ; +0x5f, 0x14019050f\ntest    rcx, rcx                                                       ; +0x64, 0x140190514\njz      short loc_140190526                                            ; +0x67, 0x140190517\ncall    LoadingCircle__fadeAndRemove                                   ; +0x69, 0x140190519\nmov     qword ptr [rdi+50h], 0                                         ; +0x6e, 0x14019051e\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x76, 0x140190526\nmov     rdx, rax                                                       ; +0x7c, 0x14019052c\nlea     r8, aCouldNotLoadSo; \"Could not load sound packs.\\nPress refr\"... ; +0x7f, 0x14019052f\nlea     rcx, [rdi-3E8h]                                                ; +0x86, 0x140190536\ncall    EditorSoundBrowserLayer__layoutCells                           ; +0x8d, 0x14019053d\nlea     rcx, [rdi-3E8h]                                                ; +0x92, 0x140190542\ncall    EditorSoundBrowserLayer__updatePageLabel                       ; +0x99, 0x140190549\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9e, 0x14019054e\nadd     rsp, 20h                                                       ; +0xa3, 0x140190553\npop     rdi                                                            ; +0xa7, 0x140190557\nretn                                                                   ; +0xa8, 0x140190558", "xrefs": ["<???> @ 0x14074c230", "<???> @ 0x14089f540", "<???> @ 0x14089f550", "<???> @ 0x1409192a4"], "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"}