{"type": "func", "start": 5372509920, "end": 5372510350, "name": "PlayerObject::boostPlayer", "pseudocode": "// \n// PlayerObject::boostPlayer from 0x14039fee0 to 0x1403a008e (430 bytes)\n// \n// 3 xrefs:\n// > PlayerObject::postCollision @ 0x14038d966\n// > PlayerObject::postCollision @ 0x14038ec5c\n// > <???> @ 0x1406d68cc\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::boostPlayer(PlayerObject *a1, float a2)\n{\n  double v3; // xmm0_8\n  double v4; // xmm7_8\n  float v5; // xmm1_4\n  int v6; // eax\n  const cocos2d::CCPoint *v7; // rax\n  void *v8[4]; // [rsp+20h] [rbp-38h] BYREF\n\n  a1->m_maybeIsBoosted = 1;\n  a1->m_isOnGround2 = 0;\n  a1->m_isOnGround = 0;\n  a1->m_shouldTryPlacingCheckpoint = 1;\n  a1->m_isAccelerating = 1;\n  v3 = a2;\n  v4 = (double)(int)a2;\n  if ( a2 != v4 )\n    v3 = round((v3 - v4) * 1000.0) / 1000.0 + v4;\n  a1->m_yVelocity = v3;\n  if ( !a1->m_isDashing )\n  {\n    if ( a1->m_isShip || a1->m_isBird || a1->m_isDart || a1->m_isSwing || a1->m_isBall || a1->m_isRobot )\n    {\n      if ( !a1->m_isSpider )\n        goto LABEL_19;\n    }\n    else if ( !a1->m_isSpider )\n    {\n      a1->m_isBallRotating2 = 0;\n      a1->m_isBallRotating = 0;\n      if ( a1->m_vehicleSize == 1.0 )\n        v5 = 0.86666667;\n      else\n        v5 = 0.66666669;\n      v6 = 180;\n      if ( !a1->m_isUpsideDown )\n        v6 = -180;\n      a1->m_rotationSpeed = (float)v6 / v5;\n      a1->m_isRotating = 1;\n      goto LABEL_19;\n    }\n    v8[1] = (void *)112;\n    v8[2] = (void *)9;\n    v8[3] = (void *)15;\n    v8[0] = (void *)0x6F6F6C5F6C6C6166LL;\n    CCAnimatedSprite::tweenToAnimation((__int64)a1->m_spiderSprite, v8, 0.1);\n  }\nLABEL_19:\n  v7 = a1->getPosition_0(a1);\n  cocos2d::CCPoint::operator=(&a1->m_lastGroundedPos, v7);\n}", "assembly": "; \n; PlayerObject::boostPlayer from 0x14039fee0 to 0x1403a008e (430 bytes)\n; \n; 3 xrefs:\n; > PlayerObject::postCollision @ 0x14038d966\n; > PlayerObject::postCollision @ 0x14038ec5c\n; > <???> @ 0x1406d68cc\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, 0x14039fee0\nsub     rsp, 50h                                                       ; +0x2, 0x14039fee2\nmovaps  [rsp+58h+var_18], xmm7                                         ; +0x6, 0x14039fee6\nmov     rbx, rcx                                                       ; +0xb, 0x14039feeb\nmov     byte ptr [rcx+0A1Ch], 1                                        ; +0xe, 0x14039feee\nmov     byte ptr [rcx+0A0Ch], 0                                        ; +0x15, 0x14039fef5\nmov     byte ptr [rcx+9C1h], 0                                         ; +0x1c, 0x14039fefc\nmov     byte ptr [rcx+7E3h], 1                                         ; +0x23, 0x14039ff03\nmov     byte ptr [rcx+952h], 1                                         ; +0x2a, 0x14039ff0a\nxorps   xmm0, xmm0                                                     ; +0x31, 0x14039ff11\ncvtss2sd xmm0, xmm1                                                    ; +0x34, 0x14039ff14\ncvttsd2si eax, xmm0                                                    ; +0x38, 0x14039ff18\nmovd    xmm7, eax                                                      ; +0x3c, 0x14039ff1c\ncvtdq2pd xmm7, xmm7                                                    ; +0x40, 0x14039ff20\nucomisd xmm0, xmm7                                                     ; +0x44, 0x14039ff24\njp      short loc_14039FF2C                                            ; +0x48, 0x14039ff28\njz      short loc_14039FF4A                                            ; +0x4a, 0x14039ff2a\nsubsd   xmm0, xmm7                                                     ; +0x4c, 0x14039ff2c\nmulsd   xmm0, cs:qword_140623000; X                                    ; +0x50, 0x14039ff30\ncall    cs:round                                                       ; +0x58, 0x14039ff38\ndivsd   xmm0, cs:qword_140623000                                       ; +0x5e, 0x14039ff3e\naddsd   xmm0, xmm7                                                     ; +0x66, 0x14039ff46\nmovsd   qword ptr [rbx+9A0h], xmm0                                     ; +0x6a, 0x14039ff4a\ncmp     byte ptr [rbx+9E4h], 0                                         ; +0x72, 0x14039ff52\njnz     loc_1403A0067                                                  ; +0x79, 0x14039ff59\ncmp     byte ptr [rbx+9B9h], 0                                         ; +0x7f, 0x14039ff5f\njnz     loc_1403A000D                                                  ; +0x86, 0x14039ff66\ncmp     byte ptr [rbx+9BAh], 0                                         ; +0x8c, 0x14039ff6c\njnz     loc_1403A000D                                                  ; +0x93, 0x14039ff73\ncmp     byte ptr [rbx+9BCh], 0                                         ; +0x99, 0x14039ff79\njnz     loc_1403A000D                                                  ; +0xa0, 0x14039ff80\ncmp     byte ptr [rbx+9C4h], 0                                         ; +0xa6, 0x14039ff86\njnz     short loc_1403A000D                                            ; +0xad, 0x14039ff8d\ncmp     byte ptr [rbx+9BBh], 0                                         ; +0xaf, 0x14039ff8f\njnz     short loc_1403A000D                                            ; +0xb6, 0x14039ff96\ncmp     byte ptr [rbx+9BDh], 0                                         ; +0xb8, 0x14039ff98\njnz     short loc_1403A000D                                            ; +0xbf, 0x14039ff9f\ncmp     byte ptr [rbx+9BEh], 0                                         ; +0xc1, 0x14039ffa1\njnz     short loc_1403A0016                                            ; +0xc8, 0x14039ffa8\nmov     byte ptr [rbx+729h], 0                                         ; +0xca, 0x14039ffaa\nmov     byte ptr [rbx+668h], 0                                         ; +0xd1, 0x14039ffb1\nmovss   xmm0, dword ptr [rbx+9F0h]                                     ; +0xd8, 0x14039ffb8\nucomiss xmm0, cs:flt_140622C24                                         ; +0xe0, 0x14039ffc0\njp      short loc_14039FFD5                                            ; +0xe7, 0x14039ffc7\njnz     short loc_14039FFD5                                            ; +0xe9, 0x14039ffc9\nmovss   xmm1, cs:dword_140622BCC                                       ; +0xeb, 0x14039ffcb\njmp     short loc_14039FFDD                                            ; +0xf3, 0x14039ffd3\nmovss   xmm1, cs:dword_140622B68                                       ; +0xf5, 0x14039ffd5\nmov     eax, 0B4h                                                      ; +0xfd, 0x14039ffdd\nmov     ecx, 0FFFFFF4Ch                                                ; +0x102, 0x14039ffe2\ncmp     byte ptr [rbx+9BFh], 0                                         ; +0x107, 0x14039ffe7\ncmovz   eax, ecx                                                       ; +0x10e, 0x14039ffee\nmovd    xmm0, eax                                                      ; +0x111, 0x14039fff1\ncvtdq2ps xmm0, xmm0                                                    ; +0x115, 0x14039fff5\ndivss   xmm0, xmm1                                                     ; +0x118, 0x14039fff8\nmovss   dword ptr [rbx+720h], xmm0                                     ; +0x11c, 0x14039fffc\nmov     byte ptr [rbx+728h], 1                                         ; +0x124, 0x1403a0004\njmp     short loc_1403A0067                                            ; +0x12b, 0x1403a000b\ncmp     byte ptr [rbx+9BEh], 0                                         ; +0x12d, 0x1403a000d\njz      short loc_1403A0067                                            ; +0x134, 0x1403a0014\nxorps   xmm0, xmm0                                                     ; +0x136, 0x1403a0016\nmovups  [rsp+58h+var_38], xmm0                                         ; +0x139, 0x1403a0019\nmov     [rsp+58h+var_28], 9                                            ; +0x13e, 0x1403a001e\nmov     [rsp+58h+var_20], 0Fh                                          ; +0x147, 0x1403a0027\nmovsd   xmm0, cs:qword_1405C7A28                                       ; +0x150, 0x1403a0030\nmovsd   qword ptr [rsp+58h+var_38], xmm0                               ; +0x158, 0x1403a0038\nmovzx   eax, cs:byte_1405C7A30                                         ; +0x15e, 0x1403a003e\nmov     byte ptr [rsp+58h+var_38+8], al                                ; +0x165, 0x1403a0045\nmov     byte ptr [rsp+58h+var_38+9], 0                                 ; +0x169, 0x1403a0049\nmovss   xmm2, cs:dword_140622A10                                       ; +0x16e, 0x1403a004e\nlea     rdx, [rsp+58h+var_38]                                          ; +0x176, 0x1403a0056\nmov     rcx, [rbx+8A8h]                                                ; +0x17b, 0x1403a005b\ncall    CCAnimatedSprite__tweenToAnimation                             ; +0x182, 0x1403a0062\nmov     rax, [rbx]                                                     ; +0x187, 0x1403a0067\nmov     rcx, rbx                                                       ; +0x18a, 0x1403a006a\ncall    qword ptr [rax+0C8h]                                           ; +0x18d, 0x1403a006d\nmov     rdx, rax                                                       ; +0x193, 0x1403a0073\nlea     rcx, [rbx+0A2Ch]                                               ; +0x196, 0x1403a0076\nmovaps  xmm7, [rsp+58h+var_18]                                         ; +0x19d, 0x1403a007d\nadd     rsp, 50h                                                       ; +0x1a2, 0x1403a0082\npop     rbx                                                            ; +0x1a6, 0x1403a0086\njmp     cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1a7, 0x1403a0087", "xrefs": ["PlayerObject::postCollision @ 0x14038d966", "PlayerObject::postCollision @ 0x14038ec5c", "<???> @ 0x1406d68cc"], "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"}