; ; GJBaseGameLayer::getFollowSpeedVal from 0x14022e950 to 0x14022eab2 (354 bytes) ; ; 3 xrefs: ; > GJBaseGameLayer::modifyGroupPhysics @ 0x14022f060 ; > GJBaseGameLayer::processAdvancedFollowAction @ 0x14022f87f ; > @ 0x1406cdd88 ; ; 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_0], rbx ; +0x0, 0x14022e950 mov [rsp+arg_10], rsi ; +0x5, 0x14022e955 mov [rsp+arg_18], rdi ; +0xa, 0x14022e95a push r14 ; +0xf, 0x14022e95f sub rsp, 50h ; +0x11, 0x14022e961 movaps [rsp+58h+var_18], xmm6 ; +0x15, 0x14022e965 mov rsi, rdx ; +0x1a, 0x14022e96a movss xmm6, cs:dword_140623294 ; +0x1d, 0x14022e96d lea rdx, dword_1406C1D28 ; +0x25, 0x14022e975 subss xmm6, [rsp+58h+arg_28] ; +0x2c, 0x14022e97c mov rdi, rcx ; +0x35, 0x14022e985 mov ebx, r9d ; +0x38, 0x14022e988 lea rcx, [rsp+58h+X] ; +0x3b, 0x14022e98b mov r14, r8 ; +0x40, 0x14022e990 mulss xmm6, cs:dword_1406229BC ; +0x43, 0x14022e993 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x4b, 0x14022e99b test ebx, ebx ; +0x51, 0x14022e9a1 jle short loc_14022E9D5 ; +0x53, 0x14022e9a3 mov edx, ebx ; +0x55, 0x14022e9a5 mov rcx, rdi ; +0x57, 0x14022e9a7 call GJBaseGameLayer__tryGetObject ; +0x5a, 0x14022e9aa mov rbx, rax ; +0x5f, 0x14022e9af test rax, rax ; +0x62, 0x14022e9b2 jz short loc_14022E9D5 ; +0x65, 0x14022e9b5 mov r8, [rax] ; +0x67, 0x14022e9b7 lea rdx, [rsp+58h+var_30] ; +0x6a, 0x14022e9ba mov rcx, rax ; +0x6f, 0x14022e9bf call qword ptr [r8+4A8h] ; +0x72, 0x14022e9c2 mov r8, rax ; +0x79, 0x14022e9c9 lea rcx, [rbx+4D0h] ; +0x7c, 0x14022e9cc jmp short loc_14022EA1A ; +0x83, 0x14022e9d3 mov edx, [rsp+58h+arg_20] ; +0x85, 0x14022e9d5 test edx, edx ; +0x8c, 0x14022e9dc jle short loc_14022EA35 ; +0x8e, 0x14022e9de mov rcx, rdi ; +0x90, 0x14022e9e0 call GJBaseGameLayer__tryGetObject ; +0x93, 0x14022e9e3 test rax, rax ; +0x98, 0x14022e9e8 jz short loc_14022EA35 ; +0x9b, 0x14022e9eb mov r8, [rax] ; +0x9d, 0x14022e9ed lea rdx, [rsp+58h+var_30] ; +0xa0, 0x14022e9f0 mov rcx, rax ; +0xa5, 0x14022e9f5 call qword ptr [r8+4A8h] ; +0xa8, 0x14022e9f8 mov r8, [r14] ; +0xaf, 0x14022e9ff lea rdx, [rsp+58h+var_28] ; +0xb2, 0x14022ea02 mov rcx, r14 ; +0xb7, 0x14022ea07 mov rbx, rax ; +0xba, 0x14022ea0a call qword ptr [r8+4A8h] ; +0xbd, 0x14022ea0d mov rcx, rax ; +0xc4, 0x14022ea14 mov r8, rbx ; +0xc7, 0x14022ea17 lea rdx, [rsp+58h+var_38] ; +0xca, 0x14022ea1a call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0xcf, 0x14022ea1f lea rdx, [rsp+58h+var_38] ; +0xd5, 0x14022ea25 lea rcx, [rsp+58h+X] ; +0xda, 0x14022ea2a call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xdf, 0x14022ea2f movss xmm2, [rsp+58h+X] ; +0xe5, 0x14022ea35 xorps xmm1, xmm1 ; +0xeb, 0x14022ea3b ucomiss xmm2, xmm1 ; +0xee, 0x14022ea3e movss xmm0, [rsp+58h+Y]; Y ; +0xf1, 0x14022ea41 jp short loc_14022EA52 ; +0xf7, 0x14022ea47 jnz short loc_14022EA52 ; +0xf9, 0x14022ea49 ucomiss xmm0, xmm1 ; +0xfb, 0x14022ea4b jp short loc_14022EA52 ; +0xfe, 0x14022ea4e jz short loc_14022EA71 ; +0x100, 0x14022ea50 movaps xmm1, xmm2; X ; +0x102, 0x14022ea52 call atan2f ; +0x105, 0x14022ea55 xorps xmm2, xmm2 ; +0x10a, 0x14022ea5a cvtss2sd xmm2, xmm0 ; +0x10d, 0x14022ea5d addsd xmm2, cs:qword_140622E50 ; +0x111, 0x14022ea61 cvtpd2ps xmm0, xmm2 ; +0x119, 0x14022ea69 addss xmm6, xmm0 ; +0x11d, 0x14022ea6d movaps xmm1, xmm6 ; +0x121, 0x14022ea71 lea rcx, [rsp+58h+var_28] ; +0x124, 0x14022ea74 call cs:?ccpForAngle@cocos2d@@YA?AVCCPoint@1@M@Z; cocos2d::ccpForAngle(float) ; +0x129, 0x14022ea79 movss xmm2, [rsp+58h+arg_30] ; +0x12f, 0x14022ea7f mov rdx, rsi ; +0x138, 0x14022ea88 mov rcx, rax ; +0x13b, 0x14022ea8b call cs:??DCCPoint@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCPoint::operator*(float) ; +0x13e, 0x14022ea8e mov rbx, [rsp+58h+arg_0] ; +0x144, 0x14022ea94 mov rax, rsi ; +0x149, 0x14022ea99 mov rsi, [rsp+58h+arg_10] ; +0x14c, 0x14022ea9c mov rdi, [rsp+58h+arg_18] ; +0x151, 0x14022eaa1 movaps xmm6, [rsp+58h+var_18] ; +0x156, 0x14022eaa6 add rsp, 50h ; +0x15b, 0x14022eaab pop r14 ; +0x15f, 0x14022eaaf retn ; +0x161, 0x14022eab1