{"type": "func", "start": 5372590016, "end": 5372590252, "name": "PlayLayer::toggleHideAttempts", "pseudocode": "// \n// PlayLayer::toggleHideAttempts from 0x1403b37c0 to 0x1403b38ac (236 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405c9c40\n// > <???> @ 0x1406d6ea8\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// Hidden C++ exception states: #wind=2\nvoid PlayLayer::toggleHideAttempts(PlayLayer *a1, bool a2)\n{\n  GameManager *v3; // rcx\n  GameManager *v4; // rcx\n  _BOOL8 v5; // rdx\n  void *v6; // [rsp+30h] [rbp+8h]\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_unk36cf != a2 )\n  {\n    a1->m_unk36cf = a2;\n    if ( a2 )\n      goto LABEL_12;\n    if ( a1->m_isPracticeMode )\n    {\n      v3 = (GameManager *)qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v6 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v3 = (GameManager *)qword_1406C2ED8;\n      }\n      if ( GameManager::getGameVariable(v3, \"0134\") )\n        goto LABEL_12;\n    }\n    v4 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v7 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v4 = (GameManager *)qword_1406C2ED8;\n    }\n    if ( GameManager::getGameVariable(v4, \"0135\") )\n    {\nLABEL_12:\n      v5 = 0;\n    }\n    else\n    {\n      if ( a1->m_attempts <= 0 )\n        return;\n      LOBYTE(v5) = 1;\n    }\n    a1->m_attemptLabel->setVisible(a1->m_attemptLabel, v5);\n  }\n}", "assembly": "; \n; PlayLayer::toggleHideAttempts from 0x1403b37c0 to 0x1403b38ac (236 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405c9c40\n; > <???> @ 0x1406d6ea8\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\npush    rbx                                                            ; +0x0, 0x1403b37c0\nsub     rsp, 20h                                                       ; +0x2, 0x1403b37c2\nmov     rbx, rcx                                                       ; +0x6, 0x1403b37c6\ncmp     [rcx+37BFh], dl                                                ; +0x9, 0x1403b37c9\njz      loc_1403B38A6                                                  ; +0xf, 0x1403b37cf\nmov     [rcx+37BFh], dl                                                ; +0x15, 0x1403b37d5\ntest    dl, dl                                                         ; +0x1b, 0x1403b37db\njnz     loc_1403B388E                                                  ; +0x1d, 0x1403b37dd\ncmp     [rcx+31F0h], dl                                                ; +0x23, 0x1403b37e3\njz      short loc_1403B3836                                            ; +0x29, 0x1403b37e9\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x2b, 0x1403b37eb\ntest    rcx, rcx                                                       ; +0x32, 0x1403b37f2\njnz     short loc_1403B3826                                            ; +0x35, 0x1403b37f5\nmov     ecx, 668h; Size                                                ; +0x37, 0x1403b37f7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3c, 0x1403b37fc\nmov     [rsp+28h+arg_0], rax                                           ; +0x41, 0x1403b3801\nmov     rcx, rax                                                       ; +0x46, 0x1403b3806\ncall    sub_14017AB00                                                  ; +0x49, 0x1403b3809\nnop                                                                    ; +0x4e, 0x1403b380e\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4f, 0x1403b380f\nmov     rdx, [rax]                                                     ; +0x56, 0x1403b3816\nmov     rcx, rax                                                       ; +0x59, 0x1403b3819\ncall    qword ptr [rdx+48h]                                            ; +0x5c, 0x1403b381c\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x5f, 0x1403b381f\nlea     rdx, a0134; \"0134\"                                             ; +0x66, 0x1403b3826\ncall    GameManager__getGameVariable                                   ; +0x6d, 0x1403b382d\ntest    al, al                                                         ; +0x72, 0x1403b3832\njnz     short loc_1403B388E                                            ; +0x74, 0x1403b3834\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x76, 0x1403b3836\ntest    rcx, rcx                                                       ; +0x7d, 0x1403b383d\njnz     short loc_1403B3871                                            ; +0x80, 0x1403b3840\nmov     ecx, 668h; Size                                                ; +0x82, 0x1403b3842\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x87, 0x1403b3847\nmov     [rsp+28h+arg_0], rax                                           ; +0x8c, 0x1403b384c\nmov     rcx, rax                                                       ; +0x91, 0x1403b3851\ncall    sub_14017AB00                                                  ; +0x94, 0x1403b3854\nnop                                                                    ; +0x99, 0x1403b3859\nmov     cs:qword_1406C2ED8, rax                                        ; +0x9a, 0x1403b385a\nmov     rdx, [rax]                                                     ; +0xa1, 0x1403b3861\nmov     rcx, rax                                                       ; +0xa4, 0x1403b3864\ncall    qword ptr [rdx+48h]                                            ; +0xa7, 0x1403b3867\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xaa, 0x1403b386a\nlea     rdx, a0135; \"0135\"                                             ; +0xb1, 0x1403b3871\ncall    GameManager__getGameVariable                                   ; +0xb8, 0x1403b3878\ntest    al, al                                                         ; +0xbd, 0x1403b387d\njnz     short loc_1403B388E                                            ; +0xbf, 0x1403b387f\ncmp     dword ptr [rbx+3084h], 0                                       ; +0xc1, 0x1403b3881\njle     short loc_1403B38A6                                            ; +0xc8, 0x1403b3888\nmov     dl, 1                                                          ; +0xca, 0x1403b388a\njmp     short loc_1403B3890                                            ; +0xcc, 0x1403b388c\nxor     edx, edx                                                       ; +0xce, 0x1403b388e\nmov     rcx, [rbx+38D8h]                                               ; +0xd0, 0x1403b3890\nmov     rax, [rcx]                                                     ; +0xd7, 0x1403b3897\nadd     rsp, 20h                                                       ; +0xda, 0x1403b389a\npop     rbx                                                            ; +0xde, 0x1403b389e\njmp     qword ptr [rax+140h]                                           ; +0xdf, 0x1403b389f\nadd     rsp, 20h                                                       ; +0xe6, 0x1403b38a6\npop     rbx                                                            ; +0xea, 0x1403b38aa\nretn                                                                   ; +0xeb, 0x1403b38ab", "xrefs": ["<???> @ 0x1405c9c40", "<???> @ 0x1406d6ea8"], "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"}