// // HardStreak::quadCornerOffset from 0x10005dfbc to 0x10005e098 (220 bytes) // // 1 xrefs: // > HardStreak::updateStroke @ 0x10005db48 // // 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 // cocos2d::CCPoint __fastcall HardStreak::quadCornerOffset( HardStreak *a1, cocos2d::CCPoint a2, cocos2d::CCPoint a3, float a4) { float *v4; // x1 float *v5; // x2 __int64 *v6; // x8 __int64 *v7; // x19 float v10; // s8 double v11; // d2 double v12; // d3 float v13; // s0 __n128 v14; // q0 __n128 v15; // q1 __float2 v16; // 0:kr00_8.8 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v7 = v6; if ( a2.x < 1.0 ) { result.x = sub_1000229B8(v6, &qword_10086AA10); return result; } v10 = a2.x * 0.5; v11 = atan2f(v5[1] - v4[1], *v5 - *v4) * 180.0 / 3.14159265 + 90.0; v12 = 360.0; if ( v11 > 360.0 ) { v12 = -360.0; LABEL_6: v11 = v11 + v12; goto LABEL_7; } if ( v11 < 0.0 ) goto LABEL_6; LABEL_7: v13 = v11 * 3.14159265 / 180.0; v16 = __sincosf_stret(v13); v14.n128_f32[0] = v10 * v16.__cosval; v15.n128_f32[0] = v10 * v16.__sinval; sub_100022980(v14, v15, v7); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source