{"type": "func", "start": 7872760, "end": 7872854, "name": "EditorSoundBrowserLayer::loadEditorSoundsFailed", "pseudocode": "// \n// EditorSoundBrowserLayer::loadEditorSoundsFailed from 0x7820f8 to 0x782156 (94 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorSoundBrowserLayer::loadEditorSoundsFailed @ 0x782160\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:29 +0000\n// \n\nunsigned __int8 *__fastcall EditorSoundBrowserLayer::loadEditorSoundsFailed(unsigned __int8 *this, char *a2)\n{\n  EditorSoundBrowserLayer *v2; // r4\n  unsigned __int8 *v4; // r6\n  int v5; // r2\n  int v6; // r2\n  int v7; // r2\n  cocos2d::CCNode **v8; // r0\n  cocos2d::CCArray *v9; // r0\n\n  v2 = (EditorSoundBrowserLayer *)this;\n  if ( a2 )\n  {\n    v4 = this + 780;\n    this = (unsigned __int8 *)strlen(a2);\n    v5 = *((unsigned __int8 *)v2 + 780);\n    if ( (v5 & 1) != 0 )\n      v6 = *((_DWORD *)v2 + 196);\n    else\n      v6 = v5 >> 1;\n    if ( this == (unsigned __int8 *)v6 )\n    {\n      this = (unsigned __int8 *)std::string::compare(v4, 0, 0xFFFFFFFF, a2, (size_t)this);\n      if ( !this )\n      {\n        v8 = EditorSoundBrowserLayer::showLoading(v2, 0, v7);\n        v9 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v8);\n        EditorSoundBrowserLayer::layoutCells(\n          v2,\n          v9,\n          (cocos2d::CCLabelBMFont *)\"Could not load sound packs.\\nPress refresh to retry.\");\n        return (unsigned __int8 *)EditorSoundBrowserLayer::updatePageLabel(v2);\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundBrowserLayer::loadEditorSoundsFailed from 0x7820f8 to 0x782156 (94 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorSoundBrowserLayer::loadEditorSoundsFailed @ 0x782160\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:29 +0000\n; \nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x7820f8\nMOV             R4, R0                                                 ; +0x2, 0x7820fa\nMOV             R5, R1                                                 ; +0x4, 0x7820fc\nCBZ             R1, loc_782152                                         ; +0x6, 0x7820fe\nADD.W           R6, R0, #0x30C                                         ; +0x8, 0x782100\nMOV             R0, R1; char *                                         ; +0xc, 0x782104\nBLX             strlen                                                 ; +0xe, 0x782106\nLDRB.W          R2, [R4,#0x30C]                                        ; +0x12, 0x78210a\nLSLS            R3, R2, #0x1F                                          ; +0x16, 0x78210e\nITE PL                                                                 ; +0x18, 0x782110\nASRPL           R2, R2, #1                                             ; +0x1a, 0x782112\nLDRMI.W         R2, [R4,#0x310]                                        ; +0x1c, 0x782114\nCMP             R0, R2                                                 ; +0x20, 0x782118\nBNE             loc_782152                                             ; +0x22, 0x78211a\nSTR             R0, [SP,#8+var_8]; size_t                              ; +0x24, 0x78211c\nMOVS            R1, #0; int                                            ; +0x26, 0x78211e\nMOV             R0, R6; int                                            ; +0x28, 0x782120\nMOV.W           R2, #0xFFFFFFFF; int                                   ; +0x2a, 0x782122\nMOV             R3, R5; void *                                         ; +0x2e, 0x782126\nBL              _ZNKSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEjjPKcj; std::string::compare(uint,uint,char const*,uint) ; +0x30, 0x782128\nMOV             R1, R0; bool                                           ; +0x34, 0x78212c\nCBNZ            R0, loc_782152                                         ; +0x36, 0x78212e\nMOV             R0, R4; this                                           ; +0x38, 0x782130\nBL              _ZN23EditorSoundBrowserLayer11showLoadingEb; EditorSoundBrowserLayer::showLoading(bool) ; +0x3a, 0x782132\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x3e, 0x782136\nLDR             R2, =(aCouldNotLoadSo - 0x782140); \"Could not load sound packs.\\nPress refr\"... ; +0x42, 0x78213a\nADD             R2, PC; \"Could not load sound packs.\\nPress refr\"...   ; +0x44, 0x78213c\nMOV             R1, R0; cocos2d::CCArray *                             ; +0x46, 0x78213e\nMOV             R0, R4; this                                           ; +0x48, 0x782140\nBL              _ZN23EditorSoundBrowserLayer11layoutCellsEPN7cocos2d7CCArrayEPKc; EditorSoundBrowserLayer::layoutCells(cocos2d::CCArray *,char const*) ; +0x4a, 0x782142\nMOV             R0, R4; this                                           ; +0x4e, 0x782146\nADD             SP, SP, #8                                             ; +0x50, 0x782148\nPOP.W           {R4-R6,LR}                                             ; +0x52, 0x78214a\nB.W             _ZN23EditorSoundBrowserLayer15updatePageLabelEv; EditorSoundBrowserLayer::updatePageLabel(void) ; +0x56, 0x78214e\nADD             SP, SP, #8                                             ; +0x5a, 0x782152\nPOP             {R4-R6,PC}                                             ; +0x5c, 0x782154", "xrefs": ["`non-virtual thunk to'EditorSoundBrowserLayer::loadEditorSoundsFailed @ 0x782160"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}