{"type": "func", "start": 4295352252, "end": 4295352472, "name": "HardStreak::quadCornerOffset", "pseudocode": "// \n// HardStreak::quadCornerOffset from 0x10005dfbc to 0x10005e098 (220 bytes)\n// \n// 1 xrefs:\n// > HardStreak::updateStroke @ 0x10005db48\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\ncocos2d::CCPoint __fastcall HardStreak::quadCornerOffset(\n        HardStreak *a1,\n        cocos2d::CCPoint a2,\n        cocos2d::CCPoint a3,\n        float a4)\n{\n  float *v4; // x1\n  float *v5; // x2\n  __int64 *v6; // x8\n  __int64 *v7; // x19\n  float v10; // s8\n  double v11; // d2\n  double v12; // d3\n  float v13; // s0\n  __n128 v14; // q0\n  __n128 v15; // q1\n  __float2 v16; // 0:kr00_8.8\n  cocos2d::CCPoint result; // 0:s0.4,4:s1.4\n\n  v7 = v6;\n  if ( a2.x < 1.0 )\n  {\n    result.x = sub_1000229B8(v6, &qword_10086AA10);\n    return result;\n  }\n  v10 = a2.x * 0.5;\n  v11 = atan2f(v5[1] - v4[1], *v5 - *v4) * 180.0 / 3.14159265 + 90.0;\n  v12 = 360.0;\n  if ( v11 > 360.0 )\n  {\n    v12 = -360.0;\nLABEL_6:\n    v11 = v11 + v12;\n    goto LABEL_7;\n  }\n  if ( v11 < 0.0 )\n    goto LABEL_6;\nLABEL_7:\n  v13 = v11 * 3.14159265 / 180.0;\n  v16 = __sincosf_stret(v13);\n  v14.n128_f32[0] = v10 * v16.__cosval;\n  v15.n128_f32[0] = v10 * v16.__sinval;\n  sub_100022980(v14, v15, v7);\n  return result;\n}", "assembly": "; \n; HardStreak::quadCornerOffset from 0x10005dfbc to 0x10005e098 (220 bytes)\n; \n; 1 xrefs:\n; > HardStreak::updateStroke @ 0x10005db48\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x10005dfbc\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10005dfc0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10005dfc4\nADD             X29, SP, #0x20                                         ; +0xc, 0x10005dfc8\nMOV             X19, X8                                                ; +0x10, 0x10005dfcc\nFMOV            S1, #1.0                                               ; +0x14, 0x10005dfd0\nFCMP            S0, S1                                                 ; +0x18, 0x10005dfd4\nB.PL            loc_10005DFF8                                          ; +0x1c, 0x10005dfd8\nADRL            X1, qword_10086AA10                                    ; +0x20, 0x10005dfdc\nMOV             X0, X19                                                ; +0x28, 0x10005dfe4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x2c, 0x10005dfe8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x30, 0x10005dfec\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x34, 0x10005dff0\nB               sub_1000229B8                                          ; +0x38, 0x10005dff4\nLDP             S1, S2, [X2]                                           ; +0x3c, 0x10005dff8\nLDP             S3, S4, [X1]                                           ; +0x40, 0x10005dffc\nFSUB            S1, S1, S3; float                                      ; +0x44, 0x10005e000\nFSUB            S2, S2, S4                                             ; +0x48, 0x10005e004\nFMOV            S3, #0.5                                               ; +0x4c, 0x10005e008\nFMUL            S8, S0, S3                                             ; +0x50, 0x10005e00c\nFMOV            S0, S2; float                                          ; +0x54, 0x10005e010\nBL              _atan2f                                                ; +0x58, 0x10005e014\nFCVT            D1, S0                                                 ; +0x5c, 0x10005e018\nADRP            X8, #qword_100635480@PAGE                              ; +0x60, 0x10005e01c\nLDR             D0, [X8,#qword_100635480@PAGEOFF]                      ; +0x64, 0x10005e020\nFMUL            D2, D1, D0                                             ; +0x68, 0x10005e024\nADRP            X8, #qword_1006356B8@PAGE                              ; +0x6c, 0x10005e028\nLDR             D1, [X8,#qword_1006356B8@PAGEOFF]                      ; +0x70, 0x10005e02c\nFDIV            D2, D2, D1                                             ; +0x74, 0x10005e030\nADRP            X8, #qword_100635EF0@PAGE                              ; +0x78, 0x10005e034\nLDR             D3, [X8,#qword_100635EF0@PAGEOFF]                      ; +0x7c, 0x10005e038\nFADD            D2, D2, D3                                             ; +0x80, 0x10005e03c\nADRP            X8, #qword_100635488@PAGE                              ; +0x84, 0x10005e040\nLDR             D3, [X8,#qword_100635488@PAGEOFF]                      ; +0x88, 0x10005e044\nFCMP            D2, D3                                                 ; +0x8c, 0x10005e048\nB.LE            loc_10005E05C                                          ; +0x90, 0x10005e04c\nADRP            X8, #qword_100635478@PAGE                              ; +0x94, 0x10005e050\nLDR             D3, [X8,#qword_100635478@PAGEOFF]                      ; +0x98, 0x10005e054\nB               loc_10005E064                                          ; +0x9c, 0x10005e058\nFCMP            D2, #0.0                                               ; +0xa0, 0x10005e05c\nB.PL            loc_10005E068                                          ; +0xa4, 0x10005e060\nFADD            D2, D2, D3                                             ; +0xa8, 0x10005e064\nFMUL            D1, D2, D1                                             ; +0xac, 0x10005e068\nFDIV            D0, D1, D0                                             ; +0xb0, 0x10005e06c\nFCVT            S0, D0; float                                          ; +0xb4, 0x10005e070\nBL              ___sincosf_stret                                       ; +0xb8, 0x10005e074\nFMUL            S2, S8, S0                                             ; +0xbc, 0x10005e078\nFMUL            S0, S8, S1                                             ; +0xc0, 0x10005e07c\nMOV             X0, X19                                                ; +0xc4, 0x10005e080\nFMOV            S1, S2                                                 ; +0xc8, 0x10005e084\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xcc, 0x10005e088\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xd0, 0x10005e08c\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0xd4, 0x10005e090\nB               sub_100022980                                          ; +0xd8, 0x10005e094", "xrefs": ["HardStreak::updateStroke @ 0x10005db48"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}