{"type": "func", "start": 4304345520, "end": 4304345684, "name": "EditorSoundBrowserLayer::loadEditorSoundsFailed", "pseudocode": "// \n// EditorSoundBrowserLayer::loadEditorSoundsFailed from 0x1008f19b0 to 0x1008f1a54 (164 bytes)\n// \n// 2 xrefs:\n// > sub_1008F1A60 @ 0x1008f1a6c\n// > <???> @ 0x100bb5170\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 12:37:56 +0000\n// \n\nvoid __fastcall EditorSoundBrowserLayer::loadEditorSoundsFailed(__int64 a1, const char *a2)\n{\n  size_t v3; // rax\n  unsigned int v4; // ecx\n  const void *v5; // rdi\n  __int64 v6; // rdi\n  void *v7; // rax\n\n  if ( a2 )\n  {\n    v3 = strlen(a2);\n    v4 = *(unsigned __int8 *)(a1 + 1144);\n    if ( (v4 & 1) != 0 )\n    {\n      if ( v3 != *(_QWORD *)(a1 + 1152) )\n        return;\n      if ( v3 == -1 )\n        sub_100056810();\n      v5 = *(const void **)(a1 + 1160);\n    }\n    else\n    {\n      if ( v3 != v4 >> 1 )\n        return;\n      v5 = (const void *)(a1 + 1145);\n    }\n    if ( !memcmp(v5, a2, v3) )\n    {\n      v6 = *(_QWORD *)(a1 + 1096);\n      if ( v6 )\n      {\n        LoadingCircle::fadeAndRemove(v6);\n        *(_QWORD *)(a1 + 1096) = 0;\n      }\n      v7 = sub_1007FE900();\n      sub_1008F1170(a1, (__int64)v7, (__int64)\"Could not load sound packs.\\nPress refresh to retry.\");\n      sub_1008F13A0(a1);\n    }\n  }\n}", "assembly": "; \n; EditorSoundBrowserLayer::loadEditorSoundsFailed from 0x1008f19b0 to 0x1008f1a54 (164 bytes)\n; \n; 2 xrefs:\n; > sub_1008F1A60 @ 0x1008f1a6c\n; > <???> @ 0x100bb5170\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 12:37:56 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008f19b0\nmov     rbp, rsp                                                       ; +0x1, 0x1008f19b1\npush    r14                                                            ; +0x4, 0x1008f19b4\npush    rbx                                                            ; +0x6, 0x1008f19b6\ntest    rsi, rsi                                                       ; +0x7, 0x1008f19b7\njz      short loc_1008F1A0B                                            ; +0xa, 0x1008f19ba\nmov     r14, rsi                                                       ; +0xc, 0x1008f19bc\nmov     rbx, rdi                                                       ; +0xf, 0x1008f19bf\nmov     rdi, rsi; __s                                                  ; +0x12, 0x1008f19c2\ncall    _strlen                                                        ; +0x15, 0x1008f19c5\nmovzx   ecx, byte ptr [rbx+478h]                                       ; +0x1a, 0x1008f19ca\ntest    cl, 1                                                          ; +0x21, 0x1008f19d1\njnz     short loc_1008F19E6                                            ; +0x24, 0x1008f19d4\nshr     ecx, 1                                                         ; +0x26, 0x1008f19d6\ncmp     rax, rcx                                                       ; +0x28, 0x1008f19d8\njnz     short loc_1008F1A0B                                            ; +0x2b, 0x1008f19db\nlea     rdi, [rbx+479h]                                                ; +0x2d, 0x1008f19dd\njmp     short loc_1008F19FC                                            ; +0x34, 0x1008f19e4\ncmp     rax, [rbx+480h]                                                ; +0x36, 0x1008f19e6\njnz     short loc_1008F1A0B                                            ; +0x3d, 0x1008f19ed\ncmp     rax, 0FFFFFFFFFFFFFFFFh                                        ; +0x3f, 0x1008f19ef\njz      short loc_1008F1A4F                                            ; +0x43, 0x1008f19f3\nmov     rdi, [rbx+488h]; __s1                                          ; +0x45, 0x1008f19f5\nmov     rsi, r14; __s2                                                 ; +0x4c, 0x1008f19fc\nmov     rdx, rax; __n                                                  ; +0x4f, 0x1008f19ff\ncall    _memcmp                                                        ; +0x52, 0x1008f1a02\ntest    eax, eax                                                       ; +0x57, 0x1008f1a07\njz      short loc_1008F1A10                                            ; +0x59, 0x1008f1a09\npop     rbx                                                            ; +0x5b, 0x1008f1a0b\npop     r14                                                            ; +0x5c, 0x1008f1a0c\npop     rbp                                                            ; +0x5e, 0x1008f1a0e\nretn                                                                   ; +0x5f, 0x1008f1a0f\nmov     rdi, [rbx+448h]                                                ; +0x60, 0x1008f1a10\ntest    rdi, rdi                                                       ; +0x67, 0x1008f1a17\njz      short loc_1008F1A2C                                            ; +0x6a, 0x1008f1a1a\ncall    LoadingCircle__fadeAndRemove                                   ; +0x6c, 0x1008f1a1c\nmov     qword ptr [rbx+448h], 0                                        ; +0x71, 0x1008f1a21\ncall    sub_1007FE900                                                  ; +0x7c, 0x1008f1a2c\nlea     rdx, aCouldNotLoadSo; \"Could not load sound packs.\\nPress refr\"... ; +0x81, 0x1008f1a31\nmov     rdi, rbx                                                       ; +0x88, 0x1008f1a38\nmov     rsi, rax                                                       ; +0x8b, 0x1008f1a3b\ncall    sub_1008F1170                                                  ; +0x8e, 0x1008f1a3e\nmov     rdi, rbx                                                       ; +0x93, 0x1008f1a43\npop     rbx                                                            ; +0x96, 0x1008f1a46\npop     r14                                                            ; +0x97, 0x1008f1a47\npop     rbp                                                            ; +0x99, 0x1008f1a49\njmp     sub_1008F13A0                                                  ; +0x9a, 0x1008f1a4a\ncall    sub_100056810                                                  ; +0x9f, 0x1008f1a4f", "xrefs": ["sub_1008F1A60 @ 0x1008f1a6c", "<???> @ 0x100bb5170"], "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"}