{"type": "func", "start": 5372589952, "end": 5372590016, "name": "PlayLayer::toggleMGVisibility", "pseudocode": "// \n// PlayLayer::toggleMGVisibility from 0x1403b3780 to 0x1403b37c0 (64 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1405c9c38\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid PlayLayer::toggleMGVisibility(PlayLayer *a1, bool a2)\n{\n  GJMGLayer *m_middleground; // rcx\n  bool v3; // zf\n  char v4; // dl\n\n  m_middleground = a1->m_middleground;\n  if ( m_middleground && m_middleground->m_showGround2 != a2 )\n  {\n    v3 = !m_middleground->m_showGround1;\n    m_middleground->m_showGround2 = a2;\n    if ( v3 || !a2 )\n    {\n      m_middleground->setVisible(m_middleground, 0);\n    }\n    else\n    {\n      v4 = 1;\n      m_middleground->setVisible(m_middleground, v4);\n    }\n  }\n}", "assembly": "; \n; PlayLayer::toggleMGVisibility from 0x1403b3780 to 0x1403b37c0 (64 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1405c9c38\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     rcx, [rcx+1020h]                                               ; +0x0, 0x1403b3780\ntest    rcx, rcx                                                       ; +0x7, 0x1403b3787\njz      short locret_1403B37BF                                         ; +0xa, 0x1403b378a\ncmp     [rcx+1C1h], dl                                                 ; +0xc, 0x1403b378c\njz      short locret_1403B37BF                                         ; +0x12, 0x1403b3792\ncmp     byte ptr [rcx+1C0h], 0                                         ; +0x14, 0x1403b3794\nmov     [rcx+1C1h], dl                                                 ; +0x1b, 0x1403b379b\njz      short loc_1403B37B3                                            ; +0x21, 0x1403b37a1\ntest    dl, dl                                                         ; +0x23, 0x1403b37a3\njz      short loc_1403B37B3                                            ; +0x25, 0x1403b37a5\nmov     rax, [rcx]                                                     ; +0x27, 0x1403b37a7\nmov     dl, 1                                                          ; +0x2a, 0x1403b37aa\njmp     qword ptr [rax+140h]                                           ; +0x2c, 0x1403b37ac\nmov     rax, [rcx]                                                     ; +0x33, 0x1403b37b3\nxor     edx, edx                                                       ; +0x36, 0x1403b37b6\njmp     qword ptr [rax+140h]                                           ; +0x38, 0x1403b37b8\nretn                                                                   ; +0x3f, 0x1403b37bf", "xrefs": ["<???> @ 0x1405c9c38"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}