//
// cocos2d::CCPoint::getAngle from 0xd40bb4 to 0xd40cf4 (320 bytes)
//
// 2 xrefs:
// > cocos2d::ccpAngleSigned @ 0xd8fd64
// > ??> @ 0xc3538
//
// 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 13:07:31 +0000
//
__int64 __fastcall cocos2d::CCPoint::getAngle(cocos2d::CCPoint *this, const cocos2d::CCPoint *a2)
{
float v2; // s0
float v3; // s0
float v6; // [xsp+38h] [xbp+38h] BYREF
float v7; // [xsp+3Ch] [xbp+3Ch]
float v8; // [xsp+40h] [xbp+40h] BYREF
float v9; // [xsp+44h] [xbp+44h]
v2 = sqrtf((float)(*((float *)this + 1) * *((float *)this + 1)) + (float)(*(float *)this * *(float *)this));
if ( v2 == 0.0 )
cocos2d::CCPoint::CCPoint(&v6, 1.0, 0.0);
else
cocos2d::CCPoint::operator/((float *)this, &v6, v2);
v3 = sqrtf((float)(*((float *)a2 + 1) * *((float *)a2 + 1)) + (float)(*(float *)a2 * *(float *)a2));
if ( v3 == 0.0 )
cocos2d::CCPoint::CCPoint(&v8, 1.0, 0.0);
else
cocos2d::CCPoint::operator/((float *)a2, &v8, v3);
atan2f(-(float)((float)(v7 * v8) - (float)(v6 * v9)), (float)(v9 * v7) + (float)(v6 * v8));
return _stack_chk_guard;
}