; ; GJBaseGameLayer::checkpointActivated from 0x140246ac0 to 0x140246cf4 (564 bytes) ; ; 4 xrefs: ; > LevelEditorLayer::checkpointActivated @ 0x1402e0f28 ; > PlayLayer::checkpointActivated @ 0x1403b4fb0 ; > @ 0x1405670d8 ; > @ 0x1406ce6c4 ; ; 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 ; push rbx ; +0x0, 0x140246ac0 push rsi ; +0x2, 0x140246ac2 push rdi ; +0x3, 0x140246ac3 sub rsp, 80h ; +0x4, 0x140246ac4 movaps [rsp+98h+var_28], xmm6 ; +0xb, 0x140246acb movaps [rsp+98h+var_38], xmm7 ; +0x10, 0x140246ad0 movaps [rsp+98h+var_48], xmm9 ; +0x15, 0x140246ad5 mov rbx, rdx ; +0x1b, 0x140246adb mov rdi, rcx ; +0x1e, 0x140246ade cmp byte ptr [rdx+41Ch], 0 ; +0x21, 0x140246ae1 jnz loc_140246CD9 ; +0x28, 0x140246ae8 mov rax, [rdx] ; +0x2e, 0x140246aee lea rdx, [rsp+98h+arg_8] ; +0x31, 0x140246af1 mov rcx, rbx ; +0x39, 0x140246af9 call qword ptr [rax+4A8h] ; +0x3c, 0x140246afc call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x42, 0x140246b02 mov rcx, rax ; +0x48, 0x140246b08 lea rdx, [rsp+98h+arg_18] ; +0x4b, 0x140246b0b call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x53, 0x140246b13 movss xmm6, [rsp+98h+arg_8] ; +0x59, 0x140246b19 movaps xmm7, xmm6 ; +0x62, 0x140246b22 subss xmm7, cs:dword_1406231E0 ; +0x65, 0x140246b25 addss xmm6, cs:dword_1406232BC ; +0x6d, 0x140246b2d call cs:rand ; +0x75, 0x140246b35 movd xmm9, eax ; +0x7b, 0x140246b3b cvtdq2ps xmm9, xmm9 ; +0x80, 0x140246b40 divss xmm9, cs:dword_140623644 ; +0x84, 0x140246b44 subss xmm6, xmm7 ; +0x8d, 0x140246b4d mulss xmm9, xmm6 ; +0x91, 0x140246b51 addss xmm9, xmm7 ; +0x96, 0x140246b56 movss xmm6, [rsp+98h+arg_1C] ; +0x9b, 0x140246b5b addss xmm6, cs:dword_1406231E0 ; +0xa4, 0x140246b64 mov rcx, [rdi+0FE8h] ; +0xac, 0x140246b6c mov rax, [rcx] ; +0xb3, 0x140246b73 call qword ptr [rax+0A8h] ; +0xb6, 0x140246b76 divss xmm6, xmm0 ; +0xbc, 0x140246b7c addss xmm6, dword ptr [rdi+414h] ; +0xc0, 0x140246b80 movaps xmm2, xmm6 ; +0xc8, 0x140246b88 movaps xmm1, xmm9 ; +0xcb, 0x140246b8b lea rcx, [rsp+98h+var_78] ; +0xcf, 0x140246b8f call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xd4, 0x140246b94 mov rcx, [rbx+380h] ; +0xda, 0x140246b9a add rcx, 140h ; +0xe1, 0x140246ba1 mov rax, [rcx] ; +0xe8, 0x140246ba8 call qword ptr [rax+8] ; +0xeb, 0x140246bab movzx ecx, word ptr [rax] ; +0xee, 0x140246bae mov [rsp+98h+arg_10], cx ; +0xf1, 0x140246bb1 movzx eax, byte ptr [rax+2] ; +0xf9, 0x140246bb9 mov [rsp+98h+arg_12], al ; +0xfd, 0x140246bbd lea rdx, [rsp+98h+arg_8] ; +0x104, 0x140246bc4 lea rcx, [rsp+98h+var_68] ; +0x10c, 0x140246bcc call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x111, 0x140246bd1 mov rbx, rax ; +0x117, 0x140246bd7 lea rdx, [rsp+98h+var_78] ; +0x11a, 0x140246bda lea rcx, [rsp+98h+var_60] ; +0x11f, 0x140246bdf call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x124, 0x140246be4 mov rsi, rax ; +0x12a, 0x140246bea mov r8, rax ; +0x12d, 0x140246bed lea rdx, [rsp+98h+var_70] ; +0x130, 0x140246bf0 mov rcx, rbx ; +0x135, 0x140246bf5 call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x138, 0x140246bf8 mov rcx, cs:qword_1406C2ED8 ; +0x13e, 0x140246bfe test rcx, rcx ; +0x145, 0x140246c05 jnz short loc_140246C39 ; +0x148, 0x140246c08 mov ecx, 668h; Size ; +0x14a, 0x140246c0a call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x14f, 0x140246c0f mov [rsp+98h+var_58], rax ; +0x154, 0x140246c14 mov rcx, rax ; +0x159, 0x140246c19 call sub_14017AB00 ; +0x15c, 0x140246c1c nop ; +0x161, 0x140246c21 mov cs:qword_1406C2ED8, rax ; +0x162, 0x140246c22 mov rdx, [rax] ; +0x169, 0x140246c29 mov rcx, rax ; +0x16c, 0x140246c2c call qword ptr [rdx+48h] ; +0x16f, 0x140246c2f mov rcx, cs:qword_1406C2ED8 ; +0x172, 0x140246c32 cmp byte ptr [rcx+395h], 0 ; +0x179, 0x140246c39 jnz loc_140246CD9 ; +0x180, 0x140246c40 lea rdx, dword_1406C1D28 ; +0x186, 0x140246c46 lea rcx, [rsp+98h+var_58] ; +0x18d, 0x140246c4d call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x192, 0x140246c52 mov rbx, rax ; +0x198, 0x140246c58 lea rdx, [rsp+98h+var_70] ; +0x19b, 0x140246c5b lea rcx, [rsp+98h+var_50] ; +0x1a0, 0x140246c60 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1a5, 0x140246c65 mov rcx, rax ; +0x1ab, 0x140246c6b movss xmm2, cs:dword_140622B08 ; +0x1ae, 0x140246c6e mov rdx, rbx ; +0x1b6, 0x140246c76 call cocos2d__CCLightning__lightningWithStrikePoint ; +0x1b9, 0x140246c79 mov rbx, rax ; +0x1be, 0x140246c7e mov r8, [rax] ; +0x1c1, 0x140246c81 mov rdx, rsi ; +0x1c4, 0x140246c84 mov rcx, rax ; +0x1c7, 0x140246c87 call qword ptr [r8+0B8h] ; +0x1ca, 0x140246c8a lea rcx, [rbx+140h] ; +0x1d1, 0x140246c91 mov r8, [rcx] ; +0x1d8, 0x140246c98 lea rdx, [rsp+98h+arg_10] ; +0x1db, 0x140246c9b call qword ptr [r8] ; +0x1e3, 0x140246ca3 mov dword ptr [rbx+170h], 40A00000h ; +0x1e6, 0x140246ca6 mov word ptr [rbx+174h], 101h ; +0x1f0, 0x140246cb0 mov dword ptr [rbx+17Ch], 3F800000h ; +0x1f9, 0x140246cb9 mov rcx, [rdi+0FE8h] ; +0x203, 0x140246cc3 mov rax, [rcx] ; +0x20a, 0x140246cca xor r8d, r8d ; +0x20d, 0x140246ccd mov rdx, rbx ; +0x210, 0x140246cd0 call qword ptr [rax+1B8h] ; +0x213, 0x140246cd3 movaps xmm6, [rsp+98h+var_28] ; +0x219, 0x140246cd9 movaps xmm7, [rsp+98h+var_38] ; +0x21e, 0x140246cde movaps xmm9, [rsp+98h+var_48] ; +0x223, 0x140246ce3 add rsp, 80h ; +0x229, 0x140246ce9 pop rdi ; +0x230, 0x140246cf0 pop rsi ; +0x231, 0x140246cf1 pop rbx ; +0x232, 0x140246cf2 retn ; +0x233, 0x140246cf3