{"type": "func", "start": 7886044, "end": 7886202, "name": "EditorSoundConfigInfoLayer::musicActionFailed", "pseudocode": "// \n// EditorSoundConfigInfoLayer::musicActionFailed from 0x7854dc to 0x78557a (158 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorSoundConfigInfoLayer::musicActionFailed @ 0x785590\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:32 +0000\n// \n\nint __fastcall EditorSoundConfigInfoLayer::musicActionFailed(int result, int a2)\n{\n  int v2; // r8\n  int v3; // r3\n  void (__fastcall *v4)(int, cocos2d::CCNode *, int); // r9\n  cocos2d::CCNode *v5; // r0\n  int v6[3]; // [sp+Ch] [bp-20h] BYREF\n  int v7[3]; // [sp+18h] [bp-14h] BYREF\n\n  v2 = result;\n  if ( a2 == 2 )\n  {\n    if ( *(_BYTE *)(result + 766) )\n    {\n      v3 = *(_DWORD *)result;\n      *(_BYTE *)(result + 766) = 0;\n      v4 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(v3 + 232);\n      memset(v6, 0, sizeof(v6));\n      std::string::__init(v6, \"Download failed\", 0xFu);\n      memset(v7, 0, sizeof(v7));\n      std::string::__init(v7, &unk_B6B226, 0);\n      v5 = TextAlertPopup::create((int)v6, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v7);\n      v4(v2, v5, 100);\n      std::string::~string((int)v7);\n      return std::string::~string((int)v6);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::musicActionFailed from 0x7854dc to 0x78557a (158 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorSoundConfigInfoLayer::musicActionFailed @ 0x785590\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:32 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x7854E8)                ; +0x0, 0x7854dc\nCMP             R1, #2                                                 ; +0x2, 0x7854de\nPUSH.W          {R4-R9,LR}                                             ; +0x4, 0x7854e0\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x8, 0x7854e4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xa, 0x7854e6\nSUB             SP, SP, #0x2C                                          ; +0xc, 0x7854e8\nMOV             R8, R0                                                 ; +0xe, 0x7854ea\nLDR             R2, [R3]                                               ; +0x10, 0x7854ec\nMOV             R7, R3                                                 ; +0x12, 0x7854ee\nSTR             R2, [SP,#0x2C+var_8]                                   ; +0x14, 0x7854f0\nBNE             loc_785568                                             ; +0x16, 0x7854f2\nLDRB.W          R3, [R0,#0x2FE]                                        ; +0x18, 0x7854f4\nCMP             R3, #0                                                 ; +0x1c, 0x7854f8\nBEQ             loc_785568                                             ; +0x1e, 0x7854fa\nLDR             R3, [R0]                                               ; +0x20, 0x7854fc\nADD             R5, SP, #0x2C+var_20                                   ; +0x22, 0x7854fe\nLDR             R1, =(aDownloadFailed_1 - 0x78550E); \"Download failed\" ; +0x24, 0x785500\nMOVS            R4, #0                                                 ; +0x26, 0x785502\nMOVS            R2, #0xF                                               ; +0x28, 0x785504\nSTRB.W          R4, [R0,#0x2FE]                                        ; +0x2a, 0x785506\nADD             R1, PC; \"Download failed\"                              ; +0x2e, 0x78550a\nMOV             R0, R5                                                 ; +0x30, 0x78550c\nLDR.W           R9, [R3,#0xE8]                                         ; +0x32, 0x78550e\nADD             R6, SP, #0x2C+var_14                                   ; +0x36, 0x785512\nSTR             R4, [SP,#0x2C+var_20]                                  ; +0x38, 0x785514\nSTR             R4, [SP,#0x2C+var_1C]                                  ; +0x3a, 0x785516\nSTR             R4, [SP,#0x2C+var_18]                                  ; +0x3c, 0x785518\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x3e, 0x78551a\nLDR             R1, =(unk_B6B226 - 0x78552A)                           ; +0x42, 0x78551e\nMOV             R0, R6                                                 ; +0x44, 0x785520\nMOV             R2, R4                                                 ; +0x46, 0x785522\nSTR             R4, [SP,#0x2C+var_14]                                  ; +0x48, 0x785524\nADD             R1, PC; unk_B6B226                                     ; +0x4a, 0x785526\nSTR             R4, [SP,#0x2C+var_10]                                  ; +0x4c, 0x785528\nSTR             R4, [SP,#0x2C+var_C]                                   ; +0x4e, 0x78552a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x50, 0x78552c\nSTR             R6, [SP,#0x2C+var_2C]                                  ; +0x54, 0x785530\nMOV             R0, R5                                                 ; +0x56, 0x785532\nMOV.W           R1, #0x3F000000                                        ; +0x58, 0x785534\nLDR             R2, =0x3F19999A                                        ; +0x5c, 0x785538\nMOVS            R3, #0x96                                              ; +0x5e, 0x78553a\nBL              _ZN14TextAlertPopup6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEffiS6_; TextAlertPopup::create(std::string,float,float,int,std::string) ; +0x60, 0x78553c\nMOV             R1, R0                                                 ; +0x64, 0x785540\nMOVS            R2, #0x64 ; 'd'                                        ; +0x66, 0x785542\nMOV             R0, R8                                                 ; +0x68, 0x785544\nBLX             R9                                                     ; +0x6a, 0x785546\nMOV             R0, R6                                                 ; +0x6c, 0x785548\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6e, 0x78554a\nMOV             R0, R5                                                 ; +0x72, 0x78554e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x74, 0x785550\nB               loc_785568                                             ; +0x78, 0x785554\nMOV             R0, R6                                                 ; +0x7a, 0x785556\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x7c, 0x785558\nB               loc_78555E                                             ; +0x80, 0x78555c\nMOV             R0, R5                                                 ; +0x82, 0x78555e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x84, 0x785560\nBL              __cxa_end_cleanup                                      ; +0x88, 0x785564\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0x8c, 0x785568\nLDR             R3, [R7]                                               ; +0x8e, 0x78556a\nCMP             R2, R3                                                 ; +0x90, 0x78556c\nBEQ             loc_785574                                             ; +0x92, 0x78556e\nBLX             __stack_chk_fail                                       ; +0x94, 0x785570\nADD             SP, SP, #0x2C ; ','                                    ; +0x98, 0x785574\nPOP.W           {R4-R9,PC}                                             ; +0x9a, 0x785576", "xrefs": ["`non-virtual thunk to'EditorSoundConfigInfoLayer::musicActionFailed @ 0x785590"], "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"}