// // HardStreak::quadCornerOffset from 0x10009d8e0 to 0x10009d9b1 (209 bytes) // // 0 xrefs: // // 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; // rdx __int64 v5; // rcx float x; // xmm2_4 __m128 v8; // xmm0 float v9; // xmm1_4 float v10; // [rsp+0h] [rbp-Ch] cocos2d::CCPoint result; // 0:xmm0_8.8 x = a2.x; if ( a2.x >= 1.0 ) { v8 = (__m128)*(unsigned int *)(v5 + 4); v10 = x * 0.5; *(double *)v8.i64 = atan2f(v8.f32[0] - v4[1], *(float *)v5 - *v4) * 180.0 / 3.141592653589793 + 90.0; if ( *(double *)v8.i64 <= 360.0 ) { if ( *(double *)v8.i64 < 0.0 ) *(double *)v8.i64 = *(double *)v8.i64 + 360.0; } else { *(double *)v8.i64 = *(double *)v8.i64 + -360.0; } v8.f32[0] = *(double *)v8.i64 * 3.141592653589793 / 180.0; *(__float2 *)v8.f32 = __sincosf_stret(v8.f32[0]); v9 = v8.f32[0]; result = (cocos2d::CCPoint)_mm_movehdup_ps(v8).u64[0]; result.x = result.x * v10; sub_10028CBE0(a1, result.x, v9 * v10); } else { *(double *)&result = sub_10028CC60(a1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source