{"type": "func", "start": 7886672, "end": 7886814, "name": "EditorSoundConfigInfoLayer::downloadEditorSoundFailed", "pseudocode": "// \n// EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0x785750 to 0x7857de (142 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0x7857f4\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::downloadEditorSoundFailed(int this, int a2, int a3)\n{\n  int v3; // r5\n  int v4; // r2\n  cocos2d::CCNode **v5; // r0\n  int *v6; // r0\n  int v7[3]; // [sp+8h] [bp-10h] BYREF\n\n  v3 = this;\n  v4 = *(_DWORD *)(this + 748);\n  if ( !v4 || a2 == *(_DWORD *)(v4 + 264) )\n  {\n    v5 = *(cocos2d::CCNode ***)(this + 760);\n    *(_BYTE *)(v3 + 764) = 0;\n    *(_BYTE *)(v3 + 765) = 0;\n    if ( v5 )\n      LoadingCircle::fadeAndRemove(v5, a2, v4);\n    *(_DWORD *)(v3 + 760) = 0;\n    EditorSoundConfigInfoLayer::refreshActionButtons((EditorSoundConfigInfoLayer *)v3);\n    memset(v7, 0, sizeof(v7));\n    std::string::__init(v7, \"Could not download this sound pack. Try again later.\", 0x34u);\n    v6 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)\"Download Failed\", (int)v7, (ButtonSprite *)\"OK\", nullptr);\n    (*(void (__fastcall **)(int *))(*v6 + 656))(v6);\n    return std::string::~string((int)v7);\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0x785750 to 0x7857de (142 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0x7857f4\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 - 0x785758)                ; +0x0, 0x785750\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x785752\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x785754\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x785756\nSUB             SP, SP, #0x18                                          ; +0x8, 0x785758\nMOV             R5, R0                                                 ; +0xa, 0x78575a\nLDR             R2, [R3]                                               ; +0xc, 0x78575c\nMOV             R6, R3                                                 ; +0xe, 0x78575e\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x10, 0x785760\nLDR.W           R2, [R0,#0x2EC]                                        ; +0x12, 0x785762\nCBZ             R2, loc_785770                                         ; +0x16, 0x785766\nLDR.W           R3, [R2,#0x108]                                        ; +0x18, 0x785768\nCMP             R1, R3                                                 ; +0x1c, 0x78576c\nBNE             loc_7857CE                                             ; +0x1e, 0x78576e\nLDR.W           R0, [R5,#0x2F8]; this                                  ; +0x20, 0x785770\nMOVS            R4, #0                                                 ; +0x24, 0x785774\nSTRB.W          R4, [R5,#0x2FC]                                        ; +0x26, 0x785776\nSTRB.W          R4, [R5,#0x2FD]                                        ; +0x2a, 0x78577a\nCBZ             R0, loc_785784                                         ; +0x2e, 0x78577e\nBL              _ZN13LoadingCircle13fadeAndRemoveEv; LoadingCircle::fadeAndRemove(void) ; +0x30, 0x785780\nMOV             R0, R5; this                                           ; +0x34, 0x785784\nSTR.W           R4, [R5,#0x2F8]                                        ; +0x36, 0x785786\nBL              _ZN26EditorSoundConfigInfoLayer20refreshActionButtonsEv; EditorSoundConfigInfoLayer::refreshActionButtons(void) ; +0x3a, 0x78578a\nADD             R5, SP, #0x18+var_10                                   ; +0x3e, 0x78578e\nLDR             R1, =(aCouldNotDownlo - 0x78579C); \"Could not download this sound pack. Try\"... ; +0x40, 0x785790\nMOVS            R2, #0x34 ; '4'                                        ; +0x42, 0x785792\nMOV             R0, R5                                                 ; +0x44, 0x785794\nSTR             R4, [SP,#0x18+var_10]                                  ; +0x46, 0x785796\nADD             R1, PC; \"Could not download this sound pack. Try\"...   ; +0x48, 0x785798\nSTR             R4, [SP,#0x18+var_C]                                   ; +0x4a, 0x78579a\nSTR             R4, [SP,#0x18+var_8]                                   ; +0x4c, 0x78579c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x4e, 0x78579e\nLDR             R1, =(aDownloadFailed_2 - 0x7857B0); \"Download Failed\" ; +0x52, 0x7857a2\nMOVS            R0, #0                                                 ; +0x54, 0x7857a4\nLDR             R3, =(aOk - 0x7857B2); \"OK\"                            ; +0x56, 0x7857a6\nMOV             R2, R5                                                 ; +0x58, 0x7857a8\nSTR             R4, [SP,#0x18+var_18]                                  ; +0x5a, 0x7857aa\nADD             R1, PC; \"Download Failed\"                              ; +0x5c, 0x7857ac\nADD             R3, PC; \"OK\"                                           ; +0x5e, 0x7857ae\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*) ; +0x60, 0x7857b0\nLDR             R3, [R0]                                               ; +0x64, 0x7857b4\nLDR.W           R3, [R3,#0x290]                                        ; +0x66, 0x7857b6\nBLX             R3                                                     ; +0x6a, 0x7857ba\nMOV             R0, R5                                                 ; +0x6c, 0x7857bc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6e, 0x7857be\nB               loc_7857CE                                             ; +0x72, 0x7857c2\nMOV             R0, R5                                                 ; +0x74, 0x7857c4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x76, 0x7857c6\nBL              __cxa_end_cleanup                                      ; +0x7a, 0x7857ca\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x7e, 0x7857ce\nLDR             R3, [R6]                                               ; +0x80, 0x7857d0\nCMP             R2, R3                                                 ; +0x82, 0x7857d2\nBEQ             loc_7857DA                                             ; +0x84, 0x7857d4\nBLX             __stack_chk_fail                                       ; +0x86, 0x7857d6\nADD             SP, SP, #0x18                                          ; +0x8a, 0x7857da\nPOP             {R4-R6,PC}                                             ; +0x8c, 0x7857dc", "xrefs": ["`non-virtual thunk to'EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0x7857f4"], "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"}