{"type": "func", "start": 7912480, "end": 7912720, "name": "EditorSoundsSettingsPopup::onDownloadAll", "pseudocode": "// \n// EditorSoundsSettingsPopup::onDownloadAll from 0x78bc20 to 0x78bd10 (240 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:37 +0000\n// \n\nchar **__fastcall EditorSoundsSettingsPopup::onDownloadAll(EditorSoundsSettingsPopup *this, cocos2d::CCObject *a2)\n{\n  int v3; // r0\n  EditorSFXManager *v4; // r0\n  int *v5; // r5\n  int *v6; // r0\n  EditorSFXManager *v7; // r0\n  size_t v8; // r0\n  char *v10; // [sp+8h] [bp+0h] BYREF\n  char *v11; // [sp+Ch] [bp+4h]\n  int v12[3]; // [sp+14h] [bp+Ch] BYREF\n  int v13[3]; // [sp+20h] [bp+18h] BYREF\n  char v14[128]; // [sp+2Ch] [bp+24h] BYREF\n\n  v3 = EditorSFXManager::sharedState(this);\n  EditorSFXManager::collectAllSFXIDs((EditorSFXManager *)&v10, v3);\n  v4 = (EditorSFXManager *)EditorSoundsSettingsPopup::onClose(this, nullptr);\n  if ( v10 == v11 )\n  {\n    v5 = v12;\n    memset(v12, 0, sizeof(v12));\n    std::string::__init(v12, \"No SFX IDs to download.\", 0x17u);\n    v6 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)\"Download\", (int)v12, (ButtonSprite *)\"OK\", nullptr, 260.0);\n  }\n  else\n  {\n    v7 = (EditorSFXManager *)EditorSFXManager::sharedState(v4);\n    EditorSFXManager::downloadAllMissing(v7);\n    sub_993B88(\n      v14,\n      128,\n      \"Requested download for %u SFX. Missing files will be fetched in the background.\",\n      (v11 - v10) >> 2);\n    memset(v13, 0, sizeof(v13));\n    v5 = v13;\n    v8 = strlen(v14);\n    std::string::__init(v13, v14, v8);\n    v6 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)\"Download\", (int)v13, (ButtonSprite *)\"OK\", nullptr, 320.0);\n  }\n  (*(void (__fastcall **)(int *))(*v6 + 656))(v6);\n  std::string::~string((int)v5);\n  return std::__vector_base<int>::~__vector_base(&v10);\n}", "assembly": "; \n; EditorSoundsSettingsPopup::onDownloadAll from 0x78bc20 to 0x78bd10 (240 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:37 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x78bc20\nSUB             SP, SP, #0xB0                                          ; +0x4, 0x78bc24\nLDR             R6, =(__stack_chk_guard_ptr - 0x78BC30)                ; +0x6, 0x78bc26\nMOV             R4, R0                                                 ; +0x8, 0x78bc28\nADD             R7, SP, #8                                             ; +0xa, 0x78bc2a\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xc, 0x78bc2c\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xe, 0x78bc2e\nLDR             R3, [R6]                                               ; +0x10, 0x78bc30\nSTR             R3, [SP,#0xB0+var_4]                                   ; +0x12, 0x78bc32\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x14, 0x78bc34\nMOV             R1, R0                                                 ; +0x18, 0x78bc38\nMOV             R0, R7; this                                           ; +0x1a, 0x78bc3a\nBL              _ZN16EditorSFXManager16collectAllSFXIDsEv; EditorSFXManager::collectAllSFXIDs(void) ; +0x1c, 0x78bc3c\nMOV             R0, R4; this                                           ; +0x20, 0x78bc40\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x22, 0x78bc42\nBL              _ZN25EditorSoundsSettingsPopup7onCloseEPN7cocos2d8CCObjectE; EditorSoundsSettingsPopup::onClose(cocos2d::CCObject *) ; +0x24, 0x78bc44\nLDR             R3, [SP,#0xB0+var_A4]                                  ; +0x28, 0x78bc48\nLDR             R2, [SP,#0xB0+var_A8]                                  ; +0x2a, 0x78bc4a\nCMP             R2, R3                                                 ; +0x2c, 0x78bc4c\nBNE             loc_78BC86                                             ; +0x2e, 0x78bc4e\nADD             R5, SP, #0xB0+var_9C                                   ; +0x30, 0x78bc50\nLDR             R1, =(aNoSfxIdsToDown - 0x78BC5E); \"No SFX IDs to download.\" ; +0x32, 0x78bc52\nMOVS            R2, #0x17                                              ; +0x34, 0x78bc54\nMOVS            R4, #0                                                 ; +0x36, 0x78bc56\nMOV             R0, R5                                                 ; +0x38, 0x78bc58\nADD             R1, PC; \"No SFX IDs to download.\"                      ; +0x3a, 0x78bc5a\nSTR             R4, [SP,#0xB0+var_9C]                                  ; +0x3c, 0x78bc5c\nSTR             R4, [SP,#0xB0+var_98]                                  ; +0x3e, 0x78bc5e\nSTR             R4, [SP,#0xB0+var_94]                                  ; +0x40, 0x78bc60\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x42, 0x78bc62\nLDR             R3, flt_78BD10                                         ; +0x46, 0x78bc66\nMOV             R0, R4; int                                            ; +0x48, 0x78bc68\nLDR             R1, =(aDownload_0 - 0x78BC76); \"Download\"              ; +0x4a, 0x78bc6a\nMOV             R2, R5; int                                            ; +0x4c, 0x78bc6c\nSTR             R4, [SP,#0xB0+var_B0]; int                             ; +0x4e, 0x78bc6e\nSTR             R3, [SP,#0xB0+var_AC]; float                           ; +0x50, 0x78bc70\nADD             R1, PC; \"Download\"                                     ; +0x52, 0x78bc72\nLDR             R3, =(aOk - 0x78BC7A); \"OK\"                            ; +0x54, 0x78bc74\nADD             R3, PC; \"OK\"                                           ; +0x56, 0x78bc76\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x58, 0x78bc78\nLDR             R3, [R0]                                               ; +0x5c, 0x78bc7c\nLDR.W           R3, [R3,#0x290]                                        ; +0x5e, 0x78bc7e\nBLX             R3                                                     ; +0x62, 0x78bc82\nB               loc_78BCDE                                             ; +0x64, 0x78bc84\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x66, 0x78bc86\nBL              _ZN16EditorSFXManager18downloadAllMissingEv; EditorSFXManager::downloadAllMissing(void) ; +0x6a, 0x78bc8a\nLDR             R2, [SP,#0xB0+var_A8]                                  ; +0x6e, 0x78bc8e\nADD.W           R8, SP, #0xB0+var_84                                   ; +0x70, 0x78bc90\nLDR             R3, [SP,#0xB0+var_A4]                                  ; +0x74, 0x78bc94\nMOVS            R1, #0x80                                              ; +0x76, 0x78bc96\nMOV             R0, R8                                                 ; +0x78, 0x78bc98\nSUBS            R3, R3, R2                                             ; +0x7a, 0x78bc9a\nLDR             R2, =(aRequestedDownl - 0x78BCA4); \"Requested download for %u SFX. Missing \"... ; +0x7c, 0x78bc9c\nASRS            R3, R3, #2                                             ; +0x7e, 0x78bc9e\nADD             R2, PC; \"Requested download for %u SFX. Missing \"...   ; +0x80, 0x78bca0\nBL              sub_993B88                                             ; +0x82, 0x78bca2\nMOV             R0, R8; char *                                         ; +0x86, 0x78bca6\nMOVS            R4, #0                                                 ; +0x88, 0x78bca8\nSTR             R4, [SP,#0xB0+var_90]                                  ; +0x8a, 0x78bcaa\nADD             R5, SP, #0xB0+var_90                                   ; +0x8c, 0x78bcac\nSTR             R4, [SP,#0xB0+var_8C]                                  ; +0x8e, 0x78bcae\nSTR             R4, [SP,#0xB0+var_88]                                  ; +0x90, 0x78bcb0\nBLX             strlen                                                 ; +0x92, 0x78bcb2\nMOV             R1, R8                                                 ; +0x96, 0x78bcb6\nMOV             R2, R0                                                 ; +0x98, 0x78bcb8\nMOV             R0, R5                                                 ; +0x9a, 0x78bcba\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x9c, 0x78bcbc\nLDR             R3, flt_78BD14                                         ; +0xa0, 0x78bcc0\nMOV             R0, R4; int                                            ; +0xa2, 0x78bcc2\nLDR             R1, =(aDownload_0 - 0x78BCD0); \"Download\"              ; +0xa4, 0x78bcc4\nMOV             R2, R5; int                                            ; +0xa6, 0x78bcc6\nSTR             R4, [SP,#0xB0+var_B0]; int                             ; +0xa8, 0x78bcc8\nSTR             R3, [SP,#0xB0+var_AC]; float                           ; +0xaa, 0x78bcca\nADD             R1, PC; \"Download\"                                     ; +0xac, 0x78bccc\nLDR             R3, =(aOk - 0x78BCD4); \"OK\"                            ; +0xae, 0x78bcce\nADD             R3, PC; \"OK\"                                           ; +0xb0, 0x78bcd0\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xb2, 0x78bcd2\nLDR             R3, [R0]                                               ; +0xb6, 0x78bcd6\nLDR.W           R3, [R3,#0x290]                                        ; +0xb8, 0x78bcd8\nBLX             R3                                                     ; +0xbc, 0x78bcdc\nMOV             R0, R5                                                 ; +0xbe, 0x78bcde\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xc0, 0x78bce0\nMOV             R0, R7                                                 ; +0xc4, 0x78bce4\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0xc6, 0x78bce6\nLDR             R2, [SP,#0xB0+var_4]                                   ; +0xca, 0x78bcea\nLDR             R3, [R6]                                               ; +0xcc, 0x78bcec\nCMP             R2, R3                                                 ; +0xce, 0x78bcee\nBEQ             loc_78BD0A                                             ; +0xd0, 0x78bcf0\nBLX             __stack_chk_fail                                       ; +0xd2, 0x78bcf2\nB               loc_78BCF8                                             ; +0xd6, 0x78bcf6\nMOV             R0, R5                                                 ; +0xd8, 0x78bcf8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xda, 0x78bcfa\nB               loc_78BD00                                             ; +0xde, 0x78bcfe\nMOV             R0, R7                                                 ; +0xe0, 0x78bd00\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0xe2, 0x78bd02\nBL              __cxa_end_cleanup                                      ; +0xe6, 0x78bd06\nADD             SP, SP, #0xB0                                          ; +0xea, 0x78bd0a\nPOP.W           {R4-R8,PC}                                             ; +0xec, 0x78bd0c", "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"}