{"type": "func", "start": 4297676152, "end": 4297676524, "name": "GJBaseGameLayer::getFollowSpeedVal", "pseudocode": "// \n// GJBaseGameLayer::getFollowSpeedVal from 0x100295578 to 0x1002956ec (372 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::modifyObjectPhysics @ 0x100295a94\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x100295eb0\n// \n// This function is hookable on this platform (idp: arm, 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:02:05 +0000\n// \n\nvoid __usercall GJBaseGameLayer::getFollowSpeedVal(\n        __int64 a1@<X0>,\n        __int64 a2@<X1>,\n        int a3@<W2>,\n        int a4@<W3>,\n        float32x2_t *a5@<X8>,\n        float a6@<S0>,\n        float a7@<S1>)\n{\n  float v13; // s9\n  __int64 Object; // x0\n  __int64 v15; // x23\n  __int64 LastPosition; // x20\n  float32x2_t *v17; // x1\n  float32x2_t *v18; // x0\n  __int64 v19; // x0\n  __int64 v20; // x21\n  float v21; // s9\n  float v22; // s0\n  __int64 v23; // [xsp+0h] [xbp-70h] BYREF\n  __int64 v24; // [xsp+8h] [xbp-68h] BYREF\n  float32x2_t v25; // [xsp+10h] [xbp-60h] BYREF\n  __int64 v26; // [xsp+18h] [xbp-58h] BYREF\n\n  v13 = 90.0 - a6;\n  sub_1000262F4(&v26, (double *)&qword_1009F5820);\n  if ( a3 >= 1 )\n  {\n    Object = GJBaseGameLayer::tryGetObject(a1, a3);\n    if ( Object )\n    {\n      v15 = Object;\n      LastPosition = GameObject::getLastPosition(Object);\n      (*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)v15 + 1360LL))(&v24, v15);\n      v17 = (float32x2_t *)&v24;\n      v18 = (float32x2_t *)LastPosition;\nLABEL_7:\n      sub_10002632C(v18, v17, &v25);\n      sub_10002630C(&v26, (double *)&v25);\n      goto LABEL_8;\n    }\n  }\n  if ( a4 >= 1 )\n  {\n    v19 = GJBaseGameLayer::tryGetObject(a1, a4);\n    if ( v19 )\n    {\n      v20 = v19;\n      (*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)a2 + 1360LL))(&v24, a2);\n      (*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)v20 + 1360LL))(&v23, v20);\n      v18 = (float32x2_t *)&v24;\n      v17 = (float32x2_t *)&v23;\n      goto LABEL_7;\n    }\n  }\nLABEL_8:\n  v21 = v13 * 0.017453;\n  if ( *(float *)&v26 != 0.0 || *((float *)&v26 + 1) != 0.0 )\n  {\n    v22 = atan2f(*((float *)&v26 + 1), *(float *)&v26) + 1.57079633;\n    v21 = v21 + v22;\n  }\n  cocos2d::ccpForAngle((float *)&v25, v21);\n  sub_100026350(&v25, a5, a7);\n}", "assembly": "; \n; GJBaseGameLayer::getFollowSpeedVal from 0x100295578 to 0x1002956ec (372 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::modifyObjectPhysics @ 0x100295a94\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x100295eb0\n; \n; This function is hookable on this platform (idp: arm, 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:02:05 +0000\n; \nSUB             SP, SP, #0x80                                          ; +0x0, 0x100295578\nSTP             D11, D10, [SP,#0x70+var_50]                            ; +0x4, 0x10029557c\nSTP             D9, D8, [SP,#0x70+var_40]                              ; +0x8, 0x100295580\nSTP             X24, X23, [SP,#0x70+var_30]                            ; +0xc, 0x100295584\nSTP             X22, X21, [SP,#0x70+var_20]                            ; +0x10, 0x100295588\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0x14, 0x10029558c\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0x18, 0x100295590\nADD             X29, SP, #0x70                                         ; +0x1c, 0x100295594\nFMOV            S8, S1                                                 ; +0x20, 0x100295598\nMOV             X21, X3                                                ; +0x24, 0x10029559c\nMOV             X23, X2                                                ; +0x28, 0x1002955a0\nMOV             X20, X1                                                ; +0x2c, 0x1002955a4\nMOV             X22, X0                                                ; +0x30, 0x1002955a8\nMOV             X19, X8                                                ; +0x34, 0x1002955ac\nMOV             W8, #0x42B40000                                        ; +0x38, 0x1002955b0\nFMOV            S1, W8                                                 ; +0x3c, 0x1002955b4\nFSUB            S9, S1, S0                                             ; +0x40, 0x1002955b8\nADRP            X8, #dword_10075E330@PAGE                              ; +0x44, 0x1002955bc\nLDR             S10, [X8,#dword_10075E330@PAGEOFF]                     ; +0x48, 0x1002955c0\nADRL            X1, qword_1009F5820                                    ; +0x4c, 0x1002955c4\nADD             X0, SP, #0x70+var_58                                   ; +0x54, 0x1002955cc\nBL              sub_1000262F4                                          ; +0x58, 0x1002955d0\nCMP             W23, #1                                                ; +0x5c, 0x1002955d4\nB.LT            loc_10029561C                                          ; +0x60, 0x1002955d8\nMOV             X0, X22                                                ; +0x64, 0x1002955dc\nMOV             X1, X23                                                ; +0x68, 0x1002955e0\nBL              GJBaseGameLayer__tryGetObject                          ; +0x6c, 0x1002955e4\nCBZ             X0, loc_10029561C                                      ; +0x70, 0x1002955e8\nMOV             X23, X0                                                ; +0x74, 0x1002955ec\nBL              GameObject__getLastPosition                            ; +0x78, 0x1002955f0\nMOV             X20, X0                                                ; +0x7c, 0x1002955f4\nLDR             X8, [X23]                                              ; +0x80, 0x1002955f8\nLDR             X9, [X8,#0x550]                                        ; +0x84, 0x1002955fc\nADD             X8, SP, #0x70+var_68                                   ; +0x88, 0x100295600\nMOV             X0, X23                                                ; +0x8c, 0x100295604\nBLR             X9                                                     ; +0x90, 0x100295608\nADD             X8, SP, #0x70+var_60                                   ; +0x94, 0x10029560c\nADD             X1, SP, #0x70+var_68                                   ; +0x98, 0x100295610\nMOV             X0, X20                                                ; +0x9c, 0x100295614\nB               loc_10029566C                                          ; +0xa0, 0x100295618\nCMP             W21, #1                                                ; +0xa4, 0x10029561c\nB.LT            loc_10029567C                                          ; +0xa8, 0x100295620\nMOV             X0, X22                                                ; +0xac, 0x100295624\nMOV             X1, X21                                                ; +0xb0, 0x100295628\nBL              GJBaseGameLayer__tryGetObject                          ; +0xb4, 0x10029562c\nCBZ             X0, loc_10029567C                                      ; +0xb8, 0x100295630\nMOV             X21, X0                                                ; +0xbc, 0x100295634\nLDR             X8, [X20]                                              ; +0xc0, 0x100295638\nLDR             X9, [X8,#0x550]                                        ; +0xc4, 0x10029563c\nADD             X8, SP, #0x70+var_68                                   ; +0xc8, 0x100295640\nMOV             X0, X20                                                ; +0xcc, 0x100295644\nBLR             X9                                                     ; +0xd0, 0x100295648\nLDR             X8, [X21]                                              ; +0xd4, 0x10029564c\nLDR             X9, [X8,#0x550]                                        ; +0xd8, 0x100295650\nMOV             X8, SP                                                 ; +0xdc, 0x100295654\nMOV             X0, X21                                                ; +0xe0, 0x100295658\nBLR             X9                                                     ; +0xe4, 0x10029565c\nADD             X8, SP, #0x70+var_60                                   ; +0xe8, 0x100295660\nADD             X0, SP, #0x70+var_68                                   ; +0xec, 0x100295664\nMOV             X1, SP                                                 ; +0xf0, 0x100295668\nBL              sub_10002632C                                          ; +0xf4, 0x10029566c\nADD             X0, SP, #0x70+var_58                                   ; +0xf8, 0x100295670\nADD             X1, SP, #0x70+var_60                                   ; +0xfc, 0x100295674\nBL              sub_10002630C                                          ; +0x100, 0x100295678\nFMUL            S9, S9, S10                                            ; +0x104, 0x10029567c\nLDP             S1, S0, [SP,#0x70+var_58]                              ; +0x108, 0x100295680\nFCMP            S1, #0.0; float                                        ; +0x10c, 0x100295684\nB.NE            loc_100295694                                          ; +0x110, 0x100295688\nFCMP            S0, #0.0; float                                        ; +0x114, 0x10029568c\nB.EQ            loc_1002956B0                                          ; +0x118, 0x100295690\nBL              _atan2f                                                ; +0x11c, 0x100295694\nFCVT            D0, S0                                                 ; +0x120, 0x100295698\nADRP            X8, #qword_100763288@PAGE                              ; +0x124, 0x10029569c\nLDR             D1, [X8,#qword_100763288@PAGEOFF]                      ; +0x128, 0x1002956a0\nFADD            D0, D0, D1                                             ; +0x12c, 0x1002956a4\nFCVT            S0, D0                                                 ; +0x130, 0x1002956a8\nFADD            S9, S9, S0                                             ; +0x134, 0x1002956ac\nADD             X8, SP, #0x70+var_60                                   ; +0x138, 0x1002956b0\nFMOV            S0, S9                                                 ; +0x13c, 0x1002956b4\nBL              cocos2d__ccpForAngle                                   ; +0x140, 0x1002956b8\nADD             X0, SP, #0x70+var_60                                   ; +0x144, 0x1002956bc\nMOV             X8, X19                                                ; +0x148, 0x1002956c0\nFMOV            S0, S8                                                 ; +0x14c, 0x1002956c4\nBL              sub_100026350                                          ; +0x150, 0x1002956c8\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0x154, 0x1002956cc\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0x158, 0x1002956d0\nLDP             X22, X21, [SP,#0x70+var_20]                            ; +0x15c, 0x1002956d4\nLDP             X24, X23, [SP,#0x70+var_30]                            ; +0x160, 0x1002956d8\nLDP             D9, D8, [SP,#0x70+var_40]                              ; +0x164, 0x1002956dc\nLDP             D11, D10, [SP,#0x70+var_50]                            ; +0x168, 0x1002956e0\nADD             SP, SP, #0x80                                          ; +0x16c, 0x1002956e4\nRET                                                                    ; +0x170, 0x1002956e8", "xrefs": ["GJBaseGameLayer::modifyObjectPhysics @ 0x100295a94", "GJBaseGameLayer::processAdvancedFollowAction @ 0x100295eb0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}