{"type": "func", "start": 5372478512, "end": 5372478735, "name": "PlayerObject::reversePlayer", "pseudocode": "// \n// PlayerObject::reversePlayer from 0x140398430 to 0x14039850f (223 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14021594c\n// > GJBaseGameLayer::bumpPlayer @ 0x140217b3f\n// > PlayerObject::ringJump @ 0x140398d90\n// > <???> @ 0x140697fb4\n// > <???> @ 0x140697fc4\n// > <???> @ 0x1406d650c\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::reversePlayer(PlayerObject *a1, EffectGameObject *a2)\n{\n  float v2; // xmm0_4\n  const cocos2d::CCPoint *v5; // rax\n  __int64 v6; // rax\n  float v7; // xmm0_4\n  _BYTE v8[16]; // [rsp+20h] [rbp-28h] BYREF\n  float v9; // [rsp+50h] [rbp+8h] BYREF\n  float v10; // [rsp+54h] [rbp+Ch]\n  char v11; // [rsp+60h] [rbp+18h] BYREF\n\n  if ( !a1->m_isPlatformer )\n  {\n    if ( a2 && a1->m_reverseSync )\n    {\n      cocos2d::CCPoint::CCPoint(v2, a1->m_maybeReverseSpeed);\n      v5 = a1->getPosition_0(a1);\n      cocos2d::CCPoint::operator+(v5, &v11);\n      v6 = ((__int64 (__fastcall *)(EffectGameObject *, _BYTE *))a2->getRealPosition)(a2, v8);\n      cocos2d::CCPoint::operator-(v6, &v9, &v11);\n      if ( a1->m_isSideways )\n        v7 = v10;\n      else\n        v7 = v9;\n      a1->m_maybeReverseSpeed = (float)(v7 + v7) + a1->m_maybeReverseSpeed;\n    }\n    PlayerObject::doReversePlayer(a1, !a1->m_isGoingLeft);\n  }\n}", "assembly": "; \n; PlayerObject::reversePlayer from 0x140398430 to 0x14039850f (223 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14021594c\n; > GJBaseGameLayer::bumpPlayer @ 0x140217b3f\n; > PlayerObject::ringJump @ 0x140398d90\n; > <???> @ 0x140697fb4\n; > <???> @ 0x140697fc4\n; > <???> @ 0x1406d650c\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    rsi                                                            ; +0x0, 0x140398430\npush    rdi                                                            ; +0x2, 0x140398432\nsub     rsp, 38h                                                       ; +0x3, 0x140398433\ncmp     byte ptr [rcx+0B70h], 0                                        ; +0x7, 0x140398437\nmov     rsi, rdx                                                       ; +0xe, 0x14039843e\nmov     rdi, rcx                                                       ; +0x11, 0x140398441\njnz     loc_140398508                                                  ; +0x14, 0x140398444\ntest    rdx, rdx                                                       ; +0x1a, 0x14039844a\njz      loc_1403984F6                                                  ; +0x1d, 0x14039844d\ncmp     byte ptr [rcx+562h], 0                                         ; +0x23, 0x140398453\njz      loc_1403984F6                                                  ; +0x2a, 0x14039845a\nmovsd   xmm1, qword ptr [rcx+9D0h]                                     ; +0x30, 0x140398460\nlea     rcx, [rsp+48h+arg_18]                                          ; +0x38, 0x140398468\ncvtpd2ps xmm1, xmm1                                                    ; +0x3d, 0x14039846d\nmov     [rsp+48h+var_18], rbx                                          ; +0x41, 0x140398471\nmovaps  xmm2, xmm1                                                     ; +0x46, 0x140398476\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x49, 0x140398479\nmov     rdx, [rdi]                                                     ; +0x4f, 0x14039847f\nmov     rcx, rdi                                                       ; +0x52, 0x140398482\nmov     rbx, rax                                                       ; +0x55, 0x140398485\ncall    qword ptr [rdx+0C8h]                                           ; +0x58, 0x140398488\nmov     r8, rbx                                                        ; +0x5e, 0x14039848e\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x61, 0x140398491\nmov     rcx, rax                                                       ; +0x66, 0x140398496\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x69, 0x140398499\nmov     rax, [rsi]                                                     ; +0x6f, 0x14039849f\nlea     rdx, [rsp+48h+var_28]                                          ; +0x72, 0x1403984a2\nmov     rcx, rsi                                                       ; +0x77, 0x1403984a7\ncall    qword ptr [rax+4A8h]                                           ; +0x7a, 0x1403984aa\nmov     rcx, rax                                                       ; +0x80, 0x1403984b0\nlea     r8, [rsp+48h+arg_10]                                           ; +0x83, 0x1403984b3\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x88, 0x1403984b8\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x8d, 0x1403984bd\ncmp     byte ptr [rdi+9C3h], 0                                         ; +0x93, 0x1403984c3\nmov     rbx, [rsp+48h+var_18]                                          ; +0x9a, 0x1403984ca\njnz     short loc_1403984D9                                            ; +0x9f, 0x1403984cf\nmovss   xmm0, [rsp+48h+arg_0]                                          ; +0xa1, 0x1403984d1\njmp     short loc_1403984DF                                            ; +0xa7, 0x1403984d7\nmovss   xmm0, [rsp+48h+arg_4]                                          ; +0xa9, 0x1403984d9\naddss   xmm0, xmm0                                                     ; +0xaf, 0x1403984df\ncvtps2pd xmm0, xmm0                                                    ; +0xb3, 0x1403984e3\naddsd   xmm0, qword ptr [rdi+9D0h]                                     ; +0xb6, 0x1403984e6\nmovsd   qword ptr [rdi+9D0h], xmm0                                     ; +0xbe, 0x1403984ee\ncmp     byte ptr [rdi+9C2h], 0                                         ; +0xc6, 0x1403984f6\nmov     rcx, rdi                                                       ; +0xcd, 0x1403984fd\nsetz    dl                                                             ; +0xd0, 0x140398500\ncall    PlayerObject__doReversePlayer                                  ; +0xd3, 0x140398503\nadd     rsp, 38h                                                       ; +0xd8, 0x140398508\npop     rdi                                                            ; +0xdc, 0x14039850c\npop     rsi                                                            ; +0xdd, 0x14039850d\nretn                                                                   ; +0xde, 0x14039850e", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x14021594c", "GJBaseGameLayer::bumpPlayer @ 0x140217b3f", "PlayerObject::ringJump @ 0x140398d90", "<???> @ 0x140697fb4", "<???> @ 0x140697fc4", "<???> @ 0x1406d650c"], "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"}