//
// cocos2d::extension::CCControlPotentiometer::angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint from 0xaa3ab8 to 0xaa3b48 (144 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCControlPotentiometer::potentiometerMoved @ 0xaa3d50
// > ??> @ 0x43fb0
//
// 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
//
float cocos2d::extension::CCControlPotentiometer::angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint(
cocos2d::extension::CCControlPotentiometer *a1,
cocos2d::CCPoint a2,
cocos2d::CCPoint a3,
cocos2d::CCPoint a4,
cocos2d::CCPoint a5)
{
float *v5; // x1
float *v6; // x2
float *v7; // x3
float *v8; // x4
float v9; // s9
float v10; // s10
double v11; // d8
float v12; // s0
v9 = *v8 - *v7;
v10 = v8[1] - v7[1];
v11 = atan2((float)(*v6 - *v5), (float)(v6[1] - v5[1]));
v12 = atan2(v9, v10);
*(float *)&v11 = v11;
return (float)((float)(*(float *)&v11 - v12) * 180.0) / 3.14159265;
}