//
// cocos2d::ccpAngle from 0xb1f4a4 to 0xb1f538 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x586b0
//
// 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::ccpAngle(const cocos2d::CCPoint *a1, const cocos2d::CCPoint *a2)
{
float v2; // s0
float v3; // s1
float v6; // [xsp+38h] [xbp+38h]
float v7; // [xsp+3Ch] [xbp+3Ch]
float v8; // [xsp+40h] [xbp+40h]
float v9; // [xsp+44h] [xbp+44h]
cocos2d::ccpNormalize(a1);
cocos2d::ccpNormalize(a2);
v2 = acosf((float)(v7 * v9) + (float)(v6 * v8));
v3 = 0.0;
if ( fabsf(v2) >= 0.00000011921 )
return v2;
return v3;
}