{"type": "func", "start": 7872656, "end": 7872748, "name": "EditorSoundBrowserLayer::loadEditorSoundsFinished", "pseudocode": "// \n// EditorSoundBrowserLayer::loadEditorSoundsFinished from 0x782090 to 0x7820ec (92 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorSoundBrowserLayer::loadEditorSoundsFinished @ 0x7820f4\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::loadEditorSoundsFinished(\n        unsigned __int8 *this,\n        cocos2d::CCArray *a2,\n        char *a3)\n{\n  EditorSoundBrowserLayer *v3; // r4\n  unsigned __int8 *v6; // r6\n  int v7; // r2\n  int v8; // r2\n  int v9; // r2\n\n  v3 = (EditorSoundBrowserLayer *)this;\n  if ( a3 )\n  {\n    v6 = this + 780;\n    this = (unsigned __int8 *)strlen(a3);\n    v7 = *((unsigned __int8 *)v3 + 780);\n    if ( (v7 & 1) != 0 )\n      v8 = *((_DWORD *)v3 + 196);\n    else\n      v8 = v7 >> 1;\n    if ( this == (unsigned __int8 *)v8 )\n    {\n      this = (unsigned __int8 *)std::string::compare(v6, 0, 0xFFFFFFFF, a3, (size_t)this);\n      if ( !this )\n      {\n        EditorSoundBrowserLayer::showLoading(v3, 0, v9);\n        EditorSoundBrowserLayer::layoutCells(v3, a2, (cocos2d::CCLabelBMFont *)\"No lists found.\");\n        return (unsigned __int8 *)EditorSoundBrowserLayer::updatePageLabel(v3);\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundBrowserLayer::loadEditorSoundsFinished from 0x782090 to 0x7820ec (92 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorSoundBrowserLayer::loadEditorSoundsFinished @ 0x7820f4\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-R2,R4-R7,LR}                                       ; +0x0, 0x782090\nMOV             R4, R0                                                 ; +0x2, 0x782092\nMOV             R7, R1                                                 ; +0x4, 0x782094\nMOV             R5, R2                                                 ; +0x6, 0x782096\nCBZ             R2, loc_7820E8                                         ; +0x8, 0x782098\nADD.W           R6, R0, #0x30C                                         ; +0xa, 0x78209a\nMOV             R0, R2; char *                                         ; +0xe, 0x78209e\nBLX             strlen                                                 ; +0x10, 0x7820a0\nLDRB.W          R2, [R4,#0x30C]                                        ; +0x14, 0x7820a4\nLSLS            R3, R2, #0x1F                                          ; +0x18, 0x7820a8\nITE PL                                                                 ; +0x1a, 0x7820aa\nASRPL           R2, R2, #1                                             ; +0x1c, 0x7820ac\nLDRMI.W         R2, [R4,#0x310]                                        ; +0x1e, 0x7820ae\nCMP             R0, R2                                                 ; +0x22, 0x7820b2\nBNE             loc_7820E8                                             ; +0x24, 0x7820b4\nSTR             R0, [SP,#0xC+var_C]; size_t                            ; +0x26, 0x7820b6\nMOVS            R1, #0; int                                            ; +0x28, 0x7820b8\nMOV             R0, R6; int                                            ; +0x2a, 0x7820ba\nMOV.W           R2, #0xFFFFFFFF; int                                   ; +0x2c, 0x7820bc\nMOV             R3, R5; void *                                         ; +0x30, 0x7820c0\nBL              _ZNKSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEjjPKcj; std::string::compare(uint,uint,char const*,uint) ; +0x32, 0x7820c2\nMOV             R1, R0; bool                                           ; +0x36, 0x7820c6\nCBNZ            R0, loc_7820E8                                         ; +0x38, 0x7820c8\nMOV             R0, R4; this                                           ; +0x3a, 0x7820ca\nBL              _ZN23EditorSoundBrowserLayer11showLoadingEb; EditorSoundBrowserLayer::showLoading(bool) ; +0x3c, 0x7820cc\nLDR             R2, =(aNoListsFound_0 - 0x7820DA); \"No lists found.\"   ; +0x40, 0x7820d0\nMOV             R0, R4; this                                           ; +0x42, 0x7820d2\nMOV             R1, R7; cocos2d::CCArray *                             ; +0x44, 0x7820d4\nADD             R2, PC; \"No lists found.\"                              ; +0x46, 0x7820d6\nBL              _ZN23EditorSoundBrowserLayer11layoutCellsEPN7cocos2d7CCArrayEPKc; EditorSoundBrowserLayer::layoutCells(cocos2d::CCArray *,char const*) ; +0x48, 0x7820d8\nMOV             R0, R4; this                                           ; +0x4c, 0x7820dc\nADD             SP, SP, #0xC                                           ; +0x4e, 0x7820de\nPOP.W           {R4-R7,LR}                                             ; +0x50, 0x7820e0\nB.W             _ZN23EditorSoundBrowserLayer15updatePageLabelEv; EditorSoundBrowserLayer::updatePageLabel(void) ; +0x54, 0x7820e4\nADD             SP, SP, #0xC                                           ; +0x58, 0x7820e8\nPOP             {R4-R7,PC}                                             ; +0x5a, 0x7820ea", "xrefs": ["`non-virtual thunk to'EditorSoundBrowserLayer::loadEditorSoundsFinished @ 0x7820f4"], "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"}