//
// HardStreak::quadCornerOffset from 0x9588f0 to 0x9589d4 (228 bytes)
//
// 1 xrefs:
// > ??> @ 0x7a740
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:57:26 +0000
//
cocos2d::CCPoint *__usercall HardStreak::quadCornerOffset@(
HardStreak *a1@,
float *a2@,
float *a3@,
cocos2d::CCPoint *a4@,
float a5@)
{
float v6; // s10
float v7; // s0
float v8; // s8
float v9; // s9
float v10; // s0
if ( a5 < 1.0 )
{
cocos2d::CCPoint::CCPoint(a4, (const cocos2d::CCPoint *)&unk_155D098);
}
else
{
v6 = a5 * 0.5;
v7 = atan2f(a3[1] - a2[1], *a3 - *a2);
v8 = HardStreak::normalizeAngle(a1, v7 * 180.0 / 3.14159265 + 90.0) * 3.14159265 / 180.0;
v9 = sinf(v8);
v10 = cosf(v8);
cocos2d::CCPoint::CCPoint(a4, v6 * v10, v6 * v9);
}
return a4;
}