{"type": "func", "start": 4296164464, "end": 4296164632, "name": "GJBaseGameLayer::switchToRollMode", "pseudocode": "// \n// GJBaseGameLayer::switchToRollMode from 0x100124470 to 0x100124518 (168 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x1001273fb\n// > PlayerObject::loadFromCheckpoint @ 0x10041cf34\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 __fastcall GJBaseGameLayer::switchToRollMode(\n        GJBaseGameLayer *a1,\n        PlayerObject *a2,\n        GameObject *m_lastActivatedPortal2,\n        bool a4)\n{\n  bool m_hasNoEffects; // al\n  _BYTE v6[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  PlayerObject::switchedToMode(a2, BallPortal);\n  if ( m_lastActivatedPortal2 )\n  {\n    ((void (__fastcall *)(GameObject *))m_lastActivatedPortal2->getPosition)(m_lastActivatedPortal2);\n    sub_10028CC60(v6);\n    sub_10028CC90();\n    a2->m_lastActivatedPortal = m_lastActivatedPortal2;\n  }\n  if ( a1->m_gameState.m_isDualMode && a1->m_gameState.m_lastActivatedPortal2 )\n    m_lastActivatedPortal2 = a1->m_gameState.m_lastActivatedPortal2;\n  if ( m_lastActivatedPortal2 )\n  {\n    a1->m_gameState.m_lastActivatedPortal1 = m_lastActivatedPortal2;\n    m_hasNoEffects = m_lastActivatedPortal2->m_hasNoEffects;\n  }\n  else\n  {\n    m_hasNoEffects = 0;\n  }\n  PlayerObject::toggleRollMode(a2, 1, m_hasNoEffects);\n}", "assembly": "; \n; GJBaseGameLayer::switchToRollMode from 0x100124470 to 0x100124518 (168 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x1001273fb\n; > PlayerObject::loadFromCheckpoint @ 0x10041cf34\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, 0x100124470\nmov     rbp, rsp                                                       ; +0x1, 0x100124471\npush    r15                                                            ; +0x4, 0x100124474\npush    r14                                                            ; +0x6, 0x100124476\npush    r12                                                            ; +0x8, 0x100124478\npush    rbx                                                            ; +0xa, 0x10012447a\nsub     rsp, 10h                                                       ; +0xb, 0x10012447b\nmov     r14, rdx                                                       ; +0xf, 0x10012447f\nmov     rbx, rsi                                                       ; +0x12, 0x100124482\nmov     r15, rdi                                                       ; +0x15, 0x100124485\nmov     rdi, rsi                                                       ; +0x18, 0x100124488\nmov     esi, 10h                                                       ; +0x1b, 0x10012448b\ncall    PlayerObject__switchedToMode                                   ; +0x20, 0x100124490\ntest    r14, r14                                                       ; +0x25, 0x100124495\njz      short loc_1001244CB                                            ; +0x28, 0x100124498\nmov     rax, [r14]                                                     ; +0x2a, 0x10012449a\nmov     rdi, r14                                                       ; +0x2d, 0x10012449d\ncall    qword ptr [rax+0C0h]                                           ; +0x30, 0x1001244a0\nlea     r12, [rbp+var_28]                                              ; +0x36, 0x1001244a6\nmov     rdi, r12                                                       ; +0x3a, 0x1001244aa\nmov     rsi, rax                                                       ; +0x3d, 0x1001244ad\ncall    sub_10028CC60                                                  ; +0x40, 0x1001244b0\nlea     rdi, [rbx+9B0h]                                                ; +0x45, 0x1001244b5\nmov     rsi, r12                                                       ; +0x4c, 0x1001244bc\ncall    sub_10028CC90                                                  ; +0x4f, 0x1001244bf\nmov     [rbx+0A18h], r14                                               ; +0x54, 0x1001244c4\ncmp     byte ptr [r15+3F2h], 1                                         ; +0x5b, 0x1001244cb\njnz     short loc_1001244E3                                            ; +0x63, 0x1001244d3\nmov     rax, [r15+3D8h]                                                ; +0x65, 0x1001244d5\ntest    rax, rax                                                       ; +0x6c, 0x1001244dc\ncmovnz  r14, rax                                                       ; +0x6f, 0x1001244df\ntest    r14, r14                                                       ; +0x73, 0x1001244e3\njz      short loc_1001244F9                                            ; +0x76, 0x1001244e6\nmov     [r15+3D0h], r14                                                ; +0x78, 0x1001244e8\nmovzx   eax, byte ptr [r14+414h]                                       ; +0x7f, 0x1001244ef\njmp     short loc_1001244FB                                            ; +0x87, 0x1001244f7\nxor     eax, eax                                                       ; +0x89, 0x1001244f9\nmovzx   edx, al                                                        ; +0x8b, 0x1001244fb\nmov     rdi, rbx                                                       ; +0x8e, 0x1001244fe\nmov     esi, 1                                                         ; +0x91, 0x100124501\ncall    PlayerObject__toggleRollMode                                   ; +0x96, 0x100124506\nadd     rsp, 10h                                                       ; +0x9b, 0x10012450b\npop     rbx                                                            ; +0x9f, 0x10012450f\npop     r12                                                            ; +0xa0, 0x100124510\npop     r14                                                            ; +0xa2, 0x100124512\npop     r15                                                            ; +0xa4, 0x100124514\npop     rbp                                                            ; +0xa6, 0x100124516\nretn                                                                   ; +0xa7, 0x100124517", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x1001273fb", "PlayerObject::loadFromCheckpoint @ 0x10041cf34"], "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"}