{"type": "func", "start": 5372540928, "end": 5372541181, "name": "PlayLayer::updateDebugDrawSettings", "pseudocode": "// \n// PlayLayer::updateDebugDrawSettings from 0x1403a7800 to 0x1403a78fd (253 bytes)\n// \n// 4 xrefs:\n// > GameOptionsLayer::didToggle @ 0x1402a0922\n// > PlayLayer::init @ 0x1403a6300\n// > UILayer::handleKeypress @ 0x1404cdb37\n// > <???> @ 0x1406d6b60\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=3\nvoid PlayLayer::updateDebugDrawSettings(PlayLayer *a1)\n{\n  GameManager *v2; // rcx\n  GameManager *v3; // rcx\n  GameManager *v4; // rcx\n  void *v5; // [rsp+30h] [rbp+8h]\n  void *v6; // [rsp+30h] [rbp+8h]\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  v2 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v5 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v2 = (GameManager *)qword_1406C2ED8;\n  }\n  a1->m_isDebugDrawEnabled = GameManager::getGameVariable(v2, \"0166\");\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  a1->m_disablePlayerHitbox = GameManager::getGameVariable(v3, \"0171\");\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  a1->m_hitboxesOnDeath = GameManager::getGameVariable(v4, \"0179\");\n  PlayLayer::toggleDebugDraw(a1);\n}", "assembly": "; \n; PlayLayer::updateDebugDrawSettings from 0x1403a7800 to 0x1403a78fd (253 bytes)\n; \n; 4 xrefs:\n; > GameOptionsLayer::didToggle @ 0x1402a0922\n; > PlayLayer::init @ 0x1403a6300\n; > UILayer::handleKeypress @ 0x1404cdb37\n; > <???> @ 0x1406d6b60\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, 0x1403a7800\nsub     rsp, 20h                                                       ; +0x2, 0x1403a7802\nmov     rbx, rcx                                                       ; +0x6, 0x1403a7806\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9, 0x1403a7809\ntest    rcx, rcx                                                       ; +0x10, 0x1403a7810\njnz     short loc_1403A7844                                            ; +0x13, 0x1403a7813\nmov     ecx, 668h; Size                                                ; +0x15, 0x1403a7815\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1403a781a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x1403a781f\nmov     rcx, rax                                                       ; +0x24, 0x1403a7824\ncall    sub_14017AB00                                                  ; +0x27, 0x1403a7827\nnop                                                                    ; +0x2c, 0x1403a782c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2d, 0x1403a782d\nmov     rdx, [rax]                                                     ; +0x34, 0x1403a7834\nmov     rcx, rax                                                       ; +0x37, 0x1403a7837\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x1403a783a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x3d, 0x1403a783d\nlea     rdx, a0166; \"0166\"                                             ; +0x44, 0x1403a7844\ncall    GameManager__getGameVariable                                   ; +0x4b, 0x1403a784b\nmov     [rbx+3780h], al                                                ; +0x50, 0x1403a7850\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x56, 0x1403a7856\ntest    rcx, rcx                                                       ; +0x5d, 0x1403a785d\njnz     short loc_1403A7891                                            ; +0x60, 0x1403a7860\nmov     ecx, 668h; Size                                                ; +0x62, 0x1403a7862\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x67, 0x1403a7867\nmov     [rsp+28h+arg_0], rax                                           ; +0x6c, 0x1403a786c\nmov     rcx, rax                                                       ; +0x71, 0x1403a7871\ncall    sub_14017AB00                                                  ; +0x74, 0x1403a7874\nnop                                                                    ; +0x79, 0x1403a7879\nmov     cs:qword_1406C2ED8, rax                                        ; +0x7a, 0x1403a787a\nmov     rdx, [rax]                                                     ; +0x81, 0x1403a7881\nmov     rcx, rax                                                       ; +0x84, 0x1403a7884\ncall    qword ptr [rdx+48h]                                            ; +0x87, 0x1403a7887\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x8a, 0x1403a788a\nlea     rdx, a0171; \"0171\"                                             ; +0x91, 0x1403a7891\ncall    GameManager__getGameVariable                                   ; +0x98, 0x1403a7898\nmov     [rbx+3781h], al                                                ; +0x9d, 0x1403a789d\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xa3, 0x1403a78a3\ntest    rcx, rcx                                                       ; +0xaa, 0x1403a78aa\njnz     short loc_1403A78DE                                            ; +0xad, 0x1403a78ad\nmov     ecx, 668h; Size                                                ; +0xaf, 0x1403a78af\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb4, 0x1403a78b4\nmov     [rsp+28h+arg_0], rax                                           ; +0xb9, 0x1403a78b9\nmov     rcx, rax                                                       ; +0xbe, 0x1403a78be\ncall    sub_14017AB00                                                  ; +0xc1, 0x1403a78c1\nnop                                                                    ; +0xc6, 0x1403a78c6\nmov     cs:qword_1406C2ED8, rax                                        ; +0xc7, 0x1403a78c7\nmov     rdx, [rax]                                                     ; +0xce, 0x1403a78ce\nmov     rcx, rax                                                       ; +0xd1, 0x1403a78d1\ncall    qword ptr [rdx+48h]                                            ; +0xd4, 0x1403a78d4\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xd7, 0x1403a78d7\nlea     rdx, a0179; \"0179\"                                             ; +0xde, 0x1403a78de\ncall    GameManager__getGameVariable                                   ; +0xe5, 0x1403a78e5\nmov     [rbx+3782h], al                                                ; +0xea, 0x1403a78ea\nmov     rcx, rbx                                                       ; +0xf0, 0x1403a78f0\nadd     rsp, 20h                                                       ; +0xf3, 0x1403a78f3\npop     rbx                                                            ; +0xf7, 0x1403a78f7\njmp     PlayLayer__toggleDebugDraw                                     ; +0xf8, 0x1403a78f8", "xrefs": ["GameOptionsLayer::didToggle @ 0x1402a0922", "PlayLayer::init @ 0x1403a6300", "UILayer::handleKeypress @ 0x1404cdb37", "<???> @ 0x1406d6b60"], "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"}