; ; GJBaseGameLayer::switchToRollMode from 0x140212e00 to 0x140212eec (236 bytes) ; ; 2 xrefs: ; > PlayerObject::loadFromCheckpoint @ 0x1403a2ceb ; > @ 0x1406cd038 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x140212e00 mov [rsp+arg_10], rsi ; +0x5, 0x140212e05 push rdi ; +0xa, 0x140212e0a sub rsp, 20h ; +0xb, 0x140212e0b mov rdi, rdx ; +0xf, 0x140212e0f mov rbx, r8 ; +0x12, 0x140212e12 mov rsi, rcx ; +0x15, 0x140212e15 xor r8d, r8d ; +0x18, 0x140212e18 mov rcx, rdi ; +0x1b, 0x140212e1b xor edx, edx ; +0x1e, 0x140212e1e call PlayerObject__toggleFlyMode ; +0x20, 0x140212e20 xor r8d, r8d ; +0x25, 0x140212e25 xor edx, edx ; +0x28, 0x140212e28 mov rcx, rdi ; +0x2a, 0x140212e2a call PlayerObject__toggleBirdMode ; +0x2d, 0x140212e2d xor r8d, r8d ; +0x32, 0x140212e32 xor edx, edx ; +0x35, 0x140212e35 mov rcx, rdi ; +0x37, 0x140212e37 call PlayerObject__toggleDartMode ; +0x3a, 0x140212e3a xor r8d, r8d ; +0x3f, 0x140212e3f xor edx, edx ; +0x42, 0x140212e42 mov rcx, rdi ; +0x44, 0x140212e44 call PlayerObject__toggleRobotMode ; +0x47, 0x140212e47 xor r8d, r8d ; +0x4c, 0x140212e4c xor edx, edx ; +0x4f, 0x140212e4f mov rcx, rdi ; +0x51, 0x140212e51 call PlayerObject__toggleSpiderMode ; +0x54, 0x140212e54 xor r8d, r8d ; +0x59, 0x140212e59 xor edx, edx ; +0x5c, 0x140212e5c mov rcx, rdi ; +0x5e, 0x140212e5e call PlayerObject__toggleSwingMode ; +0x61, 0x140212e61 test rbx, rbx ; +0x66, 0x140212e66 jz short loc_140212E9C ; +0x69, 0x140212e69 mov rax, [rbx] ; +0x6b, 0x140212e6b mov rcx, rbx ; +0x6e, 0x140212e6e call qword ptr [rax+0C8h] ; +0x71, 0x140212e71 mov rdx, rax ; +0x77, 0x140212e77 lea rcx, [rsp+28h+arg_0] ; +0x7a, 0x140212e7a call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x7f, 0x140212e7f mov rdx, rax ; +0x85, 0x140212e85 lea rcx, [rdi+0A00h] ; +0x88, 0x140212e88 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x8f, 0x140212e8f mov [rdi+0A80h], rbx ; +0x95, 0x140212e95 cmp byte ptr [rsi+422h], 0 ; +0x9c, 0x140212e9c jz short loc_140212EB6 ; +0xa3, 0x140212ea3 mov rax, [rsi+408h] ; +0xa5, 0x140212ea5 test rax, rax ; +0xac, 0x140212eac jz short loc_140212EB6 ; +0xaf, 0x140212eaf mov rbx, rax ; +0xb1, 0x140212eb1 jmp short loc_140212EBB ; +0xb4, 0x140212eb4 test rbx, rbx ; +0xb6, 0x140212eb6 jz short loc_140212ED0 ; +0xb9, 0x140212eb9 mov [rsi+400h], rbx ; +0xbb, 0x140212ebb cmp byte ptr [rbx+41Ch], 0 ; +0xc2, 0x140212ec2 jz short loc_140212ED0 ; +0xc9, 0x140212ec9 mov r8b, 1 ; +0xcb, 0x140212ecb jmp short loc_140212ED3 ; +0xce, 0x140212ece xor r8d, r8d ; +0xd0, 0x140212ed0 mov dl, 1 ; +0xd3, 0x140212ed3 mov rcx, rdi ; +0xd5, 0x140212ed5 mov rbx, [rsp+28h+arg_8] ; +0xd8, 0x140212ed8 mov rsi, [rsp+28h+arg_10] ; +0xdd, 0x140212edd add rsp, 20h ; +0xe2, 0x140212ee2 pop rdi ; +0xe6, 0x140212ee6 jmp PlayerObject__toggleRollMode ; +0xe7, 0x140212ee7