{"type": "func", "start": 5372450528, "end": 5372451234, "name": "PlayerObject::unrotateGameplayObject", "pseudocode": "// \n// PlayerObject::unrotateGameplayObject from 0x1403916e0 to 0x1403919a2 (706 bytes)\n// \n// 6 xrefs:\n// > PlayerObject::handleRotatedCollisionInternal @ 0x14038f286\n// > PlayerObject::handleRotatedCollisionInternal @ 0x14038f2a7\n// > PlayerObject::spiderTestJumpInternal @ 0x140394bca\n// > <???> @ 0x1406979b0\n// > <???> @ 0x1406979c0\n// > <???> @ 0x1406d6230\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::unrotateGameplayObject(PlayerObject *a1, GameObject *a2)\n{\n  __int64 m_uniqueID; // rdx\n  _QWORD *v5; // rdi\n  std::_Vector_val<std::_Simple_types<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, GJPointDouble>>>>>>::pointer Myfirst; // r8\n  unsigned __int64 v7; // rcx\n  __int64 v8; // rax\n  __int64 v9; // rcx\n  __int64 v10; // rax\n  __int64 v11; // rcx\n  double v12; // xmm1_8\n  float v13; // xmm1_4\n  GameObject_vtbl *v14; // rax\n  unsigned int v15; // edx\n  std::_Vector_val<std::_Simple_types<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, GJPointDouble>>>>>>::pointer v16; // r9\n  unsigned __int64 v17; // r8\n  __int64 v18; // rax\n  std::_Hash<std::_Umap_traits<int, GJPointDouble, std::_Uhash_compare<int, std::hash<int>, std::equal_to<int>>, std::allocator<std::pair<const int, GJPointDouble>>, false>>::size_type v19; // rcx\n  _QWORD *v20; // rax\n  std::_List_val<std::_List_simple_types<std::pair<const int, GJPointDouble>>>::_Nodeptr Myhead; // rax\n  __int64 v22; // rdx\n  _BYTE v23[56]; // [rsp+20h] [rbp-38h] BYREF\n  int v24; // [rsp+60h] [rbp+8h] BYREF\n\n  m_uniqueID = (unsigned int)a2->m_uniqueID;\n  v5 = nullptr;\n  Myfirst = a1->m_rotateObjectsRelated._Vec._Mypair._Myval2._Myfirst;\n  v7 = 2\n     * ((0x100000001B3LL\n       * (((unsigned __int64)(unsigned int)m_uniqueID >> 24)\n        ^ (0x100000001B3LL\n         * (BYTE2(m_uniqueID)\n          ^ (0x100000001B3LL\n           * ((0x100000001B3LL * ((unsigned __int8)m_uniqueID ^ 0xCBF29CE484222325uLL)) ^ BYTE1(m_uniqueID)))))))\n      & a1->m_rotateObjectsRelated._Mask);\n  v8 = *((_QWORD *)Myfirst + v7 + 1);\n  if ( (std::_List_val<std::_List_simple_types<std::pair<const int, GJPointDouble>>>::_Nodeptr)v8 != a1->m_rotateObjectsRelated._List._Mypair._Myval2._Myhead )\n  {\n    v9 = *((_QWORD *)Myfirst + v7);\n    if ( (_DWORD)m_uniqueID == *(_DWORD *)(v8 + 16) )\n      goto LABEL_7;\n    while ( v8 != v9 )\n    {\n      v8 = *(_QWORD *)(v8 + 8);\n      if ( (_DWORD)m_uniqueID == *(_DWORD *)(v8 + 16) )\n        goto LABEL_7;\n    }\n  }\n  v8 = 0;\nLABEL_7:\n  if ( v8 )\n  {\n    LOBYTE(m_uniqueID) = 1;\n    a2->setObjectRectDirty(a2, m_uniqueID);\n    v24 = a2->m_uniqueID;\n    v10 = sub_1403A43C0(&a1->m_rotateObjectsRelated, v23, &v24);\n    v11 = *(_QWORD *)v10;\n    v12 = -*(double *)(*(_QWORD *)v10 + 32LL);\n    if ( !a2->m_tempOffsetXRelated )\n      a2->m_positionX = a2->m_positionX - *(double *)(v11 + 24);\n    a2->m_positionY = v12 + a2->m_positionY;\n    v13 = -*(double *)(v11 + 24);\n    cocos2d::CCPoint::CCPoint(COERCE_FLOAT(COERCE_UNSIGNED_INT64(-*(double *)(v11 + 32))), v13);\n    cocos2d::CCPoint::operator+(&a2->m_lastPosition, &v24);\n    cocos2d::CCPoint::operator=(&a2->m_lastPosition, &v24);\n    v14 = a2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    a2->m_startRotationX = a2->m_startRotationX + 90.0;\n    a2->m_startRotationY = a2->m_startRotationY + 90.0;\n    ((void (__fastcall *)(GameObject *))v14->setRRotation)(a2);\n    if ( a2->getType(a2) == Slope )\n      GameObject::determineSlopeDirection(a2);\n    v15 = a2->m_uniqueID;\n    v16 = a1->m_rotateObjectsRelated._Vec._Mypair._Myval2._Myfirst;\n    v17 = 0x100000001B3LL\n        * (((unsigned __int64)v15 >> 24)\n         ^ (0x100000001B3LL\n          * (BYTE2(v15)\n           ^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)v15 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v15))))));\n    v18 = *((_QWORD *)v16 + 2 * (v17 & a1->m_rotateObjectsRelated._Mask) + 1);\n    if ( (std::_List_val<std::_List_simple_types<std::pair<const int, GJPointDouble>>>::_Nodeptr)v18 != a1->m_rotateObjectsRelated._List._Mypair._Myval2._Myhead )\n    {\n      if ( v15 == *(_DWORD *)(v18 + 16) )\n      {\nLABEL_16:\n        v5 = (_QWORD *)v18;\n      }\n      else\n      {\n        while ( v18 != *((_QWORD *)v16 + 2 * (v17 & a1->m_rotateObjectsRelated._Mask)) )\n        {\n          v18 = *(_QWORD *)(v18 + 8);\n          if ( v15 == *(_DWORD *)(v18 + 16) )\n            goto LABEL_16;\n        }\n      }\n    }\n    if ( v5 )\n    {\n      v19 = 2 * (v17 & a1->m_rotateObjectsRelated._Mask);\n      v20 = *((_QWORD **)v16 + 2 * (v17 & a1->m_rotateObjectsRelated._Mask));\n      if ( *((_QWORD **)v16 + 2 * (v17 & a1->m_rotateObjectsRelated._Mask) + 1) == v5 )\n      {\n        if ( v20 == v5 )\n        {\n          Myhead = a1->m_rotateObjectsRelated._List._Mypair._Myval2._Myhead;\n          *((_QWORD *)v16 + 2 * (v17 & a1->m_rotateObjectsRelated._Mask)) = Myhead;\n        }\n        else\n        {\n          Myhead = (std::_List_val<std::_List_simple_types<std::pair<const int, GJPointDouble>>>::_Nodeptr)v5[1];\n        }\n        *((_QWORD *)v16 + v19 + 1) = Myhead;\n      }\n      else if ( v20 == v5 )\n      {\n        *((_QWORD *)v16 + 2 * (v17 & a1->m_rotateObjectsRelated._Mask)) = *v5;\n      }\n      v22 = *v5;\n      --a1->m_rotateObjectsRelated._List._Mypair._Myval2._Mysize;\n      *(_QWORD *)v5[1] = v22;\n      *(_QWORD *)(v22 + 8) = v5[1];\n      j_j_free(v5);\n    }\n  }\n}", "assembly": "; \n; PlayerObject::unrotateGameplayObject from 0x1403916e0 to 0x1403919a2 (706 bytes)\n; \n; 6 xrefs:\n; > PlayerObject::handleRotatedCollisionInternal @ 0x14038f286\n; > PlayerObject::handleRotatedCollisionInternal @ 0x14038f2a7\n; > PlayerObject::spiderTestJumpInternal @ 0x140394bca\n; > <???> @ 0x1406979b0\n; > <???> @ 0x1406979c0\n; > <???> @ 0x1406d6230\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    rbp                                                            ; +0x0, 0x1403916e0\npush    rsi                                                            ; +0x2, 0x1403916e2\npush    rdi                                                            ; +0x3, 0x1403916e3\npush    r14                                                            ; +0x4, 0x1403916e4\npush    r15                                                            ; +0x6, 0x1403916e6\nsub     rsp, 30h                                                       ; +0x8, 0x1403916e8\nmov     rbp, rcx                                                       ; +0xc, 0x1403916ec\nmov     r14, 100000001B3h                                              ; +0xf, 0x1403916ef\nmov     rsi, rdx                                                       ; +0x19, 0x1403916f9\nmov     r15, 0CBF29CE484222325h                                        ; +0x1c, 0x1403916fc\nmov     edx, [rdx+39Ch]                                                ; +0x26, 0x140391706\nxor     edi, edi                                                       ; +0x2c, 0x14039170c\nmov     eax, edx                                                       ; +0x2e, 0x14039170e\nshr     eax, 8                                                         ; +0x30, 0x140391710\nmovzx   r8d, al                                                        ; +0x33, 0x140391713\nmovzx   eax, dl                                                        ; +0x37, 0x140391717\nxor     rax, r15                                                       ; +0x3a, 0x14039171a\nimul    rax, r14                                                       ; +0x3d, 0x14039171d\nxor     r8, rax                                                        ; +0x41, 0x140391721\nmov     eax, edx                                                       ; +0x44, 0x140391724\nimul    r8, r14                                                        ; +0x46, 0x140391726\nshr     eax, 10h                                                       ; +0x4a, 0x14039172a\nmovzx   ecx, al                                                        ; +0x4d, 0x14039172d\nmov     eax, edx                                                       ; +0x50, 0x140391730\nxor     r8, rcx                                                        ; +0x52, 0x140391732\nshr     rax, 18h                                                       ; +0x55, 0x140391735\nmov     rcx, [rbp+6D0h]                                                ; +0x59, 0x140391739\nimul    r8, r14                                                        ; +0x60, 0x140391740\nxor     r8, rax                                                        ; +0x64, 0x140391744\nimul    r8, r14                                                        ; +0x67, 0x140391747\nand     rcx, r8                                                        ; +0x6b, 0x14039174b\nmov     r8, [rbp+6B8h]                                                 ; +0x6e, 0x14039174e\nadd     rcx, rcx                                                       ; +0x75, 0x140391755\nmov     rax, [r8+rcx*8+8]                                              ; +0x78, 0x140391758\ncmp     rax, [rbp+6A8h]                                                ; +0x7d, 0x14039175d\njz      short loc_140391780                                            ; +0x84, 0x140391764\nmov     rcx, [r8+rcx*8]                                                ; +0x86, 0x140391766\ncmp     edx, [rax+10h]                                                 ; +0x8a, 0x14039176a\njz      short loc_140391783                                            ; +0x8d, 0x14039176d\nnop                                                                    ; +0x8f, 0x14039176f\ncmp     rax, rcx                                                       ; +0x90, 0x140391770\njz      short loc_140391780                                            ; +0x93, 0x140391773\nmov     rax, [rax+8]                                                   ; +0x95, 0x140391775\ncmp     edx, [rax+10h]                                                 ; +0x99, 0x140391779\njnz     short loc_140391770                                            ; +0x9c, 0x14039177c\njmp     short loc_140391783                                            ; +0x9e, 0x14039177e\nmov     rax, rdi                                                       ; +0xa0, 0x140391780\ntest    rax, rax                                                       ; +0xa3, 0x140391783\njz      loc_140391996                                                  ; +0xa6, 0x140391786\nmov     rax, [rsi]                                                     ; +0xac, 0x14039178c\nmov     dl, 1                                                          ; +0xaf, 0x14039178f\nmov     rcx, rsi                                                       ; +0xb1, 0x140391791\nmov     [rsp+58h+arg_10], rbx                                          ; +0xb4, 0x140391794\ncall    qword ptr [rax+648h]                                           ; +0xb9, 0x140391799\nmov     eax, [rsi+39Ch]                                                ; +0xbf, 0x14039179f\nlea     rcx, [rbp+6A0h]                                                ; +0xc5, 0x1403917a5\nlea     r8, [rsp+58h+arg_0]                                            ; +0xcc, 0x1403917ac\nmov     [rsp+58h+arg_0], eax                                           ; +0xd1, 0x1403917b1\nlea     rdx, [rsp+58h+var_38]                                          ; +0xd5, 0x1403917b5\ncall    sub_1403A43C0                                                  ; +0xda, 0x1403917ba\nmovsd   xmm3, qword ptr cs:xmmword_1406243E0                           ; +0xdf, 0x1403917bf\nmov     rcx, [rax]                                                     ; +0xe7, 0x1403917c7\nmovsd   xmm1, qword ptr [rcx+20h]                                      ; +0xea, 0x1403917ca\nxorps   xmm1, xmm3                                                     ; +0xef, 0x1403917cf\ncmp     [rsi+2C8h], dil                                                ; +0xf2, 0x1403917d2\njnz     short loc_1403917F3                                            ; +0xf9, 0x1403917d9\nmovsd   xmm0, qword ptr [rcx+18h]                                      ; +0xfb, 0x1403917db\nxorps   xmm0, xmm3                                                     ; +0x100, 0x1403917e0\naddsd   xmm0, qword ptr [rsi+3B8h]                                     ; +0x103, 0x1403917e3\nmovsd   qword ptr [rsi+3B8h], xmm0                                     ; +0x10b, 0x1403917eb\naddsd   xmm1, qword ptr [rsi+3C0h]                                     ; +0x113, 0x1403917f3\nxorps   xmm2, xmm2                                                     ; +0x11b, 0x1403917fb\nmovsd   qword ptr [rsi+3C0h], xmm1                                     ; +0x11e, 0x1403917fe\nmovsd   xmm0, qword ptr [rcx+20h]                                      ; +0x126, 0x140391806\nmovsd   xmm1, qword ptr [rcx+18h]                                      ; +0x12b, 0x14039180b\nxorps   xmm0, xmm3                                                     ; +0x130, 0x140391810\nxorps   xmm1, xmm3                                                     ; +0x133, 0x140391813\nlea     rcx, [rsp+58h+arg_8]                                           ; +0x136, 0x140391816\ncvtsd2ss xmm2, xmm0                                                    ; +0x13b, 0x14039181b\ncvtsd2ss xmm1, xmm1                                                    ; +0x13f, 0x14039181f\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x143, 0x140391823\nmov     r8, rax                                                        ; +0x149, 0x140391829\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x14c, 0x14039182c\nlea     rcx, [rsi+4D0h]                                                ; +0x151, 0x140391831\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x158, 0x140391838\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x15e, 0x14039183e\nlea     rcx, [rsi+4D0h]                                                ; +0x163, 0x140391843\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x16a, 0x14039184a\nmovss   xmm0, dword ptr [rsi+3D4h]                                     ; +0x170, 0x140391850\nxorps   xmm1, xmm1                                                     ; +0x178, 0x140391858\naddss   xmm0, cs:dword_140623294                                       ; +0x17b, 0x14039185b\nmov     rax, [rsi]                                                     ; +0x183, 0x140391863\nmov     rcx, rsi                                                       ; +0x186, 0x140391866\nmovss   dword ptr [rsi+3D4h], xmm0                                     ; +0x189, 0x140391869\nmovss   xmm0, dword ptr [rsi+3D8h]                                     ; +0x191, 0x140391871\naddss   xmm0, cs:dword_140623294                                       ; +0x199, 0x140391879\nmovss   dword ptr [rsi+3D8h], xmm0                                     ; +0x1a1, 0x140391881\ncall    qword ptr [rax+520h]                                           ; +0x1a9, 0x140391889\nmov     rax, [rsi]                                                     ; +0x1af, 0x14039188f\nmov     rcx, rsi                                                       ; +0x1b2, 0x140391892\ncall    qword ptr [rax+660h]                                           ; +0x1b5, 0x140391895\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x1bb, 0x14039189b\ncmp     eax, 19h                                                       ; +0x1c0, 0x1403918a0\njnz     short loc_1403918AD                                            ; +0x1c3, 0x1403918a3\nmov     rcx, rsi                                                       ; +0x1c5, 0x1403918a5\ncall    GameObject__determineSlopeDirection                            ; +0x1c8, 0x1403918a8\nmov     edx, [rsi+39Ch]                                                ; +0x1cd, 0x1403918ad\nmov     r9, [rbp+6B8h]                                                 ; +0x1d3, 0x1403918b3\nmov     eax, edx                                                       ; +0x1da, 0x1403918ba\nshr     eax, 8                                                         ; +0x1dc, 0x1403918bc\nmovzx   r8d, al                                                        ; +0x1df, 0x1403918bf\nmovzx   eax, dl                                                        ; +0x1e3, 0x1403918c3\nxor     rax, r15                                                       ; +0x1e6, 0x1403918c6\nimul    rax, r14                                                       ; +0x1e9, 0x1403918c9\nxor     r8, rax                                                        ; +0x1ed, 0x1403918cd\nmov     eax, edx                                                       ; +0x1f0, 0x1403918d0\nimul    r8, r14                                                        ; +0x1f2, 0x1403918d2\nshr     eax, 10h                                                       ; +0x1f6, 0x1403918d6\nmovzx   ecx, al                                                        ; +0x1f9, 0x1403918d9\nmov     eax, edx                                                       ; +0x1fc, 0x1403918dc\nxor     r8, rcx                                                        ; +0x1fe, 0x1403918de\nshr     rax, 18h                                                       ; +0x201, 0x1403918e1\nmov     rcx, [rbp+6D0h]                                                ; +0x205, 0x1403918e5\nimul    r8, r14                                                        ; +0x20c, 0x1403918ec\nxor     r8, rax                                                        ; +0x210, 0x1403918f0\nimul    r8, r14                                                        ; +0x213, 0x1403918f3\nand     rcx, r8                                                        ; +0x217, 0x1403918f7\nadd     rcx, rcx                                                       ; +0x21a, 0x1403918fa\nmov     rax, [r9+rcx*8+8]                                              ; +0x21d, 0x1403918fd\ncmp     rax, [rbp+6A8h]                                                ; +0x222, 0x140391902\njz      short loc_140391925                                            ; +0x229, 0x140391909\nmov     rcx, [r9+rcx*8]                                                ; +0x22b, 0x14039190b\ncmp     edx, [rax+10h]                                                 ; +0x22f, 0x14039190f\njz      short loc_140391922                                            ; +0x232, 0x140391912\ncmp     rax, rcx                                                       ; +0x234, 0x140391914\njz      short loc_140391925                                            ; +0x237, 0x140391917\nmov     rax, [rax+8]                                                   ; +0x239, 0x140391919\ncmp     edx, [rax+10h]                                                 ; +0x23d, 0x14039191d\njnz     short loc_140391914                                            ; +0x240, 0x140391920\nmov     rdi, rax                                                       ; +0x242, 0x140391922\ntest    rdi, rdi                                                       ; +0x245, 0x140391925\njz      short loc_140391996                                            ; +0x248, 0x140391928\nmov     rcx, [rbp+6D0h]                                                ; +0x24a, 0x14039192a\nand     rcx, r8                                                        ; +0x251, 0x140391931\nadd     rcx, rcx                                                       ; +0x254, 0x140391934\nmov     rax, [r9+rcx*8]                                                ; +0x257, 0x140391937\ncmp     [r9+rcx*8+8], rdi                                              ; +0x25b, 0x14039193b\njnz     short loc_140391964                                            ; +0x260, 0x140391940\ncmp     rax, rdi                                                       ; +0x262, 0x140391942\njnz     short loc_140391959                                            ; +0x265, 0x140391945\nmov     rax, [rbp+6A8h]                                                ; +0x267, 0x140391947\nmov     [r9+rcx*8], rax                                                ; +0x26e, 0x14039194e\nmov     [r9+rcx*8+8], rax                                              ; +0x272, 0x140391952\njmp     short loc_140391970                                            ; +0x277, 0x140391957\nmov     rax, [rdi+8]                                                   ; +0x279, 0x140391959\nmov     [r9+rcx*8+8], rax                                              ; +0x27d, 0x14039195d\njmp     short loc_140391970                                            ; +0x282, 0x140391962\ncmp     rax, rdi                                                       ; +0x284, 0x140391964\njnz     short loc_140391970                                            ; +0x287, 0x140391967\nmov     rax, [rdi]                                                     ; +0x289, 0x140391969\nmov     [r9+rcx*8], rax                                                ; +0x28c, 0x14039196c\nmov     rdx, [rdi]                                                     ; +0x290, 0x140391970\nmov     rcx, rdi; Block                                                ; +0x293, 0x140391973\ndec     qword ptr [rbp+6B0h]                                           ; +0x296, 0x140391976\nmov     rax, [rdi+8]                                                   ; +0x29d, 0x14039197d\nmov     [rax], rdx                                                     ; +0x2a1, 0x140391981\nmov     rax, [rdi+8]                                                   ; +0x2a4, 0x140391984\nmov     [rdx+8], rax                                                   ; +0x2a8, 0x140391988\nmov     edx, 28h ; '('                                                 ; +0x2ac, 0x14039198c\ncall    j_j_free                                                       ; +0x2b1, 0x140391991\nadd     rsp, 30h                                                       ; +0x2b6, 0x140391996\npop     r15                                                            ; +0x2ba, 0x14039199a\npop     r14                                                            ; +0x2bc, 0x14039199c\npop     rdi                                                            ; +0x2be, 0x14039199e\npop     rsi                                                            ; +0x2bf, 0x14039199f\npop     rbp                                                            ; +0x2c0, 0x1403919a0\nretn                                                                   ; +0x2c1, 0x1403919a1", "xrefs": ["PlayerObject::handleRotatedCollisionInternal @ 0x14038f286", "PlayerObject::handleRotatedCollisionInternal @ 0x14038f2a7", "PlayerObject::spiderTestJumpInternal @ 0x140394bca", "<???> @ 0x1406979b0", "<???> @ 0x1406979c0", "<???> @ 0x1406d6230"], "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"}