{"type": "func", "start": 7900476, "end": 7900602, "name": "EditorSoundConfigUploadPopup::updateVisibilityState", "pseudocode": "// \n// EditorSoundConfigUploadPopup::updateVisibilityState from 0x788d3c to 0x788dba (126 bytes)\n// \n// 2 xrefs:\n// > EditorSoundConfigUploadPopup::onToggleUnlisted @ 0x788e3e\n// > EditorSoundConfigUploadPopup::init @ 0x7898de\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::updateVisibilityState(EditorSoundConfigUploadPopup *this)\n{\n  int v2; // r3\n  int v3; // r0\n  _BOOL4 v4; // r6\n  int v5; // r1\n  CCMenuItemToggler *v6; // r0\n  int v7; // r5\n  int result; // r0\n\n  v2 = *((_DWORD *)this + 184);\n  v3 = *((_DWORD *)this + 185);\n  v4 = *(_DWORD *)(v2 + 264) > 0;\n  if ( v3 )\n  {\n    (*(void (__fastcall **)(int, bool))(*(_DWORD *)v3 + 528))(v3, *(_DWORD *)(v2 + 264) <= 0);\n    sub_788CEC(*((_DWORD *)this + 185), *((_DWORD *)this + 187), !v4);\n  }\n  v5 = *((unsigned __int8 *)this + 756);\n  if ( !*((_BYTE *)this + 756) )\n  {\n    if ( *((_BYTE *)this + 757) )\n    {\n      v6 = *((CCMenuItemToggler **)this + 186);\n      *((_BYTE *)this + 757) = v5;\n      if ( v6 )\n        CCMenuItemToggler::toggle(v6, v5);\n    }\n  }\n  v7 = *((unsigned __int8 *)this + 756);\n  if ( *((_BYTE *)this + 756) )\n    v7 = !v4;\n  result = *((_DWORD *)this + 186);\n  if ( result )\n  {\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)result + 528))(result, v7);\n    return sub_788CEC(*((_DWORD *)this + 186), *((_DWORD *)this + 188), v7);\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundConfigUploadPopup::updateVisibilityState from 0x788d3c to 0x788dba (126 bytes)\n; \n; 2 xrefs:\n; > EditorSoundConfigUploadPopup::onToggleUnlisted @ 0x788e3e\n; > EditorSoundConfigUploadPopup::init @ 0x7898de\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; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x788d3c\nMOV             R4, R0                                                 ; +0x2, 0x788d3e\nLDR.W           R3, [R0,#0x2E0]                                        ; +0x4, 0x788d40\nLDR.W           R0, [R0,#0x2E4]                                        ; +0x8, 0x788d44\nLDR.W           R6, [R3,#0x108]                                        ; +0xc, 0x788d48\nCMP             R6, #0                                                 ; +0x10, 0x788d4c\nITE LE                                                                 ; +0x12, 0x788d4e\nMOVLE           R6, #0                                                 ; +0x14, 0x788d50\nMOVGT           R6, #1                                                 ; +0x16, 0x788d52\nCBZ             R0, loc_788D72                                         ; +0x18, 0x788d54\nLDR             R3, [R0]                                               ; +0x1a, 0x788d56\nEOR.W           R5, R6, #1                                             ; +0x1c, 0x788d58\nMOV             R1, R5                                                 ; +0x20, 0x788d5c\nLDR.W           R3, [R3,#0x210]                                        ; +0x22, 0x788d5e\nBLX             R3                                                     ; +0x26, 0x788d62\nLDR.W           R0, [R4,#0x2E4]                                        ; +0x28, 0x788d64\nLDR.W           R1, [R4,#0x2EC]                                        ; +0x2c, 0x788d68\nMOV             R2, R5                                                 ; +0x30, 0x788d6c\nBL              sub_788CEC                                             ; +0x32, 0x788d6e\nLDRB.W          R1, [R4,#0x2F4]; bool                                  ; +0x36, 0x788d72\nCBNZ            R1, loc_788D8C                                         ; +0x3a, 0x788d76\nLDRB.W          R3, [R4,#0x2F5]                                        ; +0x3c, 0x788d78\nCBZ             R3, loc_788D8C                                         ; +0x40, 0x788d7c\nLDR.W           R0, [R4,#0x2E8]; this                                  ; +0x42, 0x788d7e\nSTRB.W          R1, [R4,#0x2F5]                                        ; +0x46, 0x788d82\nCBZ             R0, loc_788D8C                                         ; +0x4a, 0x788d86\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x4c, 0x788d88\nLDRB.W          R5, [R4,#0x2F4]                                        ; +0x50, 0x788d8c\nCBZ             R5, loc_788D96                                         ; +0x54, 0x788d90\nEOR.W           R5, R6, #1                                             ; +0x56, 0x788d92\nLDR.W           R0, [R4,#0x2E8]                                        ; +0x5a, 0x788d96\nCBZ             R0, locret_788DB8                                      ; +0x5e, 0x788d9a\nLDR             R3, [R0]                                               ; +0x60, 0x788d9c\nMOV             R1, R5                                                 ; +0x62, 0x788d9e\nLDR.W           R3, [R3,#0x210]                                        ; +0x64, 0x788da0\nBLX             R3                                                     ; +0x68, 0x788da4\nLDR.W           R0, [R4,#0x2E8]                                        ; +0x6a, 0x788da6\nLDR.W           R1, [R4,#0x2F0]                                        ; +0x6e, 0x788daa\nMOV             R2, R5                                                 ; +0x72, 0x788dae\nPOP.W           {R4-R6,LR}                                             ; +0x74, 0x788db0\nB.W             sub_788CEC                                             ; +0x78, 0x788db4\nPOP             {R4-R6,PC}                                             ; +0x7c, 0x788db8", "xrefs": ["EditorSoundConfigUploadPopup::onToggleUnlisted @ 0x788e3e", "EditorSoundConfigUploadPopup::init @ 0x7898de"], "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"}