; ; GJBaseGameLayer::getSavedPosition from 0x1402192a0 to 0x1402195d2 (818 bytes) ; ; 4 xrefs: ; > GJBaseGameLayer::processAdvancedFollowAction @ 0x14022f5b9 ; > @ 0x14067f798 ; > @ 0x14067f7cc ; > @ 0x1406cd308 ; ; 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, 0x1402192a0 push rbp ; +0x2, 0x1402192a2 push rsi ; +0x3, 0x1402192a3 push r12 ; +0x4, 0x1402192a4 push r14 ; +0x6, 0x1402192a6 sub rsp, 60h ; +0x8, 0x1402192a8 xorps xmm0, xmm0 ; +0xc, 0x1402192ac movaps [rsp+88h+var_38], xmm6 ; +0xf, 0x1402192af comiss xmm0, xmm3 ; +0x14, 0x1402192b4 mov ebx, r8d ; +0x17, 0x1402192b7 mov rsi, rdx ; +0x1a, 0x1402192ba mov rbp, rcx ; +0x1d, 0x1402192bd jb short loc_140219331 ; +0x20, 0x1402192c0 cmp ebx, 0FFFFFFFFh ; +0x22, 0x1402192c2 jnz short loc_1402192E8 ; +0x25, 0x1402192c5 mov rcx, [rcx+0DA0h] ; +0x27, 0x1402192c7 mov rax, [rcx] ; +0x2e, 0x1402192ce call qword ptr [rax+0C8h] ; +0x31, 0x1402192d1 mov rdx, rax ; +0x37, 0x1402192d7 mov rcx, rsi ; +0x3a, 0x1402192da call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x3d, 0x1402192dd jmp loc_1402195BE ; +0x43, 0x1402192e3 cmp ebx, 0FFFFFFFEh ; +0x48, 0x1402192e8 jnz short loc_1402192F6 ; +0x4b, 0x1402192eb mov rcx, [rcx+0DA8h] ; +0x4d, 0x1402192ed jmp short loc_1402192CE ; +0x54, 0x1402192f4 cmp ebx, 0FFFFFFFDh ; +0x56, 0x1402192f6 jnz short loc_140219310 ; +0x59, 0x1402192f9 lea rdx, [rcx+410h] ; +0x5b, 0x1402192fb mov rcx, rsi ; +0x62, 0x140219302 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x65, 0x140219305 jmp loc_1402195BE ; +0x6b, 0x14021930b mov edx, ebx ; +0x70, 0x140219310 call GJBaseGameLayer__tryGetMainObject ; +0x72, 0x140219312 test rax, rax ; +0x77, 0x140219317 jz short loc_140219384 ; +0x7a, 0x14021931a mov r8, [rax] ; +0x7c, 0x14021931c mov rdx, rsi ; +0x7f, 0x14021931f mov rcx, rax ; +0x82, 0x140219322 call qword ptr [r8+4A8h] ; +0x85, 0x140219325 jmp loc_1402195BE ; +0x8c, 0x14021932c mov eax, [rcx+3F4h] ; +0x91, 0x140219331 xorps xmm0, xmm0 ; +0x97, 0x140219337 sub eax, [rcx+3F0h] ; +0x9a, 0x14021933a xorps xmm2, xmm2 ; +0xa0, 0x140219340 cvtss2sd xmm2, xmm3 ; +0xa3, 0x140219343 cvtsi2ss xmm0, rax ; +0xa7, 0x140219347 divsd xmm2, cs:qword_140622BE8 ; +0xac, 0x14021934c divss xmm0, cs:dword_14062350C ; +0xb4, 0x140219354 xorps xmm1, xmm1 ; +0xbc, 0x14021935c cvtps2pd xmm0, xmm0 ; +0xbf, 0x14021935f subsd xmm2, xmm0 ; +0xc2, 0x140219362 maxsd xmm1, xmm2 ; +0xc6, 0x140219366 cvtpd2ps xmm6, xmm1 ; +0xca, 0x14021936a movaps xmm0, xmm6; X ; +0xce, 0x14021936e call ceilf ; +0xd1, 0x140219371 cvttss2si r12d, xmm0 ; +0xd6, 0x140219376 cmp r12d, [rbp+4D4h] ; +0xdb, 0x14021937b jl short loc_140219399 ; +0xe2, 0x140219382 lea rdx, dword_1406C1D28 ; +0xe4, 0x140219384 mov rcx, rsi ; +0xeb, 0x14021938b call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xee, 0x14021938e jmp loc_1402195BE ; +0xf4, 0x140219394 mov edx, ebx ; +0xf9, 0x140219399 mov [rsp+88h+arg_18], ebx ; +0xfb, 0x14021939b mov r8d, ebx ; +0x102, 0x1402193a2 shr edx, 18h ; +0x105, 0x1402193a5 mov r9d, ebx ; +0x108, 0x1402193a8 shr r8d, 10h ; +0x10b, 0x1402193ab shr r9d, 8 ; +0x10f, 0x1402193af cmp ebx, 0FFFFFFFFh ; +0x113, 0x1402193b3 jnz short loc_1402193C8 ; +0x116, 0x1402193b6 mov rax, [rbp+0DA0h] ; +0x118, 0x1402193b8 mov r14d, [rax+544h] ; +0x11f, 0x1402193bf jmp short loc_140219421 ; +0x126, 0x1402193c6 cmp ebx, 0FFFFFFFEh ; +0x128, 0x1402193c8 jnz short loc_1402193DD ; +0x12b, 0x1402193cb mov rax, [rbp+0DA8h] ; +0x12d, 0x1402193cd mov r14d, [rax+544h] ; +0x134, 0x1402193d4 jmp short loc_140219421 ; +0x13b, 0x1402193db cmp ebx, 0FFFFFFFDh ; +0x13d, 0x1402193dd jnz short loc_1402193EB ; +0x140, 0x1402193e0 mov r14d, [rbp+4D8h] ; +0x142, 0x1402193e2 jmp short loc_140219421 ; +0x149, 0x1402193e9 mov edx, ebx ; +0x14b, 0x1402193eb mov rcx, rbp ; +0x14d, 0x1402193ed call GJBaseGameLayer__tryGetMainObject ; +0x150, 0x1402193f0 test rax, rax ; +0x155, 0x1402193f5 jz short loc_140219384 ; +0x158, 0x1402193f8 mov ebx, [rax+39Ch] ; +0x15a, 0x1402193fa mov edx, ebx ; +0x160, 0x140219400 mov r14d, [rax+544h] ; +0x162, 0x140219402 mov r8d, ebx ; +0x169, 0x140219409 shr edx, 18h ; +0x16c, 0x14021940c mov r9d, ebx ; +0x16f, 0x14021940f shr r8d, 10h ; +0x172, 0x140219412 shr r9d, 8 ; +0x176, 0x140219416 mov [rsp+88h+arg_18], ebx ; +0x17a, 0x14021941a mov eax, ebx ; +0x181, 0x140219421 test r14d, r14d ; +0x183, 0x140219423 js loc_140219384 ; +0x186, 0x140219426 movzx ecx, al ; +0x18c, 0x14021942c mov r10, 100000001B3h ; +0x18f, 0x14021942f mov rax, 0CBF29CE484222325h ; +0x199, 0x140219439 mov [rsp+88h+arg_8], r15 ; +0x1a3, 0x140219443 xor rcx, rax ; +0x1ab, 0x14021944b xor r15d, r15d ; +0x1ae, 0x14021944e imul rcx, r10 ; +0x1b1, 0x140219451 movzx eax, r9b ; +0x1b5, 0x140219455 xor rcx, rax ; +0x1b9, 0x140219459 movzx eax, r8b ; +0x1bc, 0x14021945c imul rcx, r10 ; +0x1c0, 0x140219460 xor rcx, rax ; +0x1c4, 0x140219464 movzx eax, dl ; +0x1c7, 0x140219467 mov rdx, [rbp+3518h] ; +0x1ca, 0x14021946a imul rcx, r10 ; +0x1d1, 0x140219471 xor rcx, rax ; +0x1d5, 0x140219475 imul rcx, r10 ; +0x1d8, 0x140219478 and rdx, rcx ; +0x1dc, 0x14021947c mov rcx, [rbp+3500h] ; +0x1df, 0x14021947f add rdx, rdx ; +0x1e6, 0x140219486 mov rax, [rcx+rdx*8+8] ; +0x1e9, 0x140219489 cmp rax, [rbp+34F0h] ; +0x1ee, 0x14021948e jz short loc_1402194B0 ; +0x1f5, 0x140219495 mov rcx, [rcx+rdx*8] ; +0x1f7, 0x140219497 cmp ebx, [rax+10h] ; +0x1fb, 0x14021949b jz short loc_1402194B3 ; +0x1fe, 0x14021949e cmp rax, rcx ; +0x200, 0x1402194a0 jz short loc_1402194B0 ; +0x203, 0x1402194a3 mov rax, [rax+8] ; +0x205, 0x1402194a5 cmp ebx, [rax+10h] ; +0x209, 0x1402194a9 jnz short loc_1402194A0 ; +0x20c, 0x1402194ac jmp short loc_1402194B3 ; +0x20e, 0x1402194ae mov rax, r15 ; +0x210, 0x1402194b0 test rax, rax ; +0x213, 0x1402194b3 jnz short loc_1402194CD ; +0x216, 0x1402194b6 lea rdx, dword_1406C1D28 ; +0x218, 0x1402194b8 mov rcx, rsi ; +0x21f, 0x1402194bf call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x222, 0x1402194c2 jmp loc_1402195B6 ; +0x228, 0x1402194c8 lea rcx, [rbp+34E8h] ; +0x22d, 0x1402194cd mov [rsp+88h+arg_0], rdi ; +0x234, 0x1402194d4 lea r8, [rsp+88h+arg_18] ; +0x23c, 0x1402194dc lea rdx, [rsp+88h+var_50] ; +0x244, 0x1402194e4 call sub_140060B20 ; +0x249, 0x1402194e9 mov rcx, [rax] ; +0x24e, 0x1402194ee mov eax, [rbp+4D4h] ; +0x251, 0x1402194f1 cdq ; +0x257, 0x1402194f7 mov edi, [rcx+14h] ; +0x258, 0x1402194f8 idiv edi ; +0x25b, 0x1402194fb sub edx, r12d ; +0x25d, 0x1402194fd lea eax, [rdx+rdi] ; +0x260, 0x140219500 cmovns eax, edx ; +0x263, 0x140219503 lea ebx, [rax+1] ; +0x266, 0x140219506 add eax, r14d ; +0x269, 0x140219509 add eax, eax ; +0x26c, 0x14021950c movsxd rcx, eax ; +0x26e, 0x14021950e mov rax, [rbp+4B8h] ; +0x271, 0x140219511 movss xmm2, dword ptr [rax+rcx*4+4] ; +0x278, 0x140219518 movss xmm1, dword ptr [rax+rcx*4] ; +0x27e, 0x14021951e lea rcx, [rsp+88h+var_68] ; +0x283, 0x140219523 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x288, 0x140219528 mov rax, [rbp+4B8h] ; +0x28e, 0x14021952e cmp ebx, edi ; +0x295, 0x140219535 cmovl r15d, ebx ; +0x297, 0x140219537 add r15d, r14d ; +0x29b, 0x14021953b add r15d, r15d ; +0x29e, 0x14021953e movsxd rcx, r15d ; +0x2a1, 0x140219541 movss xmm2, dword ptr [rax+rcx*4+4] ; +0x2a4, 0x140219544 movss xmm1, dword ptr [rax+rcx*4] ; +0x2aa, 0x14021954a lea rcx, [rsp+88h+var_60] ; +0x2af, 0x14021954f call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x2b4, 0x140219554 lea r8, [rsp+88h+var_68] ; +0x2ba, 0x14021955a lea rdx, [rsp+88h+var_58] ; +0x2bf, 0x14021955f lea rcx, [rsp+88h+var_60] ; +0x2c4, 0x140219564 call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x2c9, 0x140219569 movd xmm2, r12d ; +0x2cf, 0x14021956f lea rdx, [rsp+88h+var_50] ; +0x2d4, 0x140219574 cvtdq2ps xmm2, xmm2 ; +0x2d9, 0x140219579 lea rcx, [rsp+88h+var_58] ; +0x2dc, 0x14021957c subss xmm2, xmm6 ; +0x2e1, 0x140219581 call cs:??DCCPoint@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCPoint::operator*(float) ; +0x2e5, 0x140219585 lea r8, [rsp+88h+var_50] ; +0x2eb, 0x14021958b lea rdx, [rsp+88h+var_40] ; +0x2f0, 0x140219590 lea rcx, [rsp+88h+var_68] ; +0x2f5, 0x140219595 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x2fa, 0x14021959a lea rdx, [rsp+88h+var_40] ; +0x300, 0x1402195a0 mov rcx, rsi ; +0x305, 0x1402195a5 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x308, 0x1402195a8 mov rdi, [rsp+88h+arg_0] ; +0x30e, 0x1402195ae mov r15, [rsp+88h+arg_8] ; +0x316, 0x1402195b6 movaps xmm6, [rsp+88h+var_38] ; +0x31e, 0x1402195be mov rax, rsi ; +0x323, 0x1402195c3 add rsp, 60h ; +0x326, 0x1402195c6 pop r14 ; +0x32a, 0x1402195ca pop r12 ; +0x32c, 0x1402195cc pop rsi ; +0x32e, 0x1402195ce pop rbp ; +0x32f, 0x1402195cf pop rbx ; +0x330, 0x1402195d0 retn ; +0x331, 0x1402195d1