{"type": "func", "start": 5372460080, "end": 5372460197, "name": "PlayerObject::didHitHead", "pseudocode": "// \n// PlayerObject::didHitHead from 0x140393c30 to 0x140393ca5 (117 bytes)\n// \n// 4 xrefs:\n// > PlayerObject::collidedWithObjectInternal @ 0x14039283b\n// > PlayerObject::collidedWithObjectInternal @ 0x140392e5b\n// > PlayerObject::collidedWithObjectInternal @ 0x140393b84\n// > <???> @ 0x1406d626c\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::didHitHead(PlayerObject *a1)\n{\n  int v2; // r8d\n  int v3; // eax\n  bool v4; // zf\n  bool v5; // sf\n\n  if ( a1->m_stateFlipGravity > 0 )\n  {\n    PlayerObject::flipGravity(a1, !a1->m_isUpsideDown, 1);\n    v3 = 2;\n    if ( !a1->m_isUpsideDown )\n      v3 = -2;\n    PlayerObject::setYVelocity(a1, (double)v3, v2);\n    v4 = a1->m_stateNoAutoJump == 0;\n    v5 = a1->m_stateNoAutoJump < 0;\n    a1->m_maybeIsBoosted = 1;\n    a1->m_isOnGround2 = 0;\n    if ( !v5 && !v4 )\n    {\n      a1->m_isOnGround = 0;\n      *(_WORD *)&a1->m_jumpBuffered = 0;\n    }\n  }\n}", "assembly": "; \n; PlayerObject::didHitHead from 0x140393c30 to 0x140393ca5 (117 bytes)\n; \n; 4 xrefs:\n; > PlayerObject::collidedWithObjectInternal @ 0x14039283b\n; > PlayerObject::collidedWithObjectInternal @ 0x140392e5b\n; > PlayerObject::collidedWithObjectInternal @ 0x140393b84\n; > <???> @ 0x1406d626c\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, 0x140393c30\nsub     rsp, 20h                                                       ; +0x2, 0x140393c32\ncmp     dword ptr [rcx+0B80h], 0                                       ; +0x6, 0x140393c36\nmov     rbx, rcx                                                       ; +0xd, 0x140393c3d\njle     short loc_140393C9F                                            ; +0x10, 0x140393c40\ncmp     byte ptr [rcx+9BFh], 0                                         ; +0x12, 0x140393c42\nmov     r8b, 1                                                         ; +0x19, 0x140393c49\nsetz    dl                                                             ; +0x1c, 0x140393c4c\ncall    PlayerObject__flipGravity                                      ; +0x1f, 0x140393c4f\ncmp     byte ptr [rbx+9BFh], 0                                         ; +0x24, 0x140393c54\nmov     eax, 2                                                         ; +0x2b, 0x140393c5b\nmov     ecx, 0FFFFFFFEh                                                ; +0x30, 0x140393c60\ncmovz   eax, ecx                                                       ; +0x35, 0x140393c65\nmov     rcx, rbx                                                       ; +0x38, 0x140393c68\nmovd    xmm1, eax                                                      ; +0x3b, 0x140393c6b\ncvtdq2pd xmm1, xmm1                                                    ; +0x3f, 0x140393c6f\ncall    PlayerObject__setYVelocity                                     ; +0x43, 0x140393c73\ncmp     dword ptr [rbx+0B74h], 0                                       ; +0x48, 0x140393c78\nmov     byte ptr [rbx+0A1Ch], 1                                        ; +0x4f, 0x140393c7f\nmov     byte ptr [rbx+0A0Ch], 0                                        ; +0x56, 0x140393c86\njle     short loc_140393C9F                                            ; +0x5d, 0x140393c8d\nmov     byte ptr [rbx+9C1h], 0                                         ; +0x5f, 0x140393c8f\nmov     word ptr [rbx+985h], 0                                         ; +0x66, 0x140393c96\nadd     rsp, 20h                                                       ; +0x6f, 0x140393c9f\npop     rbx                                                            ; +0x73, 0x140393ca3\nretn                                                                   ; +0x74, 0x140393ca4", "xrefs": ["PlayerObject::collidedWithObjectInternal @ 0x14039283b", "PlayerObject::collidedWithObjectInternal @ 0x140392e5b", "PlayerObject::collidedWithObjectInternal @ 0x140393b84", "<???> @ 0x1406d626c"], "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"}