; ; GJBaseGameLayer::switchToSpiderMode from 0x140212d10 to 0x140212dfc (236 bytes) ; ; 2 xrefs: ; > PlayerObject::loadFromCheckpoint @ 0x1403a30f3 ; > @ 0x1406cd02c ; ; 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, 0x140212d10 mov [rsp+arg_10], rsi ; +0x5, 0x140212d15 push rdi ; +0xa, 0x140212d1a sub rsp, 20h ; +0xb, 0x140212d1b mov rdi, rdx ; +0xf, 0x140212d1f mov rbx, r8 ; +0x12, 0x140212d22 mov rsi, rcx ; +0x15, 0x140212d25 xor r8d, r8d ; +0x18, 0x140212d28 mov rcx, rdi ; +0x1b, 0x140212d2b xor edx, edx ; +0x1e, 0x140212d2e call PlayerObject__toggleFlyMode ; +0x20, 0x140212d30 xor r8d, r8d ; +0x25, 0x140212d35 xor edx, edx ; +0x28, 0x140212d38 mov rcx, rdi ; +0x2a, 0x140212d3a call PlayerObject__toggleBirdMode ; +0x2d, 0x140212d3d xor r8d, r8d ; +0x32, 0x140212d42 xor edx, edx ; +0x35, 0x140212d45 mov rcx, rdi ; +0x37, 0x140212d47 call PlayerObject__toggleRollMode ; +0x3a, 0x140212d4a xor r8d, r8d ; +0x3f, 0x140212d4f xor edx, edx ; +0x42, 0x140212d52 mov rcx, rdi ; +0x44, 0x140212d54 call PlayerObject__toggleDartMode ; +0x47, 0x140212d57 xor r8d, r8d ; +0x4c, 0x140212d5c xor edx, edx ; +0x4f, 0x140212d5f mov rcx, rdi ; +0x51, 0x140212d61 call PlayerObject__toggleRobotMode ; +0x54, 0x140212d64 xor r8d, r8d ; +0x59, 0x140212d69 xor edx, edx ; +0x5c, 0x140212d6c mov rcx, rdi ; +0x5e, 0x140212d6e call PlayerObject__toggleSwingMode ; +0x61, 0x140212d71 test rbx, rbx ; +0x66, 0x140212d76 jz short loc_140212DAC ; +0x69, 0x140212d79 mov rax, [rbx] ; +0x6b, 0x140212d7b mov rcx, rbx ; +0x6e, 0x140212d7e call qword ptr [rax+0C8h] ; +0x71, 0x140212d81 mov rdx, rax ; +0x77, 0x140212d87 lea rcx, [rsp+28h+arg_0] ; +0x7a, 0x140212d8a call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x7f, 0x140212d8f mov rdx, rax ; +0x85, 0x140212d95 lea rcx, [rdi+0A00h] ; +0x88, 0x140212d98 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x8f, 0x140212d9f mov [rdi+0A80h], rbx ; +0x95, 0x140212da5 cmp byte ptr [rsi+422h], 0 ; +0x9c, 0x140212dac jz short loc_140212DC6 ; +0xa3, 0x140212db3 mov rax, [rsi+408h] ; +0xa5, 0x140212db5 test rax, rax ; +0xac, 0x140212dbc jz short loc_140212DC6 ; +0xaf, 0x140212dbf mov rbx, rax ; +0xb1, 0x140212dc1 jmp short loc_140212DCB ; +0xb4, 0x140212dc4 test rbx, rbx ; +0xb6, 0x140212dc6 jz short loc_140212DE0 ; +0xb9, 0x140212dc9 mov [rsi+400h], rbx ; +0xbb, 0x140212dcb cmp byte ptr [rbx+41Ch], 0 ; +0xc2, 0x140212dd2 jz short loc_140212DE0 ; +0xc9, 0x140212dd9 mov r8b, 1 ; +0xcb, 0x140212ddb jmp short loc_140212DE3 ; +0xce, 0x140212dde xor r8d, r8d ; +0xd0, 0x140212de0 mov dl, 1 ; +0xd3, 0x140212de3 mov rcx, rdi ; +0xd5, 0x140212de5 mov rbx, [rsp+28h+arg_8] ; +0xd8, 0x140212de8 mov rsi, [rsp+28h+arg_10] ; +0xdd, 0x140212ded add rsp, 20h ; +0xe2, 0x140212df2 pop rdi ; +0xe6, 0x140212df6 jmp PlayerObject__toggleSpiderMode ; +0xe7, 0x140212df7