{"type": "func", "start": 5372415248, "end": 5372415353, "name": "PlayerObject::setYVelocity", "pseudocode": "// \n// PlayerObject::setYVelocity from 0x140388d10 to 0x140388d79 (105 bytes)\n// \n// 43 xrefs:\n// > GJBaseGameLayer::checkCollisions @ 0x140214156\n// > GJBaseGameLayer::toggleDualMode @ 0x140216a45\n// > GJBaseGameLayer::checkRepellPlayer @ 0x140239a49\n// > PlayerObject::update @ 0x140389302\n// > PlayerObject::updateJump @ 0x14038bd0c\n// > PlayerObject::updateJump @ 0x14038bdec\n// > PlayerObject::updateJump @ 0x14038be12\n// > PlayerObject::updateJump @ 0x14038c09d\n// > PlayerObject::updateJump @ 0x14038c0d3\n// > PlayerObject::updateJump @ 0x14038c2ed\n// > PlayerObject::updateJump @ 0x14038c6ad\n// > PlayerObject::updateJump @ 0x14038c78a\n// > PlayerObject::updateJump @ 0x14038c7da\n// > PlayerObject::updateJump @ 0x14038c7f1\n// > PlayerObject::updateJump @ 0x14038c935\n// > PlayerObject::updateJump @ 0x14038c9c0\n// > PlayerObject::updateJump @ 0x14038ca1d\n// > PlayerObject::updateJump @ 0x14038ca66\n// > PlayerObject::updateJump @ 0x14038cad9\n// > PlayerObject::updateJump @ 0x14038cafd\n// > PlayerObject::updateJump @ 0x14038cb1e\n// > PlayerObject::collidedWithSlopeInternal @ 0x14039028b\n// > PlayerObject::collidedWithSlopeInternal @ 0x1403907dd\n// > PlayerObject::collidedWithSlopeInternal @ 0x140390951\n// > PlayerObject::collidedWithSlopeInternal @ 0x1403909d5\n// > PlayerObject::collidedWithSlopeInternal @ 0x140390a19\n// > PlayerObject::collidedWithObjectInternal @ 0x1403926a9\n// > PlayerObject::collidedWithObjectInternal @ 0x1403926c3\n// > PlayerObject::collidedWithObjectInternal @ 0x140392810\n// > PlayerObject::collidedWithObjectInternal @ 0x140392833\n// > PlayerObject::collidedWithObjectInternal @ 0x140392cab\n// > PlayerObject::collidedWithObjectInternal @ 0x140392cc5\n// > PlayerObject::collidedWithObjectInternal @ 0x140392e30\n// > PlayerObject::collidedWithObjectInternal @ 0x140392e53\n// > PlayerObject::collidedWithObjectInternal @ 0x140393b76\n// > PlayerObject::didHitHead @ 0x140393c73\n// > PlayerObject::spiderTestJumpInternal @ 0x14039504b\n// > PlayerObject::ringJump @ 0x14039951b\n// > PlayerObject::ringJump @ 0x14039991b\n// > PlayerObject::propellPlayer @ 0x14039f8e6\n// > PlayerObject::copyAttributes @ 0x1403a060e\n// > <???> @ 0x1406d5f78\n// > <???> @ 0x1406d5f84\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::setYVelocity(PlayerObject *a1, double a2, int a3)\n{\n  double v3; // xmm7_8\n\n  v3 = (double)(int)a2;\n  if ( a2 == v3 )\n    a1->m_yVelocity = a2;\n  else\n    a1->m_yVelocity = round((a2 - v3) * 1000.0) / 1000.0 + v3;\n}", "assembly": "; \n; PlayerObject::setYVelocity from 0x140388d10 to 0x140388d79 (105 bytes)\n; \n; 43 xrefs:\n; > GJBaseGameLayer::checkCollisions @ 0x140214156\n; > GJBaseGameLayer::toggleDualMode @ 0x140216a45\n; > GJBaseGameLayer::checkRepellPlayer @ 0x140239a49\n; > PlayerObject::update @ 0x140389302\n; > PlayerObject::updateJump @ 0x14038bd0c\n; > PlayerObject::updateJump @ 0x14038bdec\n; > PlayerObject::updateJump @ 0x14038be12\n; > PlayerObject::updateJump @ 0x14038c09d\n; > PlayerObject::updateJump @ 0x14038c0d3\n; > PlayerObject::updateJump @ 0x14038c2ed\n; > PlayerObject::updateJump @ 0x14038c6ad\n; > PlayerObject::updateJump @ 0x14038c78a\n; > PlayerObject::updateJump @ 0x14038c7da\n; > PlayerObject::updateJump @ 0x14038c7f1\n; > PlayerObject::updateJump @ 0x14038c935\n; > PlayerObject::updateJump @ 0x14038c9c0\n; > PlayerObject::updateJump @ 0x14038ca1d\n; > PlayerObject::updateJump @ 0x14038ca66\n; > PlayerObject::updateJump @ 0x14038cad9\n; > PlayerObject::updateJump @ 0x14038cafd\n; > PlayerObject::updateJump @ 0x14038cb1e\n; > PlayerObject::collidedWithSlopeInternal @ 0x14039028b\n; > PlayerObject::collidedWithSlopeInternal @ 0x1403907dd\n; > PlayerObject::collidedWithSlopeInternal @ 0x140390951\n; > PlayerObject::collidedWithSlopeInternal @ 0x1403909d5\n; > PlayerObject::collidedWithSlopeInternal @ 0x140390a19\n; > PlayerObject::collidedWithObjectInternal @ 0x1403926a9\n; > PlayerObject::collidedWithObjectInternal @ 0x1403926c3\n; > PlayerObject::collidedWithObjectInternal @ 0x140392810\n; > PlayerObject::collidedWithObjectInternal @ 0x140392833\n; > PlayerObject::collidedWithObjectInternal @ 0x140392cab\n; > PlayerObject::collidedWithObjectInternal @ 0x140392cc5\n; > PlayerObject::collidedWithObjectInternal @ 0x140392e30\n; > PlayerObject::collidedWithObjectInternal @ 0x140392e53\n; > PlayerObject::collidedWithObjectInternal @ 0x140393b76\n; > PlayerObject::didHitHead @ 0x140393c73\n; > PlayerObject::spiderTestJumpInternal @ 0x14039504b\n; > PlayerObject::ringJump @ 0x14039951b\n; > PlayerObject::ringJump @ 0x14039991b\n; > PlayerObject::propellPlayer @ 0x14039f8e6\n; > PlayerObject::copyAttributes @ 0x1403a060e\n; > <???> @ 0x1406d5f78\n; > <???> @ 0x1406d5f84\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, 0x140388d10\nsub     rsp, 30h                                                       ; +0x2, 0x140388d12\nmovaps  [rsp+38h+var_18], xmm7                                         ; +0x6, 0x140388d16\nmov     rbx, rcx                                                       ; +0xb, 0x140388d1b\ncvttsd2si eax, xmm1                                                    ; +0xe, 0x140388d1e\nmovd    xmm7, eax                                                      ; +0x12, 0x140388d22\ncvtdq2pd xmm7, xmm7                                                    ; +0x16, 0x140388d26\nucomisd xmm1, xmm7                                                     ; +0x1a, 0x140388d2a\njp      short loc_140388D45                                            ; +0x1e, 0x140388d2e\njnz     short loc_140388D45                                            ; +0x20, 0x140388d30\nmovsd   qword ptr [rcx+9A0h], xmm1                                     ; +0x22, 0x140388d32\nmovaps  xmm7, [rsp+38h+var_18]                                         ; +0x2a, 0x140388d3a\nadd     rsp, 30h                                                       ; +0x2f, 0x140388d3f\npop     rbx                                                            ; +0x33, 0x140388d43\nretn                                                                   ; +0x34, 0x140388d44\nsubsd   xmm1, xmm7                                                     ; +0x35, 0x140388d45\nmulsd   xmm1, cs:qword_140623000                                       ; +0x39, 0x140388d49\nmovaps  xmm0, xmm1; X                                                  ; +0x41, 0x140388d51\ncall    cs:round                                                       ; +0x44, 0x140388d54\ndivsd   xmm0, cs:qword_140623000                                       ; +0x4a, 0x140388d5a\naddsd   xmm0, xmm7                                                     ; +0x52, 0x140388d62\nmovsd   qword ptr [rbx+9A0h], xmm0                                     ; +0x56, 0x140388d66\nmovaps  xmm7, [rsp+38h+var_18]                                         ; +0x5e, 0x140388d6e\nadd     rsp, 30h                                                       ; +0x63, 0x140388d73\npop     rbx                                                            ; +0x67, 0x140388d77\nretn                                                                   ; +0x68, 0x140388d78", "xrefs": ["GJBaseGameLayer::checkCollisions @ 0x140214156", "GJBaseGameLayer::toggleDualMode @ 0x140216a45", "GJBaseGameLayer::checkRepellPlayer @ 0x140239a49", "PlayerObject::update @ 0x140389302", "PlayerObject::updateJump @ 0x14038bd0c", "PlayerObject::updateJump @ 0x14038bdec", "PlayerObject::updateJump @ 0x14038be12", "PlayerObject::updateJump @ 0x14038c09d", "PlayerObject::updateJump @ 0x14038c0d3", "PlayerObject::updateJump @ 0x14038c2ed", "PlayerObject::updateJump @ 0x14038c6ad", "PlayerObject::updateJump @ 0x14038c78a", "PlayerObject::updateJump @ 0x14038c7da", "PlayerObject::updateJump @ 0x14038c7f1", "PlayerObject::updateJump @ 0x14038c935", "PlayerObject::updateJump @ 0x14038c9c0", "PlayerObject::updateJump @ 0x14038ca1d", "PlayerObject::updateJump @ 0x14038ca66", "PlayerObject::updateJump @ 0x14038cad9", "PlayerObject::updateJump @ 0x14038cafd", "PlayerObject::updateJump @ 0x14038cb1e", "PlayerObject::collidedWithSlopeInternal @ 0x14039028b", "PlayerObject::collidedWithSlopeInternal @ 0x1403907dd", "PlayerObject::collidedWithSlopeInternal @ 0x140390951", "PlayerObject::collidedWithSlopeInternal @ 0x1403909d5", "PlayerObject::collidedWithSlopeInternal @ 0x140390a19", "PlayerObject::collidedWithObjectInternal @ 0x1403926a9", "PlayerObject::collidedWithObjectInternal @ 0x1403926c3", "PlayerObject::collidedWithObjectInternal @ 0x140392810", "PlayerObject::collidedWithObjectInternal @ 0x140392833", "PlayerObject::collidedWithObjectInternal @ 0x140392cab", "PlayerObject::collidedWithObjectInternal @ 0x140392cc5", "PlayerObject::collidedWithObjectInternal @ 0x140392e30", "PlayerObject::collidedWithObjectInternal @ 0x140392e53", "PlayerObject::collidedWithObjectInternal @ 0x140393b76", "PlayerObject::didHitHead @ 0x140393c73", "PlayerObject::spiderTestJumpInternal @ 0x14039504b", "PlayerObject::ringJump @ 0x14039951b", "PlayerObject::ringJump @ 0x14039991b", "PlayerObject::propellPlayer @ 0x14039f8e6", "PlayerObject::copyAttributes @ 0x1403a060e", "<???> @ 0x1406d5f78", "<???> @ 0x1406d5f84"], "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"}