{"type": "func", "start": 5372507056, "end": 5372507390, "name": "PlayerObject::disablePlayerControls", "pseudocode": "// \n// PlayerObject::disablePlayerControls from 0x14039f3b0 to 0x14039f4fe (334 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::processOptionsTrigger @ 0x140223e50\n// > GJBaseGameLayer::processOptionsTrigger @ 0x140223e72\n// > <???> @ 0x1406986bc\n// > <???> @ 0x1406986cc\n// > <???> @ 0x1406d6830\n// > <???> @ 0x1406d683c\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 PlayerObject::disablePlayerControls(PlayerObject *a1)\n{\n  bool v1; // zf\n  bool m_inputsLocked; // al\n  __int64 *p_m_holdingButtons; // rdi\n  bool v5; // cc\n  double m_platformerXVelocity; // xmm0_8\n  int v7; // [rsp+40h] [rbp+8h] BYREF\n\n  v1 = !a1->m_jumpBuffered;\n  a1->m_controlsDisabled = 0;\n  a1->m_inputsLocked = 1;\n  if ( !v1 )\n    PlayerObject::placeStreakPoint(a1);\n  v1 = !a1->m_isDashing;\n  *(_WORD *)&a1->m_jumpBuffered = 0;\n  a1->m_touchedPad = 1;\n  if ( !v1 )\n    PlayerObject::stopDashing(a1);\n  m_inputsLocked = a1->m_inputsLocked;\n  p_m_holdingButtons = (__int64 *)&a1->m_holdingButtons;\n  if ( !m_inputsLocked )\n  {\n    v7 = 2;\n    *(_BYTE *)sub_1400CDBF0((__int64 *)&a1->m_holdingButtons, &v7) = 0;\n    m_inputsLocked = a1->m_inputsLocked;\n  }\n  if ( !a1->m_controlsDisabled )\n  {\n    if ( a1->m_jumpBuffered )\n    {\n      PlayerObject::placeStreakPoint(a1);\n      m_inputsLocked = a1->m_inputsLocked;\n      p_m_holdingButtons = (__int64 *)&a1->m_holdingButtons;\n    }\n    v5 = a1->m_platformerXVelocity >= 0.0;\n    a1->m_holdingLeft = 0;\n    if ( !v5 )\n      a1->m_isMoving = 0;\n  }\n  if ( !m_inputsLocked )\n  {\n    v7 = 3;\n    *(_BYTE *)sub_1400CDBF0(p_m_holdingButtons, &v7) = 0;\n  }\n  if ( !a1->m_controlsDisabled )\n  {\n    if ( a1->m_jumpBuffered )\n      PlayerObject::placeStreakPoint(a1);\n    m_platformerXVelocity = a1->m_platformerXVelocity;\n    a1->m_holdingRight = 0;\n    if ( m_platformerXVelocity > 0.0 )\n      a1->m_isMoving = 0;\n  }\n  PlayerObject::releaseButton(a1, (PlayerButton)2);\n  PlayerObject::releaseButton(a1, (PlayerButton)3);\n  a1->m_inputsLocked = 0;\n  a1->m_controlsDisabled = 1;\n}", "assembly": "; \n; PlayerObject::disablePlayerControls from 0x14039f3b0 to 0x14039f4fe (334 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::processOptionsTrigger @ 0x140223e50\n; > GJBaseGameLayer::processOptionsTrigger @ 0x140223e72\n; > <???> @ 0x1406986bc\n; > <???> @ 0x1406986cc\n; > <???> @ 0x1406d6830\n; > <???> @ 0x1406d683c\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, 0x14039f3b0\nsub     rsp, 30h                                                       ; +0x2, 0x14039f3b2\ncmp     byte ptr [rcx+985h], 0                                         ; +0x6, 0x14039f3b6\nmov     rbx, rcx                                                       ; +0xd, 0x14039f3bd\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x10, 0x14039f3c0\nmov     byte ptr [rcx+0A2Bh], 0                                        ; +0x15, 0x14039f3c5\nmov     byte ptr [rcx+0BC8h], 1                                        ; +0x1c, 0x14039f3cc\njz      short loc_14039F3DA                                            ; +0x23, 0x14039f3d3\ncall    PlayerObject__placeStreakPoint                                 ; +0x25, 0x14039f3d5\ncmp     byte ptr [rbx+9E4h], 0                                         ; +0x2a, 0x14039f3da\nmov     word ptr [rbx+985h], 0                                         ; +0x31, 0x14039f3e1\nmov     byte ptr [rbx+99Ch], 1                                         ; +0x3a, 0x14039f3ea\njz      short loc_14039F3FB                                            ; +0x41, 0x14039f3f1\nmov     rcx, rbx                                                       ; +0x43, 0x14039f3f3\ncall    PlayerObject__stopDashing                                      ; +0x46, 0x14039f3f6\nmovzx   eax, byte ptr [rbx+0BC8h]                                      ; +0x4b, 0x14039f3fb\nmov     [rsp+38h+arg_8], rdi                                           ; +0x52, 0x14039f402\nlea     rdi, [rbx+0BB8h]                                               ; +0x57, 0x14039f407\ntest    al, al                                                         ; +0x5e, 0x14039f40e\njnz     short loc_14039F431                                            ; +0x60, 0x14039f410\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x62, 0x14039f412\nmov     [rsp+38h+arg_0], 2                                             ; +0x67, 0x14039f417\nmov     rcx, rdi                                                       ; +0x6f, 0x14039f41f\ncall    sub_1400CDBF0                                                  ; +0x72, 0x14039f422\nmov     byte ptr [rax], 0                                              ; +0x77, 0x14039f427\nmovzx   eax, byte ptr [rbx+0BC8h]                                      ; +0x7a, 0x14039f42a\ncmp     byte ptr [rbx+0A2Bh], 0                                        ; +0x81, 0x14039f431\nxorps   xmm6, xmm6                                                     ; +0x88, 0x14039f438\njnz     short loc_14039F474                                            ; +0x8b, 0x14039f43b\ncmp     byte ptr [rbx+985h], 0                                         ; +0x8d, 0x14039f43d\njz      short loc_14039F45C                                            ; +0x94, 0x14039f444\nmov     rcx, rbx                                                       ; +0x96, 0x14039f446\ncall    PlayerObject__placeStreakPoint                                 ; +0x99, 0x14039f449\nmovzx   eax, byte ptr [rbx+0BC8h]                                      ; +0x9e, 0x14039f44e\nlea     rdi, [rbx+0BB8h]                                               ; +0xa5, 0x14039f455\ncomisd  xmm6, qword ptr [rbx+0AF8h]                                    ; +0xac, 0x14039f45c\nmov     byte ptr [rbx+0B01h], 0                                        ; +0xb4, 0x14039f464\njbe     short loc_14039F474                                            ; +0xbb, 0x14039f46b\nmov     byte ptr [rbx+0B58h], 0                                        ; +0xbd, 0x14039f46d\ntest    al, al                                                         ; +0xc4, 0x14039f474\njnz     short loc_14039F490                                            ; +0xc6, 0x14039f476\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xc8, 0x14039f478\nmov     [rsp+38h+arg_0], 3                                             ; +0xcd, 0x14039f47d\nmov     rcx, rdi                                                       ; +0xd5, 0x14039f485\ncall    sub_1400CDBF0                                                  ; +0xd8, 0x14039f488\nmov     byte ptr [rax], 0                                              ; +0xdd, 0x14039f48d\ncmp     byte ptr [rbx+0A2Bh], 0                                        ; +0xe0, 0x14039f490\nmov     rdi, [rsp+38h+arg_8]                                           ; +0xe7, 0x14039f497\njnz     short loc_14039F4CB                                            ; +0xec, 0x14039f49c\ncmp     byte ptr [rbx+985h], 0                                         ; +0xee, 0x14039f49e\njz      short loc_14039F4AF                                            ; +0xf5, 0x14039f4a5\nmov     rcx, rbx                                                       ; +0xf7, 0x14039f4a7\ncall    PlayerObject__placeStreakPoint                                 ; +0xfa, 0x14039f4aa\nmovsd   xmm0, qword ptr [rbx+0AF8h]                                    ; +0xff, 0x14039f4af\ncomisd  xmm0, xmm6                                                     ; +0x107, 0x14039f4b7\nmov     byte ptr [rbx+0B00h], 0                                        ; +0x10b, 0x14039f4bb\njbe     short loc_14039F4CB                                            ; +0x112, 0x14039f4c2\nmov     byte ptr [rbx+0B58h], 0                                        ; +0x114, 0x14039f4c4\nmov     edx, 2                                                         ; +0x11b, 0x14039f4cb\nmov     rcx, rbx                                                       ; +0x120, 0x14039f4d0\ncall    PlayerObject__releaseButton                                    ; +0x123, 0x14039f4d3\nmov     edx, 3                                                         ; +0x128, 0x14039f4d8\nmov     rcx, rbx                                                       ; +0x12d, 0x14039f4dd\ncall    PlayerObject__releaseButton                                    ; +0x130, 0x14039f4e0\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x135, 0x14039f4e5\nmov     byte ptr [rbx+0BC8h], 0                                        ; +0x13a, 0x14039f4ea\nmov     byte ptr [rbx+0A2Bh], 1                                        ; +0x141, 0x14039f4f1\nadd     rsp, 30h                                                       ; +0x148, 0x14039f4f8\npop     rbx                                                            ; +0x14c, 0x14039f4fc\nretn                                                                   ; +0x14d, 0x14039f4fd", "xrefs": ["GJBaseGameLayer::processOptionsTrigger @ 0x140223e50", "GJBaseGameLayer::processOptionsTrigger @ 0x140223e72", "<???> @ 0x1406986bc", "<???> @ 0x1406986cc", "<???> @ 0x1406d6830", "<???> @ 0x1406d683c"], "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"}