{"type": "func", "start": 13405660, "end": 13405812, "name": "EditorSoundBrowserLayer::loadEditorSoundsFailed", "pseudocode": "// \n// EditorSoundBrowserLayer::loadEditorSoundsFailed from 0xcc8ddc to 0xcc8e74 (152 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditorSoundBrowserLayer::loadEditorSoundsFailed @ 0xcc8e78\n// > <???> @ 0xe2e40\n// > <???> @ 0x14fde40\n// \n// This function is hookable on this platform (idp: arm, 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 13:06:22 +0000\n// \n\n__int64 __fastcall EditorSoundBrowserLayer::loadEditorSoundsFailed(__int64 this, char *a2)\n{\n  __int64 v2; // x19\n  size_t v3; // x4\n  cocos2d::CCNode **v4; // x0\n  cocos2d::CCArray *v5; // x0\n\n  if ( a2 )\n  {\n    v2 = this;\n    this = strlen(a2);\n    v3 = *(_BYTE *)(v2 + 1144) >> 1;\n    if ( (*(_BYTE *)(v2 + 1144) & 1) != 0 )\n      v3 = *(_QWORD *)(v2 + 1152);\n    if ( v3 == this )\n    {\n      this = std::string::compare(v2 + 1144, 0, 0xFFFFFFFFFFFFFFFFLL, a2, v3);\n      if ( !(_DWORD)this )\n      {\n        v4 = EditorSoundBrowserLayer::showLoading((EditorSoundBrowserLayer *)v2, 0);\n        v5 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v4);\n        EditorSoundBrowserLayer::layoutCells(\n          (EditorSoundBrowserLayer *)v2,\n          v5,\n          (cocos2d::CCLabelBMFont *)\"Could not load sound packs.\\nPress refresh to retry.\");\n        return EditorSoundBrowserLayer::updatePageLabel((EditorSoundBrowserLayer *)v2);\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundBrowserLayer::loadEditorSoundsFailed from 0xcc8ddc to 0xcc8e74 (152 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditorSoundBrowserLayer::loadEditorSoundsFailed @ 0xcc8e78\n; > <???> @ 0xe2e40\n; > <???> @ 0x14fde40\n; \n; This function is hookable on this platform (idp: arm, 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 13:06:22 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xcc8ddc\nMOV             X29, SP                                                ; +0x4, 0xcc8de0\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xcc8de4\nCBZ             X1, loc_CC8E18                                         ; +0xc, 0xcc8de8\nMOV             X19, X0                                                ; +0x10, 0xcc8dec\nMOV             X0, X1; char *                                         ; +0x14, 0xcc8df0\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x18, 0xcc8df4\nADD             X20, X19, #0x478                                       ; +0x1c, 0xcc8df8\nBL              .strlen                                                ; +0x20, 0xcc8dfc\nLDRB            W1, [X19,#0x478]                                       ; +0x24, 0xcc8e00\nLDR             X3, [X29,#0x30+var_8]; void *                          ; +0x28, 0xcc8e04\nUBFX            X4, X1, #1, #7                                         ; +0x2c, 0xcc8e08\nTBNZ            W1, #0, loc_CC8E6C                                     ; +0x30, 0xcc8e0c\nCMP             X4, X0                                                 ; +0x34, 0xcc8e10\nB.EQ            loc_CC8E24                                             ; +0x38, 0xcc8e14\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x3c, 0xcc8e18\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x40, 0xcc8e1c\nRET                                                                    ; +0x44, 0xcc8e20\nMOV             X0, X20; int                                           ; +0x48, 0xcc8e24\nMOV             X1, #0; int                                            ; +0x4c, 0xcc8e28\nMOV             X2, #0xFFFFFFFFFFFFFFFF; int                           ; +0x50, 0xcc8e2c\nBL              _ZNKSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEmmPKcm; std::string::compare(ulong,ulong,char const*,ulong) ; +0x54, 0xcc8e30\nCBNZ            W0, loc_CC8E18                                         ; +0x58, 0xcc8e34\nMOV             W1, #0; bool                                           ; +0x5c, 0xcc8e38\nMOV             X0, X19; this                                          ; +0x60, 0xcc8e3c\nBL              _ZN23EditorSoundBrowserLayer11showLoadingEb; EditorSoundBrowserLayer::showLoading(bool) ; +0x64, 0xcc8e40\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x68, 0xcc8e44\nMOV             X1, X0; cocos2d::CCArray *                             ; +0x6c, 0xcc8e48\nADRP            X2, #aCouldNotLoadSo@PAGE; \"Could not load sound packs.\\nPress refr\"... ; +0x70, 0xcc8e4c\nMOV             X0, X19; this                                          ; +0x74, 0xcc8e50\nADD             X2, X2, #aCouldNotLoadSo@PAGEOFF; \"Could not load sound packs.\\nPress refr\"... ; +0x78, 0xcc8e54\nBL              _ZN23EditorSoundBrowserLayer11layoutCellsEPN7cocos2d7CCArrayEPKc; EditorSoundBrowserLayer::layoutCells(cocos2d::CCArray *,char const*) ; +0x7c, 0xcc8e58\nMOV             X0, X19; this                                          ; +0x80, 0xcc8e5c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x84, 0xcc8e60\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x88, 0xcc8e64\nB               _ZN23EditorSoundBrowserLayer15updatePageLabelEv; EditorSoundBrowserLayer::updatePageLabel(void) ; +0x8c, 0xcc8e68\nLDR             X4, [X20,#8]                                           ; +0x90, 0xcc8e6c\nB               loc_CC8E10                                             ; +0x94, 0xcc8e70", "xrefs": ["`non-virtual thunk to'EditorSoundBrowserLayer::loadEditorSoundsFailed @ 0xcc8e78", "<???> @ 0xe2e40", "<???> @ 0x14fde40"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}