{"type": "func", "start": 5372506832, "end": 5372507056, "name": "PlayerObject::lockPlayer", "pseudocode": "// \n// PlayerObject::lockPlayer from 0x14039f2d0 to 0x14039f3b0 (224 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::playEndAnimationToPos @ 0x1403abc6e\n// > PlayLayer::playPlatformerEndAnimationToPos @ 0x1403ac50b\n// > <???> @ 0x1406d6830\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::lockPlayer(PlayerObject *a1)\n{\n  bool v2; // zf\n  int v3; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( a1->m_isDart )\n    PlayerObject::placeStreakPoint(a1);\n  v2 = !a1->m_inputsLocked;\n  a1->m_isLocked = 1;\n  *(_WORD *)&a1->m_isRotating = 0;\n  a1->m_isBallRotating = 0;\n  a1->m_rotationSpeed = 0.0;\n  if ( v2 )\n  {\n    v3 = 1;\n    *(_BYTE *)sub_1400CDBF0((__int64 *)&a1->m_holdingButtons, &v3) = 0;\n  }\n  if ( !a1->m_controlsDisabled )\n  {\n    if ( a1->m_jumpBuffered )\n      PlayerObject::placeStreakPoint(a1);\n    v2 = !a1->m_isDashing;\n    *(_WORD *)&a1->m_jumpBuffered = 0;\n    a1->m_touchedPad = 1;\n    if ( !v2 )\n      PlayerObject::stopDashing(a1);\n  }\n  if ( a1->m_hasGroundParticles )\n    cocos2d::CCParticleSystem::stopSystem(a1->m_playerGroundParticles);\n  v2 = !a1->m_isDart;\n  a1->m_hasGroundParticles = 0;\n  a1->m_isOnGround2 = 0;\n  if ( !v2 )\n    PlayerObject::fadeOutStreak2(a1, 0.40000001);\n}", "assembly": "; \n; PlayerObject::lockPlayer from 0x14039f2d0 to 0x14039f3b0 (224 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::playEndAnimationToPos @ 0x1403abc6e\n; > PlayLayer::playPlatformerEndAnimationToPos @ 0x1403ac50b\n; > <???> @ 0x1406d6830\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, 0x14039f2d0\nsub     rsp, 20h                                                       ; +0x2, 0x14039f2d2\ncmp     byte ptr [rcx+9BCh], 0                                         ; +0x6, 0x14039f2d6\nmov     rbx, rcx                                                       ; +0xd, 0x14039f2dd\njz      short loc_14039F2E7                                            ; +0x10, 0x14039f2e0\ncall    PlayerObject__placeStreakPoint                                 ; +0x12, 0x14039f2e2\ncmp     byte ptr [rbx+0BC8h], 0                                        ; +0x17, 0x14039f2e7\nmov     byte ptr [rbx+0A2Ah], 1                                        ; +0x1e, 0x14039f2ee\nmov     word ptr [rbx+728h], 0                                         ; +0x25, 0x14039f2f5\nmov     byte ptr [rbx+668h], 0                                         ; +0x2e, 0x14039f2fe\nmov     dword ptr [rbx+720h], 0                                        ; +0x35, 0x14039f305\njnz     short loc_14039F32D                                            ; +0x3f, 0x14039f30f\nlea     rcx, [rbx+0BB8h]                                               ; +0x41, 0x14039f311\nmov     [rsp+28h+arg_0], 1                                             ; +0x48, 0x14039f318\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x50, 0x14039f320\ncall    sub_1400CDBF0                                                  ; +0x55, 0x14039f325\nmov     byte ptr [rax], 0                                              ; +0x5a, 0x14039f32a\ncmp     byte ptr [rbx+0A2Bh], 0                                        ; +0x5d, 0x14039f32d\njnz     short loc_14039F368                                            ; +0x64, 0x14039f334\ncmp     byte ptr [rbx+985h], 0                                         ; +0x66, 0x14039f336\njz      short loc_14039F347                                            ; +0x6d, 0x14039f33d\nmov     rcx, rbx                                                       ; +0x6f, 0x14039f33f\ncall    PlayerObject__placeStreakPoint                                 ; +0x72, 0x14039f342\ncmp     byte ptr [rbx+9E4h], 0                                         ; +0x77, 0x14039f347\nmov     word ptr [rbx+985h], 0                                         ; +0x7e, 0x14039f34e\nmov     byte ptr [rbx+99Ch], 1                                         ; +0x87, 0x14039f357\njz      short loc_14039F368                                            ; +0x8e, 0x14039f35e\nmov     rcx, rbx                                                       ; +0x90, 0x14039f360\ncall    PlayerObject__stopDashing                                      ; +0x93, 0x14039f363\ncmp     byte ptr [rbx+7E6h], 0                                         ; +0x98, 0x14039f368\njz      short loc_14039F37E                                            ; +0x9f, 0x14039f36f\nmov     rcx, [rbx+8B8h]                                                ; +0xa1, 0x14039f371\ncall    cs:?stopSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::stopSystem(void) ; +0xa8, 0x14039f378\ncmp     byte ptr [rbx+9BCh], 0                                         ; +0xae, 0x14039f37e\nmov     byte ptr [rbx+7E6h], 0                                         ; +0xb5, 0x14039f385\nmov     byte ptr [rbx+0A0Ch], 0                                        ; +0xbc, 0x14039f38c\njz      short loc_14039F3AA                                            ; +0xc3, 0x14039f393\nmovss   xmm1, cs:dword_140622AD0                                       ; +0xc5, 0x14039f395\nmov     rcx, rbx                                                       ; +0xcd, 0x14039f39d\nadd     rsp, 20h                                                       ; +0xd0, 0x14039f3a0\npop     rbx                                                            ; +0xd4, 0x14039f3a4\njmp     PlayerObject__fadeOutStreak2                                   ; +0xd5, 0x14039f3a5\nadd     rsp, 20h                                                       ; +0xda, 0x14039f3aa\npop     rbx                                                            ; +0xde, 0x14039f3ae\nretn                                                                   ; +0xdf, 0x14039f3af", "xrefs": ["PlayLayer::playEndAnimationToPos @ 0x1403abc6e", "PlayLayer::playPlatformerEndAnimationToPos @ 0x1403ac50b", "<???> @ 0x1406d6830"], "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"}