{"type": "func", "start": 13421964, "end": 13422108, "name": "EditorSoundConfigInfoLayer::onUpload", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onUpload from 0xcccd8c to 0xccce1c (144 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xb65a8\n// > EditorSoundConfigInfoLayer::init @ 0xcd1714\n// > <???> @ 0x15453e8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:06:25 +0000\n// \n\nEditorSoundConfigUploadPopup **__fastcall EditorSoundConfigInfoLayer::onUpload(\n        EditorSoundConfigUploadPopup **this,\n        cocos2d::CCObject *a2)\n{\n  EditorSoundConfigUploadPopup **v2; // x19\n  GameManager *v3; // x0\n  GameManager *v4; // x0\n  __int64 v5; // x0\n  EditorSoundConfigInfoLayer *v6; // x2\n  GJAccountManager *v7; // x0\n  GameManager *v8; // x0\n  GJAccountManager *v9; // x0\n\n  if ( *(this + 136) )\n  {\n    v2 = this;\n    v3 = (GameManager *)GameManager::sharedState((GameManager *)this);\n    v4 = (GameManager *)(unsigned __int8)GameManager::safeModeEnabled(v3);\n    if ( (_BYTE)v4 )\n    {\n      v8 = (GameManager *)GameManager::sharedState(v4);\n      return (EditorSoundConfigUploadPopup **)GameManager::showParentalRestrictedAlert(v8);\n    }\n    else\n    {\n      v5 = GJAccountManager::sharedState(v4);\n      v7 = (GJAccountManager *)(unsigned int)(*(_DWORD *)(v5 + 352) - *(_DWORD *)(v5 + 356));\n      if ( (int)v7 <= 0 )\n      {\n        v9 = (GJAccountManager *)GJAccountManager::sharedState(v7);\n        return (EditorSoundConfigUploadPopup **)GJAccountManager::showAccountNeededAlert(\n                                                  v9,\n                                                  \"upload <cg>sound packs</c>\");\n      }\n      else\n      {\n        this = (EditorSoundConfigUploadPopup **)EditorSoundConfigUploadPopup::create(\n                                                  v2[136],\n                                                  (GJEditorSoundConfig *)v2,\n                                                  v6);\n        if ( this )\n          return (EditorSoundConfigUploadPopup **)(*((__int64 (__fastcall **)(EditorSoundConfigUploadPopup **))*this\n                                                   + 164))(this);\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onUpload from 0xcccd8c to 0xccce1c (144 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xb65a8\n; > EditorSoundConfigInfoLayer::init @ 0xcd1714\n; > <???> @ 0x15453e8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:06:25 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xcccd8c\nMOV             X29, SP                                                ; +0x4, 0xcccd90\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xcccd94\nLDR             X1, [X0,#0x440]                                        ; +0xc, 0xcccd98\nCBZ             X1, loc_CCCDE8                                         ; +0x10, 0xcccd9c\nMOV             X19, X0                                                ; +0x14, 0xcccda0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x18, 0xcccda4\nBL              _ZN11GameManager15safeModeEnabledEv; GameManager::safeModeEnabled(void) ; +0x1c, 0xcccda8\nUXTB            W0, W0; this                                           ; +0x20, 0xcccdac\nCBNZ            W0, loc_CCCDF4                                         ; +0x24, 0xcccdb0\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x28, 0xcccdb4\nLDR             W1, [X0,#0x160]                                        ; +0x2c, 0xcccdb8\nLDR             W0, [X0,#0x164]                                        ; +0x30, 0xcccdbc\nSUB             W0, W1, W0; this                                       ; +0x34, 0xcccdc0\nCMP             W0, WZR                                                ; +0x38, 0xcccdc4\nB.LE            loc_CCCE04                                             ; +0x3c, 0xcccdc8\nLDR             X0, [X19,#0x440]; this                                 ; +0x40, 0xcccdcc\nMOV             X1, X19; GJEditorSoundConfig *                         ; +0x44, 0xcccdd0\nBL              _ZN28EditorSoundConfigUploadPopup6createEP19GJEditorSoundConfigP26EditorSoundConfigInfoLayer; EditorSoundConfigUploadPopup::create(GJEditorSoundConfig *,EditorSoundConfigInfoLayer *) ; +0x48, 0xcccdd4\nCBZ             X0, loc_CCCDE8                                         ; +0x4c, 0xcccdd8\nLDR             X1, [X0]                                               ; +0x50, 0xcccddc\nLDR             X1, [X1,#0x520]                                        ; +0x54, 0xcccde0\nBLR             X1                                                     ; +0x58, 0xcccde4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x5c, 0xcccde8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x60, 0xcccdec\nRET                                                                    ; +0x64, 0xcccdf0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x68, 0xcccdf4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x6c, 0xcccdf8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x70, 0xcccdfc\nB               _ZN11GameManager27showParentalRestrictedAlertEv; GameManager::showParentalRestrictedAlert(void) ; +0x74, 0xccce00\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x78, 0xccce04\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x7c, 0xccce08\nADRP            X1, #aUploadCgSoundP@PAGE; \"upload <cg>sound packs</c>\" ; +0x80, 0xccce0c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x84, 0xccce10\nADD             X1, X1, #aUploadCgSoundP@PAGEOFF; \"upload <cg>sound packs</c>\" ; +0x88, 0xccce14\nB               _ZN16GJAccountManager22showAccountNeededAlertEPKc; GJAccountManager::showAccountNeededAlert(char const*) ; +0x8c, 0xccce18", "xrefs": ["<???> @ 0xb65a8", "EditorSoundConfigInfoLayer::init @ 0xcd1714", "<???> @ 0x15453e8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}