{"type": "func", "start": 5372589824, "end": 5372589949, "name": "PlayLayer::toggleGroundVisibility", "pseudocode": "// \n// PlayLayer::toggleGroundVisibility from 0x1403b3700 to 0x1403b377d (125 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405c9c30\n// > <???> @ 0x1406d6e9c\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\n// local variable allocation has failed, the output may be wrong!\nvoid PlayLayer::toggleGroundVisibility(PlayLayer *a1, bool a2)\n{\n  bool v3; // bl\n  GJGroundLayer *m_groundLayer; // rcx\n  bool v5; // zf\n  GJGroundLayer *m_groundLayer2; // rcx\n\n  v3 = a2;\n  m_groundLayer = a1->m_groundLayer;\n  if ( m_groundLayer->m_showGround2 != a2 )\n  {\n    v5 = !m_groundLayer->m_showGround1;\n    m_groundLayer->m_showGround2 = a2;\n    if ( v5 || !a2 )\n      *(_QWORD *)&a2 = 0;\n    else\n      a2 = 1;\n    m_groundLayer->setVisible(m_groundLayer, a2);\n  }\n  m_groundLayer2 = a1->m_groundLayer2;\n  if ( m_groundLayer2->m_showGround2 != v3 )\n  {\n    v5 = !m_groundLayer2->m_showGround1;\n    m_groundLayer2->m_showGround2 = v3;\n    if ( v5 || !v3 )\n      *(_QWORD *)&a2 = 0;\n    else\n      a2 = 1;\n    m_groundLayer2->setVisible(m_groundLayer2, a2);\n  }\n}", "assembly": "; \n; PlayLayer::toggleGroundVisibility from 0x1403b3700 to 0x1403b377d (125 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405c9c30\n; > <???> @ 0x1406d6e9c\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     [rsp+arg_0], rbx                                               ; +0x0, 0x1403b3700\npush    rdi                                                            ; +0x5, 0x1403b3705\nsub     rsp, 20h                                                       ; +0x6, 0x1403b3706\nmov     rdi, rcx                                                       ; +0xa, 0x1403b370a\nmovzx   ebx, dl                                                        ; +0xd, 0x1403b370d\nmov     rcx, [rcx+1010h]                                               ; +0x10, 0x1403b3710\ncmp     [rcx+1C9h], dl                                                 ; +0x17, 0x1403b3717\njz      short loc_1403B3741                                            ; +0x1d, 0x1403b371d\ncmp     byte ptr [rcx+1C8h], 0                                         ; +0x1f, 0x1403b371f\nmov     [rcx+1C9h], dl                                                 ; +0x26, 0x1403b3726\njz      short loc_1403B3736                                            ; +0x2c, 0x1403b372c\ntest    dl, dl                                                         ; +0x2e, 0x1403b372e\njz      short loc_1403B3736                                            ; +0x30, 0x1403b3730\nmov     dl, 1                                                          ; +0x32, 0x1403b3732\njmp     short loc_1403B3738                                            ; +0x34, 0x1403b3734\nxor     edx, edx                                                       ; +0x36, 0x1403b3736\nmov     rax, [rcx]                                                     ; +0x38, 0x1403b3738\ncall    qword ptr [rax+140h]                                           ; +0x3b, 0x1403b373b\nmov     rcx, [rdi+1018h]                                               ; +0x41, 0x1403b3741\ncmp     [rcx+1C9h], bl                                                 ; +0x48, 0x1403b3748\njz      short loc_1403B3772                                            ; +0x4e, 0x1403b374e\ncmp     byte ptr [rcx+1C8h], 0                                         ; +0x50, 0x1403b3750\nmov     [rcx+1C9h], bl                                                 ; +0x57, 0x1403b3757\njz      short loc_1403B3767                                            ; +0x5d, 0x1403b375d\ntest    bl, bl                                                         ; +0x5f, 0x1403b375f\njz      short loc_1403B3767                                            ; +0x61, 0x1403b3761\nmov     dl, 1                                                          ; +0x63, 0x1403b3763\njmp     short loc_1403B3769                                            ; +0x65, 0x1403b3765\nxor     edx, edx                                                       ; +0x67, 0x1403b3767\nmov     rax, [rcx]                                                     ; +0x69, 0x1403b3769\ncall    qword ptr [rax+140h]                                           ; +0x6c, 0x1403b376c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x72, 0x1403b3772\nadd     rsp, 20h                                                       ; +0x77, 0x1403b3777\npop     rdi                                                            ; +0x7b, 0x1403b377b\nretn                                                                   ; +0x7c, 0x1403b377c", "xrefs": ["<???> @ 0x1405c9c30", "<???> @ 0x1406d6e9c"], "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"}