{"type": "func", "start": 7906076, "end": 7906202, "name": "EditorSoundsLayer::onBrowse", "pseudocode": "// \n// EditorSoundsLayer::onBrowse from 0x78a31c to 0x78a39a (126 bytes)\n// \n// 0 xrefs:\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:36 +0000\n// \n\nint __fastcall EditorSoundsLayer::onBrowse(EditorSoundsLayer *this, cocos2d::CCObject *a2, int a3, int a4)\n{\n  GameManager *v5; // r0\n  GameManager *v6; // r0\n  GameManager *v7; // r0\n  int result; // r0\n  int v9; // r0\n  int v10; // r2\n  int v11; // r3\n  int v12; // r6\n  EditorSoundsLayer *v13; // [sp+0h] [bp-10h] BYREF\n  cocos2d::CCObject *v14; // [sp+4h] [bp-Ch]\n  int v15; // [sp+8h] [bp-8h]\n  int v16; // [sp+Ch] [bp-4h]\n\n  v13 = this;\n  v14 = a2;\n  v15 = a3;\n  v16 = a4;\n  v5 = (GameManager *)GameManager::sharedState(this);\n  v6 = (GameManager *)GameManager::offlineModeEnabled(v5);\n  if ( v6 )\n  {\n    v7 = (GameManager *)GameManager::sharedState(v6);\n    return GameManager::showParentalRestrictedAlert(v7);\n  }\n  else\n  {\n    v9 = *((_DWORD *)this + 189);\n    if ( v9 )\n      (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v9 + 580))(v9, 0);\n    v13 = nullptr;\n    v14 = nullptr;\n    v15 = 0;\n    std::string::__init((int *)&v13, &unk_B6B226, 0);\n    v12 = EditorSoundBrowserLayer::create((int)&v13, (int)this, v10, v11);\n    result = std::string::~string((int)&v13);\n    if ( v12 )\n      return (*(int (__fastcall **)(int))(*(_DWORD *)v12 + 656))(v12);\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundsLayer::onBrowse from 0x78a31c to 0x78a39a (126 bytes)\n; \n; 0 xrefs:\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:36 +0000\n; \nPUSH            {R0-R6,LR}                                             ; +0x0, 0x78a31c\nMOV             R6, R0                                                 ; +0x2, 0x78a31e\nLDR             R5, =(__stack_chk_guard_ptr - 0x78A326)                ; +0x4, 0x78a320\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x6, 0x78a322\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x8, 0x78a324\nLDR             R3, [R5]                                               ; +0xa, 0x78a326\nSTR             R3, [SP,#0x10+var_4]                                   ; +0xc, 0x78a328\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xe, 0x78a32a\nBL              _ZN11GameManager18offlineModeEnabledEv; GameManager::offlineModeEnabled(void) ; +0x12, 0x78a32e\nMOV             R1, R0                                                 ; +0x16, 0x78a332\nCBZ             R0, loc_78A340                                         ; +0x18, 0x78a334\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1a, 0x78a336\nBL              _ZN11GameManager27showParentalRestrictedAlertEv; GameManager::showParentalRestrictedAlert(void) ; +0x1e, 0x78a33a\nB               loc_78A38A                                             ; +0x22, 0x78a33e\nLDR.W           R0, [R6,#0x2F4]                                        ; +0x24, 0x78a340\nCBZ             R0, loc_78A34E                                         ; +0x28, 0x78a344\nLDR             R3, [R0]                                               ; +0x2a, 0x78a346\nLDR.W           R3, [R3,#0x244]                                        ; +0x2c, 0x78a348\nBLX             R3                                                     ; +0x30, 0x78a34c\nLDR             R1, =(unk_B6B226 - 0x78A35A)                           ; +0x32, 0x78a34e\nMOVS            R2, #0                                                 ; +0x34, 0x78a350\nMOV             R0, SP                                                 ; +0x36, 0x78a352\nSTR             R2, [SP,#0x10+var_10]                                  ; +0x38, 0x78a354\nADD             R1, PC; unk_B6B226                                     ; +0x3a, 0x78a356\nSTR             R2, [SP,#0x10+var_C]                                   ; +0x3c, 0x78a358\nSTR             R2, [SP,#0x10+var_8]                                   ; +0x3e, 0x78a35a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x40, 0x78a35c\nMOV             R0, SP                                                 ; +0x44, 0x78a360\nMOV             R1, R6                                                 ; +0x46, 0x78a362\nMOV             R4, SP                                                 ; +0x48, 0x78a364\nBL              _ZN23EditorSoundBrowserLayer6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEP17EditorSoundsLayer; EditorSoundBrowserLayer::create(std::string,EditorSoundsLayer *) ; +0x4a, 0x78a366\nMOV             R6, R0                                                 ; +0x4e, 0x78a36a\nMOV             R0, SP                                                 ; +0x50, 0x78a36c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x52, 0x78a36e\nCBZ             R6, loc_78A38A                                         ; +0x56, 0x78a372\nLDR             R3, [R6]                                               ; +0x58, 0x78a374\nMOV             R0, R6                                                 ; +0x5a, 0x78a376\nLDR.W           R3, [R3,#0x290]                                        ; +0x5c, 0x78a378\nBLX             R3                                                     ; +0x60, 0x78a37c\nB               loc_78A38A                                             ; +0x62, 0x78a37e\nMOV             R0, R4                                                 ; +0x64, 0x78a380\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x66, 0x78a382\nBL              __cxa_end_cleanup                                      ; +0x6a, 0x78a386\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x6e, 0x78a38a\nLDR             R3, [R5]                                               ; +0x70, 0x78a38c\nCMP             R2, R3                                                 ; +0x72, 0x78a38e\nBEQ             loc_78A396                                             ; +0x74, 0x78a390\nBLX             __stack_chk_fail                                       ; +0x76, 0x78a392\nADD             SP, SP, #0x10                                          ; +0x7a, 0x78a396\nPOP             {R4-R6,PC}                                             ; +0x7c, 0x78a398", "xrefs": [], "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"}