; ; GJBaseGameLayer::switchToRobotMode from 0x140212c20 to 0x140212d0c (236 bytes) ; ; 2 xrefs: ; > PlayerObject::loadFromCheckpoint @ 0x1403a3052 ; > @ 0x1406cd020 ; ; 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, 0x140212c20 mov [rsp+arg_10], rsi ; +0x5, 0x140212c25 push rdi ; +0xa, 0x140212c2a sub rsp, 20h ; +0xb, 0x140212c2b mov rdi, rdx ; +0xf, 0x140212c2f mov rbx, r8 ; +0x12, 0x140212c32 mov rsi, rcx ; +0x15, 0x140212c35 xor r8d, r8d ; +0x18, 0x140212c38 mov rcx, rdi ; +0x1b, 0x140212c3b xor edx, edx ; +0x1e, 0x140212c3e call PlayerObject__toggleFlyMode ; +0x20, 0x140212c40 xor r8d, r8d ; +0x25, 0x140212c45 xor edx, edx ; +0x28, 0x140212c48 mov rcx, rdi ; +0x2a, 0x140212c4a call PlayerObject__toggleBirdMode ; +0x2d, 0x140212c4d xor r8d, r8d ; +0x32, 0x140212c52 xor edx, edx ; +0x35, 0x140212c55 mov rcx, rdi ; +0x37, 0x140212c57 call PlayerObject__toggleRollMode ; +0x3a, 0x140212c5a xor r8d, r8d ; +0x3f, 0x140212c5f xor edx, edx ; +0x42, 0x140212c62 mov rcx, rdi ; +0x44, 0x140212c64 call PlayerObject__toggleDartMode ; +0x47, 0x140212c67 xor r8d, r8d ; +0x4c, 0x140212c6c xor edx, edx ; +0x4f, 0x140212c6f mov rcx, rdi ; +0x51, 0x140212c71 call PlayerObject__toggleSpiderMode ; +0x54, 0x140212c74 xor r8d, r8d ; +0x59, 0x140212c79 xor edx, edx ; +0x5c, 0x140212c7c mov rcx, rdi ; +0x5e, 0x140212c7e call PlayerObject__toggleSwingMode ; +0x61, 0x140212c81 test rbx, rbx ; +0x66, 0x140212c86 jz short loc_140212CBC ; +0x69, 0x140212c89 mov rax, [rbx] ; +0x6b, 0x140212c8b mov rcx, rbx ; +0x6e, 0x140212c8e call qword ptr [rax+0C8h] ; +0x71, 0x140212c91 mov rdx, rax ; +0x77, 0x140212c97 lea rcx, [rsp+28h+arg_0] ; +0x7a, 0x140212c9a call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x7f, 0x140212c9f mov rdx, rax ; +0x85, 0x140212ca5 lea rcx, [rdi+0A00h] ; +0x88, 0x140212ca8 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x8f, 0x140212caf mov [rdi+0A80h], rbx ; +0x95, 0x140212cb5 cmp byte ptr [rsi+422h], 0 ; +0x9c, 0x140212cbc jz short loc_140212CD6 ; +0xa3, 0x140212cc3 mov rax, [rsi+408h] ; +0xa5, 0x140212cc5 test rax, rax ; +0xac, 0x140212ccc jz short loc_140212CD6 ; +0xaf, 0x140212ccf mov rbx, rax ; +0xb1, 0x140212cd1 jmp short loc_140212CDB ; +0xb4, 0x140212cd4 test rbx, rbx ; +0xb6, 0x140212cd6 jz short loc_140212CF0 ; +0xb9, 0x140212cd9 mov [rsi+400h], rbx ; +0xbb, 0x140212cdb cmp byte ptr [rbx+41Ch], 0 ; +0xc2, 0x140212ce2 jz short loc_140212CF0 ; +0xc9, 0x140212ce9 mov r8b, 1 ; +0xcb, 0x140212ceb jmp short loc_140212CF3 ; +0xce, 0x140212cee xor r8d, r8d ; +0xd0, 0x140212cf0 mov dl, 1 ; +0xd3, 0x140212cf3 mov rcx, rdi ; +0xd5, 0x140212cf5 mov rbx, [rsp+28h+arg_8] ; +0xd8, 0x140212cf8 mov rsi, [rsp+28h+arg_10] ; +0xdd, 0x140212cfd add rsp, 20h ; +0xe2, 0x140212d02 pop rdi ; +0xe6, 0x140212d06 jmp PlayerObject__toggleRobotMode ; +0xe7, 0x140212d07