{"type": "func", "start": 5370905024, "end": 5370905441, "name": "GJBaseGameLayer::rotateGameplay", "pseudocode": "// \n// GJBaseGameLayer::rotateGameplay from 0x1402181c0 to 0x140218361 (417 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x140567088\n// > <???> @ 0x1405863e0\n// > <???> @ 0x1405c9c70\n// > <???> @ 0x14067f614\n// > <???> @ 0x14067f648\n// > <???> @ 0x1406cd218\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 GJBaseGameLayer::rotateGameplay(GJBaseGameLayer *a1, RotateGameplayGameObject *a2)\n{\n  int m_groundDirection; // eax\n  _BYTE v5[16]; // [rsp+40h] [rbp-28h] BYREF\n  char v6; // [rsp+78h] [rbp+10h] BYREF\n  cocos2d::CCPoint v7; // [rsp+80h] [rbp+18h] BYREF\n  char v8; // [rsp+88h] [rbp+20h] BYREF\n\n  if ( a2->m_changeChannel )\n  {\n    a1->m_gameState.m_currentChannel = a2->m_targetChannelID;\n    m_groundDirection = a2->m_groundDirection;\n    *(_BYTE *)(*(_QWORD *)sub_140250920(&a1->m_gameState.m_spawnChannelRelated1, v5) + 20LL) = (unsigned int)(m_groundDirection - 2) <= 1;\n  }\n  if ( !a2->m_channelOnly )\n  {\n    PlayerObject::rotateGameplay(\n      a1->m_player1,\n      a2->m_moveDirection,\n      a2->m_groundDirection,\n      a2->m_editVelocity,\n      a2->m_velocityModX,\n      a2->m_velocityModY,\n      a2->m_overrideVelocity,\n      a2->m_dontSlide);\n    if ( a1->m_gameState.m_isDualMode )\n      PlayerObject::rotateGameplay(\n        a1->m_player2,\n        a2->m_moveDirection,\n        a2->m_groundDirection,\n        a2->m_editVelocity,\n        a2->m_velocityModX,\n        a2->m_velocityModY,\n        a2->m_overrideVelocity,\n        a2->m_dontSlide);\n    a1->m_player1->getPosition_0(a1->m_player1);\n    cocos2d::CCPoint::CCPoint(&v7);\n    ((void (__fastcall *)(RotateGameplayGameObject *, char *))a2->getRealPosition)(a2, &v6);\n    cocos2d::CCPoint::operator-(&v7, &v8, &v6);\n    a1->didRotateGameplay(a1);\n  }\n  if ( a2->m_instantOffset )\n  {\n    a1->m_gameState.m_unkPoint30.x = 1.0;\n    a1->m_gameState.m_unkPoint30.y = 1.0;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::rotateGameplay from 0x1402181c0 to 0x140218361 (417 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x140567088\n; > <???> @ 0x1405863e0\n; > <???> @ 0x1405c9c70\n; > <???> @ 0x14067f614\n; > <???> @ 0x14067f648\n; > <???> @ 0x1406cd218\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, 0x1402181c0\nsub     rsp, 60h                                                       ; +0x2, 0x1402181c2\ncmp     byte ptr [rdx+754h], 0                                         ; +0x6, 0x1402181c6\nmov     rsi, rcx                                                       ; +0xd, 0x1402181cd\nmov     [rsp+68h+var_10], rdi                                          ; +0x10, 0x1402181d0\nmov     rdi, rdx                                                       ; +0x15, 0x1402181d5\nmov     [rsp+68h+var_18], r14                                          ; +0x18, 0x1402181d8\njz      short loc_14021821F                                            ; +0x1d, 0x1402181dd\nmov     eax, [rdx+758h]                                                ; +0x1f, 0x1402181df\nlea     r8, [rcx+33Ch]                                                 ; +0x25, 0x1402181e5\nmov     [r8], eax                                                      ; +0x2c, 0x1402181ec\nmov     eax, [rdx+744h]                                                ; +0x2f, 0x1402181ef\nlea     rdx, [rsp+68h+var_28]                                          ; +0x35, 0x1402181f5\nsub     eax, 2                                                         ; +0x3a, 0x1402181fa\nmov     [rsp+68h+arg_0], rbx                                           ; +0x3d, 0x1402181fd\ncmp     eax, 1                                                         ; +0x42, 0x140218202\nsetbe   bl                                                             ; +0x45, 0x140218205\nadd     rcx, 388h                                                      ; +0x48, 0x140218208\ncall    sub_140250920                                                  ; +0x4f, 0x14021820f\nmov     rcx, [rax]                                                     ; +0x54, 0x140218214\nmov     [rcx+14h], bl                                                  ; +0x57, 0x140218217\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x5a, 0x14021821a\ncmp     byte ptr [rdi+755h], 0                                         ; +0x5f, 0x14021821f\njnz     loc_140218334                                                  ; +0x66, 0x140218226\nmovzx   eax, byte ptr [rdi+75Dh]                                       ; +0x6c, 0x14021822c\nmovss   xmm0, dword ptr [rdi+750h]                                     ; +0x73, 0x140218233\nmovss   xmm1, dword ptr [rdi+74Ch]                                     ; +0x7b, 0x14021823b\nmovzx   r9d, byte ptr [rdi+748h]                                       ; +0x83, 0x140218243\nmov     r8d, [rdi+744h]                                                ; +0x8b, 0x14021824b\nmov     edx, [rdi+740h]                                                ; +0x92, 0x140218252\nmov     rcx, [rsi+0DA0h]                                               ; +0x98, 0x140218258\nmov     [rsp+68h+var_30], al                                           ; +0x9f, 0x14021825f\nmovzx   eax, byte ptr [rdi+749h]                                       ; +0xa3, 0x140218263\nmov     [rsp+68h+var_38], al                                           ; +0xaa, 0x14021826a\nmovss   [rsp+68h+var_40], xmm0                                         ; +0xae, 0x14021826e\nmovss   [rsp+68h+var_48], xmm1                                         ; +0xb4, 0x140218274\ncall    PlayerObject__rotateGameplay                                   ; +0xba, 0x14021827a\ncmp     byte ptr [rsi+422h], 0                                         ; +0xbf, 0x14021827f\njz      short loc_1402182DB                                            ; +0xc6, 0x140218286\nmovzx   eax, byte ptr [rdi+75Dh]                                       ; +0xc8, 0x140218288\nmovss   xmm0, dword ptr [rdi+750h]                                     ; +0xcf, 0x14021828f\nmovss   xmm1, dword ptr [rdi+74Ch]                                     ; +0xd7, 0x140218297\nmovzx   r9d, byte ptr [rdi+748h]                                       ; +0xdf, 0x14021829f\nmov     r8d, [rdi+744h]                                                ; +0xe7, 0x1402182a7\nmov     edx, [rdi+740h]                                                ; +0xee, 0x1402182ae\nmov     rcx, [rsi+0DA8h]                                               ; +0xf4, 0x1402182b4\nmov     [rsp+68h+var_30], al                                           ; +0xfb, 0x1402182bb\nmovzx   eax, byte ptr [rdi+749h]                                       ; +0xff, 0x1402182bf\nmov     [rsp+68h+var_38], al                                           ; +0x106, 0x1402182c6\nmovss   [rsp+68h+var_40], xmm0                                         ; +0x10a, 0x1402182ca\nmovss   [rsp+68h+var_48], xmm1                                         ; +0x110, 0x1402182d0\ncall    PlayerObject__rotateGameplay                                   ; +0x116, 0x1402182d6\nmov     rcx, [rsi+0DA0h]                                               ; +0x11b, 0x1402182db\nmov     rax, [rcx]                                                     ; +0x122, 0x1402182e2\ncall    qword ptr [rax+0C8h]                                           ; +0x125, 0x1402182e5\nmov     rdx, rax                                                       ; +0x12b, 0x1402182eb\nlea     rcx, [rsp+68h+arg_10]                                          ; +0x12e, 0x1402182ee\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x136, 0x1402182f6\nmov     rax, [rdi]                                                     ; +0x13c, 0x1402182fc\nlea     rdx, [rsp+68h+arg_8]                                           ; +0x13f, 0x1402182ff\nmov     rcx, rdi                                                       ; +0x144, 0x140218304\ncall    qword ptr [rax+4A8h]                                           ; +0x147, 0x140218307\nlea     r8, [rsp+68h+arg_8]                                            ; +0x14d, 0x14021830d\nlea     rdx, [rsp+68h+arg_18]                                          ; +0x152, 0x140218312\nlea     rcx, [rsp+68h+arg_10]                                          ; +0x15a, 0x14021831a\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x162, 0x140218322\nmov     rax, [rsi]                                                     ; +0x168, 0x140218328\nmov     rcx, rsi                                                       ; +0x16b, 0x14021832b\ncall    qword ptr [rax+4E8h]                                           ; +0x16e, 0x14021832e\ncmp     byte ptr [rdi+75Ch], 0                                         ; +0x174, 0x140218334\nmov     rdi, [rsp+68h+var_10]                                          ; +0x17b, 0x14021833b\nmov     r14, [rsp+68h+var_18]                                          ; +0x180, 0x140218340\njz      short loc_14021835B                                            ; +0x185, 0x140218345\nmov     dword ptr [rsi+2B4h], 3F800000h                                ; +0x187, 0x140218347\nmov     dword ptr [rsi+2B8h], 3F800000h                                ; +0x191, 0x140218351\nadd     rsp, 60h                                                       ; +0x19b, 0x14021835b\npop     rsi                                                            ; +0x19f, 0x14021835f\nretn                                                                   ; +0x1a0, 0x140218360", "xrefs": ["<???> @ 0x140567088", "<???> @ 0x1405863e0", "<???> @ 0x1405c9c70", "<???> @ 0x14067f614", "<???> @ 0x14067f648", "<???> @ 0x1406cd218"], "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"}