{"type": "func", "start": 5372081280, "end": 5372081643, "name": "GJBaseGameLayer::getFollowSpeedVal", "pseudocode": "// \n// GJBaseGameLayer::getFollowSpeedVal from 0x140337480 to 0x1403375eb (363 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::modifyGroupPhysics @ 0x140337b91\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x1403383d2\n// > <???> @ 0x14091f9c4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:35 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::getFollowSpeedVal(__int64 a1, __int64 a2, __int64 a3, int a4, int a5)\n{\n  struct cocos2d::CCObject *Object; // rax\n  struct cocos2d::CCObject *v10; // rbx\n  __int64 v11; // rax\n  __int64 v12; // rcx\n  __int64 v13; // r8\n  struct cocos2d::CCObject *v14; // rax\n  __int64 v15; // rbx\n  __int64 v16; // rax\n  __int64 v17; // rax\n  _BYTE v19[8]; // [rsp+20h] [rbp-38h] BYREF\n  _BYTE v20[8]; // [rsp+28h] [rbp-30h] BYREF\n  _BYTE v21[16]; // [rsp+30h] [rbp-28h] BYREF\n  float X; // [rsp+68h] [rbp+10h] BYREF\n  float Y; // [rsp+6Ch] [rbp+14h]\n\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&X, (const struct cocos2d::CCPoint *)&dword_14090AA70);\n  if ( a4 > 0 )\n  {\n    Object = GJBaseGameLayer::tryGetObject(a1, a4);\n    v10 = Object;\n    if ( Object )\n    {\n      v11 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)Object + 1208LL))(Object, v20);\n      v12 = (__int64)v10 + 1232;\n      v13 = v11;\nLABEL_7:\n      cocos2d::CCPoint::operator-(v12, v19, v13);\n      cocos2d::CCPoint::operator=(&X, v19);\n      goto LABEL_8;\n    }\n  }\n  if ( a5 > 0 )\n  {\n    v14 = GJBaseGameLayer::tryGetObject(a1, a5);\n    if ( v14 )\n    {\n      v15 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v14 + 1208LL))(v14, v20);\n      v16 = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)a3 + 1208LL))(a3, v21);\n      v13 = v15;\n      v12 = v16;\n      goto LABEL_7;\n    }\n  }\nLABEL_8:\n  if ( X != 0.0 || Y != 0.0 )\n    atan2f(Y, X);\n  v17 = cocos2d::ccpForAngle(v21);\n  cocos2d::CCPoint::operator*(v17, a2);\n  return a2;\n}", "assembly": "; \n; GJBaseGameLayer::getFollowSpeedVal from 0x140337480 to 0x1403375eb (363 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::modifyGroupPhysics @ 0x140337b91\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x1403383d2\n; > <???> @ 0x14091f9c4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:35 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140337480\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140337485\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x14033748a\npush    r14                                                            ; +0xf, 0x14033748f\nsub     rsp, 50h                                                       ; +0x11, 0x140337491\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x15, 0x140337495\nmov     rsi, rdx                                                       ; +0x1a, 0x14033749a\nmovss   xmm6, cs:flt_140835780                                         ; +0x1d, 0x14033749d\nlea     rdx, dword_14090AA70                                           ; +0x25, 0x1403374a5\nsubss   xmm6, [rsp+58h+arg_28]                                         ; +0x2c, 0x1403374ac\nmov     rdi, rcx                                                       ; +0x35, 0x1403374b5\nmov     ebx, r9d                                                       ; +0x38, 0x1403374b8\nlea     rcx, [rsp+58h+X]                                               ; +0x3b, 0x1403374bb\nmov     r14, r8                                                        ; +0x40, 0x1403374c0\nmulss   xmm6, cs:dword_140834DAC                                       ; +0x43, 0x1403374c3\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x4b, 0x1403374cb\ntest    ebx, ebx                                                       ; +0x51, 0x1403374d1\njle     short loc_140337508                                            ; +0x53, 0x1403374d3\nmov     edx, ebx                                                       ; +0x55, 0x1403374d5\nmov     rcx, rdi                                                       ; +0x57, 0x1403374d7\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x5a, 0x1403374da\nmov     rbx, rax                                                       ; +0x5f, 0x1403374df\ntest    rax, rax                                                       ; +0x62, 0x1403374e2\njz      short loc_140337508                                            ; +0x65, 0x1403374e5\nmov     rcx, [rax]                                                     ; +0x67, 0x1403374e7\nlea     rdx, [rsp+58h+var_30]                                          ; +0x6a, 0x1403374ea\nmov     r8, [rcx+4B8h]                                                 ; +0x6f, 0x1403374ef\nmov     rcx, rax                                                       ; +0x76, 0x1403374f6\ncall    r8                                                             ; +0x79, 0x1403374f9\nlea     rcx, [rbx+4D0h]                                                ; +0x7c, 0x1403374fc\nmov     r8, rax                                                        ; +0x83, 0x140337503\njmp     short loc_140337553                                            ; +0x86, 0x140337506\nmov     edx, [rsp+58h+arg_20]                                          ; +0x88, 0x140337508\ntest    edx, edx                                                       ; +0x8f, 0x14033750f\njle     short loc_14033756E                                            ; +0x91, 0x140337511\nmov     rcx, rdi                                                       ; +0x93, 0x140337513\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x96, 0x140337516\ntest    rax, rax                                                       ; +0x9b, 0x14033751b\njz      short loc_14033756E                                            ; +0x9e, 0x14033751e\nmov     rcx, [rax]                                                     ; +0xa0, 0x140337520\nlea     rdx, [rsp+58h+var_30]                                          ; +0xa3, 0x140337523\nmov     r8, [rcx+4B8h]                                                 ; +0xa8, 0x140337528\nmov     rcx, rax                                                       ; +0xaf, 0x14033752f\ncall    r8                                                             ; +0xb2, 0x140337532\nmov     rcx, [r14]                                                     ; +0xb5, 0x140337535\nlea     rdx, [rsp+58h+var_28]                                          ; +0xb8, 0x140337538\nmov     rbx, rax                                                       ; +0xbd, 0x14033753d\nmov     r8, [rcx+4B8h]                                                 ; +0xc0, 0x140337540\nmov     rcx, r14                                                       ; +0xc7, 0x140337547\ncall    r8                                                             ; +0xca, 0x14033754a\nmov     r8, rbx                                                        ; +0xcd, 0x14033754d\nmov     rcx, rax                                                       ; +0xd0, 0x140337550\nlea     rdx, [rsp+58h+var_38]                                          ; +0xd3, 0x140337553\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0xd8, 0x140337558\nlea     rdx, [rsp+58h+var_38]                                          ; +0xde, 0x14033755e\nlea     rcx, [rsp+58h+X]                                               ; +0xe3, 0x140337563\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xe8, 0x140337568\nmovss   xmm2, [rsp+58h+X]                                              ; +0xee, 0x14033756e\nxorps   xmm1, xmm1                                                     ; +0xf4, 0x140337574\nucomiss xmm2, xmm1                                                     ; +0xf7, 0x140337577\nmovss   xmm0, [rsp+58h+Y]; Y                                           ; +0xfa, 0x14033757a\njp      short loc_14033758B                                            ; +0x100, 0x140337580\njnz     short loc_14033758B                                            ; +0x102, 0x140337582\nucomiss xmm0, xmm1                                                     ; +0x104, 0x140337584\njp      short loc_14033758B                                            ; +0x107, 0x140337587\njz      short loc_1403375AA                                            ; +0x109, 0x140337589\nmovaps  xmm1, xmm2; X                                                  ; +0x10b, 0x14033758b\ncall    atan2f                                                         ; +0x10e, 0x14033758e\nxorps   xmm2, xmm2                                                     ; +0x113, 0x140337593\ncvtss2sd xmm2, xmm0                                                    ; +0x116, 0x140337596\naddsd   xmm2, cs:qword_1408352B0                                       ; +0x11a, 0x14033759a\ncvtpd2ps xmm0, xmm2                                                    ; +0x122, 0x1403375a2\naddss   xmm6, xmm0                                                     ; +0x126, 0x1403375a6\nmovaps  xmm1, xmm6                                                     ; +0x12a, 0x1403375aa\nlea     rcx, [rsp+58h+var_28]                                          ; +0x12d, 0x1403375ad\ncall    cs:?ccpForAngle@cocos2d@@YA?AVCCPoint@1@M@Z; cocos2d::ccpForAngle(float) ; +0x132, 0x1403375b2\nmovss   xmm2, [rsp+58h+arg_30]                                         ; +0x138, 0x1403375b8\nmov     rdx, rsi                                                       ; +0x141, 0x1403375c1\nmov     rcx, rax                                                       ; +0x144, 0x1403375c4\ncall    cs:??DCCPoint@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCPoint::operator*(float) ; +0x147, 0x1403375c7\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x14d, 0x1403375cd\nmov     rax, rsi                                                       ; +0x152, 0x1403375d2\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x155, 0x1403375d5\nmov     rdi, [rsp+58h+arg_18]                                          ; +0x15a, 0x1403375da\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x15f, 0x1403375df\nadd     rsp, 50h                                                       ; +0x164, 0x1403375e4\npop     r14                                                            ; +0x168, 0x1403375e8\nretn                                                                   ; +0x16a, 0x1403375ea", "xrefs": ["GJBaseGameLayer::modifyGroupPhysics @ 0x140337b91", "GJBaseGameLayer::processAdvancedFollowAction @ 0x1403383d2", "<???> @ 0x14091f9c4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}