{"type": "func", "start": 7883800, "end": 7883892, "name": "EditorSoundConfigInfoLayer::onUpload", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onUpload from 0x784c18 to 0x784c74 (92 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:31 +0000\n// \n\nEditorSoundConfigUploadPopup **__fastcall EditorSoundConfigInfoLayer::onUpload(\n        EditorSoundConfigUploadPopup **this,\n        cocos2d::CCObject *a2)\n{\n  EditorSoundConfigUploadPopup **v2; // r4\n  GameManager *v3; // r0\n  GameManager *v4; // r0\n  GameManager *v5; // r0\n  GJAccountManager *v6; // r0\n  EditorSoundConfigInfoLayer *v7; // r2\n  GJAccountManager *v8; // r0\n\n  v2 = this;\n  if ( *(this + 187) )\n  {\n    v3 = (GameManager *)GameManager::sharedState((GameManager *)this);\n    v4 = (GameManager *)GameManager::safeModeEnabled(v3);\n    if ( v4 )\n    {\n      v5 = (GameManager *)GameManager::sharedState(v4);\n      return (EditorSoundConfigUploadPopup **)GameManager::showParentalRestrictedAlert(v5);\n    }\n    else\n    {\n      v6 = (GJAccountManager *)GJAccountManager::sharedState(nullptr);\n      v7 = *((EditorSoundConfigInfoLayer **)v6 + 71);\n      if ( *((_DWORD *)v6 + 70) - (int)v7 > 0 )\n      {\n        this = (EditorSoundConfigUploadPopup **)EditorSoundConfigUploadPopup::create(\n                                                  v2[187],\n                                                  (GJEditorSoundConfig *)v2,\n                                                  v7);\n        if ( this )\n          return (EditorSoundConfigUploadPopup **)(*((int (__fastcall **)(EditorSoundConfigUploadPopup **))*this + 164))(this);\n      }\n      else\n      {\n        v8 = (GJAccountManager *)GJAccountManager::sharedState(v6);\n        return (EditorSoundConfigUploadPopup **)GJAccountManager::showAccountNeededAlert(\n                                                  v8,\n                                                  \"upload <cg>sound packs</c>\");\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onUpload from 0x784c18 to 0x784c74 (92 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:31 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x784c18\nMOV             R4, R0                                                 ; +0x2, 0x784c1a\nLDR.W           R3, [R0,#0x2EC]                                        ; +0x4, 0x784c1c\nCBZ             R3, locret_784C72                                      ; +0x8, 0x784c20\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xa, 0x784c22\nBL              _ZN11GameManager15safeModeEnabledEv; GameManager::safeModeEnabled(void) ; +0xe, 0x784c26\nCBZ             R0, loc_784C38                                         ; +0x12, 0x784c2a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x14, 0x784c2c\nPOP.W           {R4,LR}                                                ; +0x18, 0x784c30\nB.W             _ZN11GameManager27showParentalRestrictedAlertEv; GameManager::showParentalRestrictedAlert(void) ; +0x1c, 0x784c34\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x20, 0x784c38\nLDR.W           R3, [R0,#0x118]                                        ; +0x24, 0x784c3c\nLDR.W           R2, [R0,#0x11C]; EditorSoundConfigInfoLayer *          ; +0x28, 0x784c40\nSUBS            R3, R3, R2                                             ; +0x2c, 0x784c44\nCMP             R3, #0                                                 ; +0x2e, 0x784c46\nBGT             loc_784C5A                                             ; +0x30, 0x784c48\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x32, 0x784c4a\nLDR             R1, =(aUploadCgSoundP - 0x784C58); \"upload <cg>sound packs</c>\" ; +0x36, 0x784c4e\nPOP.W           {R4,LR}                                                ; +0x38, 0x784c50\nADD             R1, PC; \"upload <cg>sound packs</c>\"                   ; +0x3c, 0x784c54\nB.W             _ZN16GJAccountManager22showAccountNeededAlertEPKc; GJAccountManager::showAccountNeededAlert(char const*) ; +0x3e, 0x784c56\nLDR.W           R0, [R4,#0x2EC]; this                                  ; +0x42, 0x784c5a\nMOV             R1, R4; GJEditorSoundConfig *                          ; +0x46, 0x784c5e\nBL              _ZN28EditorSoundConfigUploadPopup6createEP19GJEditorSoundConfigP26EditorSoundConfigInfoLayer; EditorSoundConfigUploadPopup::create(GJEditorSoundConfig *,EditorSoundConfigInfoLayer *) ; +0x48, 0x784c60\nCBZ             R0, locret_784C72                                      ; +0x4c, 0x784c64\nLDR             R3, [R0]                                               ; +0x4e, 0x784c66\nPOP.W           {R4,LR}                                                ; +0x50, 0x784c68\nLDR.W           R3, [R3,#0x290]                                        ; +0x54, 0x784c6c\nBX              R3                                                     ; +0x58, 0x784c70\nPOP             {R4,PC}                                                ; +0x5a, 0x784c72", "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"}