{"type": "func", "start": 7900604, "end": 7900764, "name": "EditorSoundConfigUploadPopup::onToggleUnlisted", "pseudocode": "// \n// EditorSoundConfigUploadPopup::onToggleUnlisted from 0x788dbc to 0x788e5c (160 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:35 +0000\n// \n\nint __fastcall EditorSoundConfigUploadPopup::onToggleUnlisted(\n        EditorSoundConfigUploadPopup *this,\n        cocos2d::CCObject *a2)\n{\n  int v2; // r5\n  int v3; // r2\n  GameManager *v5; // r0\n  GameManager *v6; // r0\n  int *v7; // r0\n  int v9[5]; // [sp+8h] [bp-14h] BYREF\n\n  v2 = *((unsigned __int8 *)this + 756);\n  v3 = _stack_chk_guard;\n  *((_BYTE *)this + 756) = v2 ^ 1;\n  v9[3] = v3;\n  if ( v2 != 1 )\n  {\n    v5 = (GameManager *)GameManager::sharedState(this);\n    if ( !GameManager::getGameVariable(v5, \"0070\") )\n    {\n      v6 = (GameManager *)GameManager::sharedState(nullptr);\n      GameManager::setGameVariable(v6, \"0070\", (_BYTE *)&dword_0 + 1);\n      memset(v9, 0, 12);\n      std::string::__init(v9, \"Unlisted packs can only be found by ID. This cannot be changed after uploading.\", 0x4Fu);\n      v7 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)\"Unlisted\", (int)v9, (ButtonSprite *)\"OK\", nullptr, 320.0);\n      (*(void (__fastcall **)(int *))(*v7 + 656))(v7);\n      std::string::~string((int)v9);\n    }\n  }\n  if ( !*((_BYTE *)this + 756) )\n    *((_BYTE *)this + 757) = 0;\n  return EditorSoundConfigUploadPopup::updateVisibilityState(this);\n}", "assembly": "; \n; EditorSoundConfigUploadPopup::onToggleUnlisted from 0x788dbc to 0x788e5c (160 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:35 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x788DC4)                ; +0x0, 0x788dbc\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x788dbe\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x788dc0\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x788dc2\nLDRB.W          R5, [R0,#0x2F4]                                        ; +0x8, 0x788dc4\nSUB             SP, SP, #0x1C                                          ; +0xc, 0x788dc8\nLDR             R2, [R3]                                               ; +0xe, 0x788dca\nMOV             R7, R0                                                 ; +0x10, 0x788dcc\nEOR.W           R4, R5, #1                                             ; +0x12, 0x788dce\nMOV             R6, R3                                                 ; +0x16, 0x788dd2\nSTRB.W          R4, [R0,#0x2F4]                                        ; +0x18, 0x788dd4\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x1c, 0x788dd8\nCBZ             R4, loc_788E32                                         ; +0x1e, 0x788dda\nLDR             R5, =(a0070 - 0x788DE6); \"0070\"                        ; +0x20, 0x788ddc\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x22, 0x788dde\nADD             R5, PC; \"0070\"                                         ; +0x26, 0x788de2\nMOV             R1, R5; char *                                         ; +0x28, 0x788de4\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x2a, 0x788de6\nMOV             R4, R0                                                 ; +0x2e, 0x788dea\nCBNZ            R0, loc_788E32                                         ; +0x30, 0x788dec\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x32, 0x788dee\nMOV             R1, R5; char *                                         ; +0x36, 0x788df2\nMOVS            R2, #1; bool                                           ; +0x38, 0x788df4\nADD             R5, SP, #0x1C+var_14                                   ; +0x3a, 0x788df6\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x3c, 0x788df8\nLDR             R1, =(aUnlistedPacksC - 0x788E06); \"Unlisted packs can only be found by ID.\"... ; +0x40, 0x788dfc\nMOV             R0, R5                                                 ; +0x42, 0x788dfe\nMOVS            R2, #0x4F ; 'O'                                        ; +0x44, 0x788e00\nADD             R1, PC; \"Unlisted packs can only be found by ID.\"...   ; +0x46, 0x788e02\nSTR             R4, [SP,#0x1C+var_14]                                  ; +0x48, 0x788e04\nSTR             R4, [SP,#0x1C+var_10]                                  ; +0x4a, 0x788e06\nSTR             R4, [SP,#0x1C+var_C]                                   ; +0x4c, 0x788e08\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x4e, 0x788e0a\nLDR             R3, flt_788E5C                                         ; +0x52, 0x788e0e\nMOV             R0, R4; int                                            ; +0x54, 0x788e10\nLDR             R1, =(aUnlisted - 0x788E1E); \"Unlisted\"                ; +0x56, 0x788e12\nMOV             R2, R5; int                                            ; +0x58, 0x788e14\nSTR             R4, [SP,#0x1C+var_1C]; int                             ; +0x5a, 0x788e16\nSTR             R3, [SP,#0x1C+var_18]; float                           ; +0x5c, 0x788e18\nADD             R1, PC; \"Unlisted\"                                     ; +0x5e, 0x788e1a\nLDR             R3, =(aOk - 0x788E22); \"OK\"                            ; +0x60, 0x788e1c\nADD             R3, PC; \"OK\"                                           ; +0x62, 0x788e1e\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x64, 0x788e20\nLDR             R3, [R0]                                               ; +0x68, 0x788e24\nLDR.W           R3, [R3,#0x290]                                        ; +0x6a, 0x788e26\nBLX             R3                                                     ; +0x6e, 0x788e2a\nMOV             R0, R5                                                 ; +0x70, 0x788e2c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x72, 0x788e2e\nLDRB.W          R3, [R7,#0x2F4]                                        ; +0x76, 0x788e32\nCBNZ            R3, loc_788E3C                                         ; +0x7a, 0x788e36\nSTRB.W          R3, [R7,#0x2F5]                                        ; +0x7c, 0x788e38\nMOV             R0, R7; this                                           ; +0x80, 0x788e3c\nBL              _ZN28EditorSoundConfigUploadPopup21updateVisibilityStateEv; EditorSoundConfigUploadPopup::updateVisibilityState(void) ; +0x82, 0x788e3e\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x86, 0x788e42\nLDR             R3, [R6]                                               ; +0x88, 0x788e44\nCMP             R2, R3                                                 ; +0x8a, 0x788e46\nBEQ             loc_788E58                                             ; +0x8c, 0x788e48\nBLX             __stack_chk_fail                                       ; +0x8e, 0x788e4a\nMOV             R0, R5                                                 ; +0x92, 0x788e4e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x94, 0x788e50\nBL              __cxa_end_cleanup                                      ; +0x98, 0x788e54\nADD             SP, SP, #0x1C                                          ; +0x9c, 0x788e58\nPOP             {R4-R7,PC}                                             ; +0x9e, 0x788e5a", "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"}