; ; GJBaseGameLayer::getFollowSpeedVal from 0x140337480 to 0x1403375eb (363 bytes) ; ; 3 xrefs: ; > GJBaseGameLayer::modifyGroupPhysics @ 0x140337b91 ; > GJBaseGameLayer::processAdvancedFollowAction @ 0x1403383d2 ; > @ 0x14091f9c4 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:30:35 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x140337480 mov [rsp+arg_10], rsi ; +0x5, 0x140337485 mov [rsp+arg_18], rdi ; +0xa, 0x14033748a push r14 ; +0xf, 0x14033748f sub rsp, 50h ; +0x11, 0x140337491 movaps [rsp+58h+var_18], xmm6 ; +0x15, 0x140337495 mov rsi, rdx ; +0x1a, 0x14033749a movss xmm6, cs:flt_140835780 ; +0x1d, 0x14033749d lea rdx, dword_14090AA70 ; +0x25, 0x1403374a5 subss xmm6, [rsp+58h+arg_28] ; +0x2c, 0x1403374ac mov rdi, rcx ; +0x35, 0x1403374b5 mov ebx, r9d ; +0x38, 0x1403374b8 lea rcx, [rsp+58h+X] ; +0x3b, 0x1403374bb mov r14, r8 ; +0x40, 0x1403374c0 mulss xmm6, cs:dword_140834DAC ; +0x43, 0x1403374c3 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x4b, 0x1403374cb test ebx, ebx ; +0x51, 0x1403374d1 jle short loc_140337508 ; +0x53, 0x1403374d3 mov edx, ebx ; +0x55, 0x1403374d5 mov rcx, rdi ; +0x57, 0x1403374d7 call GJBaseGameLayer__tryGetObject ; +0x5a, 0x1403374da mov rbx, rax ; +0x5f, 0x1403374df test rax, rax ; +0x62, 0x1403374e2 jz short loc_140337508 ; +0x65, 0x1403374e5 mov rcx, [rax] ; +0x67, 0x1403374e7 lea rdx, [rsp+58h+var_30] ; +0x6a, 0x1403374ea mov r8, [rcx+4B8h] ; +0x6f, 0x1403374ef mov rcx, rax ; +0x76, 0x1403374f6 call r8 ; +0x79, 0x1403374f9 lea rcx, [rbx+4D0h] ; +0x7c, 0x1403374fc mov r8, rax ; +0x83, 0x140337503 jmp short loc_140337553 ; +0x86, 0x140337506 mov edx, [rsp+58h+arg_20] ; +0x88, 0x140337508 test edx, edx ; +0x8f, 0x14033750f jle short loc_14033756E ; +0x91, 0x140337511 mov rcx, rdi ; +0x93, 0x140337513 call GJBaseGameLayer__tryGetObject ; +0x96, 0x140337516 test rax, rax ; +0x9b, 0x14033751b jz short loc_14033756E ; +0x9e, 0x14033751e mov rcx, [rax] ; +0xa0, 0x140337520 lea rdx, [rsp+58h+var_30] ; +0xa3, 0x140337523 mov r8, [rcx+4B8h] ; +0xa8, 0x140337528 mov rcx, rax ; +0xaf, 0x14033752f call r8 ; +0xb2, 0x140337532 mov rcx, [r14] ; +0xb5, 0x140337535 lea rdx, [rsp+58h+var_28] ; +0xb8, 0x140337538 mov rbx, rax ; +0xbd, 0x14033753d mov r8, [rcx+4B8h] ; +0xc0, 0x140337540 mov rcx, r14 ; +0xc7, 0x140337547 call r8 ; +0xca, 0x14033754a mov r8, rbx ; +0xcd, 0x14033754d mov rcx, rax ; +0xd0, 0x140337550 lea rdx, [rsp+58h+var_38] ; +0xd3, 0x140337553 call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0xd8, 0x140337558 lea rdx, [rsp+58h+var_38] ; +0xde, 0x14033755e lea rcx, [rsp+58h+X] ; +0xe3, 0x140337563 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xe8, 0x140337568 movss xmm2, [rsp+58h+X] ; +0xee, 0x14033756e xorps xmm1, xmm1 ; +0xf4, 0x140337574 ucomiss xmm2, xmm1 ; +0xf7, 0x140337577 movss xmm0, [rsp+58h+Y]; Y ; +0xfa, 0x14033757a jp short loc_14033758B ; +0x100, 0x140337580 jnz short loc_14033758B ; +0x102, 0x140337582 ucomiss xmm0, xmm1 ; +0x104, 0x140337584 jp short loc_14033758B ; +0x107, 0x140337587 jz short loc_1403375AA ; +0x109, 0x140337589 movaps xmm1, xmm2; X ; +0x10b, 0x14033758b call atan2f ; +0x10e, 0x14033758e xorps xmm2, xmm2 ; +0x113, 0x140337593 cvtss2sd xmm2, xmm0 ; +0x116, 0x140337596 addsd xmm2, cs:qword_1408352B0 ; +0x11a, 0x14033759a cvtpd2ps xmm0, xmm2 ; +0x122, 0x1403375a2 addss xmm6, xmm0 ; +0x126, 0x1403375a6 movaps xmm1, xmm6 ; +0x12a, 0x1403375aa lea rcx, [rsp+58h+var_28] ; +0x12d, 0x1403375ad call cs:?ccpForAngle@cocos2d@@YA?AVCCPoint@1@M@Z; cocos2d::ccpForAngle(float) ; +0x132, 0x1403375b2 movss xmm2, [rsp+58h+arg_30] ; +0x138, 0x1403375b8 mov rdx, rsi ; +0x141, 0x1403375c1 mov rcx, rax ; +0x144, 0x1403375c4 call cs:??DCCPoint@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCPoint::operator*(float) ; +0x147, 0x1403375c7 mov rbx, [rsp+58h+arg_0] ; +0x14d, 0x1403375cd mov rax, rsi ; +0x152, 0x1403375d2 mov rsi, [rsp+58h+arg_10] ; +0x155, 0x1403375d5 mov rdi, [rsp+58h+arg_18] ; +0x15a, 0x1403375da movaps xmm6, [rsp+58h+var_18] ; +0x15f, 0x1403375df add rsp, 50h ; +0x164, 0x1403375e4 pop r14 ; +0x168, 0x1403375e8 retn ; +0x16a, 0x1403375ea